@mivis/petmart-api 1.1.1 → 1.1.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/package.json +11 -11
- package/type.d.ts +16 -7
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mivis/petmart-api",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"main": "index.js",
|
|
5
|
-
"types": "type.d.ts",
|
|
6
|
-
"license": "ISC",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/MarkusRaven/devPetmart"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mivis/petmart-api",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"types": "type.d.ts",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/MarkusRaven/devPetmart"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/type.d.ts
CHANGED
|
@@ -82,6 +82,11 @@ declare namespace Components {
|
|
|
82
82
|
address: string;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
export interface ICompound {
|
|
86
|
+
name: string;
|
|
87
|
+
value: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
85
90
|
export interface IProduct {
|
|
86
91
|
_id: string;
|
|
87
92
|
owner: string;
|
|
@@ -91,7 +96,7 @@ declare namespace Components {
|
|
|
91
96
|
name: string;
|
|
92
97
|
rate: number;
|
|
93
98
|
desc: string;
|
|
94
|
-
compound:
|
|
99
|
+
compound: ICompound[];
|
|
95
100
|
category: string;
|
|
96
101
|
price: number[];
|
|
97
102
|
}
|
|
@@ -105,7 +110,7 @@ declare namespace Components {
|
|
|
105
110
|
name: string;
|
|
106
111
|
rate: number;
|
|
107
112
|
desc: string;
|
|
108
|
-
compound:
|
|
113
|
+
compound: ICompound[];
|
|
109
114
|
category: {
|
|
110
115
|
_id: string;
|
|
111
116
|
name: string;
|
|
@@ -120,7 +125,7 @@ declare namespace Components {
|
|
|
120
125
|
weight: number[];
|
|
121
126
|
name: string;
|
|
122
127
|
desc: string;
|
|
123
|
-
compound:
|
|
128
|
+
compound: ICompound[];
|
|
124
129
|
category: string;
|
|
125
130
|
price: number[];
|
|
126
131
|
}
|
|
@@ -130,7 +135,7 @@ declare namespace Components {
|
|
|
130
135
|
}
|
|
131
136
|
|
|
132
137
|
export interface ICreateCart {
|
|
133
|
-
product:
|
|
138
|
+
product: string;
|
|
134
139
|
variation: IVariation;
|
|
135
140
|
count: number;
|
|
136
141
|
}
|
|
@@ -170,12 +175,16 @@ declare namespace Components {
|
|
|
170
175
|
id: string;
|
|
171
176
|
}
|
|
172
177
|
|
|
173
|
-
export
|
|
178
|
+
export interface IOrderItem {
|
|
179
|
+
product: string;
|
|
180
|
+
count: number;
|
|
181
|
+
weight: number;
|
|
182
|
+
}
|
|
174
183
|
|
|
175
184
|
export type OrderAddress = Omit<IAddress, 'owner'>;
|
|
176
185
|
|
|
177
186
|
export interface ICreateOrder {
|
|
178
|
-
orderItems:
|
|
187
|
+
orderItems: IOrderItem[];
|
|
179
188
|
price: number;
|
|
180
189
|
address: OrderAddress;
|
|
181
190
|
name: string;
|
|
@@ -185,7 +194,7 @@ declare namespace Components {
|
|
|
185
194
|
|
|
186
195
|
export interface IOrder {
|
|
187
196
|
user: string;
|
|
188
|
-
orderItems:
|
|
197
|
+
orderItems: IOrderItem[];
|
|
189
198
|
date: Date;
|
|
190
199
|
price: number;
|
|
191
200
|
owner: string;
|