@basis-theory/basis-theory-js 4.16.0 → 4.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Basis Theory JS SDK (aka BasisTheory.js)
2
2
 
3
+ > [!CAUTION]
4
+ > This SDK has been deprecated.
5
+ >
6
+ > Our new SDK can be found at https://github.com/Basis-Theory/node-sdk
7
+ >
8
+ > See our documentation site for more information. https://developers.basistheory.com/docs/sdks/server-side/node
9
+
3
10
  [![Version](https://img.shields.io/npm/v/@basis-theory/basis-theory-js.svg)](https://www.npmjs.org/package/@basis-theory/basis-theory-js)
4
11
  [![Downloads](https://img.shields.io/npm/dm/@basis-theory/basis-theory-js.svg)](https://www.npmjs.org/package/@basis-theory/basis-theory-js)
5
12
  [![Verify](https://github.com/Basis-Theory/basis-theory-js/actions/workflows/release.yml/badge.svg)](https://github.com/Basis-Theory/basis-theory-js/actions/workflows/release.yml)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "4.16.0",
3
+ "version": "4.17.1",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -0,0 +1,15 @@
1
+ interface CardDetails {
2
+ bin?: string;
3
+ last4?: string;
4
+ expirationMonth?: number;
5
+ expirationYear?: number;
6
+ brand?: CardBrandType;
7
+ funding?: FundingType;
8
+ authentication?: string;
9
+ }
10
+ declare const enrichmentCardBrands: readonly ["american-express", "diners-club", "discover", "ebt", "elo", "hiper", "hipercard", "jcb", "maestro", "mastercard", "mir", "private-label", "proprietary", "unionpay", "visa"];
11
+ type CardBrandType = typeof enrichmentCardBrands[number];
12
+ declare const enrichmentFundingTypes: readonly ["prepaid", "credit", "debit"];
13
+ type FundingType = typeof enrichmentFundingTypes[number];
14
+ export type { CardDetails, CardBrandType, FundingType };
15
+ export { enrichmentCardBrands, enrichmentFundingTypes };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.enrichmentFundingTypes = exports.enrichmentCardBrands = void 0;
7
+ const enrichmentCardBrands = ['american-express', 'diners-club', 'discover', 'ebt', 'elo', 'hiper', 'hipercard', 'jcb', 'maestro', 'mastercard', 'mir', 'private-label', 'proprietary', 'unionpay', 'visa'];
8
+ exports.enrichmentCardBrands = enrichmentCardBrands;
9
+ const enrichmentFundingTypes = ['prepaid', 'credit', 'debit'];
10
+ exports.enrichmentFundingTypes = enrichmentFundingTypes;
@@ -8,6 +8,7 @@ interface TokenIntentCardDetails {
8
8
  funding: string;
9
9
  expirationMonth: number;
10
10
  expirationYear: number;
11
+ authentication?: string;
11
12
  };
12
13
  }
13
14
  type TokenTypesForTokenIntents = Exclude<TokenType, 'token' | 'card'>;
@@ -1,4 +1,5 @@
1
1
  import type { BinDetails } from './bin-details';
2
+ import { CardDetails } from './card-details';
2
3
  import type { Primitive, TokenBase } from './shared';
3
4
  declare const DATA_CLASSIFICATIONS: readonly ["general", "bank", "pci", "pii"];
4
5
  type DataClassification = typeof DATA_CLASSIFICATIONS[number];
@@ -26,6 +27,7 @@ interface TokenPrivacy {
26
27
  }
27
28
  interface TokenEnrichments {
28
29
  binDetails?: BinDetails;
30
+ cardDetails?: CardDetails;
29
31
  }
30
32
  type Token<DataType = Primitive> = TokenBase<DataType> & {
31
33
  id: string;