@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
|
@@ -0,0 +1,61 @@
|
|
|
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 {
|
|
6
|
+
step(generator.next(value));
|
|
7
|
+
}
|
|
8
|
+
catch (e) {
|
|
9
|
+
reject(e);
|
|
10
|
+
} }
|
|
11
|
+
function rejected(value) { try {
|
|
12
|
+
step(generator["throw"](value));
|
|
13
|
+
}
|
|
14
|
+
catch (e) {
|
|
15
|
+
reject(e);
|
|
16
|
+
} }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.undiscriminatedUnion = void 0;
|
|
23
|
+
const Schema_1 = require("../../Schema");
|
|
24
|
+
const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
25
|
+
const schema_utils_1 = require("../schema-utils");
|
|
26
|
+
function undiscriminatedUnion(schemas) {
|
|
27
|
+
const baseSchema = {
|
|
28
|
+
parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.parse(raw, opts), schemas, opts);
|
|
30
|
+
}),
|
|
31
|
+
json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.json(parsed, opts), schemas, opts);
|
|
33
|
+
}),
|
|
34
|
+
getType: () => Schema_1.SchemaType.UNDISCRIMINATED_UNION,
|
|
35
|
+
};
|
|
36
|
+
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
37
|
+
}
|
|
38
|
+
exports.undiscriminatedUnion = undiscriminatedUnion;
|
|
39
|
+
function validateAndTransformUndiscriminatedUnion(transform, schemas, opts) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const errors = [];
|
|
42
|
+
for (const [index, schema] of schemas.entries()) {
|
|
43
|
+
const transformed = yield transform(schema, Object.assign(Object.assign({}, opts), { skipValidation: false }));
|
|
44
|
+
if (transformed.ok) {
|
|
45
|
+
return transformed;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
for (const error of transformed.errors) {
|
|
49
|
+
errors.push({
|
|
50
|
+
path: error.path,
|
|
51
|
+
message: `[Variant ${index}] ${error.message}`,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
ok: false,
|
|
58
|
+
errors,
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.discriminant = void 0;
|
|
4
|
+
function discriminant(parsedDiscriminant, rawDiscriminant) {
|
|
5
|
+
return {
|
|
6
|
+
parsedDiscriminant,
|
|
7
|
+
rawDiscriminant,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
exports.discriminant = discriminant;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.union = exports.discriminant = void 0;
|
|
4
|
+
var discriminant_1 = require("./discriminant");
|
|
5
|
+
Object.defineProperty(exports, "discriminant", { enumerable: true, get: function () { return discriminant_1.discriminant; } });
|
|
6
|
+
var union_1 = require("./union");
|
|
7
|
+
Object.defineProperty(exports, "union", { enumerable: true, get: function () { return union_1.union; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
2
|
+
export function union(discriminant: any, union: any): {
|
|
3
|
+
parse: (raw: any, opts: any) => any;
|
|
4
|
+
json: (parsed: any, opts: any) => any;
|
|
5
|
+
getType: () => "union";
|
|
6
|
+
} & schema_utils_1.SchemaUtils<any, any> & object_like_1.ObjectLikeUtils<any, any>;
|
|
7
|
+
import schema_utils_1 = require("../schema-utils");
|
|
8
|
+
import object_like_1 = require("../object-like");
|
|
@@ -0,0 +1,152 @@
|
|
|
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 {
|
|
6
|
+
step(generator.next(value));
|
|
7
|
+
}
|
|
8
|
+
catch (e) {
|
|
9
|
+
reject(e);
|
|
10
|
+
} }
|
|
11
|
+
function rejected(value) { try {
|
|
12
|
+
step(generator["throw"](value));
|
|
13
|
+
}
|
|
14
|
+
catch (e) {
|
|
15
|
+
reject(e);
|
|
16
|
+
} }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
22
|
+
var t = {};
|
|
23
|
+
for (var p in s)
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
25
|
+
t[p] = s[p];
|
|
26
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
27
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
28
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
29
|
+
t[p[i]] = s[p[i]];
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.union = void 0;
|
|
35
|
+
const Schema_1 = require("../../Schema");
|
|
36
|
+
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
37
|
+
const isPlainObject_1 = require("../../utils/isPlainObject");
|
|
38
|
+
const keys_1 = require("../../utils/keys");
|
|
39
|
+
const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
40
|
+
const enum_1 = require("../enum");
|
|
41
|
+
const object_like_1 = require("../object-like");
|
|
42
|
+
const schema_utils_1 = require("../schema-utils");
|
|
43
|
+
function union(discriminant, union) {
|
|
44
|
+
const rawDiscriminant = typeof discriminant === "string" ? discriminant : discriminant.rawDiscriminant;
|
|
45
|
+
const parsedDiscriminant = typeof discriminant === "string"
|
|
46
|
+
? discriminant
|
|
47
|
+
: discriminant.parsedDiscriminant;
|
|
48
|
+
const discriminantValueSchema = (0, enum_1.enum_)((0, keys_1.keys)(union));
|
|
49
|
+
const baseSchema = {
|
|
50
|
+
parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
return transformAndValidateUnion({
|
|
52
|
+
value: raw,
|
|
53
|
+
discriminant: rawDiscriminant,
|
|
54
|
+
transformedDiscriminant: parsedDiscriminant,
|
|
55
|
+
transformDiscriminantValue: (discriminantValue) => {
|
|
56
|
+
var _a;
|
|
57
|
+
return discriminantValueSchema.parse(discriminantValue, {
|
|
58
|
+
allowUnrecognizedEnumValues: opts === null || opts === void 0 ? void 0 : opts.allowUnrecognizedUnionMembers,
|
|
59
|
+
breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), rawDiscriminant],
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
getAdditionalPropertiesSchema: (discriminantValue) => union[discriminantValue],
|
|
63
|
+
allowUnrecognizedUnionMembers: opts === null || opts === void 0 ? void 0 : opts.allowUnrecognizedUnionMembers,
|
|
64
|
+
transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.parse(additionalProperties, opts),
|
|
65
|
+
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
66
|
+
});
|
|
67
|
+
}),
|
|
68
|
+
json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
return transformAndValidateUnion({
|
|
70
|
+
value: parsed,
|
|
71
|
+
discriminant: parsedDiscriminant,
|
|
72
|
+
transformedDiscriminant: rawDiscriminant,
|
|
73
|
+
transformDiscriminantValue: (discriminantValue) => {
|
|
74
|
+
var _a;
|
|
75
|
+
return discriminantValueSchema.json(discriminantValue, {
|
|
76
|
+
allowUnrecognizedEnumValues: opts === null || opts === void 0 ? void 0 : opts.allowUnrecognizedUnionMembers,
|
|
77
|
+
breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), parsedDiscriminant],
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
getAdditionalPropertiesSchema: (discriminantValue) => union[discriminantValue],
|
|
81
|
+
allowUnrecognizedUnionMembers: opts === null || opts === void 0 ? void 0 : opts.allowUnrecognizedUnionMembers,
|
|
82
|
+
transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.json(additionalProperties, opts),
|
|
83
|
+
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
84
|
+
});
|
|
85
|
+
}),
|
|
86
|
+
getType: () => Schema_1.SchemaType.UNION,
|
|
87
|
+
};
|
|
88
|
+
return Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema));
|
|
89
|
+
}
|
|
90
|
+
exports.union = union;
|
|
91
|
+
function transformAndValidateUnion({ value, discriminant, transformedDiscriminant, transformDiscriminantValue, getAdditionalPropertiesSchema, allowUnrecognizedUnionMembers = false, transformAdditionalProperties, breadcrumbsPrefix = [], }) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
if (!(0, isPlainObject_1.isPlainObject)(value)) {
|
|
94
|
+
return {
|
|
95
|
+
ok: false,
|
|
96
|
+
errors: [
|
|
97
|
+
{
|
|
98
|
+
path: breadcrumbsPrefix,
|
|
99
|
+
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
const _a = value, _b = discriminant, discriminantValue = _a[_b], additionalProperties = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
|
|
105
|
+
if (discriminantValue == null) {
|
|
106
|
+
return {
|
|
107
|
+
ok: false,
|
|
108
|
+
errors: [
|
|
109
|
+
{
|
|
110
|
+
path: breadcrumbsPrefix,
|
|
111
|
+
message: `Missing discriminant ("${discriminant}")`,
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
const transformedDiscriminantValue = yield transformDiscriminantValue(discriminantValue);
|
|
117
|
+
if (!transformedDiscriminantValue.ok) {
|
|
118
|
+
return {
|
|
119
|
+
ok: false,
|
|
120
|
+
errors: transformedDiscriminantValue.errors,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);
|
|
124
|
+
if (additionalPropertiesSchema == null) {
|
|
125
|
+
if (allowUnrecognizedUnionMembers) {
|
|
126
|
+
return {
|
|
127
|
+
ok: true,
|
|
128
|
+
value: Object.assign({ [transformedDiscriminant]: transformedDiscriminantValue.value }, additionalProperties),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
return {
|
|
133
|
+
ok: false,
|
|
134
|
+
errors: [
|
|
135
|
+
{
|
|
136
|
+
path: [...breadcrumbsPrefix, discriminant],
|
|
137
|
+
message: "Unexpected discriminant value",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const transformedAdditionalProperties = yield transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);
|
|
144
|
+
if (!transformedAdditionalProperties.ok) {
|
|
145
|
+
return transformedAdditionalProperties;
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
ok: true,
|
|
149
|
+
value: Object.assign({ [transformedDiscriminant]: discriminantValue }, transformedAdditionalProperties.value),
|
|
150
|
+
};
|
|
151
|
+
});
|
|
152
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./builders"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
2
|
+
export function createIdentitySchemaCreator(schemaType: any, validate: any): () => {
|
|
3
|
+
parse: any;
|
|
4
|
+
json: any;
|
|
5
|
+
getType: () => any;
|
|
6
|
+
} & schema_utils_1.SchemaUtils<any, any>;
|
|
7
|
+
import schema_utils_1 = require("../builders/schema-utils");
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createIdentitySchemaCreator = void 0;
|
|
4
|
+
const schema_utils_1 = require("../builders/schema-utils");
|
|
5
|
+
const maybeSkipValidation_1 = require("./maybeSkipValidation");
|
|
6
|
+
function createIdentitySchemaCreator(schemaType, validate) {
|
|
7
|
+
return () => {
|
|
8
|
+
const baseSchema = {
|
|
9
|
+
parse: validate,
|
|
10
|
+
json: validate,
|
|
11
|
+
getType: () => schemaType,
|
|
12
|
+
};
|
|
13
|
+
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
exports.createIdentitySchemaCreator = createIdentitySchemaCreator;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filterObject = void 0;
|
|
4
|
+
function filterObject(obj, keysToInclude) {
|
|
5
|
+
const keysToIncludeSet = new Set(keysToInclude);
|
|
6
|
+
return Object.entries(obj).reduce((acc, [key, value]) => {
|
|
7
|
+
if (keysToIncludeSet.has(key)) {
|
|
8
|
+
acc[key] = value;
|
|
9
|
+
}
|
|
10
|
+
return acc;
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter
|
|
12
|
+
}, {});
|
|
13
|
+
}
|
|
14
|
+
exports.filterObject = filterObject;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getErrorMessageForIncorrectType = void 0;
|
|
4
|
+
function getErrorMessageForIncorrectType(value, expectedType) {
|
|
5
|
+
return `Expected ${expectedType}. Received ${getTypeAsString(value)}.`;
|
|
6
|
+
}
|
|
7
|
+
exports.getErrorMessageForIncorrectType = getErrorMessageForIncorrectType;
|
|
8
|
+
function getTypeAsString(value) {
|
|
9
|
+
if (Array.isArray(value)) {
|
|
10
|
+
return "list";
|
|
11
|
+
}
|
|
12
|
+
if (value === null) {
|
|
13
|
+
return "null";
|
|
14
|
+
}
|
|
15
|
+
switch (typeof value) {
|
|
16
|
+
case "string":
|
|
17
|
+
return `"${value}"`;
|
|
18
|
+
case "number":
|
|
19
|
+
case "boolean":
|
|
20
|
+
case "undefined":
|
|
21
|
+
return `${value}`;
|
|
22
|
+
}
|
|
23
|
+
return typeof value;
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isPlainObject = void 0;
|
|
4
|
+
// borrowed from https://github.com/lodash/lodash/blob/master/isPlainObject.js
|
|
5
|
+
function isPlainObject(value) {
|
|
6
|
+
if (typeof value !== "object" || value === null) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
if (Object.getPrototypeOf(value) === null) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
let proto = value;
|
|
13
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
|
14
|
+
proto = Object.getPrototypeOf(proto);
|
|
15
|
+
}
|
|
16
|
+
return Object.getPrototypeOf(value) === proto;
|
|
17
|
+
}
|
|
18
|
+
exports.isPlainObject = isPlainObject;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 {
|
|
6
|
+
step(generator.next(value));
|
|
7
|
+
}
|
|
8
|
+
catch (e) {
|
|
9
|
+
reject(e);
|
|
10
|
+
} }
|
|
11
|
+
function rejected(value) { try {
|
|
12
|
+
step(generator["throw"](value));
|
|
13
|
+
}
|
|
14
|
+
catch (e) {
|
|
15
|
+
reject(e);
|
|
16
|
+
} }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.maybeSkipValidation = void 0;
|
|
23
|
+
function maybeSkipValidation(schema) {
|
|
24
|
+
return Object.assign(Object.assign({}, schema), { json: transformAndMaybeSkipValidation(schema.json), parse: transformAndMaybeSkipValidation(schema.parse) });
|
|
25
|
+
}
|
|
26
|
+
exports.maybeSkipValidation = maybeSkipValidation;
|
|
27
|
+
function transformAndMaybeSkipValidation(transform) {
|
|
28
|
+
return (value, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const transformed = yield transform(value, opts);
|
|
30
|
+
const { skipValidation = false } = opts !== null && opts !== void 0 ? opts : {};
|
|
31
|
+
if (!transformed.ok && skipValidation) {
|
|
32
|
+
// eslint-disable-next-line no-console
|
|
33
|
+
console.warn([
|
|
34
|
+
"Failed to validate.",
|
|
35
|
+
...transformed.errors.map((error) => " - " +
|
|
36
|
+
(error.path.length > 0 ? `${error.path.join(".")}: ${error.message}` : error.message)),
|
|
37
|
+
].join("\n"));
|
|
38
|
+
return {
|
|
39
|
+
ok: true,
|
|
40
|
+
value: value,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return transformed;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.partition = void 0;
|
|
4
|
+
function partition(items, predicate) {
|
|
5
|
+
const trueItems = [], falseItems = [];
|
|
6
|
+
for (const item of items) {
|
|
7
|
+
if (predicate(item)) {
|
|
8
|
+
trueItems.push(item);
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
falseItems.push(item);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return [trueItems, falseItems];
|
|
15
|
+
}
|
|
16
|
+
exports.partition = partition;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RulebricksApiError = void 0;
|
|
7
|
+
class RulebricksApiError extends Error {
|
|
8
|
+
constructor({ message, statusCode, body }) {
|
|
9
|
+
super(buildMessage({ message, statusCode, body }));
|
|
10
|
+
Object.setPrototypeOf(this, RulebricksApiError.prototype);
|
|
11
|
+
if (statusCode != null) {
|
|
12
|
+
this.statusCode = statusCode;
|
|
13
|
+
}
|
|
14
|
+
if (body !== undefined) {
|
|
15
|
+
this.body = body;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.RulebricksApiError = RulebricksApiError;
|
|
20
|
+
function buildMessage({ message, statusCode, body, }) {
|
|
21
|
+
let lines = [];
|
|
22
|
+
if (message != null) {
|
|
23
|
+
lines.push(message);
|
|
24
|
+
}
|
|
25
|
+
if (statusCode != null) {
|
|
26
|
+
lines.push(`Status code: ${statusCode.toString()}`);
|
|
27
|
+
}
|
|
28
|
+
if (body != null) {
|
|
29
|
+
lines.push(`Body: ${JSON.stringify(body, undefined, 2)}`);
|
|
30
|
+
}
|
|
31
|
+
return lines.join("\n");
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RulebricksApiTimeoutError = void 0;
|
|
7
|
+
class RulebricksApiTimeoutError extends Error {
|
|
8
|
+
constructor() {
|
|
9
|
+
super("Timeout");
|
|
10
|
+
Object.setPrototypeOf(this, RulebricksApiTimeoutError.prototype);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.RulebricksApiTimeoutError = RulebricksApiTimeoutError;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
2
|
+
export var RulebricksApiError: typeof RulebricksApiError_1.RulebricksApiError;
|
|
3
|
+
export var RulebricksApiTimeoutError: typeof RulebricksApiTimeoutError_1.RulebricksApiTimeoutError;
|
|
4
|
+
import RulebricksApiError_1 = require("./RulebricksApiError");
|
|
5
|
+
import RulebricksApiTimeoutError_1 = require("./RulebricksApiTimeoutError");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RulebricksApiTimeoutError = exports.RulebricksApiError = void 0;
|
|
4
|
+
var RulebricksApiError_1 = require("./RulebricksApiError");
|
|
5
|
+
Object.defineProperty(exports, "RulebricksApiError", { enumerable: true, get: function () { return RulebricksApiError_1.RulebricksApiError; } });
|
|
6
|
+
var RulebricksApiTimeoutError_1 = require("./RulebricksApiTimeoutError");
|
|
7
|
+
Object.defineProperty(exports, "RulebricksApiTimeoutError", { enumerable: true, get: function () { return RulebricksApiTimeoutError_1.RulebricksApiTimeoutError; } });
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
exports.ListField = exports.DateField = exports.StringField = exports.NumberField = exports.BooleanField = exports.DynamicValues = exports.DynamicValue = exports.RuleTest = exports.Condition = exports.Rule = void 0;
|
|
18
|
+
var rule_1 = require("./rule");
|
|
19
|
+
Object.defineProperty(exports, "Rule", { enumerable: true, get: function () { return rule_1.Rule; } });
|
|
20
|
+
Object.defineProperty(exports, "Condition", { enumerable: true, get: function () { return rule_1.Condition; } });
|
|
21
|
+
Object.defineProperty(exports, "RuleTest", { enumerable: true, get: function () { return rule_1.RuleTest; } });
|
|
22
|
+
var values_1 = require("./values");
|
|
23
|
+
Object.defineProperty(exports, "DynamicValue", { enumerable: true, get: function () { return values_1.DynamicValue; } });
|
|
24
|
+
Object.defineProperty(exports, "DynamicValues", { enumerable: true, get: function () { return values_1.DynamicValues; } });
|
|
25
|
+
var operators_1 = require("./operators");
|
|
26
|
+
Object.defineProperty(exports, "BooleanField", { enumerable: true, get: function () { return operators_1.BooleanField; } });
|
|
27
|
+
Object.defineProperty(exports, "NumberField", { enumerable: true, get: function () { return operators_1.NumberField; } });
|
|
28
|
+
Object.defineProperty(exports, "StringField", { enumerable: true, get: function () { return operators_1.StringField; } });
|
|
29
|
+
Object.defineProperty(exports, "DateField", { enumerable: true, get: function () { return operators_1.DateField; } });
|
|
30
|
+
Object.defineProperty(exports, "ListField", { enumerable: true, get: function () { return operators_1.ListField; } });
|
|
31
|
+
__exportStar(require("./types"), exports);
|