diff --git a/packages/sdk/src/api/VCL.ts b/packages/sdk/src/api/VCL.ts index 98ba24b..db258cf 100644 --- a/packages/sdk/src/api/VCL.ts +++ b/packages/sdk/src/api/VCL.ts @@ -26,7 +26,7 @@ import VCLSubmissionResult from "./entities/VCLSubmissionResult"; import VCLToken from "./entities/VCLToken"; import VCLVerifiedProfile from "./entities/VCLVerifiedProfile"; import VCLVerifiedProfileDescriptor from "./entities/VCLVerifiedProfileDescriptor"; -import { Nullish } from "../Nullish"; +import { Nullish } from "../types"; export default interface VCL { initialize( diff --git a/packages/sdk/src/api/entities/VCLCountries.ts b/packages/sdk/src/api/entities/VCLCountries.ts index 6404ca9..20df5a6 100644 --- a/packages/sdk/src/api/entities/VCLCountries.ts +++ b/packages/sdk/src/api/entities/VCLCountries.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLCountry from "./VCLCountry"; class VCLCountries { diff --git a/packages/sdk/src/api/entities/VCLCountry.ts b/packages/sdk/src/api/entities/VCLCountry.ts index e39fed8..63cb6ee 100644 --- a/packages/sdk/src/api/entities/VCLCountry.ts +++ b/packages/sdk/src/api/entities/VCLCountry.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLPlace from "./VCLPlace"; import VCLRegions from "./VCLRegions"; diff --git a/packages/sdk/src/api/entities/VCLCredentialManifest.ts b/packages/sdk/src/api/entities/VCLCredentialManifest.ts index bef1c02..5aaa083 100644 --- a/packages/sdk/src/api/entities/VCLCredentialManifest.ts +++ b/packages/sdk/src/api/entities/VCLCredentialManifest.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLJwt from "./VCLJwt"; import VCLVerifiedProfile from "./VCLVerifiedProfile"; diff --git a/packages/sdk/src/api/entities/VCLCredentialManifestDescriptor.ts b/packages/sdk/src/api/entities/VCLCredentialManifestDescriptor.ts index 970867b..36a13a7 100644 --- a/packages/sdk/src/api/entities/VCLCredentialManifestDescriptor.ts +++ b/packages/sdk/src/api/entities/VCLCredentialManifestDescriptor.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLIssuingType from "./VCLIssuingType"; import VCLPushDelegate from "./VCLPushDelegate"; diff --git a/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorByDeepLink.ts b/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorByDeepLink.ts index 61a9a8e..ccf74ad 100644 --- a/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorByDeepLink.ts +++ b/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorByDeepLink.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLCredentialManifestDescriptor from "./VCLCredentialManifestDescriptor"; import VCLDeepLink from "./VCLDeepLink"; import VCLIssuingType from "./VCLIssuingType"; diff --git a/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorByService.ts b/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorByService.ts index 8e15e8d..99e7ba7 100644 --- a/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorByService.ts +++ b/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorByService.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLCredentialManifestDescriptor from "./VCLCredentialManifestDescriptor"; import VCLIssuingType from "./VCLIssuingType"; import VCLPushDelegate from "./VCLPushDelegate"; diff --git a/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorRefresh.ts b/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorRefresh.ts index a628d61..d688e60 100644 --- a/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorRefresh.ts +++ b/packages/sdk/src/api/entities/VCLCredentialManifestDescriptorRefresh.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLCredentialManifestDescriptor from "./VCLCredentialManifestDescriptor"; import VCLIssuingType from "./VCLIssuingType"; import VCLService from "./VCLService"; diff --git a/packages/sdk/src/api/entities/VCLDeepLink.ts b/packages/sdk/src/api/entities/VCLDeepLink.ts index c356c22..b38f676 100644 --- a/packages/sdk/src/api/entities/VCLDeepLink.ts +++ b/packages/sdk/src/api/entities/VCLDeepLink.ts @@ -1,5 +1,5 @@ import "../../impl/extensions/StringExtensions"; -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; export default class VCLDeepLink { public requestUri: Nullish; diff --git a/packages/sdk/src/api/entities/VCLJwt.ts b/packages/sdk/src/api/entities/VCLJwt.ts index 6dbb819..766f00b 100644 --- a/packages/sdk/src/api/entities/VCLJwt.ts +++ b/packages/sdk/src/api/entities/VCLJwt.ts @@ -1,4 +1,4 @@ -import { JWK, base64url } from "jose"; +import { Nullish } from "../../types"; export default class VCLJwt { public encodedJwt: Nullish; diff --git a/packages/sdk/src/api/entities/VCLOrganizationsSearchDescriptor.ts b/packages/sdk/src/api/entities/VCLOrganizationsSearchDescriptor.ts index 2b61c3b..177f2b0 100644 --- a/packages/sdk/src/api/entities/VCLOrganizationsSearchDescriptor.ts +++ b/packages/sdk/src/api/entities/VCLOrganizationsSearchDescriptor.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLServiceTypes from "./VCLServiceTypes"; export default class VCLOrganizationsSearchDescriptor { diff --git a/packages/sdk/src/api/entities/VCLPresentationRequest.ts b/packages/sdk/src/api/entities/VCLPresentationRequest.ts index dde5d8e..35142fd 100644 --- a/packages/sdk/src/api/entities/VCLPresentationRequest.ts +++ b/packages/sdk/src/api/entities/VCLPresentationRequest.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLDeepLink from "./VCLDeepLink"; import VCLJwt from "./VCLJwt"; import VCLPushDelegate from "./VCLPushDelegate"; diff --git a/packages/sdk/src/api/entities/VCLPresentationRequestDescriptor.ts b/packages/sdk/src/api/entities/VCLPresentationRequestDescriptor.ts index e3fbba7..040747d 100644 --- a/packages/sdk/src/api/entities/VCLPresentationRequestDescriptor.ts +++ b/packages/sdk/src/api/entities/VCLPresentationRequestDescriptor.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLDeepLink from "./VCLDeepLink"; import VCLPushDelegate from "./VCLPushDelegate"; diff --git a/packages/sdk/src/api/entities/VCLResult.ts b/packages/sdk/src/api/entities/VCLResult.ts index 7aa90ef..167a9e0 100644 --- a/packages/sdk/src/api/entities/VCLResult.ts +++ b/packages/sdk/src/api/entities/VCLResult.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLError from "./error/VCLError"; export default class VCLResult { diff --git a/packages/sdk/src/api/entities/VCLServiceCredentialAgentIssuer.ts b/packages/sdk/src/api/entities/VCLServiceCredentialAgentIssuer.ts index 8d8cdf1..bcb41a0 100644 --- a/packages/sdk/src/api/entities/VCLServiceCredentialAgentIssuer.ts +++ b/packages/sdk/src/api/entities/VCLServiceCredentialAgentIssuer.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLService from "./VCLService"; export default class VCLServiceCredentialAgentIssuer extends VCLService { diff --git a/packages/sdk/src/api/entities/VCLSubmission.ts b/packages/sdk/src/api/entities/VCLSubmission.ts index a0a4abe..20b4d69 100644 --- a/packages/sdk/src/api/entities/VCLSubmission.ts +++ b/packages/sdk/src/api/entities/VCLSubmission.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLJwt from "./VCLJwt"; import VCLPushDelegate from "./VCLPushDelegate"; import VCLVerifiableCredential from "./VCLVerifiableCredential"; diff --git a/packages/sdk/src/api/entities/VCLToken.ts b/packages/sdk/src/api/entities/VCLToken.ts index e8fc13f..27d219c 100644 --- a/packages/sdk/src/api/entities/VCLToken.ts +++ b/packages/sdk/src/api/entities/VCLToken.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLJwt from "./VCLJwt" export default class VCLToken { diff --git a/packages/sdk/src/api/entities/VCLVerifiedProfile.ts b/packages/sdk/src/api/entities/VCLVerifiedProfile.ts index 2907815..66ab8db 100644 --- a/packages/sdk/src/api/entities/VCLVerifiedProfile.ts +++ b/packages/sdk/src/api/entities/VCLVerifiedProfile.ts @@ -22,7 +22,7 @@ data class VCLVerifiedProfile(val payload: JSONObject) { } */ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import VCLServiceType from "./VCLServiceType"; import VCLServiceTypes from "./VCLServiceTypes"; diff --git a/packages/sdk/src/api/entities/error/VCLError.ts b/packages/sdk/src/api/entities/error/VCLError.ts index b854e92..f991973 100644 --- a/packages/sdk/src/api/entities/error/VCLError.ts +++ b/packages/sdk/src/api/entities/error/VCLError.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../../Nullish"; +import { Nullish } from "../../../types"; import VCLErrorCode from "./VCLErrorCode"; export default class VCLError extends Error { diff --git a/packages/sdk/src/impl/data/infrastructure/network/Request.ts b/packages/sdk/src/impl/data/infrastructure/network/Request.ts index afee43d..86a9a67 100644 --- a/packages/sdk/src/impl/data/infrastructure/network/Request.ts +++ b/packages/sdk/src/impl/data/infrastructure/network/Request.ts @@ -1,3 +1,5 @@ +import { Nullish } from "../../../../types"; + export enum HttpMethod { GET = "GET", POST = "POST", diff --git a/packages/sdk/src/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.ts b/packages/sdk/src/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.ts index 2d362fb..befa682 100644 --- a/packages/sdk/src/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.ts +++ b/packages/sdk/src/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../../Nullish"; +import { Nullish } from "../../../types"; import VCLCountries from "../../../api/entities/VCLCountries"; import VCLCredentialTypesUIFormSchema from "../../../api/entities/VCLCredentialTypesUIFormSchema"; import VCLCredentialTypesUIFormSchemaDescriptor from "../../../api/entities/VCLCredentialTypesUIFormSchemaDescriptor"; diff --git a/packages/sdk/src/impl/domain/usecases/FinalizeOffersUseCase.ts b/packages/sdk/src/impl/domain/usecases/FinalizeOffersUseCase.ts index cfa0797..76a074f 100644 --- a/packages/sdk/src/impl/domain/usecases/FinalizeOffersUseCase.ts +++ b/packages/sdk/src/impl/domain/usecases/FinalizeOffersUseCase.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../../Nullish"; +import { Nullish } from "../../../types"; import VCLDidJwk from "../../../api/entities/VCLDidJwk"; import VCLFinalizeOffersDescriptor from "../../../api/entities/VCLFinalizeOffersDescriptor"; import VCLJwtVerifiableCredentials from "../../../api/entities/VCLJwtVerifiableCredentials"; diff --git a/packages/sdk/src/impl/domain/usecases/SubmissionUseCase.ts b/packages/sdk/src/impl/domain/usecases/SubmissionUseCase.ts index 9ab168f..bd304b8 100644 --- a/packages/sdk/src/impl/domain/usecases/SubmissionUseCase.ts +++ b/packages/sdk/src/impl/domain/usecases/SubmissionUseCase.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../../Nullish"; +import { Nullish } from "../../../types"; import VCLDidJwk from "../../../api/entities/VCLDidJwk"; import VCLResult from "../../../api/entities/VCLResult"; import VCLSubmission from "../../../api/entities/VCLSubmission"; diff --git a/packages/sdk/src/impl/utils/VCLLog.ts b/packages/sdk/src/impl/utils/VCLLog.ts index 08d3561..d397a0e 100644 --- a/packages/sdk/src/impl/utils/VCLLog.ts +++ b/packages/sdk/src/impl/utils/VCLLog.ts @@ -1,4 +1,4 @@ -import { Nullish } from "../../Nullish"; +import { Nullish } from "../../types"; import GlobalConfig from "../GlobalConfig"; export default class VCLLog { diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index 14932e8..3f2efdd 100644 --- a/packages/sdk/src/index.ts +++ b/packages/sdk/src/index.ts @@ -54,7 +54,7 @@ import VCLKeyService from "./api/keys/VCLKeyService"; import VCLJwtSignService from "./api/jwt/VCLJwtSignService"; import VCLJwtVerifyService from "./api/jwt/VCLJwtVerifyService"; import VCLResult from "./api/entities/VCLResult"; -import { Nullish } from "./Nullish"; +import { Nullish } from "./types"; export { VCL, diff --git a/packages/sdk/src/Nullish.ts b/packages/sdk/src/types.ts similarity index 100% rename from packages/sdk/src/Nullish.ts rename to packages/sdk/src/types.ts diff --git a/packages/sdk/test/NetworkServiceSuccess.ts b/packages/sdk/test/NetworkServiceSuccess.ts index 4e37e33..8187385 100644 --- a/packages/sdk/test/NetworkServiceSuccess.ts +++ b/packages/sdk/test/NetworkServiceSuccess.ts @@ -4,7 +4,7 @@ import Request, { HttpMethod, } from "../src/impl/data/infrastructure/network/Request"; import Response from "../src/impl/data/infrastructure/network/Response"; -import { Nullish } from "../src/Nullish"; +import { Nullish } from "../src/types"; export default class NetworkServiceSuccess implements NetworkService { constructor(private readonly validResponse: JSONObject) {} diff --git a/packages/sdk/tsconfig.json b/packages/sdk/tsconfig.json index ace7a3b..ad083c2 100644 --- a/packages/sdk/tsconfig.json +++ b/packages/sdk/tsconfig.json @@ -25,9 +25,7 @@ }, }, "include": [ - "./src/**/*", - "global.d.ts", - "index.d.ts" + "./src/**/*" ], "exclude": [ "node_modules",