@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
|
@@ -33,5 +33,6 @@ export default function create(httpClient: HttpClient): {
|
|
|
33
33
|
* @returns The customer with the specified account number or null if not found
|
|
34
34
|
*/
|
|
35
35
|
getByAccountNumber: (marketId: string, accountNumber: string) => Promise<Customer | null>;
|
|
36
|
+
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<Customer>;
|
|
36
37
|
};
|
|
37
38
|
export type Customers = ReturnType<typeof create>;
|
package/dist/resources/lots.d.ts
CHANGED
|
@@ -5,7 +5,13 @@ import { Lot, LotSaleStatus } from "../types";
|
|
|
5
5
|
*/
|
|
6
6
|
export default function create(httpClient: HttpClient): {
|
|
7
7
|
get: (marketId: string, saleId: string, lotId: string) => Promise<Lot>;
|
|
8
|
-
list: (marketId: string, saleId: string
|
|
8
|
+
list: (marketId: string, saleId: string, filters?: {
|
|
9
|
+
group?: string;
|
|
10
|
+
productCode?: string;
|
|
11
|
+
saleStatus?: LotSaleStatus;
|
|
12
|
+
sellerCustomerId?: string;
|
|
13
|
+
buyerCustomerId?: string;
|
|
14
|
+
}) => Promise<Lot[]>;
|
|
9
15
|
create: (marketId: string, saleId: string, data: {
|
|
10
16
|
index?: number;
|
|
11
17
|
lotNumber?: string;
|
package/dist/resources.d.ts
CHANGED
|
@@ -72,7 +72,13 @@ export default function resources(httpClient: HttpClient): {
|
|
|
72
72
|
};
|
|
73
73
|
lots: {
|
|
74
74
|
get: (marketId: string, saleId: string, lotId: string) => Promise<import("./types").Lot>;
|
|
75
|
-
list: (marketId: string, saleId: string
|
|
75
|
+
list: (marketId: string, saleId: string, filters?: {
|
|
76
|
+
group?: string;
|
|
77
|
+
productCode?: string;
|
|
78
|
+
saleStatus?: import("./types").LotSaleStatus;
|
|
79
|
+
sellerCustomerId?: string;
|
|
80
|
+
buyerCustomerId?: string;
|
|
81
|
+
}) => Promise<import("./types").Lot[]>;
|
|
76
82
|
create: (marketId: string, saleId: string, data: {
|
|
77
83
|
index?: number;
|
|
78
84
|
lotNumber?: string;
|
|
@@ -162,6 +168,7 @@ export default function resources(httpClient: HttpClient): {
|
|
|
162
168
|
avatar: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
163
169
|
create: (marketId: string, customerData: import("./resources/customers").CreateCustomerPayload) => Promise<import("./types").Customer>;
|
|
164
170
|
getByAccountNumber: (marketId: string, accountNumber: string) => Promise<import("./types").Customer | null>;
|
|
171
|
+
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<import("./types").Customer>;
|
|
165
172
|
};
|
|
166
173
|
search: {
|
|
167
174
|
query: (marketId: string, query: string) => Promise<import("./resources/search").SearchResult>;
|
package/dist/studio.d.ts
CHANGED
|
@@ -81,7 +81,13 @@ export declare function Studio(info?: {
|
|
|
81
81
|
};
|
|
82
82
|
lots: {
|
|
83
83
|
get: (marketId: string, saleId: string, lotId: string) => Promise<import("./types").Lot>;
|
|
84
|
-
list: (marketId: string, saleId: string
|
|
84
|
+
list: (marketId: string, saleId: string, filters?: {
|
|
85
|
+
group?: string;
|
|
86
|
+
productCode?: string;
|
|
87
|
+
saleStatus?: import("./types").LotSaleStatus;
|
|
88
|
+
sellerCustomerId?: string;
|
|
89
|
+
buyerCustomerId?: string;
|
|
90
|
+
}) => Promise<import("./types").Lot[]>;
|
|
85
91
|
create: (marketId: string, saleId: string, data: {
|
|
86
92
|
index?: number;
|
|
87
93
|
lotNumber?: string;
|
|
@@ -171,6 +177,7 @@ export declare function Studio(info?: {
|
|
|
171
177
|
avatar: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
172
178
|
create: (marketId: string, customerData: import("./resources/customers").CreateCustomerPayload) => Promise<import("./types").Customer>;
|
|
173
179
|
getByAccountNumber: (marketId: string, accountNumber: string) => Promise<import("./types").Customer | null>;
|
|
180
|
+
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<import("./types").Customer>;
|
|
174
181
|
};
|
|
175
182
|
search: {
|
|
176
183
|
query: (marketId: string, query: string) => Promise<import("./resources/search").SearchResult>;
|