@marteye/studiojs 1.1.35 → 1.1.36
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 +42 -0
- package/dist/index.esm.js +103 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +103 -16
- package/dist/index.js.map +1 -1
- package/dist/resources/invoices.d.ts +24 -0
- package/dist/resources/payments.d.ts +24 -0
- package/dist/resources/payouts.d.ts +24 -0
- package/dist/resources.d.ts +12 -0
- package/dist/studio.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71,7 +71,7 @@ function SimpleHttpClient(baseUrl, apiKey, fetch, defaultTimeout, debug = false)
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// Path: studiojs/src/resources/markets.ts
|
|
74
|
-
function create$
|
|
74
|
+
function create$g(_) {
|
|
75
75
|
const actions = {
|
|
76
76
|
/***
|
|
77
77
|
* This is used to construct the action from the request body
|
|
@@ -101,7 +101,7 @@ function create$d(_) {
|
|
|
101
101
|
return actions;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
function create$
|
|
104
|
+
function create$f(httpClient) {
|
|
105
105
|
return {
|
|
106
106
|
list: async (marketId) => {
|
|
107
107
|
return httpClient.get(`/${marketId}/adjustments`);
|
|
@@ -115,7 +115,7 @@ function create$c(httpClient) {
|
|
|
115
115
|
/***
|
|
116
116
|
* Bidder applications
|
|
117
117
|
*/
|
|
118
|
-
function create$
|
|
118
|
+
function create$e(httpClient) {
|
|
119
119
|
let applications = {
|
|
120
120
|
/**
|
|
121
121
|
* List applications for a market with optional filtering
|
|
@@ -182,7 +182,7 @@ function create$b(httpClient) {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
// Path: studiojs/src/resources/markets.ts
|
|
185
|
-
function create$
|
|
185
|
+
function create$d(httpClient) {
|
|
186
186
|
let customers = {
|
|
187
187
|
list: async (marketId, lastId) => {
|
|
188
188
|
let params = {};
|
|
@@ -5016,7 +5016,7 @@ const uploadSingleFile = async (input, token) => {
|
|
|
5016
5016
|
};
|
|
5017
5017
|
|
|
5018
5018
|
// Multipart Upload for Media to the MARTEYE Media Service
|
|
5019
|
-
function create$
|
|
5019
|
+
function create$c() {
|
|
5020
5020
|
const files = {
|
|
5021
5021
|
uploadSingleFile: async (input, token) => {
|
|
5022
5022
|
return await uploadSingleFile(input, token);
|
|
@@ -5031,7 +5031,35 @@ function create$9() {
|
|
|
5031
5031
|
return files;
|
|
5032
5032
|
}
|
|
5033
5033
|
|
|
5034
|
-
function create$
|
|
5034
|
+
function create$b(httpClient) {
|
|
5035
|
+
const invoices = {
|
|
5036
|
+
/**
|
|
5037
|
+
* List all invoices for a market with pagination
|
|
5038
|
+
* @param marketId - ID of the market
|
|
5039
|
+
* @param lastId - ID of the last invoice from previous page (for pagination)
|
|
5040
|
+
* @returns Paginated list of invoices
|
|
5041
|
+
*/
|
|
5042
|
+
list: async (marketId, lastId) => {
|
|
5043
|
+
let params = {};
|
|
5044
|
+
if (lastId) {
|
|
5045
|
+
params.lastId = lastId;
|
|
5046
|
+
}
|
|
5047
|
+
return httpClient.get(`/${marketId}/invoices`, params);
|
|
5048
|
+
},
|
|
5049
|
+
/**
|
|
5050
|
+
* Get a specific invoice by ID
|
|
5051
|
+
* @param marketId - ID of the market
|
|
5052
|
+
* @param invoiceId - ID of the invoice to fetch
|
|
5053
|
+
* @returns The invoice details
|
|
5054
|
+
*/
|
|
5055
|
+
get: async (marketId, invoiceId) => {
|
|
5056
|
+
return httpClient.get(`/${marketId}/invoices/${invoiceId}`);
|
|
5057
|
+
},
|
|
5058
|
+
};
|
|
5059
|
+
return invoices;
|
|
5060
|
+
}
|
|
5061
|
+
|
|
5062
|
+
function create$a(httpClient) {
|
|
5035
5063
|
return {
|
|
5036
5064
|
create: async (marketId, saleId, lotId, data) => {
|
|
5037
5065
|
return httpClient.post(`/${marketId}/sales/${saleId}/lots/${lotId}/items`, data);
|
|
@@ -5048,7 +5076,7 @@ function create$8(httpClient) {
|
|
|
5048
5076
|
/**
|
|
5049
5077
|
* Defines the possible status values for a lot in a sale
|
|
5050
5078
|
*/
|
|
5051
|
-
function create$
|
|
5079
|
+
function create$9(httpClient) {
|
|
5052
5080
|
return {
|
|
5053
5081
|
get: async (marketId, saleId, lotId) => {
|
|
5054
5082
|
return httpClient.get(`/${marketId}/sales/${saleId}/lots/${lotId}`);
|
|
@@ -5068,7 +5096,7 @@ function create$7(httpClient) {
|
|
|
5068
5096
|
};
|
|
5069
5097
|
}
|
|
5070
5098
|
|
|
5071
|
-
function create$
|
|
5099
|
+
function create$8(httpClient) {
|
|
5072
5100
|
const markets = {
|
|
5073
5101
|
get: async (marketId) => {
|
|
5074
5102
|
return httpClient.get(`/${marketId}`);
|
|
@@ -5090,6 +5118,62 @@ function create$6(httpClient) {
|
|
|
5090
5118
|
return markets;
|
|
5091
5119
|
}
|
|
5092
5120
|
|
|
5121
|
+
function create$7(httpClient) {
|
|
5122
|
+
const payments = {
|
|
5123
|
+
/**
|
|
5124
|
+
* List all payments for a market with pagination
|
|
5125
|
+
* @param marketId - ID of the market
|
|
5126
|
+
* @param lastId - ID of the last payment from previous page (for pagination)
|
|
5127
|
+
* @returns Paginated list of payments
|
|
5128
|
+
*/
|
|
5129
|
+
list: async (marketId, lastId) => {
|
|
5130
|
+
let params = {};
|
|
5131
|
+
if (lastId) {
|
|
5132
|
+
params.lastId = lastId;
|
|
5133
|
+
}
|
|
5134
|
+
return httpClient.get(`/${marketId}/payments`, params);
|
|
5135
|
+
},
|
|
5136
|
+
/**
|
|
5137
|
+
* Get a specific payment by ID
|
|
5138
|
+
* @param marketId - ID of the market
|
|
5139
|
+
* @param paymentId - ID of the payment to fetch
|
|
5140
|
+
* @returns The payment details
|
|
5141
|
+
*/
|
|
5142
|
+
get: async (marketId, paymentId) => {
|
|
5143
|
+
return httpClient.get(`/${marketId}/payments/${paymentId}`);
|
|
5144
|
+
},
|
|
5145
|
+
};
|
|
5146
|
+
return payments;
|
|
5147
|
+
}
|
|
5148
|
+
|
|
5149
|
+
function create$6(httpClient) {
|
|
5150
|
+
const payouts = {
|
|
5151
|
+
/**
|
|
5152
|
+
* List all payouts for a market with pagination
|
|
5153
|
+
* @param marketId - ID of the market
|
|
5154
|
+
* @param lastId - ID of the last payout from previous page (for pagination)
|
|
5155
|
+
* @returns Paginated list of payouts
|
|
5156
|
+
*/
|
|
5157
|
+
list: async (marketId, lastId) => {
|
|
5158
|
+
let params = {};
|
|
5159
|
+
if (lastId) {
|
|
5160
|
+
params.lastId = lastId;
|
|
5161
|
+
}
|
|
5162
|
+
return httpClient.get(`/${marketId}/payouts`, params);
|
|
5163
|
+
},
|
|
5164
|
+
/**
|
|
5165
|
+
* Get a specific payout by ID
|
|
5166
|
+
* @param marketId - ID of the market
|
|
5167
|
+
* @param payoutId - ID of the payout to fetch
|
|
5168
|
+
* @returns The payout details
|
|
5169
|
+
*/
|
|
5170
|
+
get: async (marketId, payoutId) => {
|
|
5171
|
+
return httpClient.get(`/${marketId}/payouts/${payoutId}`);
|
|
5172
|
+
},
|
|
5173
|
+
};
|
|
5174
|
+
return payouts;
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5093
5177
|
function create$5(httpClient) {
|
|
5094
5178
|
return {
|
|
5095
5179
|
list: async (marketId) => {
|
|
@@ -5190,20 +5274,23 @@ function create(_) {
|
|
|
5190
5274
|
|
|
5191
5275
|
function resources(httpClient) {
|
|
5192
5276
|
return {
|
|
5193
|
-
markets: create$
|
|
5277
|
+
markets: create$8(httpClient),
|
|
5194
5278
|
sales: create$4(httpClient),
|
|
5195
|
-
lots: create$
|
|
5196
|
-
lotitems: create$
|
|
5279
|
+
lots: create$9(httpClient),
|
|
5280
|
+
lotitems: create$a(httpClient),
|
|
5197
5281
|
webhooks: create(),
|
|
5198
|
-
actions: create$
|
|
5199
|
-
bidderApplications: create$
|
|
5282
|
+
actions: create$g(),
|
|
5283
|
+
bidderApplications: create$e(httpClient),
|
|
5200
5284
|
settings: create$2(httpClient),
|
|
5201
|
-
adjustments: create$
|
|
5285
|
+
adjustments: create$f(httpClient),
|
|
5202
5286
|
productCodes: create$5(httpClient),
|
|
5203
5287
|
taxRates: create$1(httpClient),
|
|
5204
|
-
customers: create$
|
|
5288
|
+
customers: create$d(httpClient),
|
|
5289
|
+
invoices: create$b(httpClient),
|
|
5290
|
+
payments: create$7(httpClient),
|
|
5291
|
+
payouts: create$6(httpClient),
|
|
5205
5292
|
search: create$3(httpClient),
|
|
5206
|
-
files: create$
|
|
5293
|
+
files: create$c(),
|
|
5207
5294
|
};
|
|
5208
5295
|
}
|
|
5209
5296
|
|