codebase-models 3.0.6 → 3.0.7
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.
|
@@ -28,12 +28,6 @@ export interface IProperty extends Document {
|
|
|
28
28
|
viewId: string;
|
|
29
29
|
platform?: string;
|
|
30
30
|
}
|
|
31
|
-
export interface IShopify extends Document {
|
|
32
|
-
apiKey: string;
|
|
33
|
-
apiSecretKey: string;
|
|
34
|
-
hostName: string;
|
|
35
|
-
apiVersion?: string;
|
|
36
|
-
}
|
|
37
31
|
export interface IClient extends Document {
|
|
38
32
|
iid: string;
|
|
39
33
|
organization: mongoose.Schema.Types.ObjectId;
|
|
@@ -53,7 +47,6 @@ export interface IClient extends Document {
|
|
|
53
47
|
NDAStatus?: boolean;
|
|
54
48
|
retainerValue: number;
|
|
55
49
|
useIntraDayTable: boolean;
|
|
56
|
-
shopify?: IShopify;
|
|
57
50
|
}
|
|
58
51
|
declare const Client: mongoose.Model<any, {}, {}, {}, any, any>;
|
|
59
52
|
export default Client;
|
|
@@ -44,12 +44,6 @@ const PropertySchema = new mongoose_1.Schema({
|
|
|
44
44
|
viewId: { type: String, required: true },
|
|
45
45
|
platform: { type: String, default: "GA4" },
|
|
46
46
|
});
|
|
47
|
-
const shopifySchema = new mongoose_1.Schema({
|
|
48
|
-
apiKey: { type: String, required: true },
|
|
49
|
-
apiSecretKey: { type: String, required: true },
|
|
50
|
-
hostName: { type: String, required: true },
|
|
51
|
-
apiVersion: { type: String, default: "2026-01" },
|
|
52
|
-
});
|
|
53
47
|
const ClientSchema = new mongoose_1.Schema({
|
|
54
48
|
iid: {
|
|
55
49
|
type: String,
|
|
@@ -92,7 +86,6 @@ const ClientSchema = new mongoose_1.Schema({
|
|
|
92
86
|
NDAStatus: { type: Boolean, default: false },
|
|
93
87
|
retainerValue: { type: Number },
|
|
94
88
|
useIntraDayTable: { type: Boolean },
|
|
95
|
-
shopify: { type: shopifySchema, default: null },
|
|
96
89
|
}, {
|
|
97
90
|
timestamps: true,
|
|
98
91
|
});
|
package/package.json
CHANGED
package/src/models/Client.ts
CHANGED
|
@@ -15,21 +15,6 @@ const PropertySchema: Schema = new Schema<IProperty>({
|
|
|
15
15
|
viewId: { type: String, required: true },
|
|
16
16
|
platform: { type: String, default: "GA4" },
|
|
17
17
|
});
|
|
18
|
-
|
|
19
|
-
export interface IShopify extends Document {
|
|
20
|
-
apiKey: string;
|
|
21
|
-
apiSecretKey: string;
|
|
22
|
-
hostName: string;
|
|
23
|
-
apiVersion?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const shopifySchema: Schema = new Schema<IShopify>({
|
|
27
|
-
apiKey: { type: String, required: true },
|
|
28
|
-
apiSecretKey: { type: String, required: true },
|
|
29
|
-
hostName: { type: String, required: true },
|
|
30
|
-
apiVersion: { type: String, default: "2026-01" },
|
|
31
|
-
});
|
|
32
|
-
|
|
33
18
|
export interface IClient extends Document {
|
|
34
19
|
iid: string;
|
|
35
20
|
organization: mongoose.Schema.Types.ObjectId;
|
|
@@ -49,7 +34,6 @@ export interface IClient extends Document {
|
|
|
49
34
|
NDAStatus?: boolean;
|
|
50
35
|
retainerValue: number;
|
|
51
36
|
useIntraDayTable: boolean;
|
|
52
|
-
shopify?: IShopify;
|
|
53
37
|
}
|
|
54
38
|
|
|
55
39
|
const ClientSchema: Schema = new Schema<IClient>(
|
|
@@ -95,7 +79,6 @@ const ClientSchema: Schema = new Schema<IClient>(
|
|
|
95
79
|
NDAStatus: { type: Boolean, default: false },
|
|
96
80
|
retainerValue: { type: Number },
|
|
97
81
|
useIntraDayTable: { type: Boolean },
|
|
98
|
-
shopify: { type: shopifySchema, default: null },
|
|
99
82
|
},
|
|
100
83
|
{
|
|
101
84
|
timestamps: true,
|