@orderingstack/ordering-types 1.16.0 → 1.17.0

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.
@@ -275,7 +275,7 @@ export interface IOrderCoupon {
275
275
  campaign?: string;
276
276
  categoryId?: string;
277
277
  productId?: string;
278
- enableKey?: string;
278
+ enableKey?: string | string[];
279
279
  userId?: string;
280
280
  extra?: IStringKeyRecord<string>;
281
281
  };
@@ -458,7 +458,7 @@ export interface IOrderProduct {
458
458
  quantity: string;
459
459
  price: string;
460
460
  vat?: string;
461
- extra: IStringKeyRecord<string>;
461
+ extra?: IStringKeyRecord<string>;
462
462
  }
463
463
  export declare enum EOrderLineStatus {
464
464
  NEW = "NEW",
@@ -275,7 +275,7 @@ export interface IOrderCoupon {
275
275
  campaign?: string;
276
276
  categoryId?: string;
277
277
  productId?: string;
278
- enableKey?: string;
278
+ enableKey?: string | string[];
279
279
  userId?: string;
280
280
  extra?: IStringKeyRecord<string>;
281
281
  };
@@ -458,7 +458,7 @@ export interface IOrderProduct {
458
458
  quantity: string;
459
459
  price: string;
460
460
  vat?: string;
461
- extra: IStringKeyRecord<string>;
461
+ extra?: IStringKeyRecord<string>;
462
462
  }
463
463
  export declare enum EOrderLineStatus {
464
464
  NEW = "NEW",
package/package.json CHANGED
@@ -1,22 +1,23 @@
1
- {
2
- "name": "@orderingstack/ordering-types",
3
- "version": "1.16.0",
4
- "description": "Typescript types for @orderingstack",
5
- "types": "dist/esm/index.d.ts",
6
- "main": "dist/cjs/index.js",
7
- "module": "dist/esm/index.js",
8
- "files": [
9
- "dist/"
10
- ],
11
- "author": "Tomasz Rojek <tomasz.rojek@e3.pl>",
12
- "devDependencies": {
13
- "@types/react": "^18.0.26",
14
- "react": "^18.2.0",
15
- "react-hook-form": "^7.42.0",
16
- "react-spring": "^9.6.1",
17
- "typescript": "next"
18
- },
19
- "scripts": {
20
- "build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
21
- }
1
+ {
2
+ "name": "@orderingstack/ordering-types",
3
+ "version": "1.17.0",
4
+ "description": "Typescript types for @orderingstack",
5
+ "types": "dist/esm/index.d.ts",
6
+ "main": "dist/cjs/index.js",
7
+ "module": "dist/esm/index.js",
8
+ "files": [
9
+ "dist/"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
13
+ "prepublishOnly": "npm run build"
14
+ },
15
+ "author": "Tomasz Rojek <tomasz.rojek@e3.pl>",
16
+ "devDependencies": {
17
+ "@types/react": "^18.0.26",
18
+ "react": "^18.2.0",
19
+ "react-hook-form": "^7.42.0",
20
+ "react-spring": "^9.6.1",
21
+ "typescript": "next"
22
+ }
22
23
  }