codebase-models 3.0.3 → 3.0.4

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.
@@ -31,6 +31,7 @@ export interface IProperty extends Document {
31
31
  export interface IShopify extends Document {
32
32
  shopDomain: string;
33
33
  accessToken: string;
34
+ apiVersion?: string;
34
35
  }
35
36
  export interface IClient extends Document {
36
37
  iid: string;
@@ -47,6 +47,7 @@ const PropertySchema = new mongoose_1.Schema({
47
47
  const shopifySchema = new mongoose_1.Schema({
48
48
  shopDomain: { type: String, required: true },
49
49
  accessToken: { type: String, required: true },
50
+ apiVersion: { type: String, default: "2026-01" },
50
51
  });
51
52
  const ClientSchema = new mongoose_1.Schema({
52
53
  iid: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebase-models",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Common models for codebase",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -19,11 +19,13 @@ const PropertySchema: Schema = new Schema<IProperty>({
19
19
  export interface IShopify extends Document {
20
20
  shopDomain: string;
21
21
  accessToken: string;
22
+ apiVersion?: string;
22
23
  }
23
24
 
24
25
  const shopifySchema: Schema = new Schema<IShopify>({
25
26
  shopDomain: { type: String, required: true },
26
27
  accessToken: { type: String, required: true },
28
+ apiVersion: { type: String, default: "2026-01" },
27
29
  });
28
30
 
29
31
  export interface IClient extends Document {