@lilaquadrat/interfaces 1.24.0 → 1.25.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.25.0](https://github.com/lilaquadrat/interfaces/compare/v1.24.0...v1.25.0) (2025-04-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * **cart:** update payment property type in Cart interface to ObjectId ([d26fc89](https://github.com/lilaquadrat/interfaces/commit/d26fc891e53d20388149a9309d9d8d6502964640))
11
+
5
12
  ## [1.24.0](https://github.com/lilaquadrat/interfaces/compare/v1.23.0...v1.24.0) (2025-04-01)
6
13
 
7
14
 
package/lib/cjs/Cart.d.ts CHANGED
@@ -1,5 +1,5 @@
1
+ import { ObjectId } from "mongodb";
1
2
  import { CartItem } from "./CartItem";
2
- import { ObjectIdString } from "./ObjectIdString";
3
3
  export interface Cart {
4
4
  items?: CartItem[];
5
5
  state: 'open' | 'closed' | 'checkout';
@@ -10,5 +10,5 @@ export interface Cart {
10
10
  };
11
11
  modified?: Date;
12
12
  checkoutUrl?: string;
13
- payment: ObjectIdString;
13
+ payment?: ObjectId;
14
14
  }
package/lib/esm/Cart.d.ts CHANGED
@@ -1,5 +1,5 @@
1
+ import { ObjectId } from "mongodb";
1
2
  import { CartItem } from "./CartItem";
2
- import { ObjectIdString } from "./ObjectIdString";
3
3
  export interface Cart {
4
4
  items?: CartItem[];
5
5
  state: 'open' | 'closed' | 'checkout';
@@ -10,5 +10,5 @@ export interface Cart {
10
10
  };
11
11
  modified?: Date;
12
12
  checkoutUrl?: string;
13
- payment: ObjectIdString;
13
+ payment?: ObjectId;
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
package/src/Cart.ts CHANGED
@@ -1,6 +1,5 @@
1
+ import { ObjectId } from "mongodb"
1
2
  import { CartItem } from "./CartItem"
2
- import { ObjectIdString } from "./ObjectIdString"
3
-
4
3
  export interface Cart {
5
4
 
6
5
  items?: CartItem[]
@@ -18,6 +17,6 @@ export interface Cart {
18
17
 
19
18
  checkoutUrl?: string
20
19
 
21
- payment: ObjectIdString
20
+ payment?: ObjectId
22
21
 
23
22
  }