@marteye/studiojs 1.1.21 → 1.1.23

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/dist/types.d.ts CHANGED
@@ -323,6 +323,7 @@ export interface LotGeneratedValues {
323
323
  averageWeightKg?: number | null;
324
324
  pricePerItemInCents?: number | null;
325
325
  countOfItems?: number | null;
326
+ ordinal?: number | null;
326
327
  }
327
328
  export interface ShortCustomerDetails {
328
329
  isSet: boolean;
@@ -0,0 +1,24 @@
1
+ export type CountryCode = keyof typeof EarTag.countryCodes;
2
+ export default class EarTag {
3
+ static regexISO24631: RegExp;
4
+ static countryCodes: {
5
+ [key: string]: string;
6
+ };
7
+ static get countryCodesByNumber(): {
8
+ [code: string]: CountryCode;
9
+ };
10
+ private _raw;
11
+ get raw(): string;
12
+ private _isEartag;
13
+ isEartag(): boolean;
14
+ private _isoCountryCode?;
15
+ get isoCountryCode(): string | undefined;
16
+ private _nationalIdentifier?;
17
+ get nationalIdentifier(): string | undefined;
18
+ constructor(input: string, fallbackCountryCode?: CountryCode);
19
+ static parse(str: string, fallbackCountryCode?: CountryCode): EarTag;
20
+ static format(str: string): string | null;
21
+ toString(): string;
22
+ isISO24631(): boolean;
23
+ toISO24631(): string;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marteye/studiojs",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "description": "MartEye Studio JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "type": "module",