UNPKG

mindee

Version:

Mindee Client Library for Node.js

317 lines (316 loc) 8 kB
"use strict"; // // PRODUCT CONFIGURATION // // The Map's key is the command name as it will appear on the console. // var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CLI_COMMAND_CONFIG = exports.COMMAND_GENERATED = exports.COMMAND_CUSTOM = void 0; const product = __importStar(require("./product")); exports.COMMAND_CUSTOM = "custom"; exports.COMMAND_GENERATED = "generated"; exports.CLI_COMMAND_CONFIG = new Map([ [ exports.COMMAND_CUSTOM, { displayName: "Custom Document", docClass: product.CustomV1, allWords: false, async: false, sync: true, }, ], [ exports.COMMAND_GENERATED, { displayName: "Generated Document", docClass: product.GeneratedV1, allWords: true, async: true, sync: true, }, ], [ "barcode-reader", { displayName: "Barcode Reader", docClass: product.BarcodeReaderV1, allWords: false, async: false, sync: true, }, ], [ "bill-of-lading", { displayName: "Bill of Lading", docClass: product.BillOfLadingV1, allWords: false, async: true, sync: false, }, ], [ "business-card", { displayName: "Business Card", docClass: product.BusinessCardV1, allWords: false, async: true, sync: false, }, ], [ "cropper", { displayName: "Cropper", docClass: product.CropperV1, allWords: false, async: false, sync: true, }, ], [ "delivery-note", { displayName: "Delivery note", docClass: product.DeliveryNoteV1, allWords: false, async: true, sync: false, }, ], [ "driver-license", { displayName: "Driver License", docClass: product.DriverLicenseV1, allWords: false, async: true, sync: false, }, ], [ "financial-document", { displayName: "Financial Document", docClass: product.FinancialDocumentV1, allWords: true, async: true, sync: true, }, ], [ "fr-bank-account-details", { displayName: "FR Bank Account Details", docClass: product.fr.BankAccountDetailsV2, allWords: false, async: false, sync: true, }, ], [ "fr-carte-grise", { displayName: "FR Carte Grise", docClass: product.fr.CarteGriseV1, allWords: false, async: false, sync: true, }, ], [ "fr-energy-bill", { displayName: "FR Energy Bill", docClass: product.fr.EnergyBillV1, allWords: false, async: true, sync: false, }, ], [ "fr-health-card", { displayName: "FR Health Card", docClass: product.fr.HealthCardV1, allWords: false, async: true, sync: false, }, ], [ "fr-carte-nationale-d-identite", { displayName: "FR Carte Nationale d'Identité", docClass: product.fr.IdCardV2, allWords: false, async: false, sync: true, }, ], [ "fr-payslip", { displayName: "FR Payslip", docClass: product.fr.PayslipV3, allWords: false, async: true, sync: false, }, ], [ "ind-passport-india", { displayName: "IND Passport - India", docClass: product.ind.IndianPassportV1, allWords: false, async: true, sync: false, }, ], [ "international-id", { displayName: "International ID", docClass: product.InternationalIdV2, allWords: false, async: true, sync: false, }, ], [ "invoice", { displayName: "Invoice", docClass: product.InvoiceV4, allWords: true, async: true, sync: true, }, ], [ "invoice-splitter", { displayName: "Invoice Splitter", docClass: product.InvoiceSplitterV1, allWords: false, async: true, sync: false, }, ], [ "multi-receipts-detector", { displayName: "Multi Receipts Detector", docClass: product.MultiReceiptsDetectorV1, allWords: false, async: false, sync: true, }, ], [ "nutrition-facts-label", { displayName: "Nutrition Facts Label", docClass: product.NutritionFactsLabelV1, allWords: false, async: true, sync: false, }, ], [ "passport", { displayName: "Passport", docClass: product.PassportV1, allWords: false, async: false, sync: true, }, ], [ "receipt", { displayName: "Receipt", docClass: product.ReceiptV5, allWords: true, async: true, sync: true, }, ], [ "resume", { displayName: "Resume", docClass: product.ResumeV1, allWords: false, async: true, sync: false, }, ], [ "us-bank-check", { displayName: "US Bank Check", docClass: product.us.BankCheckV1, allWords: false, async: false, sync: true, }, ], [ "us-healthcare-card", { displayName: "US Healthcare Card", docClass: product.us.HealthcareCardV1, allWords: false, async: true, sync: false, }, ], [ "us-us-mail", { displayName: "US US Mail", docClass: product.us.UsMailV3, allWords: false, async: true, sync: false, }, ], ]);