types-magic-api 0.1.40 → 0.1.42
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/dist/src/common/model/index.model.d.ts +1 -0
- package/dist/src/common/model/index.model.js +1 -0
- package/dist/src/entities/magic/Customer.entity.d.ts +1 -0
- package/dist/src/services/customer/customer.model.d.ts +2 -2
- package/dist/src/services/shopify/shopify.model.d.ts +37 -35
- package/package.json +1 -1
|
@@ -294,7 +294,7 @@ export interface GetCustomerAllProductsReq {
|
|
|
294
294
|
* API Name: /api/customer/product/get/all
|
|
295
295
|
*/
|
|
296
296
|
export interface GetCustomerAllProductsRes {
|
|
297
|
-
products: Model.
|
|
297
|
+
products: Model.ICustomerProduct[];
|
|
298
298
|
pageInfo: Model.StoreFrontPageInfo | undefined;
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
@@ -308,7 +308,7 @@ export interface GetProductRecommendationsReq {
|
|
|
308
308
|
* API Name: /api/customer/product/recommendations/get
|
|
309
309
|
*/
|
|
310
310
|
export interface GetProductRecommendationsRes {
|
|
311
|
-
productRecommendations: Model.
|
|
311
|
+
productRecommendations: Model.ICustomerProduct[];
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
314
|
* API Name: /api/customer/collection/get
|
|
@@ -14,6 +14,10 @@ export interface PriceRange {
|
|
|
14
14
|
maxVariantPrice: Money;
|
|
15
15
|
minVariantPrice: Money;
|
|
16
16
|
}
|
|
17
|
+
export interface PriceRangeCompare {
|
|
18
|
+
maxVariantCompareAtPrice: Money;
|
|
19
|
+
minVariantCompareAtPrice: Money;
|
|
20
|
+
}
|
|
17
21
|
export interface ProductOption {
|
|
18
22
|
id: string;
|
|
19
23
|
name: string;
|
|
@@ -180,14 +184,20 @@ export interface ProductMedia {
|
|
|
180
184
|
id: string;
|
|
181
185
|
mediaContentType: ProductMediaContentType;
|
|
182
186
|
sources: ProductMediaSource;
|
|
183
|
-
|
|
187
|
+
preview: {
|
|
188
|
+
image: ProductMediaImage | null;
|
|
189
|
+
};
|
|
184
190
|
}
|
|
185
191
|
export interface ICustomerProduct {
|
|
186
|
-
|
|
187
|
-
compareAtPriceRange:
|
|
192
|
+
hasOutOfStockVariants: boolean;
|
|
193
|
+
compareAtPriceRange: PriceRangeCompare;
|
|
188
194
|
description: string;
|
|
189
195
|
descriptionHtml: string;
|
|
190
|
-
|
|
196
|
+
featuredMedia: {
|
|
197
|
+
preview: {
|
|
198
|
+
image: Image | null;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
191
201
|
handle: string;
|
|
192
202
|
id: string;
|
|
193
203
|
priceRangeV2: PriceRange;
|
|
@@ -209,38 +219,24 @@ export interface ICustomerProduct {
|
|
|
209
219
|
export interface ICustomerCollection extends ICollection {
|
|
210
220
|
products: ICustomerProduct[];
|
|
211
221
|
}
|
|
212
|
-
export interface ICustomerProductX {
|
|
213
|
-
compareAtPriceRange: PriceRange;
|
|
214
|
-
featuredImage: Image | null;
|
|
215
|
-
handle: string;
|
|
216
|
-
id: string;
|
|
217
|
-
availableForSale: boolean;
|
|
218
|
-
onlineStoreUrl: string | null;
|
|
219
|
-
priceRange: PriceRange;
|
|
220
|
-
title: string;
|
|
221
|
-
vendor: string;
|
|
222
|
-
isWishList?: boolean;
|
|
223
|
-
tags: string[];
|
|
224
|
-
currency?: string;
|
|
225
|
-
currencySymbol?: string;
|
|
226
|
-
media: ProductMedia[];
|
|
227
|
-
variants: ICustomerProductsVariant[];
|
|
228
|
-
}
|
|
229
222
|
export interface ICustomerProductsVariant {
|
|
230
223
|
availableForSale: boolean;
|
|
231
|
-
compareAtPrice:
|
|
232
|
-
currentlyNotInStock: boolean;
|
|
224
|
+
compareAtPrice: string | null;
|
|
233
225
|
id: string;
|
|
234
|
-
|
|
226
|
+
media: {
|
|
227
|
+
edges: {
|
|
228
|
+
node: {
|
|
229
|
+
preview: {
|
|
230
|
+
image: ProductMediaImage | null;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
235
|
price: Money;
|
|
236
|
-
|
|
237
|
-
quantityAvailable: number;
|
|
238
|
-
inventoryQuantity: number;
|
|
236
|
+
sellableOnlineQuantity: number;
|
|
239
237
|
title: string;
|
|
240
238
|
unitPrice: Money | null;
|
|
241
|
-
weight: number | null;
|
|
242
239
|
sku?: string;
|
|
243
|
-
weightUnit: WeightUnit;
|
|
244
240
|
}
|
|
245
241
|
export interface MailingAddress {
|
|
246
242
|
address1: string | null;
|
|
@@ -248,7 +244,7 @@ export interface MailingAddress {
|
|
|
248
244
|
city: string | null;
|
|
249
245
|
company: string | null;
|
|
250
246
|
country: string | null;
|
|
251
|
-
|
|
247
|
+
countryCodeV2: string | null;
|
|
252
248
|
firstName: string | null;
|
|
253
249
|
formatted: string | null;
|
|
254
250
|
formattedArea: string[];
|
|
@@ -263,17 +259,21 @@ export interface MailingAddress {
|
|
|
263
259
|
zip: string | null;
|
|
264
260
|
}
|
|
265
261
|
export interface ICustomer {
|
|
266
|
-
|
|
262
|
+
defaultEmailAddress: {
|
|
263
|
+
emailAddress: string;
|
|
264
|
+
marketingState: string;
|
|
265
|
+
};
|
|
266
|
+
defaultPhoneNumber: {
|
|
267
|
+
phoneNumber: string;
|
|
268
|
+
};
|
|
267
269
|
addresses: MailingAddress[];
|
|
268
270
|
createdAt: Date;
|
|
269
271
|
defaultAddress: MailingAddress;
|
|
270
272
|
displayName: string;
|
|
271
|
-
email: string | null;
|
|
272
273
|
firstName: string | null;
|
|
273
274
|
id: string;
|
|
274
275
|
lastName: string | null;
|
|
275
276
|
numberOfOrders: number;
|
|
276
|
-
phone: string | null;
|
|
277
277
|
tags: string[];
|
|
278
278
|
}
|
|
279
279
|
export declare enum CustomerErrorCode {
|
|
@@ -355,13 +355,15 @@ export interface cartDeliveryAddressRes {
|
|
|
355
355
|
*/
|
|
356
356
|
export interface CustomerProviderLoginReq {
|
|
357
357
|
email: string;
|
|
358
|
-
password
|
|
358
|
+
password?: string | null;
|
|
359
|
+
otp?: string | null;
|
|
359
360
|
}
|
|
360
361
|
/**
|
|
361
362
|
* API Name: /api/customer/login
|
|
362
363
|
*/
|
|
363
364
|
export interface CustomerProviderLoginRes {
|
|
364
|
-
token
|
|
365
|
+
token?: string;
|
|
366
|
+
isOTPRequired: boolean;
|
|
365
367
|
}
|
|
366
368
|
/**
|
|
367
369
|
* API Name: /api/customer/logout
|