Skip to content

Commit

Permalink
move Nullish to types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelavoyan committed May 6, 2024
1 parent 5acdf37 commit 1850d46
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/src/api/VCL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/VCLCountries.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLCountry from "./VCLCountry";

class VCLCountries {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/VCLCountry.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLPlace from "./VCLPlace";
import VCLRegions from "./VCLRegions";

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/VCLCredentialManifest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLJwt from "./VCLJwt";
import VCLVerifiedProfile from "./VCLVerifiedProfile";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLIssuingType from "./VCLIssuingType";
import VCLPushDelegate from "./VCLPushDelegate";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLCredentialManifestDescriptor from "./VCLCredentialManifestDescriptor";
import VCLDeepLink from "./VCLDeepLink";
import VCLIssuingType from "./VCLIssuingType";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLCredentialManifestDescriptor from "./VCLCredentialManifestDescriptor";
import VCLIssuingType from "./VCLIssuingType";
import VCLPushDelegate from "./VCLPushDelegate";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLCredentialManifestDescriptor from "./VCLCredentialManifestDescriptor";
import VCLIssuingType from "./VCLIssuingType";
import VCLService from "./VCLService";
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/VCLDeepLink.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "../../impl/extensions/StringExtensions";
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";

export default class VCLDeepLink {
public requestUri: Nullish<string>;
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/VCLJwt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { JWK, base64url } from "jose";
import { Nullish } from "../../types";

export default class VCLJwt {
public encodedJwt: Nullish<string>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLServiceTypes from "./VCLServiceTypes";

export default class VCLOrganizationsSearchDescriptor {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/VCLPresentationRequest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLDeepLink from "./VCLDeepLink";
import VCLJwt from "./VCLJwt";
import VCLPushDelegate from "./VCLPushDelegate";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLDeepLink from "./VCLDeepLink";
import VCLPushDelegate from "./VCLPushDelegate";

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/VCLResult.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLError from "./error/VCLError";

export default class VCLResult<R> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLService from "./VCLService";

export default class VCLServiceCredentialAgentIssuer extends VCLService {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/VCLSubmission.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLJwt from "./VCLJwt";
import VCLPushDelegate from "./VCLPushDelegate";
import VCLVerifiableCredential from "./VCLVerifiableCredential";
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/VCLToken.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import VCLJwt from "./VCLJwt"

export default class VCLToken {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/VCLVerifiedProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/api/entities/error/VCLError.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../../Nullish";
import { Nullish } from "../../../types";
import VCLErrorCode from "./VCLErrorCode";

export default class VCLError extends Error {
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk/src/impl/data/infrastructure/network/Request.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Nullish } from "../../../../types";

export enum HttpMethod {
GET = "GET",
POST = "POST",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/impl/domain/usecases/SubmissionUseCase.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/impl/utils/VCLLog.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Nullish } from "../../Nullish";
import { Nullish } from "../../types";
import GlobalConfig from "../GlobalConfig";

export default class VCLLog {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/sdk/test/NetworkServiceSuccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down
4 changes: 1 addition & 3 deletions packages/sdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
},
},
"include": [
"./src/**/*",
"global.d.ts",
"index.d.ts"
"./src/**/*"
],
"exclude": [
"node_modules",
Expand Down

0 comments on commit 1850d46

Please sign in to comment.