@fas-core/shared-types 1.0.0 → 1.0.2

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
@@ -20,3 +20,8 @@ npm publish --access public
20
20
  npm version patch
21
21
  npm publish
22
22
  ```
23
+ # fas-shared-types
24
+ # fas-shared-types
25
+ # fas-shared-types
26
+ # fas-shared-types
27
+ # fas-shared-types
package/dist/index.d.mts CHANGED
@@ -1,5 +1,7 @@
1
+ import { Types } from 'mongoose';
2
+
1
3
  interface BaseEntity {
2
- _id: string;
4
+ _id: Types.ObjectId;
3
5
  createdAt: Date;
4
6
  updatedAt: Date;
5
7
  deletedAt?: Date;
@@ -108,6 +110,7 @@ interface IStore extends BaseEntity {
108
110
  slug: string;
109
111
  domain: string;
110
112
  currencies: ICurrency[];
113
+ defaultCurrency: ICurrency;
111
114
  settings: IStoreSettings;
112
115
  status: boolean;
113
116
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
+ import { Types } from 'mongoose';
2
+
1
3
  interface BaseEntity {
2
- _id: string;
4
+ _id: Types.ObjectId;
3
5
  createdAt: Date;
4
6
  updatedAt: Date;
5
7
  deletedAt?: Date;
@@ -108,6 +110,7 @@ interface IStore extends BaseEntity {
108
110
  slug: string;
109
111
  domain: string;
110
112
  currencies: ICurrency[];
113
+ defaultCurrency: ICurrency;
111
114
  settings: IStoreSettings;
112
115
  status: boolean;
113
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fas-core/shared-types",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "FAS Core Shared Types - A collection of shared TypeScript types for the FAS Core SDK.",
5
5
  "author": "ibreakloops",
6
6
  "license": "UNLICENSED",
@@ -36,5 +36,8 @@
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=18"
39
+ },
40
+ "dependencies": {
41
+ "mongoose": "^9.6.0"
39
42
  }
40
43
  }