Skip to content

Commit

Permalink
refactor: update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ookami-kb committed Jan 31, 2025
1 parent aba5f06 commit 8d13b0d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dist/index.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "brij-partner-sdk",
"version": "0.6.0",
"version": "0.6.1",
"description": "",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand Down
21 changes: 10 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
import { createHash } from "crypto";
import { base64url } from "jose";
import axios, { AxiosInstance } from "axios";
import nacl from "tweetnacl";
import base58 from "bs58";
import naclUtil from "tweetnacl-util";
import ed2curve from "ed2curve";
import {
documentTypeToJSON,
dataTypeFromJSON,
BankInfo,
BirthDate,
DataType,
dataTypeFromJSON,
Document,
documentTypeToJSON,
Email,
Phone,
Name,
BirthDate,
Document,
BankInfo,
Phone,
SelfieImage,
MessageFns,
} from "./generated/protos/data.js";
import { ValidationStatus as ProtoValidationStatus, validationStatusFromJSON } from "./generated/protos/validation_status.js";
import {
ValidationStatus as ProtoValidationStatus,
validationStatusFromJSON,
} from "./generated/protos/validation_status.js";

interface AuthKeyPair {
getPrivateKeyBytes(): Promise<Uint8Array>;
Expand Down Expand Up @@ -97,8 +98,6 @@ export type UserData = {

type ValidationResult = { dataId: string; value: string; status: ProtoValidationStatus };

type CustomValidationResult = { type: string; value: string };

export enum ValidationStatus {
Unspecified = "UNSPECIFIED",
Pending = "PENDING",
Expand Down

0 comments on commit 8d13b0d

Please sign in to comment.