@rulebricks/sdk 1.0.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 +26 -0
- package/Client.js +47 -0
- package/LICENSE.txt +21 -0
- package/README.md +83 -0
- package/api/errors/BadRequestError.d.ts +7 -0
- package/api/errors/BadRequestError.js +47 -0
- package/api/errors/ForbiddenError.d.ts +7 -0
- package/api/errors/ForbiddenError.js +47 -0
- package/api/errors/InternalServerError.d.ts +7 -0
- package/api/errors/InternalServerError.js +47 -0
- package/api/errors/NotFoundError.d.ts +7 -0
- package/api/errors/NotFoundError.js +47 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +24 -0
- package/api/index.d.ts +1 -0
- package/api/index.js +23 -0
- package/api/resources/assets/client/Client.d.ts +100 -0
- package/api/resources/assets/client/Client.js +611 -0
- package/api/resources/assets/client/index.d.ts +1 -0
- package/api/resources/assets/client/index.js +21 -0
- package/api/resources/assets/client/requests/DeleteFolderRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/DeleteFolderRequest.js +5 -0
- package/api/resources/assets/client/requests/DeleteRuleRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/DeleteRuleRequest.js +5 -0
- package/api/resources/assets/client/requests/ExportRuleRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/ExportRuleRequest.js +5 -0
- package/api/resources/assets/client/requests/ImportRuleRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/ImportRuleRequest.js +5 -0
- package/api/resources/assets/client/requests/ListRulesRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/ListRulesRequest.js +5 -0
- package/api/resources/assets/client/requests/UpsertFolderRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/UpsertFolderRequest.js +5 -0
- package/api/resources/assets/client/requests/index.d.ts +1 -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 +22 -0
- package/api/resources/assets/types/DeleteFolderResponse.d.ts +1 -0
- package/api/resources/assets/types/DeleteFolderResponse.js +5 -0
- package/api/resources/assets/types/DeleteRuleResponse.d.ts +1 -0
- package/api/resources/assets/types/DeleteRuleResponse.js +5 -0
- package/api/resources/assets/types/ListFlowsResponseItem.d.ts +1 -0
- package/api/resources/assets/types/ListFlowsResponseItem.js +5 -0
- package/api/resources/assets/types/ListFoldersResponseItem.d.ts +1 -0
- package/api/resources/assets/types/ListFoldersResponseItem.js +5 -0
- package/api/resources/assets/types/ListRulesResponseItem.d.ts +1 -0
- package/api/resources/assets/types/ListRulesResponseItem.js +5 -0
- package/api/resources/assets/types/ListRulesResponseItemFolder.d.ts +1 -0
- package/api/resources/assets/types/ListRulesResponseItemFolder.js +5 -0
- package/api/resources/assets/types/UpsertFolderResponse.d.ts +1 -0
- package/api/resources/assets/types/UpsertFolderResponse.js +5 -0
- package/api/resources/assets/types/UsageResponse.d.ts +1 -0
- package/api/resources/assets/types/UsageResponse.js +5 -0
- package/api/resources/assets/types/index.d.ts +1 -0
- package/api/resources/assets/types/index.js +28 -0
- package/api/resources/decisions/client/Client.d.ts +19 -0
- package/api/resources/decisions/client/Client.js +146 -0
- package/api/resources/decisions/client/index.d.ts +1 -0
- package/api/resources/decisions/client/index.js +21 -0
- package/api/resources/decisions/client/requests/QueryRequest.d.ts +1 -0
- package/api/resources/decisions/client/requests/QueryRequest.js +5 -0
- package/api/resources/decisions/client/requests/index.d.ts +1 -0
- package/api/resources/decisions/client/requests/index.js +2 -0
- package/api/resources/decisions/index.d.ts +1 -0
- package/api/resources/decisions/index.js +22 -0
- package/api/resources/decisions/types/QueryResponse.d.ts +1 -0
- package/api/resources/decisions/types/QueryResponse.js +5 -0
- package/api/resources/decisions/types/index.d.ts +1 -0
- package/api/resources/decisions/types/index.js +21 -0
- package/api/resources/flows/client/Client.d.ts +21 -0
- package/api/resources/flows/client/Client.js +133 -0
- package/api/resources/flows/client/index.d.ts +1 -0
- package/api/resources/flows/client/index.js +2 -0
- package/api/resources/flows/index.d.ts +1 -0
- package/api/resources/flows/index.js +21 -0
- package/api/resources/index.d.ts +8 -0
- package/api/resources/index.js +54 -0
- package/api/resources/rules/client/Client.d.ts +60 -0
- package/api/resources/rules/client/Client.js +272 -0
- package/api/resources/rules/client/index.d.ts +1 -0
- package/api/resources/rules/client/index.js +2 -0
- package/api/resources/rules/index.d.ts +1 -0
- package/api/resources/rules/index.js +21 -0
- package/api/resources/tests/client/Client.d.ts +82 -0
- package/api/resources/tests/client/Client.js +439 -0
- package/api/resources/tests/client/index.d.ts +1 -0
- package/api/resources/tests/client/index.js +21 -0
- package/api/resources/tests/client/requests/CreateFlowTestRequest.d.ts +1 -0
- package/api/resources/tests/client/requests/CreateFlowTestRequest.js +5 -0
- package/api/resources/tests/client/requests/CreateRuleTestRequest.d.ts +1 -0
- package/api/resources/tests/client/requests/CreateRuleTestRequest.js +5 -0
- package/api/resources/tests/client/requests/index.d.ts +1 -0
- package/api/resources/tests/client/requests/index.js +2 -0
- package/api/resources/tests/index.d.ts +1 -0
- package/api/resources/tests/index.js +22 -0
- package/api/resources/tests/types/CreateFlowTestResponse.d.ts +1 -0
- package/api/resources/tests/types/CreateFlowTestResponse.js +5 -0
- package/api/resources/tests/types/CreateRuleTestResponse.d.ts +1 -0
- package/api/resources/tests/types/CreateRuleTestResponse.js +5 -0
- package/api/resources/tests/types/DeleteFlowTestResponse.d.ts +1 -0
- package/api/resources/tests/types/DeleteFlowTestResponse.js +5 -0
- package/api/resources/tests/types/DeleteRuleTestResponse.d.ts +1 -0
- package/api/resources/tests/types/DeleteRuleTestResponse.js +5 -0
- package/api/resources/tests/types/ListFlowTestsResponseItem.d.ts +1 -0
- package/api/resources/tests/types/ListFlowTestsResponseItem.js +5 -0
- package/api/resources/tests/types/ListRuleTestsResponseItem.d.ts +1 -0
- package/api/resources/tests/types/ListRuleTestsResponseItem.js +5 -0
- package/api/resources/tests/types/index.d.ts +1 -0
- package/api/resources/tests/types/index.js +26 -0
- package/api/resources/users/client/Client.d.ts +62 -0
- package/api/resources/users/client/Client.js +269 -0
- package/api/resources/users/client/index.d.ts +1 -0
- package/api/resources/users/client/index.js +21 -0
- package/api/resources/users/client/requests/CreateGroupRequest.d.ts +1 -0
- package/api/resources/users/client/requests/CreateGroupRequest.js +5 -0
- package/api/resources/users/client/requests/InviteRequest.d.ts +1 -0
- package/api/resources/users/client/requests/InviteRequest.js +5 -0
- package/api/resources/users/client/requests/index.d.ts +1 -0
- package/api/resources/users/client/requests/index.js +2 -0
- package/api/resources/users/index.d.ts +1 -0
- package/api/resources/users/index.js +22 -0
- package/api/resources/users/types/CreateGroupResponse.d.ts +1 -0
- package/api/resources/users/types/CreateGroupResponse.js +5 -0
- package/api/resources/users/types/InviteRequestRole.d.ts +5 -0
- package/api/resources/users/types/InviteRequestRole.js +10 -0
- package/api/resources/users/types/InviteResponse.d.ts +1 -0
- package/api/resources/users/types/InviteResponse.js +5 -0
- package/api/resources/users/types/ListGroupsResponseItem.d.ts +1 -0
- package/api/resources/users/types/ListGroupsResponseItem.js +5 -0
- package/api/resources/users/types/index.d.ts +1 -0
- package/api/resources/users/types/index.js +24 -0
- package/api/resources/values/client/Client.d.ts +37 -0
- package/api/resources/values/client/Client.js +255 -0
- package/api/resources/values/client/index.d.ts +1 -0
- package/api/resources/values/client/index.js +21 -0
- package/api/resources/values/client/requests/DeleteDynamicValueRequest.d.ts +1 -0
- package/api/resources/values/client/requests/DeleteDynamicValueRequest.js +5 -0
- package/api/resources/values/client/requests/ListDynamicValuesRequest.d.ts +1 -0
- package/api/resources/values/client/requests/ListDynamicValuesRequest.js +5 -0
- package/api/resources/values/client/requests/index.d.ts +1 -0
- package/api/resources/values/client/requests/index.js +2 -0
- package/api/resources/values/index.d.ts +1 -0
- package/api/resources/values/index.js +22 -0
- package/api/resources/values/types/DeleteDynamicValueResponse.d.ts +1 -0
- package/api/resources/values/types/DeleteDynamicValueResponse.js +5 -0
- package/api/resources/values/types/ListDynamicValuesResponseItem.d.ts +1 -0
- package/api/resources/values/types/ListDynamicValuesResponseItem.js +5 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemType.d.ts +7 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemType.js +12 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +1 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +5 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +1 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemValue.js +5 -0
- package/api/resources/values/types/UpdateRequestValue.d.ts +1 -0
- package/api/resources/values/types/UpdateRequestValue.js +5 -0
- package/api/resources/values/types/UpdateResponseItem.d.ts +1 -0
- package/api/resources/values/types/UpdateResponseItem.js +5 -0
- package/api/resources/values/types/UpdateResponseItemType.d.ts +7 -0
- package/api/resources/values/types/UpdateResponseItemType.js +12 -0
- package/api/resources/values/types/UpdateResponseItemValue.d.ts +1 -0
- package/api/resources/values/types/UpdateResponseItemValue.js +5 -0
- package/api/resources/values/types/index.d.ts +1 -0
- package/api/resources/values/types/index.js +29 -0
- package/api/types/BadRequestErrorBody.d.ts +1 -0
- package/api/types/BadRequestErrorBody.js +5 -0
- package/api/types/ForbiddenErrorBody.d.ts +1 -0
- package/api/types/ForbiddenErrorBody.js +5 -0
- package/api/types/InternalServerErrorBody.d.ts +1 -0
- package/api/types/InternalServerErrorBody.js +5 -0
- package/api/types/NotFoundErrorBody.d.ts +1 -0
- package/api/types/NotFoundErrorBody.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +24 -0
- package/banner.png +0 -0
- package/core/fetcher/APIResponse.d.ts +1 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +3 -0
- package/core/fetcher/Fetcher.js +161 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +32 -0
- package/core/fetcher/getHeader.d.ts +2 -0
- package/core/fetcher/getHeader.js +12 -0
- package/core/fetcher/index.d.ts +9 -0
- package/core/fetcher/index.js +9 -0
- package/core/index.d.ts +2 -0
- package/core/index.js +39 -0
- package/core/schemas/Schema.d.ts +19 -0
- package/core/schemas/Schema.js +21 -0
- package/core/schemas/builders/date/date.d.ts +4 -0
- package/core/schemas/builders/date/date.js +63 -0
- package/core/schemas/builders/date/index.d.ts +3 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +3 -0
- package/core/schemas/builders/enum/enum.js +39 -0
- package/core/schemas/builders/enum/index.d.ts +3 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +33 -0
- package/core/schemas/builders/lazy/index.d.ts +5 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +13 -0
- package/core/schemas/builders/lazy/lazy.js +46 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +8 -0
- package/core/schemas/builders/lazy/lazyObject.js +31 -0
- package/core/schemas/builders/list/index.d.ts +3 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +7 -0
- package/core/schemas/builders/list/list.js +78 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +3 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +5 -0
- package/core/schemas/builders/literals/index.js +7 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +3 -0
- package/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/core/schemas/builders/object/index.d.ts +9 -0
- package/core/schemas/builders/object/index.js +11 -0
- package/core/schemas/builders/object/object.d.ts +27 -0
- package/core/schemas/builders/object/object.js +268 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +2 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object/property.d.ts +7 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +1 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +23 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +73 -0
- package/core/schemas/builders/object-like/index.d.ts +4 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +1 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +3 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +3 -0
- package/core/schemas/builders/primitives/boolean.js +25 -0
- package/core/schemas/builders/primitives/index.d.ts +6 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +3 -0
- package/core/schemas/builders/primitives/number.js +25 -0
- package/core/schemas/builders/primitives/string.d.ts +3 -0
- package/core/schemas/builders/primitives/string.js +25 -0
- package/core/schemas/builders/primitives/unknown.d.ts +3 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +3 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +7 -0
- package/core/schemas/builders/record/record.js +116 -0
- package/core/schemas/builders/record/types.d.ts +1 -0
- package/core/schemas/builders/record/types.js +2 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +54 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +95 -0
- package/core/schemas/builders/schema-utils/index.d.ts +9 -0
- package/core/schemas/builders/schema-utils/index.js +11 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/core/schemas/builders/set/index.d.ts +3 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +7 -0
- package/core/schemas/builders/set/set.js +63 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +1 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +7 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +61 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +10 -0
- package/core/schemas/builders/union/index.d.ts +5 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +1 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +8 -0
- package/core/schemas/builders/union/union.js +152 -0
- package/core/schemas/index.d.ts +1 -0
- package/core/schemas/index.js +21 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +2 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +1 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +7 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/core/schemas/utils/entries.d.ts +2 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +2 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +2 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/core/schemas/utils/isPlainObject.d.ts +2 -0
- package/core/schemas/utils/isPlainObject.js +18 -0
- package/core/schemas/utils/keys.d.ts +2 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +47 -0
- package/core/schemas/utils/partition.d.ts +2 -0
- package/core/schemas/utils/partition.js +16 -0
- package/dist/Client.d.ts +26 -0
- package/dist/Client.js +47 -0
- package/dist/api/errors/BadRequestError.d.ts +7 -0
- package/dist/api/errors/BadRequestError.js +47 -0
- package/dist/api/errors/ForbiddenError.d.ts +7 -0
- package/dist/api/errors/ForbiddenError.js +47 -0
- package/dist/api/errors/InternalServerError.d.ts +7 -0
- package/dist/api/errors/InternalServerError.js +47 -0
- package/dist/api/errors/NotFoundError.d.ts +7 -0
- package/dist/api/errors/NotFoundError.js +47 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +24 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +23 -0
- package/dist/api/resources/assets/client/Client.d.ts +100 -0
- package/dist/api/resources/assets/client/Client.js +611 -0
- package/dist/api/resources/assets/client/index.d.ts +1 -0
- package/dist/api/resources/assets/client/index.js +21 -0
- package/dist/api/resources/assets/client/requests/DeleteFolderRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/DeleteFolderRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/DeleteRuleRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/DeleteRuleRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/ExportRuleRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/ExportRuleRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/ImportRuleRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/ImportRuleRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/ListRulesRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/ListRulesRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/UpsertFolderRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/UpsertFolderRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +1 -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 +22 -0
- package/dist/api/resources/assets/types/DeleteFolderResponse.d.ts +1 -0
- package/dist/api/resources/assets/types/DeleteFolderResponse.js +5 -0
- package/dist/api/resources/assets/types/DeleteRuleResponse.d.ts +1 -0
- package/dist/api/resources/assets/types/DeleteRuleResponse.js +5 -0
- package/dist/api/resources/assets/types/ListFlowsResponseItem.d.ts +1 -0
- package/dist/api/resources/assets/types/ListFlowsResponseItem.js +5 -0
- package/dist/api/resources/assets/types/ListFoldersResponseItem.d.ts +1 -0
- package/dist/api/resources/assets/types/ListFoldersResponseItem.js +5 -0
- package/dist/api/resources/assets/types/ListRulesResponseItem.d.ts +1 -0
- package/dist/api/resources/assets/types/ListRulesResponseItem.js +5 -0
- package/dist/api/resources/assets/types/ListRulesResponseItemFolder.d.ts +1 -0
- package/dist/api/resources/assets/types/ListRulesResponseItemFolder.js +5 -0
- package/dist/api/resources/assets/types/UpsertFolderResponse.d.ts +1 -0
- package/dist/api/resources/assets/types/UpsertFolderResponse.js +5 -0
- package/dist/api/resources/assets/types/UsageResponse.d.ts +1 -0
- package/dist/api/resources/assets/types/UsageResponse.js +5 -0
- package/dist/api/resources/assets/types/index.d.ts +1 -0
- package/dist/api/resources/assets/types/index.js +28 -0
- package/dist/api/resources/decisions/client/Client.d.ts +19 -0
- package/dist/api/resources/decisions/client/Client.js +146 -0
- package/dist/api/resources/decisions/client/index.d.ts +1 -0
- package/dist/api/resources/decisions/client/index.js +21 -0
- package/dist/api/resources/decisions/client/requests/QueryRequest.d.ts +1 -0
- package/dist/api/resources/decisions/client/requests/QueryRequest.js +5 -0
- package/dist/api/resources/decisions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/decisions/client/requests/index.js +2 -0
- package/dist/api/resources/decisions/index.d.ts +1 -0
- package/dist/api/resources/decisions/index.js +22 -0
- package/dist/api/resources/decisions/types/QueryResponse.d.ts +1 -0
- package/dist/api/resources/decisions/types/QueryResponse.js +5 -0
- package/dist/api/resources/decisions/types/index.d.ts +1 -0
- package/dist/api/resources/decisions/types/index.js +21 -0
- package/dist/api/resources/flows/client/Client.d.ts +21 -0
- package/dist/api/resources/flows/client/Client.js +133 -0
- package/dist/api/resources/flows/client/index.d.ts +1 -0
- package/dist/api/resources/flows/client/index.js +2 -0
- package/dist/api/resources/flows/index.d.ts +1 -0
- package/dist/api/resources/flows/index.js +21 -0
- package/dist/api/resources/index.d.ts +8 -0
- package/dist/api/resources/index.js +54 -0
- package/dist/api/resources/rules/client/Client.d.ts +60 -0
- package/dist/api/resources/rules/client/Client.js +272 -0
- package/dist/api/resources/rules/client/index.d.ts +1 -0
- package/dist/api/resources/rules/client/index.js +2 -0
- package/dist/api/resources/rules/index.d.ts +1 -0
- package/dist/api/resources/rules/index.js +21 -0
- package/dist/api/resources/tests/client/Client.d.ts +82 -0
- package/dist/api/resources/tests/client/Client.js +439 -0
- package/dist/api/resources/tests/client/index.d.ts +1 -0
- package/dist/api/resources/tests/client/index.js +21 -0
- package/dist/api/resources/tests/client/requests/CreateFlowTestRequest.d.ts +1 -0
- package/dist/api/resources/tests/client/requests/CreateFlowTestRequest.js +5 -0
- package/dist/api/resources/tests/client/requests/CreateRuleTestRequest.d.ts +1 -0
- package/dist/api/resources/tests/client/requests/CreateRuleTestRequest.js +5 -0
- package/dist/api/resources/tests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/tests/client/requests/index.js +2 -0
- package/dist/api/resources/tests/index.d.ts +1 -0
- package/dist/api/resources/tests/index.js +22 -0
- package/dist/api/resources/tests/types/CreateFlowTestResponse.d.ts +1 -0
- package/dist/api/resources/tests/types/CreateFlowTestResponse.js +5 -0
- package/dist/api/resources/tests/types/CreateRuleTestResponse.d.ts +1 -0
- package/dist/api/resources/tests/types/CreateRuleTestResponse.js +5 -0
- package/dist/api/resources/tests/types/DeleteFlowTestResponse.d.ts +1 -0
- package/dist/api/resources/tests/types/DeleteFlowTestResponse.js +5 -0
- package/dist/api/resources/tests/types/DeleteRuleTestResponse.d.ts +1 -0
- package/dist/api/resources/tests/types/DeleteRuleTestResponse.js +5 -0
- package/dist/api/resources/tests/types/ListFlowTestsResponseItem.d.ts +1 -0
- package/dist/api/resources/tests/types/ListFlowTestsResponseItem.js +5 -0
- package/dist/api/resources/tests/types/ListRuleTestsResponseItem.d.ts +1 -0
- package/dist/api/resources/tests/types/ListRuleTestsResponseItem.js +5 -0
- package/dist/api/resources/tests/types/index.d.ts +1 -0
- package/dist/api/resources/tests/types/index.js +26 -0
- package/dist/api/resources/users/client/Client.d.ts +62 -0
- package/dist/api/resources/users/client/Client.js +269 -0
- package/dist/api/resources/users/client/index.d.ts +1 -0
- package/dist/api/resources/users/client/index.js +21 -0
- package/dist/api/resources/users/client/requests/CreateGroupRequest.d.ts +1 -0
- package/dist/api/resources/users/client/requests/CreateGroupRequest.js +5 -0
- package/dist/api/resources/users/client/requests/InviteRequest.d.ts +1 -0
- package/dist/api/resources/users/client/requests/InviteRequest.js +5 -0
- package/dist/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/api/resources/users/client/requests/index.js +2 -0
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +22 -0
- package/dist/api/resources/users/types/CreateGroupResponse.d.ts +1 -0
- package/dist/api/resources/users/types/CreateGroupResponse.js +5 -0
- package/dist/api/resources/users/types/InviteRequestRole.d.ts +5 -0
- package/dist/api/resources/users/types/InviteRequestRole.js +10 -0
- package/dist/api/resources/users/types/InviteResponse.d.ts +1 -0
- package/dist/api/resources/users/types/InviteResponse.js +5 -0
- package/dist/api/resources/users/types/ListGroupsResponseItem.d.ts +1 -0
- package/dist/api/resources/users/types/ListGroupsResponseItem.js +5 -0
- package/dist/api/resources/users/types/index.d.ts +1 -0
- package/dist/api/resources/users/types/index.js +24 -0
- package/dist/api/resources/values/client/Client.d.ts +37 -0
- package/dist/api/resources/values/client/Client.js +255 -0
- package/dist/api/resources/values/client/index.d.ts +1 -0
- package/dist/api/resources/values/client/index.js +21 -0
- package/dist/api/resources/values/client/requests/DeleteDynamicValueRequest.d.ts +1 -0
- package/dist/api/resources/values/client/requests/DeleteDynamicValueRequest.js +5 -0
- package/dist/api/resources/values/client/requests/ListDynamicValuesRequest.d.ts +1 -0
- package/dist/api/resources/values/client/requests/ListDynamicValuesRequest.js +5 -0
- package/dist/api/resources/values/client/requests/index.d.ts +1 -0
- package/dist/api/resources/values/client/requests/index.js +2 -0
- package/dist/api/resources/values/index.d.ts +1 -0
- package/dist/api/resources/values/index.js +22 -0
- package/dist/api/resources/values/types/DeleteDynamicValueResponse.d.ts +1 -0
- package/dist/api/resources/values/types/DeleteDynamicValueResponse.js +5 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItem.d.ts +1 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItem.js +5 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemType.d.ts +7 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemType.js +12 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +1 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +5 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +1 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemValue.js +5 -0
- package/dist/api/resources/values/types/UpdateRequestValue.d.ts +1 -0
- package/dist/api/resources/values/types/UpdateRequestValue.js +5 -0
- package/dist/api/resources/values/types/UpdateResponseItem.d.ts +1 -0
- package/dist/api/resources/values/types/UpdateResponseItem.js +5 -0
- package/dist/api/resources/values/types/UpdateResponseItemType.d.ts +7 -0
- package/dist/api/resources/values/types/UpdateResponseItemType.js +12 -0
- package/dist/api/resources/values/types/UpdateResponseItemValue.d.ts +1 -0
- package/dist/api/resources/values/types/UpdateResponseItemValue.js +5 -0
- package/dist/api/resources/values/types/index.d.ts +1 -0
- package/dist/api/resources/values/types/index.js +29 -0
- package/dist/api/types/BadRequestErrorBody.d.ts +1 -0
- package/dist/api/types/BadRequestErrorBody.js +5 -0
- package/dist/api/types/ForbiddenErrorBody.d.ts +1 -0
- package/dist/api/types/ForbiddenErrorBody.js +5 -0
- package/dist/api/types/InternalServerErrorBody.d.ts +1 -0
- package/dist/api/types/InternalServerErrorBody.js +5 -0
- package/dist/api/types/NotFoundErrorBody.d.ts +1 -0
- package/dist/api/types/NotFoundErrorBody.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +24 -0
- package/dist/core/fetcher/APIResponse.d.ts +1 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +3 -0
- package/dist/core/fetcher/Fetcher.js +161 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +32 -0
- package/dist/core/fetcher/getHeader.d.ts +2 -0
- package/dist/core/fetcher/getHeader.js +12 -0
- package/dist/core/fetcher/index.d.ts +9 -0
- package/dist/core/fetcher/index.js +9 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +39 -0
- package/dist/core/schemas/Schema.d.ts +19 -0
- package/dist/core/schemas/Schema.js +21 -0
- package/dist/core/schemas/builders/date/date.d.ts +4 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +3 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +3 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +3 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +33 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +13 -0
- package/dist/core/schemas/builders/lazy/lazy.js +46 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +8 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +31 -0
- package/dist/core/schemas/builders/list/index.d.ts +3 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +7 -0
- package/dist/core/schemas/builders/list/list.js +78 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +3 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +5 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +3 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +9 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +27 -0
- package/dist/core/schemas/builders/object/object.js +268 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +2 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object/property.d.ts +7 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +1 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +23 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +73 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +4 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +3 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +3 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +6 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +3 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +3 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +3 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +3 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +7 -0
- package/dist/core/schemas/builders/record/record.js +116 -0
- package/dist/core/schemas/builders/record/types.d.ts +1 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +54 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +95 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +9 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +3 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +7 -0
- package/dist/core/schemas/builders/set/set.js +63 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +1 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +7 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +61 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +5 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +1 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +8 -0
- package/dist/core/schemas/builders/union/union.js +152 -0
- package/dist/core/schemas/index.d.ts +1 -0
- package/dist/core/schemas/index.js +21 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +1 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +7 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +2 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +2 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +2 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +2 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +2 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +47 -0
- package/dist/core/schemas/utils/partition.d.ts +2 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/errors/RulebricksApiError.d.ts +10 -0
- package/dist/errors/RulebricksApiError.js +32 -0
- package/dist/errors/RulebricksApiTimeoutError.d.ts +4 -0
- package/dist/errors/RulebricksApiTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +5 -0
- package/dist/errors/index.js +7 -0
- package/dist/forge/index.d.ts +4 -0
- package/dist/forge/index.js +31 -0
- package/dist/forge/operators.d.ts +136 -0
- package/dist/forge/operators.js +938 -0
- package/dist/forge/rule.d.ts +129 -0
- package/dist/forge/rule.js +702 -0
- package/dist/forge/types.d.ts +53 -0
- package/dist/forge/types.js +34 -0
- package/dist/forge/values.d.ts +21 -0
- package/dist/forge/values.js +88 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +113 -0
- package/dist/serialization/index.d.ts +1 -0
- package/dist/serialization/index.js +22 -0
- package/dist/serialization/resources/assets/client/exportRule.d.ts +2 -0
- package/dist/serialization/resources/assets/client/exportRule.js +37 -0
- package/dist/serialization/resources/assets/client/importRule.d.ts +2 -0
- package/dist/serialization/resources/assets/client/importRule.js +37 -0
- package/dist/serialization/resources/assets/client/index.d.ts +6 -0
- package/dist/serialization/resources/assets/client/index.js +43 -0
- package/dist/serialization/resources/assets/client/listFlows.d.ts +2 -0
- package/dist/serialization/resources/assets/client/listFlows.js +56 -0
- package/dist/serialization/resources/assets/client/listFolders.d.ts +2 -0
- package/dist/serialization/resources/assets/client/listFolders.js +56 -0
- package/dist/serialization/resources/assets/client/listRules.d.ts +2 -0
- package/dist/serialization/resources/assets/client/listRules.js +56 -0
- package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +2 -0
- package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.js +39 -0
- package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +2 -0
- package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.js +39 -0
- package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +2 -0
- package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.js +39 -0
- package/dist/serialization/resources/assets/client/requests/UpsertFolderRequest.d.ts +2 -0
- package/dist/serialization/resources/assets/client/requests/UpsertFolderRequest.js +41 -0
- package/dist/serialization/resources/assets/client/requests/index.d.ts +9 -0
- package/dist/serialization/resources/assets/client/requests/index.js +11 -0
- package/dist/serialization/resources/assets/index.d.ts +1 -0
- package/dist/serialization/resources/assets/index.js +22 -0
- package/dist/serialization/resources/assets/types/DeleteFolderResponse.d.ts +2 -0
- package/dist/serialization/resources/assets/types/DeleteFolderResponse.js +42 -0
- package/dist/serialization/resources/assets/types/DeleteRuleResponse.d.ts +2 -0
- package/dist/serialization/resources/assets/types/DeleteRuleResponse.js +39 -0
- package/dist/serialization/resources/assets/types/ListFlowsResponseItem.d.ts +2 -0
- package/dist/serialization/resources/assets/types/ListFlowsResponseItem.js +44 -0
- package/dist/serialization/resources/assets/types/ListFoldersResponseItem.d.ts +2 -0
- package/dist/serialization/resources/assets/types/ListFoldersResponseItem.js +42 -0
- package/dist/serialization/resources/assets/types/ListRulesResponseItem.d.ts +2 -0
- package/dist/serialization/resources/assets/types/ListRulesResponseItem.js +67 -0
- package/dist/serialization/resources/assets/types/ListRulesResponseItemFolder.d.ts +2 -0
- package/dist/serialization/resources/assets/types/ListRulesResponseItemFolder.js +42 -0
- package/dist/serialization/resources/assets/types/UpsertFolderResponse.d.ts +2 -0
- package/dist/serialization/resources/assets/types/UpsertFolderResponse.js +42 -0
- package/dist/serialization/resources/assets/types/UsageResponse.d.ts +2 -0
- package/dist/serialization/resources/assets/types/UsageResponse.js +44 -0
- package/dist/serialization/resources/assets/types/index.d.ts +1 -0
- package/dist/serialization/resources/assets/types/index.js +28 -0
- package/dist/serialization/resources/decisions/index.d.ts +1 -0
- package/dist/serialization/resources/decisions/index.js +21 -0
- package/dist/serialization/resources/decisions/types/QueryResponse.d.ts +2 -0
- package/dist/serialization/resources/decisions/types/QueryResponse.js +42 -0
- package/dist/serialization/resources/decisions/types/index.d.ts +1 -0
- package/dist/serialization/resources/decisions/types/index.js +21 -0
- package/dist/serialization/resources/flows/client/execute.d.ts +3 -0
- package/dist/serialization/resources/flows/client/execute.js +38 -0
- package/dist/serialization/resources/flows/client/index.d.ts +2 -0
- package/dist/serialization/resources/flows/client/index.js +33 -0
- package/dist/serialization/resources/flows/index.d.ts +1 -0
- package/dist/serialization/resources/flows/index.js +21 -0
- package/dist/serialization/resources/index.d.ts +8 -0
- package/dist/serialization/resources/index.js +52 -0
- package/dist/serialization/resources/rules/client/bulkSolve.d.ts +3 -0
- package/dist/serialization/resources/rules/client/bulkSolve.js +38 -0
- package/dist/serialization/resources/rules/client/index.d.ts +4 -0
- package/dist/serialization/resources/rules/client/index.js +35 -0
- package/dist/serialization/resources/rules/client/parallelSolve.d.ts +3 -0
- package/dist/serialization/resources/rules/client/parallelSolve.js +38 -0
- package/dist/serialization/resources/rules/client/solve.d.ts +3 -0
- package/dist/serialization/resources/rules/client/solve.js +38 -0
- package/dist/serialization/resources/rules/index.d.ts +1 -0
- package/dist/serialization/resources/rules/index.js +21 -0
- package/dist/serialization/resources/tests/client/index.d.ts +3 -0
- package/dist/serialization/resources/tests/client/index.js +40 -0
- package/dist/serialization/resources/tests/client/listFlowTests.d.ts +2 -0
- package/dist/serialization/resources/tests/client/listFlowTests.js +56 -0
- package/dist/serialization/resources/tests/client/listRuleTests.d.ts +2 -0
- package/dist/serialization/resources/tests/client/listRuleTests.js +56 -0
- package/dist/serialization/resources/tests/client/requests/CreateFlowTestRequest.d.ts +2 -0
- package/dist/serialization/resources/tests/client/requests/CreateFlowTestRequest.js +42 -0
- package/dist/serialization/resources/tests/client/requests/CreateRuleTestRequest.d.ts +2 -0
- package/dist/serialization/resources/tests/client/requests/CreateRuleTestRequest.js +42 -0
- package/dist/serialization/resources/tests/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/tests/client/requests/index.js +7 -0
- package/dist/serialization/resources/tests/index.d.ts +1 -0
- package/dist/serialization/resources/tests/index.js +22 -0
- package/dist/serialization/resources/tests/types/CreateFlowTestResponse.d.ts +2 -0
- package/dist/serialization/resources/tests/types/CreateFlowTestResponse.js +47 -0
- package/dist/serialization/resources/tests/types/CreateRuleTestResponse.d.ts +2 -0
- package/dist/serialization/resources/tests/types/CreateRuleTestResponse.js +47 -0
- package/dist/serialization/resources/tests/types/DeleteFlowTestResponse.d.ts +2 -0
- package/dist/serialization/resources/tests/types/DeleteFlowTestResponse.js +47 -0
- package/dist/serialization/resources/tests/types/DeleteRuleTestResponse.d.ts +2 -0
- package/dist/serialization/resources/tests/types/DeleteRuleTestResponse.js +47 -0
- package/dist/serialization/resources/tests/types/ListFlowTestsResponseItem.d.ts +2 -0
- package/dist/serialization/resources/tests/types/ListFlowTestsResponseItem.js +47 -0
- package/dist/serialization/resources/tests/types/ListRuleTestsResponseItem.d.ts +2 -0
- package/dist/serialization/resources/tests/types/ListRuleTestsResponseItem.js +47 -0
- package/dist/serialization/resources/tests/types/index.d.ts +1 -0
- package/dist/serialization/resources/tests/types/index.js +26 -0
- package/dist/serialization/resources/users/client/index.d.ts +2 -0
- package/dist/serialization/resources/users/client/index.js +39 -0
- package/dist/serialization/resources/users/client/listGroups.d.ts +2 -0
- package/dist/serialization/resources/users/client/listGroups.js +56 -0
- package/dist/serialization/resources/users/client/requests/CreateGroupRequest.d.ts +2 -0
- package/dist/serialization/resources/users/client/requests/CreateGroupRequest.js +40 -0
- package/dist/serialization/resources/users/client/requests/InviteRequest.d.ts +2 -0
- package/dist/serialization/resources/users/client/requests/InviteRequest.js +60 -0
- package/dist/serialization/resources/users/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/users/client/requests/index.js +7 -0
- package/dist/serialization/resources/users/index.d.ts +1 -0
- package/dist/serialization/resources/users/index.js +22 -0
- package/dist/serialization/resources/users/types/CreateGroupResponse.d.ts +2 -0
- package/dist/serialization/resources/users/types/CreateGroupResponse.js +42 -0
- package/dist/serialization/resources/users/types/InviteRequestRole.d.ts +2 -0
- package/dist/serialization/resources/users/types/InviteRequestRole.js +37 -0
- package/dist/serialization/resources/users/types/InviteResponse.d.ts +2 -0
- package/dist/serialization/resources/users/types/InviteResponse.js +39 -0
- package/dist/serialization/resources/users/types/ListGroupsResponseItem.d.ts +2 -0
- package/dist/serialization/resources/users/types/ListGroupsResponseItem.js +42 -0
- package/dist/serialization/resources/users/types/index.d.ts +1 -0
- package/dist/serialization/resources/users/types/index.js +24 -0
- package/dist/serialization/resources/values/client/index.d.ts +3 -0
- package/dist/serialization/resources/values/client/index.js +34 -0
- package/dist/serialization/resources/values/client/listDynamicValues.d.ts +2 -0
- package/dist/serialization/resources/values/client/listDynamicValues.js +56 -0
- package/dist/serialization/resources/values/client/update.d.ts +3 -0
- package/dist/serialization/resources/values/client/update.js +57 -0
- package/dist/serialization/resources/values/index.d.ts +1 -0
- package/dist/serialization/resources/values/index.js +22 -0
- package/dist/serialization/resources/values/types/DeleteDynamicValueResponse.d.ts +2 -0
- package/dist/serialization/resources/values/types/DeleteDynamicValueResponse.js +39 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItem.d.ts +2 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItem.js +66 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemType.d.ts +2 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemType.js +37 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +2 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +44 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +2 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemValue.js +42 -0
- package/dist/serialization/resources/values/types/UpdateRequestValue.d.ts +2 -0
- package/dist/serialization/resources/values/types/UpdateRequestValue.js +42 -0
- package/dist/serialization/resources/values/types/UpdateResponseItem.d.ts +2 -0
- package/dist/serialization/resources/values/types/UpdateResponseItem.js +61 -0
- package/dist/serialization/resources/values/types/UpdateResponseItemType.d.ts +2 -0
- package/dist/serialization/resources/values/types/UpdateResponseItemType.js +37 -0
- package/dist/serialization/resources/values/types/UpdateResponseItemValue.d.ts +2 -0
- package/dist/serialization/resources/values/types/UpdateResponseItemValue.js +42 -0
- package/dist/serialization/resources/values/types/index.d.ts +1 -0
- package/dist/serialization/resources/values/types/index.js +29 -0
- package/dist/serialization/types/BadRequestErrorBody.d.ts +2 -0
- package/dist/serialization/types/BadRequestErrorBody.js +39 -0
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +2 -0
- package/dist/serialization/types/ForbiddenErrorBody.js +39 -0
- package/dist/serialization/types/InternalServerErrorBody.d.ts +2 -0
- package/dist/serialization/types/InternalServerErrorBody.js +39 -0
- package/dist/serialization/types/NotFoundErrorBody.d.ts +2 -0
- package/dist/serialization/types/NotFoundErrorBody.js +39 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +24 -0
- package/errors/RulebricksApiError.d.ts +10 -0
- package/errors/RulebricksApiError.js +32 -0
- package/errors/RulebricksApiTimeoutError.d.ts +4 -0
- package/errors/RulebricksApiTimeoutError.js +13 -0
- package/errors/index.d.ts +5 -0
- package/errors/index.js +7 -0
- package/forge/index.d.ts +4 -0
- package/forge/index.js +31 -0
- package/forge/operators.d.ts +136 -0
- package/forge/operators.js +938 -0
- package/forge/rule.d.ts +129 -0
- package/forge/rule.js +702 -0
- package/forge/types.d.ts +53 -0
- package/forge/types.js +34 -0
- package/forge/values.d.ts +21 -0
- package/forge/values.js +88 -0
- package/index.d.ts +15 -0
- package/index.js +113 -0
- package/jest.config.js +5 -0
- package/package.json +43 -0
- package/serialization/index.d.ts +1 -0
- package/serialization/index.js +22 -0
- package/serialization/resources/assets/client/exportRule.d.ts +2 -0
- package/serialization/resources/assets/client/exportRule.js +37 -0
- package/serialization/resources/assets/client/importRule.d.ts +2 -0
- package/serialization/resources/assets/client/importRule.js +37 -0
- package/serialization/resources/assets/client/index.d.ts +6 -0
- package/serialization/resources/assets/client/index.js +43 -0
- package/serialization/resources/assets/client/listFlows.d.ts +2 -0
- package/serialization/resources/assets/client/listFlows.js +56 -0
- package/serialization/resources/assets/client/listFolders.d.ts +2 -0
- package/serialization/resources/assets/client/listFolders.js +56 -0
- package/serialization/resources/assets/client/listRules.d.ts +2 -0
- package/serialization/resources/assets/client/listRules.js +56 -0
- package/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +2 -0
- package/serialization/resources/assets/client/requests/DeleteFolderRequest.js +39 -0
- package/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +2 -0
- package/serialization/resources/assets/client/requests/DeleteRuleRequest.js +39 -0
- package/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +2 -0
- package/serialization/resources/assets/client/requests/ImportRuleRequest.js +39 -0
- package/serialization/resources/assets/client/requests/UpsertFolderRequest.d.ts +2 -0
- package/serialization/resources/assets/client/requests/UpsertFolderRequest.js +41 -0
- package/serialization/resources/assets/client/requests/index.d.ts +9 -0
- package/serialization/resources/assets/client/requests/index.js +11 -0
- package/serialization/resources/assets/index.d.ts +1 -0
- package/serialization/resources/assets/index.js +22 -0
- package/serialization/resources/assets/types/DeleteFolderResponse.d.ts +2 -0
- package/serialization/resources/assets/types/DeleteFolderResponse.js +42 -0
- package/serialization/resources/assets/types/DeleteRuleResponse.d.ts +2 -0
- package/serialization/resources/assets/types/DeleteRuleResponse.js +39 -0
- package/serialization/resources/assets/types/ListFlowsResponseItem.d.ts +2 -0
- package/serialization/resources/assets/types/ListFlowsResponseItem.js +44 -0
- package/serialization/resources/assets/types/ListFoldersResponseItem.d.ts +2 -0
- package/serialization/resources/assets/types/ListFoldersResponseItem.js +42 -0
- package/serialization/resources/assets/types/ListRulesResponseItem.d.ts +2 -0
- package/serialization/resources/assets/types/ListRulesResponseItem.js +67 -0
- package/serialization/resources/assets/types/ListRulesResponseItemFolder.d.ts +2 -0
- package/serialization/resources/assets/types/ListRulesResponseItemFolder.js +42 -0
- package/serialization/resources/assets/types/UpsertFolderResponse.d.ts +2 -0
- package/serialization/resources/assets/types/UpsertFolderResponse.js +42 -0
- package/serialization/resources/assets/types/UsageResponse.d.ts +2 -0
- package/serialization/resources/assets/types/UsageResponse.js +44 -0
- package/serialization/resources/assets/types/index.d.ts +1 -0
- package/serialization/resources/assets/types/index.js +28 -0
- package/serialization/resources/decisions/index.d.ts +1 -0
- package/serialization/resources/decisions/index.js +21 -0
- package/serialization/resources/decisions/types/QueryResponse.d.ts +2 -0
- package/serialization/resources/decisions/types/QueryResponse.js +42 -0
- package/serialization/resources/decisions/types/index.d.ts +1 -0
- package/serialization/resources/decisions/types/index.js +21 -0
- package/serialization/resources/flows/client/execute.d.ts +3 -0
- package/serialization/resources/flows/client/execute.js +38 -0
- package/serialization/resources/flows/client/index.d.ts +2 -0
- package/serialization/resources/flows/client/index.js +33 -0
- package/serialization/resources/flows/index.d.ts +1 -0
- package/serialization/resources/flows/index.js +21 -0
- package/serialization/resources/index.d.ts +8 -0
- package/serialization/resources/index.js +52 -0
- package/serialization/resources/rules/client/bulkSolve.d.ts +3 -0
- package/serialization/resources/rules/client/bulkSolve.js +38 -0
- package/serialization/resources/rules/client/index.d.ts +4 -0
- package/serialization/resources/rules/client/index.js +35 -0
- package/serialization/resources/rules/client/parallelSolve.d.ts +3 -0
- package/serialization/resources/rules/client/parallelSolve.js +38 -0
- package/serialization/resources/rules/client/solve.d.ts +3 -0
- package/serialization/resources/rules/client/solve.js +38 -0
- package/serialization/resources/rules/index.d.ts +1 -0
- package/serialization/resources/rules/index.js +21 -0
- package/serialization/resources/tests/client/index.d.ts +3 -0
- package/serialization/resources/tests/client/index.js +40 -0
- package/serialization/resources/tests/client/listFlowTests.d.ts +2 -0
- package/serialization/resources/tests/client/listFlowTests.js +56 -0
- package/serialization/resources/tests/client/listRuleTests.d.ts +2 -0
- package/serialization/resources/tests/client/listRuleTests.js +56 -0
- package/serialization/resources/tests/client/requests/CreateFlowTestRequest.d.ts +2 -0
- package/serialization/resources/tests/client/requests/CreateFlowTestRequest.js +42 -0
- package/serialization/resources/tests/client/requests/CreateRuleTestRequest.d.ts +2 -0
- package/serialization/resources/tests/client/requests/CreateRuleTestRequest.js +42 -0
- package/serialization/resources/tests/client/requests/index.d.ts +5 -0
- package/serialization/resources/tests/client/requests/index.js +7 -0
- package/serialization/resources/tests/index.d.ts +1 -0
- package/serialization/resources/tests/index.js +22 -0
- package/serialization/resources/tests/types/CreateFlowTestResponse.d.ts +2 -0
- package/serialization/resources/tests/types/CreateFlowTestResponse.js +47 -0
- package/serialization/resources/tests/types/CreateRuleTestResponse.d.ts +2 -0
- package/serialization/resources/tests/types/CreateRuleTestResponse.js +47 -0
- package/serialization/resources/tests/types/DeleteFlowTestResponse.d.ts +2 -0
- package/serialization/resources/tests/types/DeleteFlowTestResponse.js +47 -0
- package/serialization/resources/tests/types/DeleteRuleTestResponse.d.ts +2 -0
- package/serialization/resources/tests/types/DeleteRuleTestResponse.js +47 -0
- package/serialization/resources/tests/types/ListFlowTestsResponseItem.d.ts +2 -0
- package/serialization/resources/tests/types/ListFlowTestsResponseItem.js +47 -0
- package/serialization/resources/tests/types/ListRuleTestsResponseItem.d.ts +2 -0
- package/serialization/resources/tests/types/ListRuleTestsResponseItem.js +47 -0
- package/serialization/resources/tests/types/index.d.ts +1 -0
- package/serialization/resources/tests/types/index.js +26 -0
- package/serialization/resources/users/client/index.d.ts +2 -0
- package/serialization/resources/users/client/index.js +39 -0
- package/serialization/resources/users/client/listGroups.d.ts +2 -0
- package/serialization/resources/users/client/listGroups.js +56 -0
- package/serialization/resources/users/client/requests/CreateGroupRequest.d.ts +2 -0
- package/serialization/resources/users/client/requests/CreateGroupRequest.js +40 -0
- package/serialization/resources/users/client/requests/InviteRequest.d.ts +2 -0
- package/serialization/resources/users/client/requests/InviteRequest.js +60 -0
- package/serialization/resources/users/client/requests/index.d.ts +5 -0
- package/serialization/resources/users/client/requests/index.js +7 -0
- package/serialization/resources/users/index.d.ts +1 -0
- package/serialization/resources/users/index.js +22 -0
- package/serialization/resources/users/types/CreateGroupResponse.d.ts +2 -0
- package/serialization/resources/users/types/CreateGroupResponse.js +42 -0
- package/serialization/resources/users/types/InviteRequestRole.d.ts +2 -0
- package/serialization/resources/users/types/InviteRequestRole.js +37 -0
- package/serialization/resources/users/types/InviteResponse.d.ts +2 -0
- package/serialization/resources/users/types/InviteResponse.js +39 -0
- package/serialization/resources/users/types/ListGroupsResponseItem.d.ts +2 -0
- package/serialization/resources/users/types/ListGroupsResponseItem.js +42 -0
- package/serialization/resources/users/types/index.d.ts +1 -0
- package/serialization/resources/users/types/index.js +24 -0
- package/serialization/resources/values/client/index.d.ts +3 -0
- package/serialization/resources/values/client/index.js +34 -0
- package/serialization/resources/values/client/listDynamicValues.d.ts +2 -0
- package/serialization/resources/values/client/listDynamicValues.js +56 -0
- package/serialization/resources/values/client/update.d.ts +3 -0
- package/serialization/resources/values/client/update.js +57 -0
- package/serialization/resources/values/index.d.ts +1 -0
- package/serialization/resources/values/index.js +22 -0
- package/serialization/resources/values/types/DeleteDynamicValueResponse.d.ts +2 -0
- package/serialization/resources/values/types/DeleteDynamicValueResponse.js +39 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItem.d.ts +2 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItem.js +66 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemType.d.ts +2 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemType.js +37 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +2 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +44 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +2 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemValue.js +42 -0
- package/serialization/resources/values/types/UpdateRequestValue.d.ts +2 -0
- package/serialization/resources/values/types/UpdateRequestValue.js +42 -0
- package/serialization/resources/values/types/UpdateResponseItem.d.ts +2 -0
- package/serialization/resources/values/types/UpdateResponseItem.js +61 -0
- package/serialization/resources/values/types/UpdateResponseItemType.d.ts +2 -0
- package/serialization/resources/values/types/UpdateResponseItemType.js +37 -0
- package/serialization/resources/values/types/UpdateResponseItemValue.d.ts +2 -0
- package/serialization/resources/values/types/UpdateResponseItemValue.js +42 -0
- package/serialization/resources/values/types/index.d.ts +1 -0
- package/serialization/resources/values/types/index.js +29 -0
- package/serialization/types/BadRequestErrorBody.d.ts +2 -0
- package/serialization/types/BadRequestErrorBody.js +39 -0
- package/serialization/types/ForbiddenErrorBody.d.ts +2 -0
- package/serialization/types/ForbiddenErrorBody.js +39 -0
- package/serialization/types/InternalServerErrorBody.d.ts +2 -0
- package/serialization/types/InternalServerErrorBody.js +39 -0
- package/serialization/types/NotFoundErrorBody.d.ts +2 -0
- package/serialization/types/NotFoundErrorBody.js +39 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +24 -0
- package/tests/client.test.ts +11 -0
package/forge/types.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare type OperatorResult = [string, any[]];
|
|
2
|
+
export declare enum DynamicValueType {
|
|
3
|
+
STRING = "string",
|
|
4
|
+
NUMBER = "number",
|
|
5
|
+
BOOLEAN = "boolean",
|
|
6
|
+
DATE = "date",
|
|
7
|
+
LIST = "list",
|
|
8
|
+
OBJECT = "object"
|
|
9
|
+
}
|
|
10
|
+
export declare enum RuleType {
|
|
11
|
+
BOOLEAN = "boolean",
|
|
12
|
+
NUMBER = "number",
|
|
13
|
+
STRING = "string",
|
|
14
|
+
DATE = "date",
|
|
15
|
+
LIST = "list"
|
|
16
|
+
}
|
|
17
|
+
export interface Field {
|
|
18
|
+
name: string;
|
|
19
|
+
key?: string;
|
|
20
|
+
description: string;
|
|
21
|
+
defaultValue: any;
|
|
22
|
+
operators: Record<string, OperatorDef>;
|
|
23
|
+
type: RuleType;
|
|
24
|
+
}
|
|
25
|
+
export interface OperatorArg {
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
description: string;
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
validate?: (value: any) => boolean;
|
|
31
|
+
defaultValue?: any;
|
|
32
|
+
}
|
|
33
|
+
export interface OperatorDef {
|
|
34
|
+
name: string;
|
|
35
|
+
args: OperatorArg[];
|
|
36
|
+
description?: string;
|
|
37
|
+
validate?: (args: any[]) => boolean;
|
|
38
|
+
skipTypecheck?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface RuleSettings {
|
|
41
|
+
testing?: boolean;
|
|
42
|
+
schemaValidation?: boolean;
|
|
43
|
+
allProperties?: boolean;
|
|
44
|
+
lockSchema?: boolean;
|
|
45
|
+
approver?: string;
|
|
46
|
+
requiresApproval?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare class TypeMismatchError extends Error {
|
|
49
|
+
constructor(message: string);
|
|
50
|
+
}
|
|
51
|
+
export declare class DynamicValueNotFoundError extends Error {
|
|
52
|
+
constructor(message: string);
|
|
53
|
+
}
|
package/forge/types.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamicValueNotFoundError = exports.TypeMismatchError = exports.RuleType = exports.DynamicValueType = void 0;
|
|
4
|
+
var DynamicValueType;
|
|
5
|
+
(function (DynamicValueType) {
|
|
6
|
+
DynamicValueType["STRING"] = "string";
|
|
7
|
+
DynamicValueType["NUMBER"] = "number";
|
|
8
|
+
DynamicValueType["BOOLEAN"] = "boolean";
|
|
9
|
+
DynamicValueType["DATE"] = "date";
|
|
10
|
+
DynamicValueType["LIST"] = "list";
|
|
11
|
+
DynamicValueType["OBJECT"] = "object";
|
|
12
|
+
})(DynamicValueType = exports.DynamicValueType || (exports.DynamicValueType = {}));
|
|
13
|
+
var RuleType;
|
|
14
|
+
(function (RuleType) {
|
|
15
|
+
RuleType["BOOLEAN"] = "boolean";
|
|
16
|
+
RuleType["NUMBER"] = "number";
|
|
17
|
+
RuleType["STRING"] = "string";
|
|
18
|
+
RuleType["DATE"] = "date";
|
|
19
|
+
RuleType["LIST"] = "list";
|
|
20
|
+
})(RuleType = exports.RuleType || (exports.RuleType = {}));
|
|
21
|
+
class TypeMismatchError extends Error {
|
|
22
|
+
constructor(message) {
|
|
23
|
+
super(message);
|
|
24
|
+
this.name = "TypeMismatchError";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.TypeMismatchError = TypeMismatchError;
|
|
28
|
+
class DynamicValueNotFoundError extends Error {
|
|
29
|
+
constructor(message) {
|
|
30
|
+
super(message);
|
|
31
|
+
this.name = "DynamicValueNotFoundError";
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.DynamicValueNotFoundError = DynamicValueNotFoundError;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RulebricksApiClient } from "../Client.js";
|
|
2
|
+
import { UpdateRequestValue } from "../api/resources/values/types/UpdateRequestValue.js";
|
|
3
|
+
import { DynamicValueType } from "./types.js";
|
|
4
|
+
export declare class DynamicValue {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly valueType: DynamicValueType;
|
|
8
|
+
private _rb_type;
|
|
9
|
+
constructor(id: string, name: string, valueType: DynamicValueType);
|
|
10
|
+
toDict(): Record<string, any>;
|
|
11
|
+
static getExpectedType(valueType: DynamicValueType): any;
|
|
12
|
+
toString(): string;
|
|
13
|
+
}
|
|
14
|
+
export declare class DynamicValues {
|
|
15
|
+
private static workspace?;
|
|
16
|
+
private static cache;
|
|
17
|
+
static configure(client: RulebricksApiClient): void;
|
|
18
|
+
static get(name: string): Promise<DynamicValue>;
|
|
19
|
+
static set(dynamicValues: Record<string, UpdateRequestValue>): Promise<void>;
|
|
20
|
+
static clearCache(): void;
|
|
21
|
+
}
|
package/forge/values.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DynamicValues = exports.DynamicValue = void 0;
|
|
13
|
+
const types_js_1 = require("./types.js");
|
|
14
|
+
class DynamicValue {
|
|
15
|
+
constructor(id, name, valueType) {
|
|
16
|
+
this.id = id;
|
|
17
|
+
this.name = name;
|
|
18
|
+
this.valueType = valueType;
|
|
19
|
+
this._rb_type = "globalValue";
|
|
20
|
+
}
|
|
21
|
+
toDict() {
|
|
22
|
+
return {
|
|
23
|
+
id: this.id,
|
|
24
|
+
$rb: this._rb_type,
|
|
25
|
+
name: this.name,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static getExpectedType(valueType) {
|
|
29
|
+
const typeMapping = {
|
|
30
|
+
[types_js_1.DynamicValueType.STRING]: String,
|
|
31
|
+
[types_js_1.DynamicValueType.NUMBER]: Number,
|
|
32
|
+
[types_js_1.DynamicValueType.BOOLEAN]: Boolean,
|
|
33
|
+
[types_js_1.DynamicValueType.DATE]: Date,
|
|
34
|
+
[types_js_1.DynamicValueType.LIST]: Array,
|
|
35
|
+
[types_js_1.DynamicValueType.OBJECT]: Object,
|
|
36
|
+
};
|
|
37
|
+
return typeMapping[valueType];
|
|
38
|
+
}
|
|
39
|
+
toString() {
|
|
40
|
+
return `<${this.name.toUpperCase()}>`;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.DynamicValue = DynamicValue;
|
|
44
|
+
class DynamicValues {
|
|
45
|
+
static configure(client) {
|
|
46
|
+
this.workspace = client;
|
|
47
|
+
this.cache.clear();
|
|
48
|
+
}
|
|
49
|
+
static get(name) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
if (!this.workspace) {
|
|
52
|
+
throw new Error("DynamicValues not configured. Call DynamicValues.configure(workspace) first");
|
|
53
|
+
}
|
|
54
|
+
const cachedValue = this.cache.get(name);
|
|
55
|
+
if (cachedValue) {
|
|
56
|
+
return cachedValue;
|
|
57
|
+
}
|
|
58
|
+
const values = yield this.workspace.values.listDynamicValues();
|
|
59
|
+
const value = values.find((v) => v.name === name);
|
|
60
|
+
if (!value) {
|
|
61
|
+
throw new types_js_1.DynamicValueNotFoundError(`Dynamic value '${name}' not found`);
|
|
62
|
+
}
|
|
63
|
+
try {
|
|
64
|
+
const valueType = value.type || "string";
|
|
65
|
+
const dynamicValue = new DynamicValue(value.id || "", name, valueType);
|
|
66
|
+
this.cache.set(name, dynamicValue);
|
|
67
|
+
return dynamicValue;
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
throw new Error(`Invalid type '${value.type}' for dynamic value '${name}'`);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
static set(dynamicValues) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (!this.workspace) {
|
|
77
|
+
throw new Error("Workspace not configured. Call configure() first.");
|
|
78
|
+
}
|
|
79
|
+
yield this.workspace.values.update(dynamicValues);
|
|
80
|
+
this.cache.clear();
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
static clearCache() {
|
|
84
|
+
this.cache.clear();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.DynamicValues = DynamicValues;
|
|
88
|
+
DynamicValues.cache = new Map();
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
2
|
+
export var RulebricksApi: any;
|
|
3
|
+
export var RulebricksApiClient: typeof Client_1.RulebricksApiClient;
|
|
4
|
+
export var RulebricksApiError: typeof errors_1.RulebricksApiError;
|
|
5
|
+
export var RulebricksApiTimeoutError: typeof errors_1.RulebricksApiTimeoutError;
|
|
6
|
+
export var Rule: typeof Forge_1.Rule;
|
|
7
|
+
export var Condition: typeof Forge_1.Condition;
|
|
8
|
+
export var RuleTest: typeof Forge_1.RuleTest;
|
|
9
|
+
export var DynamicValue: typeof Forge_1.DynamicValue;
|
|
10
|
+
export var DynamicValues: typeof Forge_1.DynamicValues;
|
|
11
|
+
export var DynamicValueNotFoundError: typeof Forge_1.DynamicValueNotFoundError;
|
|
12
|
+
export var TypeMismatchError: typeof Forge_1.TypeMismatchError;
|
|
13
|
+
import Client_1 = require("./Client");
|
|
14
|
+
import errors_1 = require("./errors");
|
|
15
|
+
import Forge_1 = require("./forge");
|
package/index.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) ||
|
|
3
|
+
(Object.create
|
|
4
|
+
? function (o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined)
|
|
6
|
+
k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return m[k];
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}
|
|
18
|
+
: function (o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined)
|
|
20
|
+
k2 = k;
|
|
21
|
+
o[k2] = m[k];
|
|
22
|
+
});
|
|
23
|
+
var __setModuleDefault = (this && this.__setModuleDefault) ||
|
|
24
|
+
(Object.create
|
|
25
|
+
? function (o, v) {
|
|
26
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
27
|
+
}
|
|
28
|
+
: function (o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) ||
|
|
32
|
+
function (mod) {
|
|
33
|
+
if (mod && mod.__esModule)
|
|
34
|
+
return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null)
|
|
37
|
+
for (var k in mod)
|
|
38
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
39
|
+
__createBinding(result, mod, k);
|
|
40
|
+
__setModuleDefault(result, mod);
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
+
exports.RulebricksApiTimeoutError =
|
|
45
|
+
exports.RulebricksApiError =
|
|
46
|
+
exports.RulebricksApiClient =
|
|
47
|
+
exports.RulebricksApi =
|
|
48
|
+
void 0;
|
|
49
|
+
exports.RulebricksApi = __importStar(require("./api"));
|
|
50
|
+
var Client_1 = require("./Client");
|
|
51
|
+
Object.defineProperty(exports, "RulebricksApiClient", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return Client_1.RulebricksApiClient;
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
var errors_1 = require("./errors");
|
|
58
|
+
Object.defineProperty(exports, "RulebricksApiError", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () {
|
|
61
|
+
return errors_1.RulebricksApiError;
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "RulebricksApiTimeoutError", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return errors_1.RulebricksApiTimeoutError;
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
// FORGE SDK EXPORTS ========================================
|
|
71
|
+
var Forge_1 = require("./forge");
|
|
72
|
+
Object.defineProperty(exports, "Rule", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return Forge_1.Rule;
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "Condition", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return Forge_1.Condition;
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "RuleTest", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return Forge_1.RuleTest;
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "DynamicValue", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return Forge_1.DynamicValue;
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "DynamicValues", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return Forge_1.DynamicValues;
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "DynamicValueNotFoundError", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return Forge_1.DynamicValueNotFoundError;
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "TypeMismatchError", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return Forge_1.TypeMismatchError;
|
|
112
|
+
},
|
|
113
|
+
});
|
package/jest.config.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rulebricks/sdk",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"repository": "https://github.com/rulebricks/node-sdk",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"author": "Rulebricks",
|
|
10
|
+
"description": "Rulebricks API – Node SDK",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"rulebricks",
|
|
13
|
+
"javascript",
|
|
14
|
+
"rule engine",
|
|
15
|
+
"sdk"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"format": "prettier --write 'src/**/*.ts'",
|
|
19
|
+
"build": "tsc",
|
|
20
|
+
"prepack": "cp -rv dist/. .",
|
|
21
|
+
"test": "jest"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@types/pako": "2.0.1",
|
|
25
|
+
"form-data": "4.0.0",
|
|
26
|
+
"js-base64": "3.7.2",
|
|
27
|
+
"node-fetch": "2.7.0",
|
|
28
|
+
"pako": "2.0.1",
|
|
29
|
+
"qs": "6.11.2",
|
|
30
|
+
"url-join": "4.0.1"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/jest": "^29.5.5",
|
|
34
|
+
"@types/node": "17.0.33",
|
|
35
|
+
"@types/node-fetch": "2.6.9",
|
|
36
|
+
"@types/qs": "6.9.8",
|
|
37
|
+
"@types/url-join": "4.0.1",
|
|
38
|
+
"jest": "^29.7.0",
|
|
39
|
+
"prettier": "2.7.1",
|
|
40
|
+
"ts-jest": "^29.1.1",
|
|
41
|
+
"typescript": "4.6.4"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined)
|
|
4
|
+
k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function (o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined)
|
|
12
|
+
k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __exportStar = (this && this.__exportStar) || function (m, exports) {
|
|
16
|
+
for (var p in m)
|
|
17
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
18
|
+
__createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
__exportStar(require("./resources"), exports);
|
|
22
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined)
|
|
7
|
+
k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function (o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined)
|
|
15
|
+
k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function (o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
|
+
if (mod && mod.__esModule)
|
|
25
|
+
return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null)
|
|
28
|
+
for (var k in mod)
|
|
29
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
30
|
+
__createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.Response = void 0;
|
|
36
|
+
const core = __importStar(require("../../../../core"));
|
|
37
|
+
exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined)
|
|
7
|
+
k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function (o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined)
|
|
15
|
+
k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function (o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
|
+
if (mod && mod.__esModule)
|
|
25
|
+
return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null)
|
|
28
|
+
for (var k in mod)
|
|
29
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
30
|
+
__createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.Response = void 0;
|
|
36
|
+
const core = __importStar(require("../../../../core"));
|
|
37
|
+
exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined)
|
|
4
|
+
k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function (o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined)
|
|
12
|
+
k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function (o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule)
|
|
22
|
+
return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null)
|
|
25
|
+
for (var k in mod)
|
|
26
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
27
|
+
__createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __exportStar = (this && this.__exportStar) || function (m, exports) {
|
|
32
|
+
for (var p in m)
|
|
33
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
34
|
+
__createBinding(exports, m, p);
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.listFolders = exports.listFlows = exports.listRules = exports.importRule = exports.exportRule = void 0;
|
|
38
|
+
exports.exportRule = __importStar(require("./exportRule"));
|
|
39
|
+
exports.importRule = __importStar(require("./importRule"));
|
|
40
|
+
exports.listRules = __importStar(require("./listRules"));
|
|
41
|
+
exports.listFlows = __importStar(require("./listFlows"));
|
|
42
|
+
exports.listFolders = __importStar(require("./listFolders"));
|
|
43
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined)
|
|
7
|
+
k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function (o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined)
|
|
15
|
+
k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function (o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
|
+
if (mod && mod.__esModule)
|
|
25
|
+
return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null)
|
|
28
|
+
for (var k in mod)
|
|
29
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
30
|
+
__createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
37
|
+
function fulfilled(value) { try {
|
|
38
|
+
step(generator.next(value));
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
reject(e);
|
|
42
|
+
} }
|
|
43
|
+
function rejected(value) { try {
|
|
44
|
+
step(generator["throw"](value));
|
|
45
|
+
}
|
|
46
|
+
catch (e) {
|
|
47
|
+
reject(e);
|
|
48
|
+
} }
|
|
49
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
50
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.Response = void 0;
|
|
55
|
+
const core = __importStar(require("../../../../core"));
|
|
56
|
+
exports.Response = core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).ListFlowsResponseItem; })));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined)
|
|
7
|
+
k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function (o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined)
|
|
15
|
+
k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function (o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
|
+
if (mod && mod.__esModule)
|
|
25
|
+
return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null)
|
|
28
|
+
for (var k in mod)
|
|
29
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
30
|
+
__createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
37
|
+
function fulfilled(value) { try {
|
|
38
|
+
step(generator.next(value));
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
reject(e);
|
|
42
|
+
} }
|
|
43
|
+
function rejected(value) { try {
|
|
44
|
+
step(generator["throw"](value));
|
|
45
|
+
}
|
|
46
|
+
catch (e) {
|
|
47
|
+
reject(e);
|
|
48
|
+
} }
|
|
49
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
50
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.Response = void 0;
|
|
55
|
+
const core = __importStar(require("../../../../core"));
|
|
56
|
+
exports.Response = core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).ListFoldersResponseItem; })));
|