@truvity/sdk 0.0.1
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 +25 -0
- package/Client.js +22 -0
- package/api/errors/BadRequestError.d.ts +8 -0
- package/api/errors/BadRequestError.js +41 -0
- package/api/errors/ForbiddenError.d.ts +8 -0
- package/api/errors/ForbiddenError.js +41 -0
- package/api/errors/InternalServerError.d.ts +8 -0
- package/api/errors/InternalServerError.js +41 -0
- package/api/errors/NotFoundError.d.ts +7 -0
- package/api/errors/NotFoundError.js +41 -0
- package/api/errors/UnauthorizedError.d.ts +8 -0
- package/api/errors/UnauthorizedError.js +41 -0
- package/api/errors/index.d.ts +5 -0
- package/api/errors/index.js +21 -0
- package/api/index.d.ts +3 -0
- package/api/index.js +19 -0
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +33 -0
- package/api/resources/owners/client/Client.d.ts +124 -0
- package/api/resources/owners/client/Client.js +711 -0
- package/api/resources/owners/client/index.d.ts +1 -0
- package/api/resources/owners/client/index.js +17 -0
- package/api/resources/owners/client/requests/OwnerCreateRequest.d.ts +38 -0
- package/api/resources/owners/client/requests/OwnerCreateRequest.js +5 -0
- package/api/resources/owners/client/requests/OwnerDeleteRequest.d.ts +49 -0
- package/api/resources/owners/client/requests/OwnerDeleteRequest.js +5 -0
- package/api/resources/owners/client/requests/OwnerHistoryRequest.d.ts +27 -0
- package/api/resources/owners/client/requests/OwnerHistoryRequest.js +5 -0
- package/api/resources/owners/client/requests/OwnerLatestRequest.d.ts +27 -0
- package/api/resources/owners/client/requests/OwnerLatestRequest.js +5 -0
- package/api/resources/owners/client/requests/OwnerRevisionRequest.d.ts +27 -0
- package/api/resources/owners/client/requests/OwnerRevisionRequest.js +5 -0
- package/api/resources/owners/client/requests/OwnerSearch.d.ts +14 -0
- package/api/resources/owners/client/requests/OwnerSearch.js +5 -0
- package/api/resources/owners/client/requests/OwnerUpdateRequest.d.ts +57 -0
- package/api/resources/owners/client/requests/OwnerUpdateRequest.js +5 -0
- package/api/resources/owners/client/requests/index.d.ts +7 -0
- package/api/resources/owners/client/requests/index.js +2 -0
- package/api/resources/owners/index.d.ts +1 -0
- package/api/resources/owners/index.js +17 -0
- package/api/resources/pets/client/Client.d.ts +133 -0
- package/api/resources/pets/client/Client.js +861 -0
- package/api/resources/pets/client/index.d.ts +1 -0
- package/api/resources/pets/client/index.js +17 -0
- package/api/resources/pets/client/requests/PetCreateRequest.d.ts +38 -0
- package/api/resources/pets/client/requests/PetCreateRequest.js +5 -0
- package/api/resources/pets/client/requests/PetDeleteRequest.d.ts +49 -0
- package/api/resources/pets/client/requests/PetDeleteRequest.js +5 -0
- package/api/resources/pets/client/requests/PetDownloadRequest.d.ts +23 -0
- package/api/resources/pets/client/requests/PetDownloadRequest.js +5 -0
- package/api/resources/pets/client/requests/PetHistoryRequest.d.ts +27 -0
- package/api/resources/pets/client/requests/PetHistoryRequest.js +5 -0
- package/api/resources/pets/client/requests/PetLatestRequest.d.ts +27 -0
- package/api/resources/pets/client/requests/PetLatestRequest.js +5 -0
- package/api/resources/pets/client/requests/PetRevisionRequest.d.ts +27 -0
- package/api/resources/pets/client/requests/PetRevisionRequest.js +5 -0
- package/api/resources/pets/client/requests/PetSearch.d.ts +14 -0
- package/api/resources/pets/client/requests/PetSearch.js +5 -0
- package/api/resources/pets/client/requests/PetUpdateRequest.d.ts +56 -0
- package/api/resources/pets/client/requests/PetUpdateRequest.js +5 -0
- package/api/resources/pets/client/requests/UploadRequest.d.ts +31 -0
- package/api/resources/pets/client/requests/UploadRequest.js +5 -0
- package/api/resources/pets/client/requests/index.d.ts +9 -0
- package/api/resources/pets/client/requests/index.js +2 -0
- package/api/resources/pets/index.d.ts +1 -0
- package/api/resources/pets/index.js +17 -0
- package/api/types/AnnotationValue.d.ts +7 -0
- package/api/types/AnnotationValue.js +5 -0
- package/api/types/Annotations.d.ts +11 -0
- package/api/types/Annotations.js +5 -0
- package/api/types/BadRequestErrorBody.d.ts +16 -0
- package/api/types/BadRequestErrorBody.js +5 -0
- package/api/types/BlobId.d.ts +8 -0
- package/api/types/BlobId.js +5 -0
- package/api/types/Checksum.d.ts +22 -0
- package/api/types/Checksum.js +5 -0
- package/api/types/ChecksumAlgorithm.d.ts +13 -0
- package/api/types/ChecksumAlgorithm.js +12 -0
- package/api/types/ChecksumCrc32.d.ts +10 -0
- package/api/types/ChecksumCrc32.js +5 -0
- package/api/types/ChecksumCrc32C.d.ts +10 -0
- package/api/types/ChecksumCrc32C.js +5 -0
- package/api/types/ChecksumSha1.d.ts +10 -0
- package/api/types/ChecksumSha1.js +5 -0
- package/api/types/ChecksumSha256.d.ts +10 -0
- package/api/types/ChecksumSha256.js +5 -0
- package/api/types/ContentType.d.ts +7 -0
- package/api/types/ContentType.js +5 -0
- package/api/types/Download.d.ts +7 -0
- package/api/types/Download.js +5 -0
- package/api/types/ETag.d.ts +14 -0
- package/api/types/ETag.js +5 -0
- package/api/types/FilterId.d.ts +22 -0
- package/api/types/FilterId.js +5 -0
- package/api/types/FilterIdEqual.d.ts +10 -0
- package/api/types/FilterIdEqual.js +5 -0
- package/api/types/FilterIdIn.d.ts +10 -0
- package/api/types/FilterIdIn.js +5 -0
- package/api/types/FilterIdNotEqual.d.ts +10 -0
- package/api/types/FilterIdNotEqual.js +5 -0
- package/api/types/FilterIdNotIn.d.ts +10 -0
- package/api/types/FilterIdNotIn.js +5 -0
- package/api/types/FilterInteger.d.ts +31 -0
- package/api/types/FilterInteger.js +5 -0
- package/api/types/FilterIntegerBetween.d.ts +12 -0
- package/api/types/FilterIntegerBetween.js +5 -0
- package/api/types/FilterIntegerEqual.d.ts +10 -0
- package/api/types/FilterIntegerEqual.js +5 -0
- package/api/types/FilterIntegerGreaterThan.d.ts +10 -0
- package/api/types/FilterIntegerGreaterThan.js +5 -0
- package/api/types/FilterIntegerGreaterThanOrEqual.d.ts +10 -0
- package/api/types/FilterIntegerGreaterThanOrEqual.js +5 -0
- package/api/types/FilterIntegerLessThan.d.ts +10 -0
- package/api/types/FilterIntegerLessThan.js +5 -0
- package/api/types/FilterIntegerLessThanOrEqual.d.ts +10 -0
- package/api/types/FilterIntegerLessThanOrEqual.js +5 -0
- package/api/types/FilterIntegerNotEqual.d.ts +10 -0
- package/api/types/FilterIntegerNotEqual.js +5 -0
- package/api/types/FilterString.d.ts +16 -0
- package/api/types/FilterString.js +5 -0
- package/api/types/FilterStringEqual.d.ts +10 -0
- package/api/types/FilterStringEqual.js +5 -0
- package/api/types/FilterStringNotEqual.d.ts +10 -0
- package/api/types/FilterStringNotEqual.js +5 -0
- package/api/types/FilterTimestamp.d.ts +31 -0
- package/api/types/FilterTimestamp.js +5 -0
- package/api/types/FilterTimestampBetween.d.ts +12 -0
- package/api/types/FilterTimestampBetween.js +5 -0
- package/api/types/FilterTimestampEqual.d.ts +10 -0
- package/api/types/FilterTimestampEqual.js +5 -0
- package/api/types/FilterTimestampGreaterThan.d.ts +10 -0
- package/api/types/FilterTimestampGreaterThan.js +5 -0
- package/api/types/FilterTimestampGreaterThanOrEqual.d.ts +10 -0
- package/api/types/FilterTimestampGreaterThanOrEqual.js +5 -0
- package/api/types/FilterTimestampIsNotNull.d.ts +8 -0
- package/api/types/FilterTimestampIsNotNull.js +5 -0
- package/api/types/FilterTimestampIsNull.d.ts +8 -0
- package/api/types/FilterTimestampIsNull.js +5 -0
- package/api/types/FilterTimestampLessThan.d.ts +10 -0
- package/api/types/FilterTimestampLessThan.js +5 -0
- package/api/types/FilterTimestampLessThanOrEqual.d.ts +10 -0
- package/api/types/FilterTimestampLessThanOrEqual.js +5 -0
- package/api/types/FilterTimestampNotEqual.d.ts +10 -0
- package/api/types/FilterTimestampNotEqual.js +5 -0
- package/api/types/FilterTimestampOptional.d.ts +38 -0
- package/api/types/FilterTimestampOptional.js +5 -0
- package/api/types/HashCrc32.d.ts +7 -0
- package/api/types/HashCrc32.js +5 -0
- package/api/types/HashCrc32C.d.ts +7 -0
- package/api/types/HashCrc32C.js +5 -0
- package/api/types/HashSha1.d.ts +7 -0
- package/api/types/HashSha1.js +5 -0
- package/api/types/HashSha256.d.ts +7 -0
- package/api/types/HashSha256.js +5 -0
- package/api/types/HttpMethod.d.ts +18 -0
- package/api/types/HttpMethod.js +17 -0
- package/api/types/HttpRequestPart.d.ts +13 -0
- package/api/types/HttpRequestPart.js +12 -0
- package/api/types/LabelValue.d.ts +7 -0
- package/api/types/LabelValue.js +5 -0
- package/api/types/Labels.d.ts +12 -0
- package/api/types/Labels.js +5 -0
- package/api/types/Owner.d.ts +12 -0
- package/api/types/Owner.js +5 -0
- package/api/types/OwnerField.d.ts +19 -0
- package/api/types/OwnerField.js +18 -0
- package/api/types/OwnerFilter.d.ts +18 -0
- package/api/types/OwnerFilter.js +5 -0
- package/api/types/OwnerFilterData.d.ts +8 -0
- package/api/types/OwnerFilterData.js +5 -0
- package/api/types/OwnerInput.d.ts +14 -0
- package/api/types/OwnerInput.js +5 -0
- package/api/types/OwnerList.d.ts +10 -0
- package/api/types/OwnerList.js +5 -0
- package/api/types/OwnerResource.d.ts +19 -0
- package/api/types/OwnerResource.js +5 -0
- package/api/types/OwnerSort.d.ts +11 -0
- package/api/types/OwnerSort.js +5 -0
- package/api/types/Pet.d.ts +14 -0
- package/api/types/Pet.js +5 -0
- package/api/types/PetField.d.ts +20 -0
- package/api/types/PetField.js +19 -0
- package/api/types/PetFilter.d.ts +18 -0
- package/api/types/PetFilter.js +5 -0
- package/api/types/PetFilterData.d.ts +9 -0
- package/api/types/PetFilterData.js +5 -0
- package/api/types/PetInput.d.ts +13 -0
- package/api/types/PetInput.js +5 -0
- package/api/types/PetList.d.ts +10 -0
- package/api/types/PetList.js +5 -0
- package/api/types/PetResource.d.ts +19 -0
- package/api/types/PetResource.js +5 -0
- package/api/types/PetSort.d.ts +11 -0
- package/api/types/PetSort.js +5 -0
- package/api/types/ProblemBodyContent.d.ts +23 -0
- package/api/types/ProblemBodyContent.js +5 -0
- package/api/types/ProblemForbidden.d.ts +23 -0
- package/api/types/ProblemForbidden.js +5 -0
- package/api/types/ProblemInternalServerError.d.ts +23 -0
- package/api/types/ProblemInternalServerError.js +5 -0
- package/api/types/ProblemNotFoundBlob.d.ts +24 -0
- package/api/types/ProblemNotFoundBlob.js +5 -0
- package/api/types/ProblemNotFoundResource.d.ts +24 -0
- package/api/types/ProblemNotFoundResource.js +5 -0
- package/api/types/ProblemNotFoundRevision.d.ts +24 -0
- package/api/types/ProblemNotFoundRevision.js +5 -0
- package/api/types/ProblemNullUnicode.d.ts +25 -0
- package/api/types/ProblemNullUnicode.js +5 -0
- package/api/types/ProblemResourceConflict.d.ts +25 -0
- package/api/types/ProblemResourceConflict.js +5 -0
- package/api/types/ProblemResourceMethodNotAllowed.d.ts +26 -0
- package/api/types/ProblemResourceMethodNotAllowed.js +5 -0
- package/api/types/ProblemUnauthorized.d.ts +23 -0
- package/api/types/ProblemUnauthorized.js +5 -0
- package/api/types/ProblemUnsupportedMediaType.d.ts +24 -0
- package/api/types/ProblemUnsupportedMediaType.js +5 -0
- package/api/types/ProblemValidation.d.ts +25 -0
- package/api/types/ProblemValidation.js +5 -0
- package/api/types/RequestedETag.d.ts +12 -0
- package/api/types/RequestedETag.js +5 -0
- package/api/types/RequestedRevision.d.ts +12 -0
- package/api/types/RequestedRevision.js +5 -0
- package/api/types/Resource.d.ts +33 -0
- package/api/types/Resource.js +5 -0
- package/api/types/ResourceId.d.ts +8 -0
- package/api/types/ResourceId.js +5 -0
- package/api/types/ResourceKind.d.ts +11 -0
- package/api/types/ResourceKind.js +5 -0
- package/api/types/ResourceName.d.ts +7 -0
- package/api/types/ResourceName.js +5 -0
- package/api/types/ResourceVersion.d.ts +8 -0
- package/api/types/ResourceVersion.js +5 -0
- package/api/types/Revision.d.ts +7 -0
- package/api/types/Revision.js +5 -0
- package/api/types/SortOrder.d.ts +11 -0
- package/api/types/SortOrder.js +10 -0
- package/api/types/Species.d.ts +13 -0
- package/api/types/Species.js +11 -0
- package/api/types/Timestamp.d.ts +7 -0
- package/api/types/Timestamp.js +5 -0
- package/api/types/UploadResponse.d.ts +13 -0
- package/api/types/UploadResponse.js +5 -0
- package/api/types/Uri.d.ts +12 -0
- package/api/types/Uri.js +5 -0
- package/api/types/UriReference.d.ts +7 -0
- package/api/types/UriReference.js +5 -0
- package/api/types/ValidationError.d.ts +14 -0
- package/api/types/ValidationError.js +5 -0
- package/api/types/index.d.ts +91 -0
- package/api/types/index.js +107 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +35 -0
- package/core/fetcher/Fetcher.js +164 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/getHeader.d.ts +1 -0
- package/core/fetcher/getHeader.js +12 -0
- package/core/fetcher/index.d.ts +5 -0
- package/core/fetcher/index.js +9 -0
- package/core/index.d.ts +3 -0
- package/core/index.js +32 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +8 -0
- package/core/runtime/runtime.js +82 -0
- package/core/schemas/Schema.d.ts +81 -0
- package/core/schemas/Schema.js +21 -0
- package/core/schemas/builders/date/date.d.ts +2 -0
- package/core/schemas/builders/date/date.js +63 -0
- package/core/schemas/builders/date/index.d.ts +1 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +2 -0
- package/core/schemas/builders/enum/enum.js +39 -0
- package/core/schemas/builders/enum/index.d.ts +1 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +13 -0
- package/core/schemas/builders/index.js +29 -0
- package/core/schemas/builders/lazy/index.d.ts +3 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/core/schemas/builders/lazy/lazy.js +36 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/core/schemas/builders/lazy/lazyObject.js +21 -0
- package/core/schemas/builders/list/index.d.ts +1 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +2 -0
- package/core/schemas/builders/list/list.js +68 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +2 -0
- package/core/schemas/builders/literals/index.js +7 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/core/schemas/builders/object/index.d.ts +6 -0
- package/core/schemas/builders/object/index.js +11 -0
- package/core/schemas/builders/object/object.d.ts +3 -0
- package/core/schemas/builders/object/object.js +258 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object/property.d.ts +8 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +26 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +63 -0
- package/core/schemas/builders/object-like/index.d.ts +2 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +7 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +1 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/core/schemas/builders/primitives/boolean.js +25 -0
- package/core/schemas/builders/primitives/index.d.ts +5 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +1 -0
- package/core/schemas/builders/primitives/number.js +25 -0
- package/core/schemas/builders/primitives/string.d.ts +1 -0
- package/core/schemas/builders/primitives/string.js +25 -0
- package/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +2 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +3 -0
- package/core/schemas/builders/record/record.js +106 -0
- package/core/schemas/builders/record/types.d.ts +4 -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 +17 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -0
- package/core/schemas/builders/schema-utils/index.d.ts +4 -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 +1 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +2 -0
- package/core/schemas/builders/set/set.js +53 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +51 -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 +4 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +13 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +4 -0
- package/core/schemas/builders/union/union.js +141 -0
- package/core/schemas/index.d.ts +2 -0
- package/core/schemas/index.js +17 -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 +7 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/core/schemas/utils/entries.d.ts +1 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +1 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/core/schemas/utils/isPlainObject.js +18 -0
- package/core/schemas/utils/keys.d.ts +1 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +37 -0
- package/core/schemas/utils/partition.d.ts +1 -0
- package/core/schemas/utils/partition.js +16 -0
- package/dist/Client.d.ts +25 -0
- package/dist/Client.js +22 -0
- package/dist/api/errors/BadRequestError.d.ts +8 -0
- package/dist/api/errors/BadRequestError.js +41 -0
- package/dist/api/errors/ForbiddenError.d.ts +8 -0
- package/dist/api/errors/ForbiddenError.js +41 -0
- package/dist/api/errors/InternalServerError.d.ts +8 -0
- package/dist/api/errors/InternalServerError.js +41 -0
- package/dist/api/errors/NotFoundError.d.ts +7 -0
- package/dist/api/errors/NotFoundError.js +41 -0
- package/dist/api/errors/UnauthorizedError.d.ts +8 -0
- package/dist/api/errors/UnauthorizedError.js +41 -0
- package/dist/api/errors/index.d.ts +5 -0
- package/dist/api/errors/index.js +21 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +33 -0
- package/dist/api/resources/owners/client/Client.d.ts +124 -0
- package/dist/api/resources/owners/client/Client.js +711 -0
- package/dist/api/resources/owners/client/index.d.ts +1 -0
- package/dist/api/resources/owners/client/index.js +17 -0
- package/dist/api/resources/owners/client/requests/OwnerCreateRequest.d.ts +38 -0
- package/dist/api/resources/owners/client/requests/OwnerCreateRequest.js +5 -0
- package/dist/api/resources/owners/client/requests/OwnerDeleteRequest.d.ts +49 -0
- package/dist/api/resources/owners/client/requests/OwnerDeleteRequest.js +5 -0
- package/dist/api/resources/owners/client/requests/OwnerHistoryRequest.d.ts +27 -0
- package/dist/api/resources/owners/client/requests/OwnerHistoryRequest.js +5 -0
- package/dist/api/resources/owners/client/requests/OwnerLatestRequest.d.ts +27 -0
- package/dist/api/resources/owners/client/requests/OwnerLatestRequest.js +5 -0
- package/dist/api/resources/owners/client/requests/OwnerRevisionRequest.d.ts +27 -0
- package/dist/api/resources/owners/client/requests/OwnerRevisionRequest.js +5 -0
- package/dist/api/resources/owners/client/requests/OwnerSearch.d.ts +14 -0
- package/dist/api/resources/owners/client/requests/OwnerSearch.js +5 -0
- package/dist/api/resources/owners/client/requests/OwnerUpdateRequest.d.ts +57 -0
- package/dist/api/resources/owners/client/requests/OwnerUpdateRequest.js +5 -0
- package/dist/api/resources/owners/client/requests/index.d.ts +7 -0
- package/dist/api/resources/owners/client/requests/index.js +2 -0
- package/dist/api/resources/owners/index.d.ts +1 -0
- package/dist/api/resources/owners/index.js +17 -0
- package/dist/api/resources/pets/client/Client.d.ts +133 -0
- package/dist/api/resources/pets/client/Client.js +861 -0
- package/dist/api/resources/pets/client/index.d.ts +1 -0
- package/dist/api/resources/pets/client/index.js +17 -0
- package/dist/api/resources/pets/client/requests/PetCreateRequest.d.ts +38 -0
- package/dist/api/resources/pets/client/requests/PetCreateRequest.js +5 -0
- package/dist/api/resources/pets/client/requests/PetDeleteRequest.d.ts +49 -0
- package/dist/api/resources/pets/client/requests/PetDeleteRequest.js +5 -0
- package/dist/api/resources/pets/client/requests/PetDownloadRequest.d.ts +23 -0
- package/dist/api/resources/pets/client/requests/PetDownloadRequest.js +5 -0
- package/dist/api/resources/pets/client/requests/PetHistoryRequest.d.ts +27 -0
- package/dist/api/resources/pets/client/requests/PetHistoryRequest.js +5 -0
- package/dist/api/resources/pets/client/requests/PetLatestRequest.d.ts +27 -0
- package/dist/api/resources/pets/client/requests/PetLatestRequest.js +5 -0
- package/dist/api/resources/pets/client/requests/PetRevisionRequest.d.ts +27 -0
- package/dist/api/resources/pets/client/requests/PetRevisionRequest.js +5 -0
- package/dist/api/resources/pets/client/requests/PetSearch.d.ts +14 -0
- package/dist/api/resources/pets/client/requests/PetSearch.js +5 -0
- package/dist/api/resources/pets/client/requests/PetUpdateRequest.d.ts +56 -0
- package/dist/api/resources/pets/client/requests/PetUpdateRequest.js +5 -0
- package/dist/api/resources/pets/client/requests/UploadRequest.d.ts +31 -0
- package/dist/api/resources/pets/client/requests/UploadRequest.js +5 -0
- package/dist/api/resources/pets/client/requests/index.d.ts +9 -0
- package/dist/api/resources/pets/client/requests/index.js +2 -0
- package/dist/api/resources/pets/index.d.ts +1 -0
- package/dist/api/resources/pets/index.js +17 -0
- package/dist/api/types/AnnotationValue.d.ts +7 -0
- package/dist/api/types/AnnotationValue.js +5 -0
- package/dist/api/types/Annotations.d.ts +11 -0
- package/dist/api/types/Annotations.js +5 -0
- package/dist/api/types/BadRequestErrorBody.d.ts +16 -0
- package/dist/api/types/BadRequestErrorBody.js +5 -0
- package/dist/api/types/BlobId.d.ts +8 -0
- package/dist/api/types/BlobId.js +5 -0
- package/dist/api/types/Checksum.d.ts +22 -0
- package/dist/api/types/Checksum.js +5 -0
- package/dist/api/types/ChecksumAlgorithm.d.ts +13 -0
- package/dist/api/types/ChecksumAlgorithm.js +12 -0
- package/dist/api/types/ChecksumCrc32.d.ts +10 -0
- package/dist/api/types/ChecksumCrc32.js +5 -0
- package/dist/api/types/ChecksumCrc32C.d.ts +10 -0
- package/dist/api/types/ChecksumCrc32C.js +5 -0
- package/dist/api/types/ChecksumSha1.d.ts +10 -0
- package/dist/api/types/ChecksumSha1.js +5 -0
- package/dist/api/types/ChecksumSha256.d.ts +10 -0
- package/dist/api/types/ChecksumSha256.js +5 -0
- package/dist/api/types/ContentType.d.ts +7 -0
- package/dist/api/types/ContentType.js +5 -0
- package/dist/api/types/Download.d.ts +7 -0
- package/dist/api/types/Download.js +5 -0
- package/dist/api/types/ETag.d.ts +14 -0
- package/dist/api/types/ETag.js +5 -0
- package/dist/api/types/FilterId.d.ts +22 -0
- package/dist/api/types/FilterId.js +5 -0
- package/dist/api/types/FilterIdEqual.d.ts +10 -0
- package/dist/api/types/FilterIdEqual.js +5 -0
- package/dist/api/types/FilterIdIn.d.ts +10 -0
- package/dist/api/types/FilterIdIn.js +5 -0
- package/dist/api/types/FilterIdNotEqual.d.ts +10 -0
- package/dist/api/types/FilterIdNotEqual.js +5 -0
- package/dist/api/types/FilterIdNotIn.d.ts +10 -0
- package/dist/api/types/FilterIdNotIn.js +5 -0
- package/dist/api/types/FilterInteger.d.ts +31 -0
- package/dist/api/types/FilterInteger.js +5 -0
- package/dist/api/types/FilterIntegerBetween.d.ts +12 -0
- package/dist/api/types/FilterIntegerBetween.js +5 -0
- package/dist/api/types/FilterIntegerEqual.d.ts +10 -0
- package/dist/api/types/FilterIntegerEqual.js +5 -0
- package/dist/api/types/FilterIntegerGreaterThan.d.ts +10 -0
- package/dist/api/types/FilterIntegerGreaterThan.js +5 -0
- package/dist/api/types/FilterIntegerGreaterThanOrEqual.d.ts +10 -0
- package/dist/api/types/FilterIntegerGreaterThanOrEqual.js +5 -0
- package/dist/api/types/FilterIntegerLessThan.d.ts +10 -0
- package/dist/api/types/FilterIntegerLessThan.js +5 -0
- package/dist/api/types/FilterIntegerLessThanOrEqual.d.ts +10 -0
- package/dist/api/types/FilterIntegerLessThanOrEqual.js +5 -0
- package/dist/api/types/FilterIntegerNotEqual.d.ts +10 -0
- package/dist/api/types/FilterIntegerNotEqual.js +5 -0
- package/dist/api/types/FilterString.d.ts +16 -0
- package/dist/api/types/FilterString.js +5 -0
- package/dist/api/types/FilterStringEqual.d.ts +10 -0
- package/dist/api/types/FilterStringEqual.js +5 -0
- package/dist/api/types/FilterStringNotEqual.d.ts +10 -0
- package/dist/api/types/FilterStringNotEqual.js +5 -0
- package/dist/api/types/FilterTimestamp.d.ts +31 -0
- package/dist/api/types/FilterTimestamp.js +5 -0
- package/dist/api/types/FilterTimestampBetween.d.ts +12 -0
- package/dist/api/types/FilterTimestampBetween.js +5 -0
- package/dist/api/types/FilterTimestampEqual.d.ts +10 -0
- package/dist/api/types/FilterTimestampEqual.js +5 -0
- package/dist/api/types/FilterTimestampGreaterThan.d.ts +10 -0
- package/dist/api/types/FilterTimestampGreaterThan.js +5 -0
- package/dist/api/types/FilterTimestampGreaterThanOrEqual.d.ts +10 -0
- package/dist/api/types/FilterTimestampGreaterThanOrEqual.js +5 -0
- package/dist/api/types/FilterTimestampIsNotNull.d.ts +8 -0
- package/dist/api/types/FilterTimestampIsNotNull.js +5 -0
- package/dist/api/types/FilterTimestampIsNull.d.ts +8 -0
- package/dist/api/types/FilterTimestampIsNull.js +5 -0
- package/dist/api/types/FilterTimestampLessThan.d.ts +10 -0
- package/dist/api/types/FilterTimestampLessThan.js +5 -0
- package/dist/api/types/FilterTimestampLessThanOrEqual.d.ts +10 -0
- package/dist/api/types/FilterTimestampLessThanOrEqual.js +5 -0
- package/dist/api/types/FilterTimestampNotEqual.d.ts +10 -0
- package/dist/api/types/FilterTimestampNotEqual.js +5 -0
- package/dist/api/types/FilterTimestampOptional.d.ts +38 -0
- package/dist/api/types/FilterTimestampOptional.js +5 -0
- package/dist/api/types/HashCrc32.d.ts +7 -0
- package/dist/api/types/HashCrc32.js +5 -0
- package/dist/api/types/HashCrc32C.d.ts +7 -0
- package/dist/api/types/HashCrc32C.js +5 -0
- package/dist/api/types/HashSha1.d.ts +7 -0
- package/dist/api/types/HashSha1.js +5 -0
- package/dist/api/types/HashSha256.d.ts +7 -0
- package/dist/api/types/HashSha256.js +5 -0
- package/dist/api/types/HttpMethod.d.ts +18 -0
- package/dist/api/types/HttpMethod.js +17 -0
- package/dist/api/types/HttpRequestPart.d.ts +13 -0
- package/dist/api/types/HttpRequestPart.js +12 -0
- package/dist/api/types/LabelValue.d.ts +7 -0
- package/dist/api/types/LabelValue.js +5 -0
- package/dist/api/types/Labels.d.ts +12 -0
- package/dist/api/types/Labels.js +5 -0
- package/dist/api/types/Owner.d.ts +12 -0
- package/dist/api/types/Owner.js +5 -0
- package/dist/api/types/OwnerField.d.ts +19 -0
- package/dist/api/types/OwnerField.js +18 -0
- package/dist/api/types/OwnerFilter.d.ts +18 -0
- package/dist/api/types/OwnerFilter.js +5 -0
- package/dist/api/types/OwnerFilterData.d.ts +8 -0
- package/dist/api/types/OwnerFilterData.js +5 -0
- package/dist/api/types/OwnerInput.d.ts +14 -0
- package/dist/api/types/OwnerInput.js +5 -0
- package/dist/api/types/OwnerList.d.ts +10 -0
- package/dist/api/types/OwnerList.js +5 -0
- package/dist/api/types/OwnerResource.d.ts +19 -0
- package/dist/api/types/OwnerResource.js +5 -0
- package/dist/api/types/OwnerSort.d.ts +11 -0
- package/dist/api/types/OwnerSort.js +5 -0
- package/dist/api/types/Pet.d.ts +14 -0
- package/dist/api/types/Pet.js +5 -0
- package/dist/api/types/PetField.d.ts +20 -0
- package/dist/api/types/PetField.js +19 -0
- package/dist/api/types/PetFilter.d.ts +18 -0
- package/dist/api/types/PetFilter.js +5 -0
- package/dist/api/types/PetFilterData.d.ts +9 -0
- package/dist/api/types/PetFilterData.js +5 -0
- package/dist/api/types/PetInput.d.ts +13 -0
- package/dist/api/types/PetInput.js +5 -0
- package/dist/api/types/PetList.d.ts +10 -0
- package/dist/api/types/PetList.js +5 -0
- package/dist/api/types/PetResource.d.ts +19 -0
- package/dist/api/types/PetResource.js +5 -0
- package/dist/api/types/PetSort.d.ts +11 -0
- package/dist/api/types/PetSort.js +5 -0
- package/dist/api/types/ProblemBodyContent.d.ts +23 -0
- package/dist/api/types/ProblemBodyContent.js +5 -0
- package/dist/api/types/ProblemForbidden.d.ts +23 -0
- package/dist/api/types/ProblemForbidden.js +5 -0
- package/dist/api/types/ProblemInternalServerError.d.ts +23 -0
- package/dist/api/types/ProblemInternalServerError.js +5 -0
- package/dist/api/types/ProblemNotFoundBlob.d.ts +24 -0
- package/dist/api/types/ProblemNotFoundBlob.js +5 -0
- package/dist/api/types/ProblemNotFoundResource.d.ts +24 -0
- package/dist/api/types/ProblemNotFoundResource.js +5 -0
- package/dist/api/types/ProblemNotFoundRevision.d.ts +24 -0
- package/dist/api/types/ProblemNotFoundRevision.js +5 -0
- package/dist/api/types/ProblemNullUnicode.d.ts +25 -0
- package/dist/api/types/ProblemNullUnicode.js +5 -0
- package/dist/api/types/ProblemResourceConflict.d.ts +25 -0
- package/dist/api/types/ProblemResourceConflict.js +5 -0
- package/dist/api/types/ProblemResourceMethodNotAllowed.d.ts +26 -0
- package/dist/api/types/ProblemResourceMethodNotAllowed.js +5 -0
- package/dist/api/types/ProblemUnauthorized.d.ts +23 -0
- package/dist/api/types/ProblemUnauthorized.js +5 -0
- package/dist/api/types/ProblemUnsupportedMediaType.d.ts +24 -0
- package/dist/api/types/ProblemUnsupportedMediaType.js +5 -0
- package/dist/api/types/ProblemValidation.d.ts +25 -0
- package/dist/api/types/ProblemValidation.js +5 -0
- package/dist/api/types/RequestedETag.d.ts +12 -0
- package/dist/api/types/RequestedETag.js +5 -0
- package/dist/api/types/RequestedRevision.d.ts +12 -0
- package/dist/api/types/RequestedRevision.js +5 -0
- package/dist/api/types/Resource.d.ts +33 -0
- package/dist/api/types/Resource.js +5 -0
- package/dist/api/types/ResourceId.d.ts +8 -0
- package/dist/api/types/ResourceId.js +5 -0
- package/dist/api/types/ResourceKind.d.ts +11 -0
- package/dist/api/types/ResourceKind.js +5 -0
- package/dist/api/types/ResourceName.d.ts +7 -0
- package/dist/api/types/ResourceName.js +5 -0
- package/dist/api/types/ResourceVersion.d.ts +8 -0
- package/dist/api/types/ResourceVersion.js +5 -0
- package/dist/api/types/Revision.d.ts +7 -0
- package/dist/api/types/Revision.js +5 -0
- package/dist/api/types/SortOrder.d.ts +11 -0
- package/dist/api/types/SortOrder.js +10 -0
- package/dist/api/types/Species.d.ts +13 -0
- package/dist/api/types/Species.js +11 -0
- package/dist/api/types/Timestamp.d.ts +7 -0
- package/dist/api/types/Timestamp.js +5 -0
- package/dist/api/types/UploadResponse.d.ts +13 -0
- package/dist/api/types/UploadResponse.js +5 -0
- package/dist/api/types/Uri.d.ts +12 -0
- package/dist/api/types/Uri.js +5 -0
- package/dist/api/types/UriReference.d.ts +7 -0
- package/dist/api/types/UriReference.js +5 -0
- package/dist/api/types/ValidationError.d.ts +14 -0
- package/dist/api/types/ValidationError.js +5 -0
- package/dist/api/types/index.d.ts +91 -0
- package/dist/api/types/index.js +107 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +35 -0
- package/dist/core/fetcher/Fetcher.js +164 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +12 -0
- package/dist/core/fetcher/index.d.ts +5 -0
- package/dist/core/fetcher/index.js +9 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +32 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +8 -0
- package/dist/core/runtime/runtime.js +82 -0
- package/dist/core/schemas/Schema.d.ts +81 -0
- package/dist/core/schemas/Schema.js +21 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +13 -0
- package/dist/core/schemas/builders/index.js +29 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +36 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +21 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +68 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +2 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +6 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +258 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +26 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +63 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +106 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -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 +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -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 +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +53 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +51 -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 +4 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +141 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -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 +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -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 +37 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/TruvityError.d.ts +12 -0
- package/dist/errors/TruvityError.js +32 -0
- package/dist/errors/TruvityTimeoutError.d.ts +6 -0
- package/dist/errors/TruvityTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +34 -0
- package/dist/serialization/index.d.ts +2 -0
- package/dist/serialization/index.js +18 -0
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/index.js +33 -0
- package/dist/serialization/resources/owners/client/index.d.ts +1 -0
- package/dist/serialization/resources/owners/client/index.js +17 -0
- package/dist/serialization/resources/owners/client/requests/OwnerSearch.d.ts +13 -0
- package/dist/serialization/resources/owners/client/requests/OwnerSearch.js +47 -0
- package/dist/serialization/resources/owners/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/owners/client/requests/index.js +5 -0
- package/dist/serialization/resources/owners/index.d.ts +1 -0
- package/dist/serialization/resources/owners/index.js +17 -0
- package/dist/serialization/resources/pets/client/index.d.ts +1 -0
- package/dist/serialization/resources/pets/client/index.js +17 -0
- package/dist/serialization/resources/pets/client/requests/PetSearch.d.ts +13 -0
- package/dist/serialization/resources/pets/client/requests/PetSearch.js +47 -0
- package/dist/serialization/resources/pets/client/requests/UploadRequest.d.ts +12 -0
- package/dist/serialization/resources/pets/client/requests/UploadRequest.js +42 -0
- package/dist/serialization/resources/pets/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/pets/client/requests/index.js +7 -0
- package/dist/serialization/resources/pets/index.d.ts +1 -0
- package/dist/serialization/resources/pets/index.js +17 -0
- package/dist/serialization/types/AnnotationValue.d.ts +10 -0
- package/dist/serialization/types/AnnotationValue.js +31 -0
- package/dist/serialization/types/Annotations.d.ts +10 -0
- package/dist/serialization/types/Annotations.js +40 -0
- package/dist/serialization/types/BadRequestErrorBody.d.ts +19 -0
- package/dist/serialization/types/BadRequestErrorBody.js +49 -0
- package/dist/serialization/types/BlobId.d.ts +10 -0
- package/dist/serialization/types/BlobId.js +31 -0
- package/dist/serialization/types/Checksum.d.ts +22 -0
- package/dist/serialization/types/Checksum.js +50 -0
- package/dist/serialization/types/ChecksumAlgorithm.d.ts +10 -0
- package/dist/serialization/types/ChecksumAlgorithm.js +31 -0
- package/dist/serialization/types/ChecksumCrc32.d.ts +12 -0
- package/dist/serialization/types/ChecksumCrc32.js +42 -0
- package/dist/serialization/types/ChecksumCrc32C.d.ts +12 -0
- package/dist/serialization/types/ChecksumCrc32C.js +42 -0
- package/dist/serialization/types/ChecksumSha1.d.ts +12 -0
- package/dist/serialization/types/ChecksumSha1.js +42 -0
- package/dist/serialization/types/ChecksumSha256.d.ts +12 -0
- package/dist/serialization/types/ChecksumSha256.js +42 -0
- package/dist/serialization/types/ContentType.d.ts +10 -0
- package/dist/serialization/types/ContentType.js +31 -0
- package/dist/serialization/types/Download.d.ts +10 -0
- package/dist/serialization/types/Download.js +31 -0
- package/dist/serialization/types/ETag.d.ts +10 -0
- package/dist/serialization/types/ETag.js +31 -0
- package/dist/serialization/types/FilterId.d.ts +22 -0
- package/dist/serialization/types/FilterId.js +50 -0
- package/dist/serialization/types/FilterIdEqual.d.ts +12 -0
- package/dist/serialization/types/FilterIdEqual.js +33 -0
- package/dist/serialization/types/FilterIdIn.d.ts +12 -0
- package/dist/serialization/types/FilterIdIn.js +33 -0
- package/dist/serialization/types/FilterIdNotEqual.d.ts +12 -0
- package/dist/serialization/types/FilterIdNotEqual.js +33 -0
- package/dist/serialization/types/FilterIdNotIn.d.ts +12 -0
- package/dist/serialization/types/FilterIdNotIn.js +33 -0
- package/dist/serialization/types/FilterInteger.d.ts +31 -0
- package/dist/serialization/types/FilterInteger.js +53 -0
- package/dist/serialization/types/FilterIntegerBetween.d.ts +13 -0
- package/dist/serialization/types/FilterIntegerBetween.js +34 -0
- package/dist/serialization/types/FilterIntegerEqual.d.ts +12 -0
- package/dist/serialization/types/FilterIntegerEqual.js +33 -0
- package/dist/serialization/types/FilterIntegerGreaterThan.d.ts +12 -0
- package/dist/serialization/types/FilterIntegerGreaterThan.js +33 -0
- package/dist/serialization/types/FilterIntegerGreaterThanOrEqual.d.ts +12 -0
- package/dist/serialization/types/FilterIntegerGreaterThanOrEqual.js +33 -0
- package/dist/serialization/types/FilterIntegerLessThan.d.ts +12 -0
- package/dist/serialization/types/FilterIntegerLessThan.js +33 -0
- package/dist/serialization/types/FilterIntegerLessThanOrEqual.d.ts +12 -0
- package/dist/serialization/types/FilterIntegerLessThanOrEqual.js +33 -0
- package/dist/serialization/types/FilterIntegerNotEqual.d.ts +12 -0
- package/dist/serialization/types/FilterIntegerNotEqual.js +33 -0
- package/dist/serialization/types/FilterString.d.ts +16 -0
- package/dist/serialization/types/FilterString.js +48 -0
- package/dist/serialization/types/FilterStringEqual.d.ts +12 -0
- package/dist/serialization/types/FilterStringEqual.js +33 -0
- package/dist/serialization/types/FilterStringNotEqual.d.ts +12 -0
- package/dist/serialization/types/FilterStringNotEqual.js +33 -0
- package/dist/serialization/types/FilterTimestamp.d.ts +31 -0
- package/dist/serialization/types/FilterTimestamp.js +53 -0
- package/dist/serialization/types/FilterTimestampBetween.d.ts +13 -0
- package/dist/serialization/types/FilterTimestampBetween.js +34 -0
- package/dist/serialization/types/FilterTimestampEqual.d.ts +12 -0
- package/dist/serialization/types/FilterTimestampEqual.js +33 -0
- package/dist/serialization/types/FilterTimestampGreaterThan.d.ts +12 -0
- package/dist/serialization/types/FilterTimestampGreaterThan.js +33 -0
- package/dist/serialization/types/FilterTimestampGreaterThanOrEqual.d.ts +12 -0
- package/dist/serialization/types/FilterTimestampGreaterThanOrEqual.js +33 -0
- package/dist/serialization/types/FilterTimestampIsNotNull.d.ts +11 -0
- package/dist/serialization/types/FilterTimestampIsNotNull.js +31 -0
- package/dist/serialization/types/FilterTimestampIsNull.d.ts +11 -0
- package/dist/serialization/types/FilterTimestampIsNull.js +31 -0
- package/dist/serialization/types/FilterTimestampLessThan.d.ts +12 -0
- package/dist/serialization/types/FilterTimestampLessThan.js +33 -0
- package/dist/serialization/types/FilterTimestampLessThanOrEqual.d.ts +12 -0
- package/dist/serialization/types/FilterTimestampLessThanOrEqual.js +33 -0
- package/dist/serialization/types/FilterTimestampNotEqual.d.ts +12 -0
- package/dist/serialization/types/FilterTimestampNotEqual.js +33 -0
- package/dist/serialization/types/FilterTimestampOptional.d.ts +37 -0
- package/dist/serialization/types/FilterTimestampOptional.js +55 -0
- package/dist/serialization/types/HashCrc32.d.ts +10 -0
- package/dist/serialization/types/HashCrc32.js +31 -0
- package/dist/serialization/types/HashCrc32C.d.ts +10 -0
- package/dist/serialization/types/HashCrc32C.js +31 -0
- package/dist/serialization/types/HashSha1.d.ts +10 -0
- package/dist/serialization/types/HashSha1.js +31 -0
- package/dist/serialization/types/HashSha256.d.ts +10 -0
- package/dist/serialization/types/HashSha256.js +31 -0
- package/dist/serialization/types/HttpMethod.d.ts +10 -0
- package/dist/serialization/types/HttpMethod.js +31 -0
- package/dist/serialization/types/HttpRequestPart.d.ts +10 -0
- package/dist/serialization/types/HttpRequestPart.js +31 -0
- package/dist/serialization/types/LabelValue.d.ts +10 -0
- package/dist/serialization/types/LabelValue.js +31 -0
- package/dist/serialization/types/Labels.d.ts +10 -0
- package/dist/serialization/types/Labels.js +40 -0
- package/dist/serialization/types/Owner.d.ts +13 -0
- package/dist/serialization/types/Owner.js +34 -0
- package/dist/serialization/types/OwnerField.d.ts +10 -0
- package/dist/serialization/types/OwnerField.js +42 -0
- package/dist/serialization/types/OwnerFilter.d.ts +20 -0
- package/dist/serialization/types/OwnerFilter.js +50 -0
- package/dist/serialization/types/OwnerFilterData.d.ts +13 -0
- package/dist/serialization/types/OwnerFilterData.js +43 -0
- package/dist/serialization/types/OwnerInput.d.ts +14 -0
- package/dist/serialization/types/OwnerInput.js +44 -0
- package/dist/serialization/types/OwnerList.d.ts +12 -0
- package/dist/serialization/types/OwnerList.js +42 -0
- package/dist/serialization/types/OwnerResource.d.ts +21 -0
- package/dist/serialization/types/OwnerResource.js +51 -0
- package/dist/serialization/types/OwnerSort.d.ts +13 -0
- package/dist/serialization/types/OwnerSort.js +43 -0
- package/dist/serialization/types/Pet.d.ts +14 -0
- package/dist/serialization/types/Pet.js +44 -0
- package/dist/serialization/types/PetField.d.ts +10 -0
- package/dist/serialization/types/PetField.js +43 -0
- package/dist/serialization/types/PetFilter.d.ts +20 -0
- package/dist/serialization/types/PetFilter.js +50 -0
- package/dist/serialization/types/PetFilterData.d.ts +14 -0
- package/dist/serialization/types/PetFilterData.js +44 -0
- package/dist/serialization/types/PetInput.d.ts +13 -0
- package/dist/serialization/types/PetInput.js +43 -0
- package/dist/serialization/types/PetList.d.ts +12 -0
- package/dist/serialization/types/PetList.js +42 -0
- package/dist/serialization/types/PetResource.d.ts +21 -0
- package/dist/serialization/types/PetResource.js +51 -0
- package/dist/serialization/types/PetSort.d.ts +13 -0
- package/dist/serialization/types/PetSort.js +43 -0
- package/dist/serialization/types/ProblemBodyContent.d.ts +16 -0
- package/dist/serialization/types/ProblemBodyContent.js +46 -0
- package/dist/serialization/types/ProblemForbidden.d.ts +16 -0
- package/dist/serialization/types/ProblemForbidden.js +46 -0
- package/dist/serialization/types/ProblemInternalServerError.d.ts +16 -0
- package/dist/serialization/types/ProblemInternalServerError.js +46 -0
- package/dist/serialization/types/ProblemNotFoundBlob.d.ts +17 -0
- package/dist/serialization/types/ProblemNotFoundBlob.js +47 -0
- package/dist/serialization/types/ProblemNotFoundResource.d.ts +17 -0
- package/dist/serialization/types/ProblemNotFoundResource.js +47 -0
- package/dist/serialization/types/ProblemNotFoundRevision.d.ts +17 -0
- package/dist/serialization/types/ProblemNotFoundRevision.js +47 -0
- package/dist/serialization/types/ProblemNullUnicode.d.ts +17 -0
- package/dist/serialization/types/ProblemNullUnicode.js +47 -0
- package/dist/serialization/types/ProblemResourceConflict.d.ts +18 -0
- package/dist/serialization/types/ProblemResourceConflict.js +48 -0
- package/dist/serialization/types/ProblemResourceMethodNotAllowed.d.ts +19 -0
- package/dist/serialization/types/ProblemResourceMethodNotAllowed.js +49 -0
- package/dist/serialization/types/ProblemUnauthorized.d.ts +16 -0
- package/dist/serialization/types/ProblemUnauthorized.js +46 -0
- package/dist/serialization/types/ProblemUnsupportedMediaType.d.ts +17 -0
- package/dist/serialization/types/ProblemUnsupportedMediaType.js +47 -0
- package/dist/serialization/types/ProblemValidation.d.ts +18 -0
- package/dist/serialization/types/ProblemValidation.js +48 -0
- package/dist/serialization/types/RequestedETag.d.ts +14 -0
- package/dist/serialization/types/RequestedETag.js +44 -0
- package/dist/serialization/types/RequestedRevision.d.ts +14 -0
- package/dist/serialization/types/RequestedRevision.js +44 -0
- package/dist/serialization/types/Resource.d.ts +20 -0
- package/dist/serialization/types/Resource.js +50 -0
- package/dist/serialization/types/ResourceId.d.ts +10 -0
- package/dist/serialization/types/ResourceId.js +31 -0
- package/dist/serialization/types/ResourceKind.d.ts +13 -0
- package/dist/serialization/types/ResourceKind.js +43 -0
- package/dist/serialization/types/ResourceName.d.ts +10 -0
- package/dist/serialization/types/ResourceName.js +31 -0
- package/dist/serialization/types/ResourceVersion.d.ts +10 -0
- package/dist/serialization/types/ResourceVersion.js +31 -0
- package/dist/serialization/types/Revision.d.ts +10 -0
- package/dist/serialization/types/Revision.js +31 -0
- package/dist/serialization/types/SortOrder.d.ts +10 -0
- package/dist/serialization/types/SortOrder.js +31 -0
- package/dist/serialization/types/Species.d.ts +10 -0
- package/dist/serialization/types/Species.js +35 -0
- package/dist/serialization/types/Timestamp.d.ts +10 -0
- package/dist/serialization/types/Timestamp.js +31 -0
- package/dist/serialization/types/UploadResponse.d.ts +15 -0
- package/dist/serialization/types/UploadResponse.js +45 -0
- package/dist/serialization/types/Uri.d.ts +10 -0
- package/dist/serialization/types/Uri.js +31 -0
- package/dist/serialization/types/UriReference.d.ts +10 -0
- package/dist/serialization/types/UriReference.js +31 -0
- package/dist/serialization/types/ValidationError.d.ts +14 -0
- package/dist/serialization/types/ValidationError.js +46 -0
- package/dist/serialization/types/index.d.ts +91 -0
- package/dist/serialization/types/index.js +107 -0
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/TruvityError.d.ts +12 -0
- package/errors/TruvityError.js +32 -0
- package/errors/TruvityTimeoutError.d.ts +6 -0
- package/errors/TruvityTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +34 -0
- package/jest.config.js +5 -0
- package/package.json +31 -0
- package/serialization/index.d.ts +2 -0
- package/serialization/index.js +18 -0
- package/serialization/resources/index.d.ts +4 -0
- package/serialization/resources/index.js +33 -0
- package/serialization/resources/owners/client/index.d.ts +1 -0
- package/serialization/resources/owners/client/index.js +17 -0
- package/serialization/resources/owners/client/requests/OwnerSearch.d.ts +13 -0
- package/serialization/resources/owners/client/requests/OwnerSearch.js +47 -0
- package/serialization/resources/owners/client/requests/index.d.ts +1 -0
- package/serialization/resources/owners/client/requests/index.js +5 -0
- package/serialization/resources/owners/index.d.ts +1 -0
- package/serialization/resources/owners/index.js +17 -0
- package/serialization/resources/pets/client/index.d.ts +1 -0
- package/serialization/resources/pets/client/index.js +17 -0
- package/serialization/resources/pets/client/requests/PetSearch.d.ts +13 -0
- package/serialization/resources/pets/client/requests/PetSearch.js +47 -0
- package/serialization/resources/pets/client/requests/UploadRequest.d.ts +12 -0
- package/serialization/resources/pets/client/requests/UploadRequest.js +42 -0
- package/serialization/resources/pets/client/requests/index.d.ts +2 -0
- package/serialization/resources/pets/client/requests/index.js +7 -0
- package/serialization/resources/pets/index.d.ts +1 -0
- package/serialization/resources/pets/index.js +17 -0
- package/serialization/types/AnnotationValue.d.ts +10 -0
- package/serialization/types/AnnotationValue.js +31 -0
- package/serialization/types/Annotations.d.ts +10 -0
- package/serialization/types/Annotations.js +40 -0
- package/serialization/types/BadRequestErrorBody.d.ts +19 -0
- package/serialization/types/BadRequestErrorBody.js +49 -0
- package/serialization/types/BlobId.d.ts +10 -0
- package/serialization/types/BlobId.js +31 -0
- package/serialization/types/Checksum.d.ts +22 -0
- package/serialization/types/Checksum.js +50 -0
- package/serialization/types/ChecksumAlgorithm.d.ts +10 -0
- package/serialization/types/ChecksumAlgorithm.js +31 -0
- package/serialization/types/ChecksumCrc32.d.ts +12 -0
- package/serialization/types/ChecksumCrc32.js +42 -0
- package/serialization/types/ChecksumCrc32C.d.ts +12 -0
- package/serialization/types/ChecksumCrc32C.js +42 -0
- package/serialization/types/ChecksumSha1.d.ts +12 -0
- package/serialization/types/ChecksumSha1.js +42 -0
- package/serialization/types/ChecksumSha256.d.ts +12 -0
- package/serialization/types/ChecksumSha256.js +42 -0
- package/serialization/types/ContentType.d.ts +10 -0
- package/serialization/types/ContentType.js +31 -0
- package/serialization/types/Download.d.ts +10 -0
- package/serialization/types/Download.js +31 -0
- package/serialization/types/ETag.d.ts +10 -0
- package/serialization/types/ETag.js +31 -0
- package/serialization/types/FilterId.d.ts +22 -0
- package/serialization/types/FilterId.js +50 -0
- package/serialization/types/FilterIdEqual.d.ts +12 -0
- package/serialization/types/FilterIdEqual.js +33 -0
- package/serialization/types/FilterIdIn.d.ts +12 -0
- package/serialization/types/FilterIdIn.js +33 -0
- package/serialization/types/FilterIdNotEqual.d.ts +12 -0
- package/serialization/types/FilterIdNotEqual.js +33 -0
- package/serialization/types/FilterIdNotIn.d.ts +12 -0
- package/serialization/types/FilterIdNotIn.js +33 -0
- package/serialization/types/FilterInteger.d.ts +31 -0
- package/serialization/types/FilterInteger.js +53 -0
- package/serialization/types/FilterIntegerBetween.d.ts +13 -0
- package/serialization/types/FilterIntegerBetween.js +34 -0
- package/serialization/types/FilterIntegerEqual.d.ts +12 -0
- package/serialization/types/FilterIntegerEqual.js +33 -0
- package/serialization/types/FilterIntegerGreaterThan.d.ts +12 -0
- package/serialization/types/FilterIntegerGreaterThan.js +33 -0
- package/serialization/types/FilterIntegerGreaterThanOrEqual.d.ts +12 -0
- package/serialization/types/FilterIntegerGreaterThanOrEqual.js +33 -0
- package/serialization/types/FilterIntegerLessThan.d.ts +12 -0
- package/serialization/types/FilterIntegerLessThan.js +33 -0
- package/serialization/types/FilterIntegerLessThanOrEqual.d.ts +12 -0
- package/serialization/types/FilterIntegerLessThanOrEqual.js +33 -0
- package/serialization/types/FilterIntegerNotEqual.d.ts +12 -0
- package/serialization/types/FilterIntegerNotEqual.js +33 -0
- package/serialization/types/FilterString.d.ts +16 -0
- package/serialization/types/FilterString.js +48 -0
- package/serialization/types/FilterStringEqual.d.ts +12 -0
- package/serialization/types/FilterStringEqual.js +33 -0
- package/serialization/types/FilterStringNotEqual.d.ts +12 -0
- package/serialization/types/FilterStringNotEqual.js +33 -0
- package/serialization/types/FilterTimestamp.d.ts +31 -0
- package/serialization/types/FilterTimestamp.js +53 -0
- package/serialization/types/FilterTimestampBetween.d.ts +13 -0
- package/serialization/types/FilterTimestampBetween.js +34 -0
- package/serialization/types/FilterTimestampEqual.d.ts +12 -0
- package/serialization/types/FilterTimestampEqual.js +33 -0
- package/serialization/types/FilterTimestampGreaterThan.d.ts +12 -0
- package/serialization/types/FilterTimestampGreaterThan.js +33 -0
- package/serialization/types/FilterTimestampGreaterThanOrEqual.d.ts +12 -0
- package/serialization/types/FilterTimestampGreaterThanOrEqual.js +33 -0
- package/serialization/types/FilterTimestampIsNotNull.d.ts +11 -0
- package/serialization/types/FilterTimestampIsNotNull.js +31 -0
- package/serialization/types/FilterTimestampIsNull.d.ts +11 -0
- package/serialization/types/FilterTimestampIsNull.js +31 -0
- package/serialization/types/FilterTimestampLessThan.d.ts +12 -0
- package/serialization/types/FilterTimestampLessThan.js +33 -0
- package/serialization/types/FilterTimestampLessThanOrEqual.d.ts +12 -0
- package/serialization/types/FilterTimestampLessThanOrEqual.js +33 -0
- package/serialization/types/FilterTimestampNotEqual.d.ts +12 -0
- package/serialization/types/FilterTimestampNotEqual.js +33 -0
- package/serialization/types/FilterTimestampOptional.d.ts +37 -0
- package/serialization/types/FilterTimestampOptional.js +55 -0
- package/serialization/types/HashCrc32.d.ts +10 -0
- package/serialization/types/HashCrc32.js +31 -0
- package/serialization/types/HashCrc32C.d.ts +10 -0
- package/serialization/types/HashCrc32C.js +31 -0
- package/serialization/types/HashSha1.d.ts +10 -0
- package/serialization/types/HashSha1.js +31 -0
- package/serialization/types/HashSha256.d.ts +10 -0
- package/serialization/types/HashSha256.js +31 -0
- package/serialization/types/HttpMethod.d.ts +10 -0
- package/serialization/types/HttpMethod.js +31 -0
- package/serialization/types/HttpRequestPart.d.ts +10 -0
- package/serialization/types/HttpRequestPart.js +31 -0
- package/serialization/types/LabelValue.d.ts +10 -0
- package/serialization/types/LabelValue.js +31 -0
- package/serialization/types/Labels.d.ts +10 -0
- package/serialization/types/Labels.js +40 -0
- package/serialization/types/Owner.d.ts +13 -0
- package/serialization/types/Owner.js +34 -0
- package/serialization/types/OwnerField.d.ts +10 -0
- package/serialization/types/OwnerField.js +42 -0
- package/serialization/types/OwnerFilter.d.ts +20 -0
- package/serialization/types/OwnerFilter.js +50 -0
- package/serialization/types/OwnerFilterData.d.ts +13 -0
- package/serialization/types/OwnerFilterData.js +43 -0
- package/serialization/types/OwnerInput.d.ts +14 -0
- package/serialization/types/OwnerInput.js +44 -0
- package/serialization/types/OwnerList.d.ts +12 -0
- package/serialization/types/OwnerList.js +42 -0
- package/serialization/types/OwnerResource.d.ts +21 -0
- package/serialization/types/OwnerResource.js +51 -0
- package/serialization/types/OwnerSort.d.ts +13 -0
- package/serialization/types/OwnerSort.js +43 -0
- package/serialization/types/Pet.d.ts +14 -0
- package/serialization/types/Pet.js +44 -0
- package/serialization/types/PetField.d.ts +10 -0
- package/serialization/types/PetField.js +43 -0
- package/serialization/types/PetFilter.d.ts +20 -0
- package/serialization/types/PetFilter.js +50 -0
- package/serialization/types/PetFilterData.d.ts +14 -0
- package/serialization/types/PetFilterData.js +44 -0
- package/serialization/types/PetInput.d.ts +13 -0
- package/serialization/types/PetInput.js +43 -0
- package/serialization/types/PetList.d.ts +12 -0
- package/serialization/types/PetList.js +42 -0
- package/serialization/types/PetResource.d.ts +21 -0
- package/serialization/types/PetResource.js +51 -0
- package/serialization/types/PetSort.d.ts +13 -0
- package/serialization/types/PetSort.js +43 -0
- package/serialization/types/ProblemBodyContent.d.ts +16 -0
- package/serialization/types/ProblemBodyContent.js +46 -0
- package/serialization/types/ProblemForbidden.d.ts +16 -0
- package/serialization/types/ProblemForbidden.js +46 -0
- package/serialization/types/ProblemInternalServerError.d.ts +16 -0
- package/serialization/types/ProblemInternalServerError.js +46 -0
- package/serialization/types/ProblemNotFoundBlob.d.ts +17 -0
- package/serialization/types/ProblemNotFoundBlob.js +47 -0
- package/serialization/types/ProblemNotFoundResource.d.ts +17 -0
- package/serialization/types/ProblemNotFoundResource.js +47 -0
- package/serialization/types/ProblemNotFoundRevision.d.ts +17 -0
- package/serialization/types/ProblemNotFoundRevision.js +47 -0
- package/serialization/types/ProblemNullUnicode.d.ts +17 -0
- package/serialization/types/ProblemNullUnicode.js +47 -0
- package/serialization/types/ProblemResourceConflict.d.ts +18 -0
- package/serialization/types/ProblemResourceConflict.js +48 -0
- package/serialization/types/ProblemResourceMethodNotAllowed.d.ts +19 -0
- package/serialization/types/ProblemResourceMethodNotAllowed.js +49 -0
- package/serialization/types/ProblemUnauthorized.d.ts +16 -0
- package/serialization/types/ProblemUnauthorized.js +46 -0
- package/serialization/types/ProblemUnsupportedMediaType.d.ts +17 -0
- package/serialization/types/ProblemUnsupportedMediaType.js +47 -0
- package/serialization/types/ProblemValidation.d.ts +18 -0
- package/serialization/types/ProblemValidation.js +48 -0
- package/serialization/types/RequestedETag.d.ts +14 -0
- package/serialization/types/RequestedETag.js +44 -0
- package/serialization/types/RequestedRevision.d.ts +14 -0
- package/serialization/types/RequestedRevision.js +44 -0
- package/serialization/types/Resource.d.ts +20 -0
- package/serialization/types/Resource.js +50 -0
- package/serialization/types/ResourceId.d.ts +10 -0
- package/serialization/types/ResourceId.js +31 -0
- package/serialization/types/ResourceKind.d.ts +13 -0
- package/serialization/types/ResourceKind.js +43 -0
- package/serialization/types/ResourceName.d.ts +10 -0
- package/serialization/types/ResourceName.js +31 -0
- package/serialization/types/ResourceVersion.d.ts +10 -0
- package/serialization/types/ResourceVersion.js +31 -0
- package/serialization/types/Revision.d.ts +10 -0
- package/serialization/types/Revision.js +31 -0
- package/serialization/types/SortOrder.d.ts +10 -0
- package/serialization/types/SortOrder.js +31 -0
- package/serialization/types/Species.d.ts +10 -0
- package/serialization/types/Species.js +35 -0
- package/serialization/types/Timestamp.d.ts +10 -0
- package/serialization/types/Timestamp.js +31 -0
- package/serialization/types/UploadResponse.d.ts +15 -0
- package/serialization/types/UploadResponse.js +45 -0
- package/serialization/types/Uri.d.ts +10 -0
- package/serialization/types/Uri.js +31 -0
- package/serialization/types/UriReference.d.ts +10 -0
- package/serialization/types/UriReference.js +31 -0
- package/serialization/types/ValidationError.d.ts +14 -0
- package/serialization/types/ValidationError.js +46 -0
- package/serialization/types/index.d.ts +91 -0
- package/serialization/types/index.js +107 -0
- package/tests/client.test.ts +11 -0
|
@@ -0,0 +1,711 @@
|
|
|
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) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.Owners = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../core"));
|
|
44
|
+
const Truvity = __importStar(require("../../.."));
|
|
45
|
+
const serializers = __importStar(require("../../../../serialization"));
|
|
46
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
47
|
+
const errors = __importStar(require("../../../../errors"));
|
|
48
|
+
/**
|
|
49
|
+
* Owners API for RESTful PetStore.
|
|
50
|
+
*/
|
|
51
|
+
class Owners {
|
|
52
|
+
constructor(_options = {}) {
|
|
53
|
+
this._options = _options;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Create owner's resource.
|
|
57
|
+
* @throws {@link Truvity.BadRequestError}
|
|
58
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
59
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
60
|
+
* @throws {@link Truvity.InternalServerError}
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await truvity.owners.ownerCreate({
|
|
64
|
+
* body: {
|
|
65
|
+
* data: {
|
|
66
|
+
* firstName: "first_name",
|
|
67
|
+
* lastName: "last_name"
|
|
68
|
+
* }
|
|
69
|
+
* }
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
ownerCreate(request, requestOptions) {
|
|
73
|
+
var _a, _b;
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const { idempotencyKey, body: _body } = request;
|
|
76
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, "owners"),
|
|
78
|
+
method: "POST",
|
|
79
|
+
headers: {
|
|
80
|
+
"X-Fern-Language": "JavaScript",
|
|
81
|
+
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
82
|
+
"X-Fern-SDK-Version": "0.0.1",
|
|
83
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
|
+
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
|
|
86
|
+
},
|
|
87
|
+
contentType: "application/json",
|
|
88
|
+
body: yield serializers.OwnerInput.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
89
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return yield serializers.OwnerResource.parseOrThrow(_response.body, {
|
|
94
|
+
unrecognizedObjectKeys: "passthrough",
|
|
95
|
+
allowUnrecognizedUnionMembers: true,
|
|
96
|
+
allowUnrecognizedEnumValues: true,
|
|
97
|
+
breadcrumbsPrefix: ["response"],
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if (_response.error.reason === "status-code") {
|
|
101
|
+
switch (_response.error.statusCode) {
|
|
102
|
+
case 400:
|
|
103
|
+
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
104
|
+
unrecognizedObjectKeys: "passthrough",
|
|
105
|
+
allowUnrecognizedUnionMembers: true,
|
|
106
|
+
allowUnrecognizedEnumValues: true,
|
|
107
|
+
breadcrumbsPrefix: ["response"],
|
|
108
|
+
}));
|
|
109
|
+
case 401:
|
|
110
|
+
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
111
|
+
unrecognizedObjectKeys: "passthrough",
|
|
112
|
+
allowUnrecognizedUnionMembers: true,
|
|
113
|
+
allowUnrecognizedEnumValues: true,
|
|
114
|
+
breadcrumbsPrefix: ["response"],
|
|
115
|
+
}));
|
|
116
|
+
case 403:
|
|
117
|
+
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
118
|
+
unrecognizedObjectKeys: "passthrough",
|
|
119
|
+
allowUnrecognizedUnionMembers: true,
|
|
120
|
+
allowUnrecognizedEnumValues: true,
|
|
121
|
+
breadcrumbsPrefix: ["response"],
|
|
122
|
+
}));
|
|
123
|
+
case 500:
|
|
124
|
+
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
125
|
+
unrecognizedObjectKeys: "passthrough",
|
|
126
|
+
allowUnrecognizedUnionMembers: true,
|
|
127
|
+
allowUnrecognizedEnumValues: true,
|
|
128
|
+
breadcrumbsPrefix: ["response"],
|
|
129
|
+
}));
|
|
130
|
+
default:
|
|
131
|
+
throw new errors.TruvityError({
|
|
132
|
+
statusCode: _response.error.statusCode,
|
|
133
|
+
body: _response.error.body,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
switch (_response.error.reason) {
|
|
138
|
+
case "non-json":
|
|
139
|
+
throw new errors.TruvityError({
|
|
140
|
+
statusCode: _response.error.statusCode,
|
|
141
|
+
body: _response.error.rawBody,
|
|
142
|
+
});
|
|
143
|
+
case "timeout":
|
|
144
|
+
throw new errors.TruvityTimeoutError();
|
|
145
|
+
case "unknown":
|
|
146
|
+
throw new errors.TruvityError({
|
|
147
|
+
message: _response.error.errorMessage,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Take a look at [GET with body payload](https://opensource.zalando.com/restful-api-guidelines/#get-with-body)
|
|
154
|
+
*
|
|
155
|
+
* - no resources created: Returns all owners matching the query passed as request input payload.
|
|
156
|
+
* @throws {@link Truvity.BadRequestError}
|
|
157
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
158
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
159
|
+
* @throws {@link Truvity.InternalServerError}
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* await truvity.owners.ownerSearch()
|
|
163
|
+
*/
|
|
164
|
+
ownerSearch(request = {}, requestOptions) {
|
|
165
|
+
var _a, _b;
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
168
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, "owners/search"),
|
|
169
|
+
method: "POST",
|
|
170
|
+
headers: {
|
|
171
|
+
"X-Fern-Language": "JavaScript",
|
|
172
|
+
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
173
|
+
"X-Fern-SDK-Version": "0.0.1",
|
|
174
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
175
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
176
|
+
},
|
|
177
|
+
contentType: "application/json",
|
|
178
|
+
body: yield serializers.OwnerSearch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
179
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
180
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
181
|
+
});
|
|
182
|
+
if (_response.ok) {
|
|
183
|
+
return yield serializers.OwnerList.parseOrThrow(_response.body, {
|
|
184
|
+
unrecognizedObjectKeys: "passthrough",
|
|
185
|
+
allowUnrecognizedUnionMembers: true,
|
|
186
|
+
allowUnrecognizedEnumValues: true,
|
|
187
|
+
breadcrumbsPrefix: ["response"],
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
if (_response.error.reason === "status-code") {
|
|
191
|
+
switch (_response.error.statusCode) {
|
|
192
|
+
case 400:
|
|
193
|
+
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
194
|
+
unrecognizedObjectKeys: "passthrough",
|
|
195
|
+
allowUnrecognizedUnionMembers: true,
|
|
196
|
+
allowUnrecognizedEnumValues: true,
|
|
197
|
+
breadcrumbsPrefix: ["response"],
|
|
198
|
+
}));
|
|
199
|
+
case 401:
|
|
200
|
+
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
201
|
+
unrecognizedObjectKeys: "passthrough",
|
|
202
|
+
allowUnrecognizedUnionMembers: true,
|
|
203
|
+
allowUnrecognizedEnumValues: true,
|
|
204
|
+
breadcrumbsPrefix: ["response"],
|
|
205
|
+
}));
|
|
206
|
+
case 403:
|
|
207
|
+
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
208
|
+
unrecognizedObjectKeys: "passthrough",
|
|
209
|
+
allowUnrecognizedUnionMembers: true,
|
|
210
|
+
allowUnrecognizedEnumValues: true,
|
|
211
|
+
breadcrumbsPrefix: ["response"],
|
|
212
|
+
}));
|
|
213
|
+
case 500:
|
|
214
|
+
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
215
|
+
unrecognizedObjectKeys: "passthrough",
|
|
216
|
+
allowUnrecognizedUnionMembers: true,
|
|
217
|
+
allowUnrecognizedEnumValues: true,
|
|
218
|
+
breadcrumbsPrefix: ["response"],
|
|
219
|
+
}));
|
|
220
|
+
default:
|
|
221
|
+
throw new errors.TruvityError({
|
|
222
|
+
statusCode: _response.error.statusCode,
|
|
223
|
+
body: _response.error.body,
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
switch (_response.error.reason) {
|
|
228
|
+
case "non-json":
|
|
229
|
+
throw new errors.TruvityError({
|
|
230
|
+
statusCode: _response.error.statusCode,
|
|
231
|
+
body: _response.error.rawBody,
|
|
232
|
+
});
|
|
233
|
+
case "timeout":
|
|
234
|
+
throw new errors.TruvityTimeoutError();
|
|
235
|
+
case "unknown":
|
|
236
|
+
throw new errors.TruvityError({
|
|
237
|
+
message: _response.error.errorMessage,
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Read the latest revision of the owner's resource.
|
|
244
|
+
* @throws {@link Truvity.BadRequestError}
|
|
245
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
246
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
247
|
+
* @throws {@link Truvity.NotFoundError}
|
|
248
|
+
* @throws {@link Truvity.InternalServerError}
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* await truvity.owners.ownerLatest("id")
|
|
252
|
+
*/
|
|
253
|
+
ownerLatest(id, request = {}, requestOptions) {
|
|
254
|
+
var _a, _b;
|
|
255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
const { ifNoneMatch } = request;
|
|
257
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
258
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}`),
|
|
259
|
+
method: "GET",
|
|
260
|
+
headers: {
|
|
261
|
+
"X-Fern-Language": "JavaScript",
|
|
262
|
+
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
263
|
+
"X-Fern-SDK-Version": "0.0.1",
|
|
264
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
265
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
266
|
+
"If-None-Match": ifNoneMatch != null ? ifNoneMatch : undefined,
|
|
267
|
+
},
|
|
268
|
+
contentType: "application/json",
|
|
269
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
270
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
271
|
+
});
|
|
272
|
+
if (_response.ok) {
|
|
273
|
+
return yield serializers.OwnerResource.parseOrThrow(_response.body, {
|
|
274
|
+
unrecognizedObjectKeys: "passthrough",
|
|
275
|
+
allowUnrecognizedUnionMembers: true,
|
|
276
|
+
allowUnrecognizedEnumValues: true,
|
|
277
|
+
breadcrumbsPrefix: ["response"],
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
if (_response.error.reason === "status-code") {
|
|
281
|
+
switch (_response.error.statusCode) {
|
|
282
|
+
case 400:
|
|
283
|
+
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
284
|
+
unrecognizedObjectKeys: "passthrough",
|
|
285
|
+
allowUnrecognizedUnionMembers: true,
|
|
286
|
+
allowUnrecognizedEnumValues: true,
|
|
287
|
+
breadcrumbsPrefix: ["response"],
|
|
288
|
+
}));
|
|
289
|
+
case 401:
|
|
290
|
+
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
291
|
+
unrecognizedObjectKeys: "passthrough",
|
|
292
|
+
allowUnrecognizedUnionMembers: true,
|
|
293
|
+
allowUnrecognizedEnumValues: true,
|
|
294
|
+
breadcrumbsPrefix: ["response"],
|
|
295
|
+
}));
|
|
296
|
+
case 403:
|
|
297
|
+
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
298
|
+
unrecognizedObjectKeys: "passthrough",
|
|
299
|
+
allowUnrecognizedUnionMembers: true,
|
|
300
|
+
allowUnrecognizedEnumValues: true,
|
|
301
|
+
breadcrumbsPrefix: ["response"],
|
|
302
|
+
}));
|
|
303
|
+
case 404:
|
|
304
|
+
throw new Truvity.NotFoundError(_response.error.body);
|
|
305
|
+
case 500:
|
|
306
|
+
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
307
|
+
unrecognizedObjectKeys: "passthrough",
|
|
308
|
+
allowUnrecognizedUnionMembers: true,
|
|
309
|
+
allowUnrecognizedEnumValues: true,
|
|
310
|
+
breadcrumbsPrefix: ["response"],
|
|
311
|
+
}));
|
|
312
|
+
default:
|
|
313
|
+
throw new errors.TruvityError({
|
|
314
|
+
statusCode: _response.error.statusCode,
|
|
315
|
+
body: _response.error.body,
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
switch (_response.error.reason) {
|
|
320
|
+
case "non-json":
|
|
321
|
+
throw new errors.TruvityError({
|
|
322
|
+
statusCode: _response.error.statusCode,
|
|
323
|
+
body: _response.error.rawBody,
|
|
324
|
+
});
|
|
325
|
+
case "timeout":
|
|
326
|
+
throw new errors.TruvityTimeoutError();
|
|
327
|
+
case "unknown":
|
|
328
|
+
throw new errors.TruvityError({
|
|
329
|
+
message: _response.error.errorMessage,
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Update owner's resource.
|
|
336
|
+
* @throws {@link Truvity.BadRequestError}
|
|
337
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
338
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
339
|
+
* @throws {@link Truvity.NotFoundError}
|
|
340
|
+
* @throws {@link Truvity.InternalServerError}
|
|
341
|
+
*
|
|
342
|
+
* @example
|
|
343
|
+
* await truvity.owners.ownerUpdate("id", {
|
|
344
|
+
* ifMatch: "If-Match",
|
|
345
|
+
* body: {
|
|
346
|
+
* data: {
|
|
347
|
+
* firstName: "first_name",
|
|
348
|
+
* lastName: "last_name"
|
|
349
|
+
* }
|
|
350
|
+
* }
|
|
351
|
+
* })
|
|
352
|
+
*/
|
|
353
|
+
ownerUpdate(id, request, requestOptions) {
|
|
354
|
+
var _a, _b;
|
|
355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
+
const { idempotencyKey, ifMatch, body: _body } = request;
|
|
357
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
358
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}`),
|
|
359
|
+
method: "PUT",
|
|
360
|
+
headers: {
|
|
361
|
+
"X-Fern-Language": "JavaScript",
|
|
362
|
+
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
363
|
+
"X-Fern-SDK-Version": "0.0.1",
|
|
364
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
365
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
366
|
+
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
|
|
367
|
+
"If-Match": ifMatch,
|
|
368
|
+
},
|
|
369
|
+
contentType: "application/json",
|
|
370
|
+
body: yield serializers.OwnerInput.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
371
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
372
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
373
|
+
});
|
|
374
|
+
if (_response.ok) {
|
|
375
|
+
return yield serializers.OwnerResource.parseOrThrow(_response.body, {
|
|
376
|
+
unrecognizedObjectKeys: "passthrough",
|
|
377
|
+
allowUnrecognizedUnionMembers: true,
|
|
378
|
+
allowUnrecognizedEnumValues: true,
|
|
379
|
+
breadcrumbsPrefix: ["response"],
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
if (_response.error.reason === "status-code") {
|
|
383
|
+
switch (_response.error.statusCode) {
|
|
384
|
+
case 400:
|
|
385
|
+
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
386
|
+
unrecognizedObjectKeys: "passthrough",
|
|
387
|
+
allowUnrecognizedUnionMembers: true,
|
|
388
|
+
allowUnrecognizedEnumValues: true,
|
|
389
|
+
breadcrumbsPrefix: ["response"],
|
|
390
|
+
}));
|
|
391
|
+
case 401:
|
|
392
|
+
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
393
|
+
unrecognizedObjectKeys: "passthrough",
|
|
394
|
+
allowUnrecognizedUnionMembers: true,
|
|
395
|
+
allowUnrecognizedEnumValues: true,
|
|
396
|
+
breadcrumbsPrefix: ["response"],
|
|
397
|
+
}));
|
|
398
|
+
case 403:
|
|
399
|
+
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
400
|
+
unrecognizedObjectKeys: "passthrough",
|
|
401
|
+
allowUnrecognizedUnionMembers: true,
|
|
402
|
+
allowUnrecognizedEnumValues: true,
|
|
403
|
+
breadcrumbsPrefix: ["response"],
|
|
404
|
+
}));
|
|
405
|
+
case 404:
|
|
406
|
+
throw new Truvity.NotFoundError(_response.error.body);
|
|
407
|
+
case 500:
|
|
408
|
+
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
409
|
+
unrecognizedObjectKeys: "passthrough",
|
|
410
|
+
allowUnrecognizedUnionMembers: true,
|
|
411
|
+
allowUnrecognizedEnumValues: true,
|
|
412
|
+
breadcrumbsPrefix: ["response"],
|
|
413
|
+
}));
|
|
414
|
+
default:
|
|
415
|
+
throw new errors.TruvityError({
|
|
416
|
+
statusCode: _response.error.statusCode,
|
|
417
|
+
body: _response.error.body,
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
switch (_response.error.reason) {
|
|
422
|
+
case "non-json":
|
|
423
|
+
throw new errors.TruvityError({
|
|
424
|
+
statusCode: _response.error.statusCode,
|
|
425
|
+
body: _response.error.rawBody,
|
|
426
|
+
});
|
|
427
|
+
case "timeout":
|
|
428
|
+
throw new errors.TruvityTimeoutError();
|
|
429
|
+
case "unknown":
|
|
430
|
+
throw new errors.TruvityError({
|
|
431
|
+
message: _response.error.errorMessage,
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Delete owner's resource.
|
|
438
|
+
* @throws {@link Truvity.BadRequestError}
|
|
439
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
440
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
441
|
+
* @throws {@link Truvity.NotFoundError}
|
|
442
|
+
* @throws {@link Truvity.InternalServerError}
|
|
443
|
+
*
|
|
444
|
+
* @example
|
|
445
|
+
* await truvity.owners.ownerDelete("id", {
|
|
446
|
+
* ifMatch: "If-Match"
|
|
447
|
+
* })
|
|
448
|
+
*/
|
|
449
|
+
ownerDelete(id, request, requestOptions) {
|
|
450
|
+
var _a, _b;
|
|
451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
452
|
+
const { idempotencyKey, ifMatch } = request;
|
|
453
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
454
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}`),
|
|
455
|
+
method: "DELETE",
|
|
456
|
+
headers: {
|
|
457
|
+
"X-Fern-Language": "JavaScript",
|
|
458
|
+
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
459
|
+
"X-Fern-SDK-Version": "0.0.1",
|
|
460
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
461
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
462
|
+
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
|
|
463
|
+
"If-Match": ifMatch,
|
|
464
|
+
},
|
|
465
|
+
contentType: "application/json",
|
|
466
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
467
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
468
|
+
});
|
|
469
|
+
if (_response.ok) {
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
if (_response.error.reason === "status-code") {
|
|
473
|
+
switch (_response.error.statusCode) {
|
|
474
|
+
case 400:
|
|
475
|
+
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
476
|
+
unrecognizedObjectKeys: "passthrough",
|
|
477
|
+
allowUnrecognizedUnionMembers: true,
|
|
478
|
+
allowUnrecognizedEnumValues: true,
|
|
479
|
+
breadcrumbsPrefix: ["response"],
|
|
480
|
+
}));
|
|
481
|
+
case 401:
|
|
482
|
+
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
483
|
+
unrecognizedObjectKeys: "passthrough",
|
|
484
|
+
allowUnrecognizedUnionMembers: true,
|
|
485
|
+
allowUnrecognizedEnumValues: true,
|
|
486
|
+
breadcrumbsPrefix: ["response"],
|
|
487
|
+
}));
|
|
488
|
+
case 403:
|
|
489
|
+
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
490
|
+
unrecognizedObjectKeys: "passthrough",
|
|
491
|
+
allowUnrecognizedUnionMembers: true,
|
|
492
|
+
allowUnrecognizedEnumValues: true,
|
|
493
|
+
breadcrumbsPrefix: ["response"],
|
|
494
|
+
}));
|
|
495
|
+
case 404:
|
|
496
|
+
throw new Truvity.NotFoundError(_response.error.body);
|
|
497
|
+
case 500:
|
|
498
|
+
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
499
|
+
unrecognizedObjectKeys: "passthrough",
|
|
500
|
+
allowUnrecognizedUnionMembers: true,
|
|
501
|
+
allowUnrecognizedEnumValues: true,
|
|
502
|
+
breadcrumbsPrefix: ["response"],
|
|
503
|
+
}));
|
|
504
|
+
default:
|
|
505
|
+
throw new errors.TruvityError({
|
|
506
|
+
statusCode: _response.error.statusCode,
|
|
507
|
+
body: _response.error.body,
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
switch (_response.error.reason) {
|
|
512
|
+
case "non-json":
|
|
513
|
+
throw new errors.TruvityError({
|
|
514
|
+
statusCode: _response.error.statusCode,
|
|
515
|
+
body: _response.error.rawBody,
|
|
516
|
+
});
|
|
517
|
+
case "timeout":
|
|
518
|
+
throw new errors.TruvityTimeoutError();
|
|
519
|
+
case "unknown":
|
|
520
|
+
throw new errors.TruvityError({
|
|
521
|
+
message: _response.error.errorMessage,
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* History of the owners' resources.
|
|
528
|
+
* @throws {@link Truvity.BadRequestError}
|
|
529
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
530
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
531
|
+
* @throws {@link Truvity.NotFoundError}
|
|
532
|
+
* @throws {@link Truvity.InternalServerError}
|
|
533
|
+
*
|
|
534
|
+
* @example
|
|
535
|
+
* await truvity.owners.ownerHistory("id")
|
|
536
|
+
*/
|
|
537
|
+
ownerHistory(id, request = {}, requestOptions) {
|
|
538
|
+
var _a, _b;
|
|
539
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
540
|
+
const { ifNoneMatch } = request;
|
|
541
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
542
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}/revisions`),
|
|
543
|
+
method: "GET",
|
|
544
|
+
headers: {
|
|
545
|
+
"X-Fern-Language": "JavaScript",
|
|
546
|
+
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
547
|
+
"X-Fern-SDK-Version": "0.0.1",
|
|
548
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
549
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
550
|
+
"If-None-Match": ifNoneMatch != null ? ifNoneMatch : undefined,
|
|
551
|
+
},
|
|
552
|
+
contentType: "application/json",
|
|
553
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
554
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
555
|
+
});
|
|
556
|
+
if (_response.ok) {
|
|
557
|
+
return yield serializers.OwnerList.parseOrThrow(_response.body, {
|
|
558
|
+
unrecognizedObjectKeys: "passthrough",
|
|
559
|
+
allowUnrecognizedUnionMembers: true,
|
|
560
|
+
allowUnrecognizedEnumValues: true,
|
|
561
|
+
breadcrumbsPrefix: ["response"],
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
if (_response.error.reason === "status-code") {
|
|
565
|
+
switch (_response.error.statusCode) {
|
|
566
|
+
case 400:
|
|
567
|
+
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
568
|
+
unrecognizedObjectKeys: "passthrough",
|
|
569
|
+
allowUnrecognizedUnionMembers: true,
|
|
570
|
+
allowUnrecognizedEnumValues: true,
|
|
571
|
+
breadcrumbsPrefix: ["response"],
|
|
572
|
+
}));
|
|
573
|
+
case 401:
|
|
574
|
+
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
575
|
+
unrecognizedObjectKeys: "passthrough",
|
|
576
|
+
allowUnrecognizedUnionMembers: true,
|
|
577
|
+
allowUnrecognizedEnumValues: true,
|
|
578
|
+
breadcrumbsPrefix: ["response"],
|
|
579
|
+
}));
|
|
580
|
+
case 403:
|
|
581
|
+
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
582
|
+
unrecognizedObjectKeys: "passthrough",
|
|
583
|
+
allowUnrecognizedUnionMembers: true,
|
|
584
|
+
allowUnrecognizedEnumValues: true,
|
|
585
|
+
breadcrumbsPrefix: ["response"],
|
|
586
|
+
}));
|
|
587
|
+
case 404:
|
|
588
|
+
throw new Truvity.NotFoundError(_response.error.body);
|
|
589
|
+
case 500:
|
|
590
|
+
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
591
|
+
unrecognizedObjectKeys: "passthrough",
|
|
592
|
+
allowUnrecognizedUnionMembers: true,
|
|
593
|
+
allowUnrecognizedEnumValues: true,
|
|
594
|
+
breadcrumbsPrefix: ["response"],
|
|
595
|
+
}));
|
|
596
|
+
default:
|
|
597
|
+
throw new errors.TruvityError({
|
|
598
|
+
statusCode: _response.error.statusCode,
|
|
599
|
+
body: _response.error.body,
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
switch (_response.error.reason) {
|
|
604
|
+
case "non-json":
|
|
605
|
+
throw new errors.TruvityError({
|
|
606
|
+
statusCode: _response.error.statusCode,
|
|
607
|
+
body: _response.error.rawBody,
|
|
608
|
+
});
|
|
609
|
+
case "timeout":
|
|
610
|
+
throw new errors.TruvityTimeoutError();
|
|
611
|
+
case "unknown":
|
|
612
|
+
throw new errors.TruvityError({
|
|
613
|
+
message: _response.error.errorMessage,
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Read the specific version of the owner's resource.
|
|
620
|
+
* @throws {@link Truvity.BadRequestError}
|
|
621
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
622
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
623
|
+
* @throws {@link Truvity.NotFoundError}
|
|
624
|
+
* @throws {@link Truvity.InternalServerError}
|
|
625
|
+
*
|
|
626
|
+
* @example
|
|
627
|
+
* await truvity.owners.ownerRevision("id", 1)
|
|
628
|
+
*/
|
|
629
|
+
ownerRevision(id, revision, request = {}, requestOptions) {
|
|
630
|
+
var _a, _b;
|
|
631
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
632
|
+
const { ifNoneMatch } = request;
|
|
633
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
634
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}/revisions/${yield serializers.Revision.jsonOrThrow(revision)}`),
|
|
635
|
+
method: "GET",
|
|
636
|
+
headers: {
|
|
637
|
+
"X-Fern-Language": "JavaScript",
|
|
638
|
+
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
639
|
+
"X-Fern-SDK-Version": "0.0.1",
|
|
640
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
641
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
642
|
+
"If-None-Match": ifNoneMatch != null ? ifNoneMatch : undefined,
|
|
643
|
+
},
|
|
644
|
+
contentType: "application/json",
|
|
645
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
646
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
647
|
+
});
|
|
648
|
+
if (_response.ok) {
|
|
649
|
+
return yield serializers.OwnerResource.parseOrThrow(_response.body, {
|
|
650
|
+
unrecognizedObjectKeys: "passthrough",
|
|
651
|
+
allowUnrecognizedUnionMembers: true,
|
|
652
|
+
allowUnrecognizedEnumValues: true,
|
|
653
|
+
breadcrumbsPrefix: ["response"],
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
if (_response.error.reason === "status-code") {
|
|
657
|
+
switch (_response.error.statusCode) {
|
|
658
|
+
case 400:
|
|
659
|
+
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
660
|
+
unrecognizedObjectKeys: "passthrough",
|
|
661
|
+
allowUnrecognizedUnionMembers: true,
|
|
662
|
+
allowUnrecognizedEnumValues: true,
|
|
663
|
+
breadcrumbsPrefix: ["response"],
|
|
664
|
+
}));
|
|
665
|
+
case 401:
|
|
666
|
+
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
667
|
+
unrecognizedObjectKeys: "passthrough",
|
|
668
|
+
allowUnrecognizedUnionMembers: true,
|
|
669
|
+
allowUnrecognizedEnumValues: true,
|
|
670
|
+
breadcrumbsPrefix: ["response"],
|
|
671
|
+
}));
|
|
672
|
+
case 403:
|
|
673
|
+
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
674
|
+
unrecognizedObjectKeys: "passthrough",
|
|
675
|
+
allowUnrecognizedUnionMembers: true,
|
|
676
|
+
allowUnrecognizedEnumValues: true,
|
|
677
|
+
breadcrumbsPrefix: ["response"],
|
|
678
|
+
}));
|
|
679
|
+
case 404:
|
|
680
|
+
throw new Truvity.NotFoundError(_response.error.body);
|
|
681
|
+
case 500:
|
|
682
|
+
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
683
|
+
unrecognizedObjectKeys: "passthrough",
|
|
684
|
+
allowUnrecognizedUnionMembers: true,
|
|
685
|
+
allowUnrecognizedEnumValues: true,
|
|
686
|
+
breadcrumbsPrefix: ["response"],
|
|
687
|
+
}));
|
|
688
|
+
default:
|
|
689
|
+
throw new errors.TruvityError({
|
|
690
|
+
statusCode: _response.error.statusCode,
|
|
691
|
+
body: _response.error.body,
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
switch (_response.error.reason) {
|
|
696
|
+
case "non-json":
|
|
697
|
+
throw new errors.TruvityError({
|
|
698
|
+
statusCode: _response.error.statusCode,
|
|
699
|
+
body: _response.error.rawBody,
|
|
700
|
+
});
|
|
701
|
+
case "timeout":
|
|
702
|
+
throw new errors.TruvityTimeoutError();
|
|
703
|
+
case "unknown":
|
|
704
|
+
throw new errors.TruvityError({
|
|
705
|
+
message: _response.error.errorMessage,
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
exports.Owners = Owners;
|