Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelavoyan committed May 6, 2024
1 parent 1850d46 commit 155ec57
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/sdk/src/api/entities/VCLCredentialType.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Nullish } from "../../types";

export default class VCLCredentialType {
constructor(
public payload: JSONObject,
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/api/entities/VCLCredentialTypes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Nullish } from "../../types";
import VCLCredentialType from "./VCLCredentialType";

export default class VCLCredentialTypes {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Nullish } from "../../types";
import VCLCredentialManifest from "./VCLCredentialManifest";
import VCLVerifiableCredential from "./VCLVerifiableCredential";

Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/api/entities/VCLJwtDescriptor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { randomUUID } from "crypto";
import VCLDidJwk from "./VCLDidJwk";
import { Nullish } from "../../types";

export default class VCLJwtDescriptor {
constructor(
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/api/jwt/VCLJwtSignService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface VCLJwtSignService {
)
}*/

import { Nullish } from "../../types";
import VCLDidJwk from "../entities/VCLDidJwk";
import VCLJwt from "../entities/VCLJwt";
import VCLJwtDescriptor from "../entities/VCLJwtDescriptor";
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/impl/VCLImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ import OrganizationsUseCase from "./domain/usecases/OrganizationsUseCase";
import CredentialTypesUIFormSchemaUseCase from "./domain/usecases/CredentialTypesUIFormSchemaUseCase";
import VCLDidJwkDescriptor from "../api/entities/VCLDidJwkDescriptor";
import KeyServiceUseCase from "./domain/usecases/KeyServiceUseCase";
import { Nullish } from "../types";
export class VCLImpl implements VCL {
static TAG = VCLImpl.name;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Nullish } from "../../../../types";
import VCLResult from "../../../../api/entities/VCLResult";
import NetworkService from "../../../domain/infrastructure/network/NetworkService";
import VCLLog from "../../../utils/VCLLog";
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/impl/data/models/CountriesModelImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import VCLError from "../../../api/entities/error/VCLError";
import VCLResult from "../../../api/entities/VCLResult";
import CountriesModel from "../../domain/models/CountriesModel";
import CountriesUseCase from "../../domain/usecases/CountriesModelUseCase";
import { Nullish } from "../../../types";

export default class CountriesModelImpl implements CountriesModel {
constructor(private readonly countriesUseCase: CountriesUseCase) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import VCLError from "../../../api/entities/error/VCLError";
import VCLResult from "../../../api/entities/VCLResult";
import CredentialTypeSchemasModel from "../../domain/models/CredentialTypeSchemasModel";
import CredentialTypeSchemasUseCase from "../../domain/usecases/CredentialTypeSchemasUseCase";
import { Nullish } from "../../../types";

export default class CredentialTypeSchemasModelImpl
implements CredentialTypeSchemasModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import VCLError from "../../../api/entities/error/VCLError";
import VCLResult from "../../../api/entities/VCLResult";
import CredentialTypesModel from "../../domain/models/CredentialTypesModel";
import { CredentialTypesUseCase } from "../../domain/usecases/CredentialTypesUseCase";
import { Nullish } from "../../../types";

export default class CredentialTypesModelImpl implements CredentialTypesModel {
constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Nullish } from "../../../types";
import VCLCountries from "../../../api/entities/VCLCountries";
import VCLCountry from "../../../api/entities/VCLCountry";
import VCLRegion from "../../../api/entities/VCLRegion";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Nullish } from "../../../types";
import VCLError from "../../../api/entities/error/VCLError";
import VCLFinalizeOffersDescriptor from "../../../api/entities/VCLFinalizeOffersDescriptor";
import VCLJwt from "../../../api/entities/VCLJwt";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import VCLResult from "../../../api/entities/VCLResult";
import JwtServiceRepository from "../../domain/repositories/JwtServiceRepository";
import VCLJwtSignService from "../../../api/jwt/VCLJwtSignService";
import VCLJwtVerifyService from "../../../api/jwt/VCLJwtVerifyService";
import { Nullish } from "../../../types";

export default class JwtServiceRepositoryImpl implements JwtServiceRepository {
constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Nullish } from "../../..//types";
import VCLError from "../../../api/entities/error/VCLError";
import VCLOrganization from "../../../api/entities/VCLOrganization";
import VCLOrganizations from "../../../api/entities/VCLOrganizations";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Nullish } from "../../../types";
import VCLError from "../../../api/entities/error/VCLError";
import VCLDidJwk from "../../../api/entities/VCLDidJwk";
import VCLFinalizeOffersDescriptor from "../../../api/entities/VCLFinalizeOffersDescriptor";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import VCLJwtDescriptor from "../../../api/entities/VCLJwtDescriptor";
import VCLResult from "../../../api/entities/VCLResult";
import JwtServiceRepository from "../../domain/repositories/JwtServiceRepository";
import JwtServiceUseCase from "../../domain/usecases/JwtServiceUseCase";
import { Nullish } from "../../../types";

export default class JwtServiceUseCaseImpl implements JwtServiceUseCase {
constructor(private readonly jwtServiceRepository: JwtServiceRepository) {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Nullish } from "../../../types";
import VCLDidJwk from "../../../api/entities/VCLDidJwk";
import VCLJwt from "../../../api/entities/VCLJwt";
import VCLJwtDescriptor from "../../../api/entities/VCLJwtDescriptor";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { KeyPairKeyObjectResult } from "crypto";
import { JWK } from "jose";
import { Nullish } from "../../../../types";

export default interface SecretStoreService {
storeKey(keyId: string, key: KeyPairKeyObjectResult): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Nullish } from "../../../../types";
import VCLResult from "../../../../api/entities/VCLResult";
import Request, {
HttpMethod,
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk/src/impl/domain/models/Model.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Nullish } from "../../../types";

export default interface Model<T> {
data: Nullish<T>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import VCLPublicJwk from "../../../api/entities/VCLPublicJwk";
import VCLJwt from "../../../api/entities/VCLJwt";
import VCLJwtDescriptor from "../../../api/entities/VCLJwtDescriptor";
import VCLResult from "../../../api/entities/VCLResult";
import { Nullish } from "../../../types";

export default interface JwtServiceRepository {
decode(encodedJwt: string): Promise<VCLResult<VCLJwt>>;
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/impl/domain/usecases/JwtServiceUseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import VCLPublicJwk from "../../../api/entities/VCLPublicJwk";
import VCLJwt from "../../../api/entities/VCLJwt";
import VCLJwtDescriptor from "../../../api/entities/VCLJwtDescriptor";
import VCLResult from "../../../api/entities/VCLResult";
import { Nullish } from "../../../types";

export default interface JwtServiceUseCase {
verifyJwt(
Expand Down

0 comments on commit 155ec57

Please sign in to comment.