@marteye/studiojs 1.1.28 → 1.1.30
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/index.d.ts +16 -2
- package/dist/index.esm.js +5 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/resources/customers.d.ts +1 -0
- package/dist/resources/lots.d.ts +7 -1
- package/dist/resources.d.ts +8 -1
- package/dist/studio.d.ts +8 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1365,7 +1365,13 @@ declare function resources(httpClient: HttpClient): {
|
|
|
1365
1365
|
};
|
|
1366
1366
|
lots: {
|
|
1367
1367
|
get: (marketId: string, saleId: string, lotId: string) => Promise<Lot>;
|
|
1368
|
-
list: (marketId: string, saleId: string
|
|
1368
|
+
list: (marketId: string, saleId: string, filters?: {
|
|
1369
|
+
group?: string;
|
|
1370
|
+
productCode?: string;
|
|
1371
|
+
saleStatus?: LotSaleStatus;
|
|
1372
|
+
sellerCustomerId?: string;
|
|
1373
|
+
buyerCustomerId?: string;
|
|
1374
|
+
}) => Promise<Lot[]>;
|
|
1369
1375
|
create: (marketId: string, saleId: string, data: {
|
|
1370
1376
|
index?: number;
|
|
1371
1377
|
lotNumber?: string;
|
|
@@ -1455,6 +1461,7 @@ declare function resources(httpClient: HttpClient): {
|
|
|
1455
1461
|
avatar: (marketId: string, customerId: string) => Promise<Customer>;
|
|
1456
1462
|
create: (marketId: string, customerData: CreateCustomerPayload) => Promise<Customer>;
|
|
1457
1463
|
getByAccountNumber: (marketId: string, accountNumber: string) => Promise<Customer | null>;
|
|
1464
|
+
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<Customer>;
|
|
1458
1465
|
};
|
|
1459
1466
|
search: {
|
|
1460
1467
|
query: (marketId: string, query: string) => Promise<SearchResult>;
|
|
@@ -1557,7 +1564,13 @@ declare function Studio(info?: {
|
|
|
1557
1564
|
};
|
|
1558
1565
|
lots: {
|
|
1559
1566
|
get: (marketId: string, saleId: string, lotId: string) => Promise<Lot>;
|
|
1560
|
-
list: (marketId: string, saleId: string
|
|
1567
|
+
list: (marketId: string, saleId: string, filters?: {
|
|
1568
|
+
group?: string;
|
|
1569
|
+
productCode?: string;
|
|
1570
|
+
saleStatus?: LotSaleStatus;
|
|
1571
|
+
sellerCustomerId?: string;
|
|
1572
|
+
buyerCustomerId?: string;
|
|
1573
|
+
}) => Promise<Lot[]>;
|
|
1561
1574
|
create: (marketId: string, saleId: string, data: {
|
|
1562
1575
|
index?: number;
|
|
1563
1576
|
lotNumber?: string;
|
|
@@ -1647,6 +1660,7 @@ declare function Studio(info?: {
|
|
|
1647
1660
|
avatar: (marketId: string, customerId: string) => Promise<Customer>;
|
|
1648
1661
|
create: (marketId: string, customerData: CreateCustomerPayload) => Promise<Customer>;
|
|
1649
1662
|
getByAccountNumber: (marketId: string, accountNumber: string) => Promise<Customer | null>;
|
|
1663
|
+
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<Customer>;
|
|
1650
1664
|
};
|
|
1651
1665
|
search: {
|
|
1652
1666
|
query: (marketId: string, query: string) => Promise<SearchResult>;
|
package/dist/index.esm.js
CHANGED
|
@@ -207,6 +207,9 @@ function create$a(httpClient) {
|
|
|
207
207
|
}
|
|
208
208
|
return null;
|
|
209
209
|
},
|
|
210
|
+
getByMartEyeUid: async (marketId, marteyeUid) => {
|
|
211
|
+
return httpClient.get(`/${marketId}/customers`, { marteyeUid });
|
|
212
|
+
},
|
|
210
213
|
};
|
|
211
214
|
return customers;
|
|
212
215
|
}
|
|
@@ -5038,8 +5041,8 @@ function create$7(httpClient) {
|
|
|
5038
5041
|
get: async (marketId, saleId, lotId) => {
|
|
5039
5042
|
return httpClient.get(`/${marketId}/sales/${saleId}/lots/${lotId}`);
|
|
5040
5043
|
},
|
|
5041
|
-
list: async (marketId, saleId) => {
|
|
5042
|
-
return httpClient.get(`/${marketId}/sales/${saleId}/lots
|
|
5044
|
+
list: async (marketId, saleId, filters) => {
|
|
5045
|
+
return httpClient.get(`/${marketId}/sales/${saleId}/lots`, filters);
|
|
5043
5046
|
},
|
|
5044
5047
|
create: async (marketId, saleId, data) => {
|
|
5045
5048
|
return httpClient.post(`/${marketId}/sales/${saleId}/lots`, data);
|