@marteye/studiojs 1.1.48 → 1.1.49-beta.0
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/README.md +23 -101
- package/dist/index.common.d.ts +1 -0
- package/dist/index.d.ts +644 -259
- package/dist/index.esm.js +1158 -747
- package/dist/index.js +1172 -746
- package/dist/media-crate-client.d.ts +285 -0
- package/dist/net/http.d.ts +3 -3
- package/dist/resources/actions.d.ts +0 -1
- package/dist/resources/customerLists.d.ts +17 -1
- package/dist/resources/payouts.d.ts +4 -0
- package/dist/resources/productCodes.d.ts +5 -1
- package/dist/resources/webhooks.d.ts +0 -1
- package/dist/resources.d.ts +128 -127
- package/dist/studio.d.ts +128 -127
- package/dist/types.d.ts +48 -1
- package/package.json +1 -1
package/dist/resources.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { HttpClient } from "./net/http";
|
|
3
2
|
export default function resources(httpClient: HttpClient): {
|
|
4
3
|
activity: {
|
|
5
|
-
list: (marketId: string, params?: import("./resources/activity").ActivityListParams
|
|
4
|
+
list: (marketId: string, params?: import("./resources/activity").ActivityListParams) => Promise<import("./resources/activity").ActivityListResponse>;
|
|
6
5
|
get: (marketId: string, activityId: string) => Promise<import("./types").ActivityLog>;
|
|
7
6
|
};
|
|
8
7
|
broadcast: {
|
|
@@ -10,17 +9,17 @@ export default function resources(httpClient: HttpClient): {
|
|
|
10
9
|
get: (marketId: string, type: import("./types").BroadcastType, taskId: string) => Promise<import("./types").BroadcastTask>;
|
|
11
10
|
};
|
|
12
11
|
markets: {
|
|
13
|
-
get: (marketId: string, options?: import("./types").ReadOptions
|
|
12
|
+
get: (marketId: string, options?: import("./types").ReadOptions) => Promise<import("./types").Market>;
|
|
14
13
|
};
|
|
15
14
|
members: {
|
|
16
|
-
list: (marketId: string, params?: import("./resources/members").MembersListParams
|
|
15
|
+
list: (marketId: string, params?: import("./resources/members").MembersListParams) => Promise<import("./resources/members").MembersListResponse>;
|
|
17
16
|
get: (marketId: string, memberId: string) => Promise<import("./resources/members").Member>;
|
|
18
17
|
};
|
|
19
18
|
sales: {
|
|
20
|
-
get: (marketId: string, saleId: string, options?: import("./types").ReadOptions
|
|
19
|
+
get: (marketId: string, saleId: string, options?: import("./types").ReadOptions) => Promise<import("./types").Sale>;
|
|
21
20
|
list: (marketId: string, opts: {
|
|
22
|
-
start?: string
|
|
23
|
-
end?: string
|
|
21
|
+
start?: string;
|
|
22
|
+
end?: string;
|
|
24
23
|
}) => Promise<{
|
|
25
24
|
start: string;
|
|
26
25
|
end: string;
|
|
@@ -30,128 +29,128 @@ export default function resources(httpClient: HttpClient): {
|
|
|
30
29
|
name: string;
|
|
31
30
|
startsAt: string;
|
|
32
31
|
availableProductCodes: string[];
|
|
33
|
-
recurring?: "Weekly" | "Bi-weekly" | "Monthly"
|
|
34
|
-
martEyeSaleType?: "LIVE" | "TIMED" | null
|
|
35
|
-
location?: string | null
|
|
36
|
-
description?: string | null
|
|
37
|
-
image?: string | null
|
|
38
|
-
cover?: string | null
|
|
39
|
-
templateId?: string | null
|
|
40
|
-
enableLotGrouping?: boolean
|
|
32
|
+
recurring?: null | "Weekly" | "Bi-weekly" | "Monthly";
|
|
33
|
+
martEyeSaleType?: "LIVE" | "TIMED" | null;
|
|
34
|
+
location?: string | null;
|
|
35
|
+
description?: string | null;
|
|
36
|
+
image?: string | null;
|
|
37
|
+
cover?: string | null;
|
|
38
|
+
templateId?: string | null;
|
|
39
|
+
enableLotGrouping?: boolean;
|
|
41
40
|
attributeDefaults?: {
|
|
42
41
|
[attributekey: string]: string | number | boolean;
|
|
43
|
-
}
|
|
42
|
+
};
|
|
44
43
|
}) => Promise<{
|
|
45
44
|
saleId: string;
|
|
46
45
|
}>;
|
|
47
46
|
update: (marketId: string, saleId: string, data: {
|
|
48
|
-
name?: string
|
|
49
|
-
startsAt?: string
|
|
50
|
-
recurring?: "Weekly" | "Bi-weekly" | "Monthly" | null
|
|
51
|
-
defaultProductCode?: string
|
|
52
|
-
attributeDefaults?: Record<string, any
|
|
53
|
-
publishStatus?: import("./types").SalePublishStatus
|
|
54
|
-
enableLotGrouping?: boolean
|
|
47
|
+
name?: string;
|
|
48
|
+
startsAt?: string;
|
|
49
|
+
recurring?: "Weekly" | "Bi-weekly" | "Monthly" | null;
|
|
50
|
+
defaultProductCode?: string;
|
|
51
|
+
attributeDefaults?: Record<string, any>;
|
|
52
|
+
publishStatus?: import("./types").SalePublishStatus;
|
|
53
|
+
enableLotGrouping?: boolean;
|
|
55
54
|
marteyeSettings?: {
|
|
56
|
-
description?: string
|
|
57
|
-
image?: string
|
|
58
|
-
logo?: string
|
|
55
|
+
description?: string;
|
|
56
|
+
image?: string;
|
|
57
|
+
logo?: string;
|
|
59
58
|
type: "LIVE" | "TIMED";
|
|
60
|
-
location?: string | null
|
|
61
|
-
descriptionLines?: string[]
|
|
62
|
-
descriptionLink?: string
|
|
63
|
-
deposit?: number
|
|
64
|
-
hidePrices?: boolean
|
|
65
|
-
hideReplay?: boolean
|
|
66
|
-
labels?: string[]
|
|
67
|
-
tags?: string[]
|
|
68
|
-
details?: {
|
|
59
|
+
location?: string | null;
|
|
60
|
+
descriptionLines?: string[];
|
|
61
|
+
descriptionLink?: string;
|
|
62
|
+
deposit?: number;
|
|
63
|
+
hidePrices?: boolean;
|
|
64
|
+
hideReplay?: boolean;
|
|
65
|
+
labels?: string[];
|
|
66
|
+
tags?: string[];
|
|
67
|
+
details?: Array<{
|
|
69
68
|
markdownBase64: string;
|
|
70
69
|
title: string;
|
|
71
|
-
}
|
|
72
|
-
cover?: string
|
|
73
|
-
primaryColour?: string
|
|
74
|
-
secondaryColour?: string
|
|
75
|
-
foregroundColour?: string
|
|
76
|
-
extensionTime?: number
|
|
77
|
-
incrementLadder?: {
|
|
70
|
+
}>;
|
|
71
|
+
cover?: string;
|
|
72
|
+
primaryColour?: string;
|
|
73
|
+
secondaryColour?: string;
|
|
74
|
+
foregroundColour?: string;
|
|
75
|
+
extensionTime?: number;
|
|
76
|
+
incrementLadder?: Array<{
|
|
78
77
|
max: number;
|
|
79
78
|
increment: number;
|
|
80
|
-
}
|
|
81
|
-
hideNav?: boolean
|
|
82
|
-
signInOverrideLink?: string
|
|
83
|
-
published?: boolean
|
|
84
|
-
pin?: boolean
|
|
85
|
-
cascade?: boolean
|
|
86
|
-
reportEmail?: string
|
|
87
|
-
queueLots?: boolean
|
|
88
|
-
markSubjectLotsAsSold?: boolean
|
|
89
|
-
} | null
|
|
79
|
+
}>;
|
|
80
|
+
hideNav?: boolean;
|
|
81
|
+
signInOverrideLink?: string;
|
|
82
|
+
published?: boolean;
|
|
83
|
+
pin?: boolean;
|
|
84
|
+
cascade?: boolean;
|
|
85
|
+
reportEmail?: string;
|
|
86
|
+
queueLots?: boolean;
|
|
87
|
+
markSubjectLotsAsSold?: boolean;
|
|
88
|
+
} | null;
|
|
90
89
|
}) => Promise<import("./types").Sale>;
|
|
91
90
|
};
|
|
92
91
|
lots: {
|
|
93
|
-
get: (marketId: string, saleId: string, lotId: string, options?: import("./types").ReadOptions
|
|
92
|
+
get: (marketId: string, saleId: string, lotId: string, options?: import("./types").ReadOptions) => Promise<import("./types").Lot>;
|
|
94
93
|
list: (marketId: string, saleId: string, filters?: {
|
|
95
|
-
group?: string
|
|
96
|
-
productCode?: string
|
|
97
|
-
saleStatus?: import("./types").LotSaleStatus
|
|
98
|
-
sellerCustomerId?: string
|
|
99
|
-
buyerCustomerId?: string
|
|
100
|
-
}
|
|
94
|
+
group?: string;
|
|
95
|
+
productCode?: string;
|
|
96
|
+
saleStatus?: import("./types").LotSaleStatus;
|
|
97
|
+
sellerCustomerId?: string;
|
|
98
|
+
buyerCustomerId?: string;
|
|
99
|
+
}) => Promise<import("./types").Lot[]>;
|
|
101
100
|
create: (marketId: string, saleId: string, data: {
|
|
102
|
-
index?: number
|
|
103
|
-
lotNumber?: string
|
|
104
|
-
group?: string
|
|
105
|
-
productCode?: string
|
|
106
|
-
sellerCustomerId?: string
|
|
107
|
-
attributes?: Record<string, any
|
|
108
|
-
metadata?: Record<string, any
|
|
109
|
-
buyerCustomerId?: string
|
|
110
|
-
unitPriceInCents?: number
|
|
111
|
-
reservePriceInCents?: number
|
|
112
|
-
startingPriceInCents?: number
|
|
113
|
-
startAt?: string
|
|
114
|
-
endAt?: string
|
|
115
|
-
previousLotNumber?: string
|
|
116
|
-
saleStatus?: import("./types").LotSaleStatus
|
|
101
|
+
index?: number;
|
|
102
|
+
lotNumber?: string;
|
|
103
|
+
group?: string;
|
|
104
|
+
productCode?: string;
|
|
105
|
+
sellerCustomerId?: string;
|
|
106
|
+
attributes?: Record<string, any>;
|
|
107
|
+
metadata?: Record<string, any>;
|
|
108
|
+
buyerCustomerId?: string;
|
|
109
|
+
unitPriceInCents?: number;
|
|
110
|
+
reservePriceInCents?: number;
|
|
111
|
+
startingPriceInCents?: number;
|
|
112
|
+
startAt?: string;
|
|
113
|
+
endAt?: string;
|
|
114
|
+
previousLotNumber?: string;
|
|
115
|
+
saleStatus?: import("./types").LotSaleStatus;
|
|
117
116
|
}) => Promise<import("./types").Lot>;
|
|
118
117
|
update: (marketId: string, saleId: string, lotId: string, data: {
|
|
119
|
-
productCode?: string
|
|
120
|
-
attributes?: Record<string, any
|
|
121
|
-
sellerCasual?: string | null
|
|
122
|
-
sellerCustomerId?: string | null
|
|
123
|
-
lotNumber?: string | null
|
|
124
|
-
remarks?: string
|
|
125
|
-
notes?: string
|
|
126
|
-
unitOfSale?: "Per KG" | "Per Item" | "Per Lot" | "Per 1000KG"
|
|
127
|
-
unitPriceInCents?: number
|
|
128
|
-
reservePriceInCents?: number
|
|
129
|
-
startingPriceInCents?: number
|
|
130
|
-
buyerCasual?: string | null
|
|
131
|
-
buyerCustomerId?: string | null
|
|
132
|
-
startAt?: string | null
|
|
133
|
-
endAt?: string | null
|
|
134
|
-
saleStatus?: import("./types").LotSaleStatus
|
|
135
|
-
metadata?: Record<string, any
|
|
136
|
-
inputAccessories?: Record<string, any
|
|
118
|
+
productCode?: string;
|
|
119
|
+
attributes?: Record<string, any>;
|
|
120
|
+
sellerCasual?: string | null;
|
|
121
|
+
sellerCustomerId?: string | null;
|
|
122
|
+
lotNumber?: string | null;
|
|
123
|
+
remarks?: string;
|
|
124
|
+
notes?: string;
|
|
125
|
+
unitOfSale?: "Per KG" | "Per Item" | "Per Lot" | "Per 1000KG";
|
|
126
|
+
unitPriceInCents?: number;
|
|
127
|
+
reservePriceInCents?: number;
|
|
128
|
+
startingPriceInCents?: number;
|
|
129
|
+
buyerCasual?: string | null;
|
|
130
|
+
buyerCustomerId?: string | null;
|
|
131
|
+
startAt?: string | null;
|
|
132
|
+
endAt?: string | null;
|
|
133
|
+
saleStatus?: import("./types").LotSaleStatus;
|
|
134
|
+
metadata?: Record<string, any>;
|
|
135
|
+
inputAccessories?: Record<string, any>;
|
|
137
136
|
}) => Promise<import("./types").Lot>;
|
|
138
137
|
delete: (marketId: string, saleId: string, lotId: string) => Promise<unknown>;
|
|
139
138
|
deletePreflight: (marketId: string, saleId: string, lotId: string) => Promise<import("./types").LotDeletePreflightResponse>;
|
|
140
139
|
deletePreflightBatch: (marketId: string, saleId: string, lotIds: string[]) => Promise<import("./types").DeleteLotsResponse>;
|
|
141
|
-
deleteBatch: (marketId: string, saleId: string, lotIds: string[], confirmedLotIds?: string[]
|
|
140
|
+
deleteBatch: (marketId: string, saleId: string, lotIds: string[], confirmedLotIds?: string[]) => Promise<import("./types").DeleteLotsResponse>;
|
|
142
141
|
};
|
|
143
142
|
lotitems: {
|
|
144
143
|
create: (marketId: string, saleId: string, lotId: string, data: {
|
|
145
|
-
attributes?: Record<string, any
|
|
146
|
-
notes?: {
|
|
144
|
+
attributes?: Record<string, any>;
|
|
145
|
+
notes?: Array<{
|
|
147
146
|
text: string;
|
|
148
|
-
}
|
|
149
|
-
metadata?: Record<string, any
|
|
147
|
+
}>;
|
|
148
|
+
metadata?: Record<string, any>;
|
|
150
149
|
}) => Promise<import("./types").LotItem>;
|
|
151
150
|
update: (marketId: string, saleId: string, lotId: string, itemId: string, data: {
|
|
152
|
-
attributes?: Record<string, any
|
|
153
|
-
index?: number
|
|
154
|
-
metadata?: Record<string, any
|
|
151
|
+
attributes?: Record<string, any>;
|
|
152
|
+
index?: number;
|
|
153
|
+
metadata?: Record<string, any>;
|
|
155
154
|
}) => Promise<import("./types").LotItem>;
|
|
156
155
|
delete: (marketId: string, saleId: string, lotId: string, itemId: string) => Promise<unknown>;
|
|
157
156
|
};
|
|
@@ -164,27 +163,27 @@ export default function resources(httpClient: HttpClient): {
|
|
|
164
163
|
lookup: (marketId: string, cph: string) => Promise<import("./types").CphLookupResponse>;
|
|
165
164
|
};
|
|
166
165
|
webhooks: {
|
|
167
|
-
constructEvent: <T extends unknown>(bodyAsBuffer: Buffer, signature: string |
|
|
166
|
+
constructEvent: <T extends unknown>(bodyAsBuffer: Buffer, signature: string | undefined | null, endpointSecret: string | undefined | null) => Promise<import("./types").WebhookEvent<T>>;
|
|
168
167
|
};
|
|
169
168
|
actions: {
|
|
170
169
|
constructAction: (bodyAsBuffer: Buffer, signature: string, endpointSecret: string) => Promise<any>;
|
|
171
170
|
};
|
|
172
171
|
bidderApplications: {
|
|
173
|
-
list: (marketId: string, options?: import("./resources/bidderApplications").ListApplicationsOptions
|
|
172
|
+
list: (marketId: string, options?: import("./resources/bidderApplications").ListApplicationsOptions) => Promise<import("./resources/bidderApplications").ListApplicationsResponse>;
|
|
174
173
|
get: (marketId: string, applicationId: string) => Promise<import("./types").Application>;
|
|
175
174
|
create: (marketId: string, applicationData: import("./resources/bidderApplications").CreateApplicationPayload) => Promise<import("./types").Application>;
|
|
176
175
|
update: (marketId: string, applicationId: string, updateData: import("./resources/bidderApplications").UpdateApplicationPayload) => Promise<import("./types").Application>;
|
|
177
|
-
approve: (marketId: string, applicationId: string, notes?: string
|
|
178
|
-
reject: (marketId: string, applicationId: string, notes?: string
|
|
176
|
+
approve: (marketId: string, applicationId: string, notes?: string) => Promise<import("./types").Application>;
|
|
177
|
+
reject: (marketId: string, applicationId: string, notes?: string) => Promise<import("./types").Application>;
|
|
179
178
|
unlink: (marketId: string, applicationId: string) => Promise<import("./types").Application>;
|
|
180
179
|
delete: (marketId: string, applicationId: string) => Promise<void>;
|
|
181
180
|
};
|
|
182
181
|
settings: {
|
|
183
|
-
get: (marketId: string, options?: import("./types").ReadOptions
|
|
182
|
+
get: (marketId: string, options?: import("./types").ReadOptions) => Promise<import("./types").SettingsMarketDefaults>;
|
|
184
183
|
};
|
|
185
184
|
adjustments: {
|
|
186
185
|
list: (marketId: string) => Promise<import("./types").AdjustmentsConfiguration[]>;
|
|
187
|
-
get: (marketId: string, id: string, options?: import("./types").ReadOptions
|
|
186
|
+
get: (marketId: string, id: string, options?: import("./types").ReadOptions) => Promise<import("./types").AdjustmentsConfiguration>;
|
|
188
187
|
create: (marketId: string, data: Partial<import("./types").AdjustmentsConfiguration>) => Promise<import("./types").AdjustmentsConfiguration>;
|
|
189
188
|
update: (marketId: string, id: string, data: Partial<import("./types").AdjustmentsConfiguration>) => Promise<import("./types").AdjustmentsConfiguration>;
|
|
190
189
|
};
|
|
@@ -195,8 +194,10 @@ export default function resources(httpClient: HttpClient): {
|
|
|
195
194
|
update: (marketId: string, id: string, data: import("./resources/extras").UpdateExtraPayload) => Promise<import("./types").Product>;
|
|
196
195
|
};
|
|
197
196
|
productCodes: {
|
|
198
|
-
list: (marketId: string
|
|
199
|
-
|
|
197
|
+
list: (marketId: string, options?: {
|
|
198
|
+
includeArchived?: boolean;
|
|
199
|
+
}) => Promise<import("./types").ProductCodeConfiguration[]>;
|
|
200
|
+
get: (marketId: string, id: string, options?: import("./types").ReadOptions) => Promise<import("./types").ProductCodeConfiguration>;
|
|
200
201
|
create: (marketId: string, data: Partial<import("./types").ProductCodeConfiguration>) => Promise<import("./types").ProductCodeConfiguration>;
|
|
201
202
|
update: (marketId: string, id: string, data: Partial<import("./types").ProductCodeConfiguration>) => Promise<import("./types").ProductCodeConfiguration>;
|
|
202
203
|
};
|
|
@@ -210,13 +211,13 @@ export default function resources(httpClient: HttpClient): {
|
|
|
210
211
|
create: (marketId: string, body: {
|
|
211
212
|
saleId: string;
|
|
212
213
|
name: string;
|
|
213
|
-
description?: string | null
|
|
214
|
+
description?: string | null;
|
|
214
215
|
}) => Promise<{
|
|
215
216
|
templateId: string;
|
|
216
217
|
}>;
|
|
217
218
|
update: (marketId: string, templateId: string, body: {
|
|
218
|
-
name?: string
|
|
219
|
-
description?: string | null
|
|
219
|
+
name?: string;
|
|
220
|
+
description?: string | null;
|
|
220
221
|
}) => Promise<{
|
|
221
222
|
template: import("./types").SaleTemplate;
|
|
222
223
|
}>;
|
|
@@ -229,8 +230,8 @@ export default function resources(httpClient: HttpClient): {
|
|
|
229
230
|
get: (marketId: string, id: string) => Promise<import("./types").TaxRate>;
|
|
230
231
|
};
|
|
231
232
|
customers: {
|
|
232
|
-
list: (marketId: string, lastId?: string | null
|
|
233
|
-
get: (marketId: string, customerId: string, options?: import("./types").ReadOptions
|
|
233
|
+
list: (marketId: string, lastId?: string | null) => Promise<import("./resources/customers").CustomersListResponse>;
|
|
234
|
+
get: (marketId: string, customerId: string, options?: import("./types").ReadOptions) => Promise<import("./types").Customer>;
|
|
234
235
|
avatar: (marketId: string, customerId: string) => Promise<import("./types").Customer>;
|
|
235
236
|
create: (marketId: string, customerData: import("./resources/customers").CreateCustomerPayload) => Promise<import("./types").Customer>;
|
|
236
237
|
update: (marketId: string, customerId: string, customerData: import("./resources/customers").UpdateCustomerPayload) => Promise<import("./types").Customer>;
|
|
@@ -238,32 +239,32 @@ export default function resources(httpClient: HttpClient): {
|
|
|
238
239
|
getByMartEyeUid: (marketId: string, marteyeUid: string) => Promise<import("./types").Customer | null>;
|
|
239
240
|
};
|
|
240
241
|
customerLists: {
|
|
241
|
-
list: (marketId: string, options?: import("./resources/customerLists").CustomerListsListOptions
|
|
242
|
-
listAll: (marketId: string, options?: Omit<import("./resources/customerLists").CustomerListsListOptions, "offset">
|
|
242
|
+
list: (marketId: string, options?: import("./resources/customerLists").CustomerListsListOptions) => Promise<import("./resources/customerLists").CustomerListsListResponse>;
|
|
243
|
+
listAll: (marketId: string, options?: Omit<import("./resources/customerLists").CustomerListsListOptions, "offset">) => Promise<import("./resources/customerLists").CustomerList[]>;
|
|
243
244
|
get: (marketId: string, listId: string) => Promise<import("./resources/customerLists").CustomerList>;
|
|
244
245
|
getBySlug: (marketId: string, slug: string) => Promise<import("./resources/customerLists").CustomerList>;
|
|
245
246
|
create: (marketId: string, payload: import("./resources/customerLists").CreateCustomerListPayload) => Promise<import("./resources/customerLists").CustomerList>;
|
|
246
247
|
update: (marketId: string, listId: string, payload: import("./resources/customerLists").UpdateCustomerListPayload) => Promise<import("./resources/customerLists").CustomerList>;
|
|
247
248
|
delete: (marketId: string, listId: string) => Promise<import("./resources/customerLists").CustomerListDeleteResponse>;
|
|
248
249
|
refresh: (marketId: string, listId: string) => Promise<import("./resources/customerLists").CustomerListRefreshResponse>;
|
|
249
|
-
getMembers: (marketId: string, listId: string, options?: import("./resources/customerLists").CustomerListMembersOptions
|
|
250
|
-
getAllMembers: (marketId: string, listId: string, options?: Omit<import("./resources/customerLists").CustomerListMembersOptions, "offset">
|
|
250
|
+
getMembers: (marketId: string, listId: string, options?: import("./resources/customerLists").CustomerListMembersOptions) => Promise<import("./resources/customerLists").CustomerListMembersResponse>;
|
|
251
|
+
getAllMembers: (marketId: string, listId: string, options?: Omit<import("./resources/customerLists").CustomerListMembersOptions, "offset">) => Promise<import("./resources/customerLists").CustomerListMember[]>;
|
|
251
252
|
addMembers: (marketId: string, listId: string, customerIds: string[]) => Promise<import("./resources/customerLists").CustomerListAddMembersResponse>;
|
|
252
253
|
removeMember: (marketId: string, listId: string, customerId: string) => Promise<import("./resources/customerLists").CustomerListRemoveMemberResponse>;
|
|
253
254
|
preview: (marketId: string, filters: import("./resources/customerLists").CustomerListFilters) => Promise<import("./resources/customerLists").CustomerListPreviewResponse>;
|
|
254
255
|
listProductCodes: (marketId: string) => Promise<import("./resources/customerLists").CustomerListProductCodesResponse>;
|
|
255
|
-
view: (marketId: string, listIdOrSlug: string, options?: import("./resources/customerLists").CustomerListViewOptions
|
|
256
|
+
view: (marketId: string, listIdOrSlug: string, options?: import("./resources/customerLists").CustomerListViewOptions) => Promise<import("./resources/customerLists").CustomerListViewResult>;
|
|
256
257
|
};
|
|
257
258
|
invoices: {
|
|
258
|
-
list: (marketId: string, lastId?: string | null
|
|
259
|
-
get: (marketId: string, invoiceId: string, options?: import("./types").ReadOptions
|
|
259
|
+
list: (marketId: string, lastId?: string | null) => Promise<import("./resources/invoices").InvoicesListResponse>;
|
|
260
|
+
get: (marketId: string, invoiceId: string, options?: import("./types").ReadOptions) => Promise<import("./types").Invoice>;
|
|
260
261
|
};
|
|
261
262
|
payments: {
|
|
262
|
-
list: (marketId: string, lastId?: string | null
|
|
263
|
+
list: (marketId: string, lastId?: string | null) => Promise<import("./resources/payments").PaymentsListResponse>;
|
|
263
264
|
get: (marketId: string, paymentId: string) => Promise<import("./types").Payment>;
|
|
264
265
|
};
|
|
265
266
|
payouts: {
|
|
266
|
-
list: (marketId: string, lastId?: string | null
|
|
267
|
+
list: (marketId: string, lastId?: string | null) => Promise<import("./resources/payouts").PayoutsListResponse>;
|
|
267
268
|
get: (marketId: string, payoutId: string) => Promise<import("./types").Payout>;
|
|
268
269
|
create: (marketId: string, data: import("./resources/payouts").CreatePayoutRequest) => Promise<import("./resources/payouts").PayoutCreateResponse>;
|
|
269
270
|
};
|
|
@@ -271,11 +272,11 @@ export default function resources(httpClient: HttpClient): {
|
|
|
271
272
|
query: (marketId: string, query: string) => Promise<import("./resources/search").SearchResult>;
|
|
272
273
|
};
|
|
273
274
|
files: {
|
|
274
|
-
uploadSingleFile: (input: import("./utils/multipart-upload").
|
|
275
|
+
uploadSingleFile: (input: Parameters<typeof import("./utils/multipart-upload").uploadSingleFile>[0], token: string) => Promise<{
|
|
275
276
|
message: string;
|
|
276
277
|
data: import("./types").Media;
|
|
277
278
|
}>;
|
|
278
|
-
uploadMultipartFile: (input:
|
|
279
|
+
uploadMultipartFile: (input: Parameters<typeof import("./utils/multipart-upload").uploadMultipartFile>[0], token: string) => Promise<{
|
|
279
280
|
message: string;
|
|
280
281
|
mediaType: string;
|
|
281
282
|
process: import("./utils/multipart-upload").VariantProcessingState;
|
|
@@ -286,9 +287,9 @@ export default function resources(httpClient: HttpClient): {
|
|
|
286
287
|
};
|
|
287
288
|
contacts: {
|
|
288
289
|
list: (marketId: string, customerId: string, params?: {
|
|
289
|
-
lastId?: string
|
|
290
|
-
limit?: number
|
|
291
|
-
}
|
|
290
|
+
lastId?: string;
|
|
291
|
+
limit?: number;
|
|
292
|
+
}) => Promise<import("./resources/contacts").ListContactsResponse>;
|
|
292
293
|
get: (marketId: string, customerId: string, contactId: string) => Promise<import("./types").CustomerContact>;
|
|
293
294
|
create: (marketId: string, customerId: string, payload: import("./resources/contacts").CreateOrUpdateContactPayload) => Promise<import("./types").CustomerContact>;
|
|
294
295
|
update: (marketId: string, customerId: string, contactId: string, payload: import("./resources/contacts").CreateOrUpdateContactPayload) => Promise<import("./types").CustomerContact>;
|