Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions bin/mindeeV1.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node

import { cliV1 } from "@/cliV1.js";
import { cli } from "@/v1/cli.js";

cliV1();
cli();
4 changes: 2 additions & 2 deletions bin/mindeeV2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node

import { cliV2 } from "@/cliV2.js";
import { cli } from "@/v2/cli.js";

cliV2();
cli();
6 changes: 4 additions & 2 deletions docs/code_samples/bank_account_details_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.parse(
mindee.product.fr.BankAccountDetailsV1,
mindee.v1.product.fr.BankAccountDetailsV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/bank_account_details_v2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.parse(
mindee.product.fr.BankAccountDetailsV2,
mindee.v1.product.fr.BankAccountDetailsV2,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/bank_check_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.parse(
mindee.product.us.BankCheckV1,
mindee.v1.product.us.BankCheckV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/barcode_reader_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.parse(
mindee.product.BarcodeReaderV1,
mindee.v1.product.BarcodeReaderV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/carte_grise_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.parse(
mindee.product.fr.CarteGriseV1,
mindee.v1.product.fr.CarteGriseV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/cropper_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.parse(
mindee.product.CropperV1,
mindee.v1.product.CropperV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -20,7 +22,7 @@ const customEndpoint = mindeeClient.createEndpoint(
// Parse the file.
const apiResponse = mindeeClient
.parse(
mindee.product.GeneratedV1,
mindee.v1.product.GeneratedV1,
inputSource,
{ endpoint: customEndpoint }
);
Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/default_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -19,7 +21,7 @@ const customEndpoint = mindeeClient.createEndpoint(

// Parse the file asynchronously.
const asyncApiResponse = mindeeClient.enqueueAndParse(
mindee.product.GeneratedV1,
mindee.v1.product.GeneratedV1,
inputSource,
{ endpoint: customEndpoint }
);
Expand Down
4 changes: 3 additions & 1 deletion docs/code_samples/default_v2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const filePath = "/path/to/the/file.ext";
const modelId = "MY_MODEL_ID";

// Init a new client
const mindeeClient = new mindee.ClientV2({ apiKey: apiKey });
const mindeeClient = new mindee.Client(
{ apiKey: apiKey }
);

// Set inference parameters
const inferenceParams = {
Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/driver_license_v1_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.enqueueAndParse(
mindee.product.DriverLicenseV1,
mindee.v1.product.DriverLicenseV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/energy_bill_fra_v1_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.enqueueAndParse(
mindee.product.fr.EnergyBillV1,
mindee.v1.product.fr.EnergyBillV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/expense_receipts_v5.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.parse(
mindee.product.ReceiptV5,
mindee.v1.product.ReceiptV5,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/expense_receipts_v5_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.enqueueAndParse(
mindee.product.ReceiptV5,
mindee.v1.product.ReceiptV5,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/financial_document_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.parse(
mindee.product.FinancialDocumentV1,
mindee.v1.product.FinancialDocumentV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/financial_document_v1_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.enqueueAndParse(
mindee.product.FinancialDocumentV1,
mindee.v1.product.FinancialDocumentV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/french_healthcard_v1_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.enqueueAndParse(
mindee.product.fr.HealthCardV1,
mindee.v1.product.fr.HealthCardV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/idcard_fr_v1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.parse(
mindee.product.fr.IdCardV1,
mindee.v1.product.fr.IdCardV1,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/idcard_fr_v2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.parse(
mindee.product.fr.IdCardV2,
mindee.v1.product.fr.IdCardV2,
inputSource
);

Expand Down
6 changes: 4 additions & 2 deletions docs/code_samples/ind_passport_v1_async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const mindee = require("mindee");
// import * as mindee from "mindee";

// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
const mindeeClient = new mindee.v1.Client(
{ apiKey: "my-api-key" }
);

// Load a file from disk
const inputSource = new mindee.PathInput(
Expand All @@ -12,7 +14,7 @@ const inputSource = new mindee.PathInput(

// Parse the file
const apiResponse = mindeeClient.enqueueAndParse(
mindee.product.ind.IndianPassportV1,
mindee.v1.product.ind.IndianPassportV1,
inputSource
);

Expand Down
Loading