@marteye/studiojs 1.1.26 → 1.1.28
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 +30 -3
- package/dist/index.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/{applications.d.ts → bidderApplications.d.ts} +3 -0
- package/dist/resources.d.ts +4 -4
- package/dist/studio.d.ts +4 -4
- package/dist/types.d.ts +26 -0
- package/package.json +3 -2
|
@@ -37,6 +37,9 @@ export interface ListApplicationsResponse {
|
|
|
37
37
|
lastId: string | null;
|
|
38
38
|
hasMore: boolean;
|
|
39
39
|
}
|
|
40
|
+
/***
|
|
41
|
+
* Bidder applications
|
|
42
|
+
*/
|
|
40
43
|
export default function create(httpClient: HttpClient): {
|
|
41
44
|
/**
|
|
42
45
|
* List applications for a market with optional filtering
|
package/dist/resources.d.ts
CHANGED
|
@@ -133,11 +133,11 @@ export default function resources(httpClient: HttpClient): {
|
|
|
133
133
|
actions: {
|
|
134
134
|
constructAction: (bodyAsBuffer: Buffer, signature: string, endpointSecret: string) => Promise<any>;
|
|
135
135
|
};
|
|
136
|
-
|
|
137
|
-
list: (marketId: string, options?: import("./resources/
|
|
136
|
+
bidderApplications: {
|
|
137
|
+
list: (marketId: string, options?: import("./resources/bidderApplications").ListApplicationsOptions) => Promise<import("./resources/bidderApplications").ListApplicationsResponse>;
|
|
138
138
|
get: (marketId: string, applicationId: string) => Promise<import("./types").Application>;
|
|
139
|
-
create: (marketId: string, applicationData: import("./resources/
|
|
140
|
-
update: (marketId: string, applicationId: string, updateData: import("./resources/
|
|
139
|
+
create: (marketId: string, applicationData: import("./resources/bidderApplications").CreateApplicationPayload) => Promise<import("./types").Application>;
|
|
140
|
+
update: (marketId: string, applicationId: string, updateData: import("./resources/bidderApplications").UpdateApplicationPayload) => Promise<import("./types").Application>;
|
|
141
141
|
approve: (marketId: string, applicationId: string, notes?: string) => Promise<import("./types").Application>;
|
|
142
142
|
reject: (marketId: string, applicationId: string, notes?: string) => Promise<import("./types").Application>;
|
|
143
143
|
};
|
package/dist/studio.d.ts
CHANGED
|
@@ -142,11 +142,11 @@ export declare function Studio(info?: {
|
|
|
142
142
|
actions: {
|
|
143
143
|
constructAction: (bodyAsBuffer: Buffer, signature: string, endpointSecret: string) => Promise<any>;
|
|
144
144
|
};
|
|
145
|
-
|
|
146
|
-
list: (marketId: string, options?: import("./resources/
|
|
145
|
+
bidderApplications: {
|
|
146
|
+
list: (marketId: string, options?: import("./resources/bidderApplications").ListApplicationsOptions) => Promise<import("./resources/bidderApplications").ListApplicationsResponse>;
|
|
147
147
|
get: (marketId: string, applicationId: string) => Promise<import("./types").Application>;
|
|
148
|
-
create: (marketId: string, applicationData: import("./resources/
|
|
149
|
-
update: (marketId: string, applicationId: string, updateData: import("./resources/
|
|
148
|
+
create: (marketId: string, applicationData: import("./resources/bidderApplications").CreateApplicationPayload) => Promise<import("./types").Application>;
|
|
149
|
+
update: (marketId: string, applicationId: string, updateData: import("./resources/bidderApplications").UpdateApplicationPayload) => Promise<import("./types").Application>;
|
|
150
150
|
approve: (marketId: string, applicationId: string, notes?: string) => Promise<import("./types").Application>;
|
|
151
151
|
reject: (marketId: string, applicationId: string, notes?: string) => Promise<import("./types").Application>;
|
|
152
152
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -123,6 +123,10 @@ export interface MemberSharingConfiguration {
|
|
|
123
123
|
marketId: string;
|
|
124
124
|
role: "Owner" | "Admin" | "Editor";
|
|
125
125
|
}
|
|
126
|
+
export type DisplayBoardMode = "off" | "live" | "manual" | {
|
|
127
|
+
type: "focused";
|
|
128
|
+
field: string;
|
|
129
|
+
};
|
|
126
130
|
export interface Sale {
|
|
127
131
|
id: string;
|
|
128
132
|
createdAt: Timestamp;
|
|
@@ -153,6 +157,7 @@ export interface Sale {
|
|
|
153
157
|
[code: string]: string[];
|
|
154
158
|
};
|
|
155
159
|
currentLotGroup?: string | null;
|
|
160
|
+
displayBoardLotGroup?: string | null | "BLANK";
|
|
156
161
|
nextLotGroup?: string | null;
|
|
157
162
|
/**
|
|
158
163
|
* Auto queue the next lot when the current lot is sold in rostrum
|
|
@@ -166,8 +171,29 @@ export interface Sale {
|
|
|
166
171
|
* Show the display board
|
|
167
172
|
*/
|
|
168
173
|
displayBoard?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* The display board mode (off, live, manual, or focused on a field)
|
|
176
|
+
*/
|
|
177
|
+
displayBoardMode?: DisplayBoardMode;
|
|
169
178
|
martEyeId?: string | null;
|
|
170
179
|
marteyeSettings?: MartEyeTimedSaleSettings | MartEyeLiveSaleSettings | null;
|
|
180
|
+
stats?: {
|
|
181
|
+
lots: {
|
|
182
|
+
count: number;
|
|
183
|
+
sold: number;
|
|
184
|
+
invoiced: number;
|
|
185
|
+
valueInCents: number;
|
|
186
|
+
};
|
|
187
|
+
lotItems: {
|
|
188
|
+
count: number;
|
|
189
|
+
};
|
|
190
|
+
customers: {
|
|
191
|
+
count: number;
|
|
192
|
+
buyers: number;
|
|
193
|
+
sellers: number;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
editedBy?: string[];
|
|
171
197
|
}
|
|
172
198
|
export interface MartEyeLiveSaleSettings {
|
|
173
199
|
description?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marteye/studiojs",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.28",
|
|
4
4
|
"description": "MartEye Studio JavaScript SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
19
|
"require": "./dist/index.js",
|
|
20
|
-
"import": "./dist/index.esm.js"
|
|
20
|
+
"import": "./dist/index.esm.js",
|
|
21
|
+
"types": "./dist/index.d.ts"
|
|
21
22
|
}
|
|
22
23
|
},
|
|
23
24
|
"scripts": {
|