@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.
@@ -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>;
@@ -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) => Promise<Lot[]>;
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;
@@ -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) => Promise<import("./types").Lot[]>;
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) => Promise<import("./types").Lot[]>;
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marteye/studiojs",
3
- "version": "1.1.28",
3
+ "version": "1.1.30",
4
4
  "description": "MartEye Studio JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "type": "module",