@marteye/studiojs 1.1.47-beta.0 → 1.1.48-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/dist/index.js CHANGED
@@ -55,7 +55,7 @@ function SimpleHttpClient(baseUrl, apiKey, fetch, defaultTimeout, debug = false)
55
55
  if (response.status === 404) {
56
56
  throw new Error(`${baseUrl}${path} not found`);
57
57
  }
58
- throw new Error(`Request failed with status ${response.status}: ${await response.text()}}`);
58
+ throw new Error(`Request failed with status ${response.status}: ${await response.text()}`);
59
59
  }
60
60
  return {
61
61
  get: async (path, queryParams) => {
@@ -77,7 +77,7 @@ function SimpleHttpClient(baseUrl, apiKey, fetch, defaultTimeout, debug = false)
77
77
  }
78
78
 
79
79
  // Path: studiojs/src/resources/markets.ts
80
- function create$q(_) {
80
+ function create$r(_) {
81
81
  const actions = {
82
82
  /***
83
83
  * This is used to construct the action from the request body
@@ -107,7 +107,7 @@ function create$q(_) {
107
107
  return actions;
108
108
  }
109
109
 
110
- function create$p(httpClient) {
110
+ function create$q(httpClient) {
111
111
  let activity = {
112
112
  /**
113
113
  * List activity logs for a market with pagination and filtering
@@ -159,7 +159,7 @@ function create$p(httpClient) {
159
159
  return activity;
160
160
  }
161
161
 
162
- function create$o(httpClient) {
162
+ function create$p(httpClient) {
163
163
  return {
164
164
  list: async (marketId) => {
165
165
  return httpClient.get(`/${marketId}/adjustments`);
@@ -176,7 +176,7 @@ function create$o(httpClient) {
176
176
  };
177
177
  }
178
178
 
179
- function create$n(httpClient) {
179
+ function create$o(httpClient) {
180
180
  return {
181
181
  /**
182
182
  * Get the full cart for a customer including extras and uninvoiced lots
@@ -199,7 +199,7 @@ function create$n(httpClient) {
199
199
  };
200
200
  }
201
201
 
202
- function create$m(httpClient) {
202
+ function create$n(httpClient) {
203
203
  return {
204
204
  list: async (marketId) => {
205
205
  return httpClient.get(`/${marketId}/extras`);
@@ -219,7 +219,7 @@ function create$m(httpClient) {
219
219
  /***
220
220
  * Bidder applications
221
221
  */
222
- function create$l(httpClient) {
222
+ function create$m(httpClient) {
223
223
  let applications = {
224
224
  /**
225
225
  * List applications for a market with optional filtering
@@ -302,6 +302,13 @@ function create$l(httpClient) {
302
302
  return applications;
303
303
  }
304
304
 
305
+ function create$l(httpClient) {
306
+ return {
307
+ send: async (marketId, data) => httpClient.post(`/${marketId}/broadcast/send`, data),
308
+ get: async (marketId, type, taskId) => httpClient.get(`/${marketId}/broadcast/${type}/${taskId}`),
309
+ };
310
+ }
311
+
305
312
  // Path: studiojs/src/resources/markets.ts
306
313
  function create$k(httpClient) {
307
314
  let customers = {
@@ -765,31 +772,25 @@ function buildExcludeFilters(filters) {
765
772
  excludeFilters.push(`productCode = "${filters.excludedProductCodes[0]}"`);
766
773
  }
767
774
  else {
768
- excludeFilters.push(`(${filters.excludedProductCodes
775
+ excludeFilters.push(filters.excludedProductCodes
769
776
  .map((code) => `productCode = "${code}"`)
770
- .join(" OR ")})`);
777
+ .join(" OR "));
771
778
  }
772
779
  }
773
780
  return excludeFilters;
774
781
  }
775
782
  function buildFilterExpression(filters) {
776
- let clauses = [];
783
+ let fixedClauses = [];
784
+ let alternativeGroups = [];
777
785
  if (filters.dateStart)
778
- clauses.push(`saleDate >= "${filters.dateStart}"`);
786
+ fixedClauses.push(`saleDate >= "${filters.dateStart}"`);
779
787
  if (filters.dateEnd)
780
- clauses.push(`saleDate <= "${filters.dateEnd}"`);
788
+ fixedClauses.push(`saleDate <= "${filters.dateEnd}"`);
781
789
  if (filters.productCodes && filters.productCodes.length > 0) {
782
- if (filters.productCodes.length === 1) {
783
- clauses.push(`productCode = "${filters.productCodes[0]}"`);
784
- }
785
- else {
786
- clauses.push(`(${filters.productCodes
787
- .map((code) => `productCode = "${code}"`)
788
- .join(" OR ")})`);
789
- }
790
+ alternativeGroups.push(filters.productCodes.map((code) => `productCode = "${code}"`));
790
791
  }
791
792
  if (filters.boughtOnlineOnly) {
792
- clauses.push(`@boughtOnline = true`);
793
+ fixedClauses.push(`@boughtOnline = true`);
793
794
  }
794
795
  let breedClauses = [];
795
796
  for (let breed of filters.cattleBreeds || []) {
@@ -798,13 +799,18 @@ function buildFilterExpression(filters) {
798
799
  for (let breed of filters.sheepBreeds || []) {
799
800
  breedClauses.push(`breedOfSheep = "${breed}"`);
800
801
  }
801
- if (breedClauses.length === 1) {
802
- clauses.push(breedClauses[0]);
802
+ if (breedClauses.length > 0) {
803
+ alternativeGroups.push(breedClauses);
803
804
  }
804
- else if (breedClauses.length > 1) {
805
- clauses.push(`(${breedClauses.join(" OR ")})`);
805
+ let expandedBranches = alternativeGroups.reduce((branches, alternatives) => branches.flatMap((branch) => alternatives.map((alternative) => [...branch, alternative])), [[]]);
806
+ let expressions = expandedBranches
807
+ .map((branch) => [...fixedClauses, ...branch].filter(Boolean))
808
+ .filter((branch) => branch.length > 0)
809
+ .map((branch) => branch.join(" AND "));
810
+ if (expressions.length === 0) {
811
+ return undefined;
806
812
  }
807
- return clauses.length > 0 ? clauses.join(" AND ") : undefined;
813
+ return expressions.join(" OR ");
808
814
  }
809
815
  async function resolveList(customerLists, marketId, listIdOrSlug, options) {
810
816
  let identifierType = (options === null || options === void 0 ? void 0 : options.identifierType) || "auto";
@@ -5960,6 +5966,43 @@ function create$a(httpClient) {
5960
5966
  }
5961
5967
 
5962
5968
  function create$9(httpClient) {
5969
+ let reports = {
5970
+ getDebtOperationalOverview: async (marketId, options) => {
5971
+ let queryParams = {};
5972
+ if ((options === null || options === void 0 ? void 0 : options.comparisonDays) !== undefined) {
5973
+ queryParams.comparisonDays = options.comparisonDays;
5974
+ }
5975
+ return httpClient.get(`/${marketId}/debt/operational-overview`, queryParams);
5976
+ },
5977
+ getDebtBehavior: async (marketId, options) => {
5978
+ let overview = await reports.getDebtOperationalOverview(marketId, options);
5979
+ return {
5980
+ customers: overview.customers.map((customer) => ({
5981
+ customerId: customer.customerId,
5982
+ displayName: customer.displayName,
5983
+ accountNumber: customer.accountNumber,
5984
+ balanceInCents: customer.balanceInCents,
5985
+ balanceXDaysAgoInCents: customer.balanceXDaysAgoInCents,
5986
+ balanceChangeInCents: customer.balanceChangeInCents,
5987
+ balanceChangePercent: customer.balanceChangePercent,
5988
+ paymentBehavior: customer.paymentBehavior,
5989
+ warningSignCodes: customer.warningSignCodes,
5990
+ warningSignLabels: customer.warningSignLabels,
5991
+ })),
5992
+ };
5993
+ },
5994
+ getDebtProduct: async (marketId, options) => {
5995
+ let queryParams = {};
5996
+ if ((options === null || options === void 0 ? void 0 : options.limit) !== undefined) {
5997
+ queryParams.limit = options.limit;
5998
+ }
5999
+ return httpClient.get(`/${marketId}/debt/outstanding-by-product`, queryParams);
6000
+ },
6001
+ };
6002
+ return reports;
6003
+ }
6004
+
6005
+ function create$8(httpClient) {
5963
6006
  return {
5964
6007
  get: async (marketId, saleId, options) => {
5965
6008
  return httpClient.get(`/${marketId}/sales/${saleId}`, (options === null || options === void 0 ? void 0 : options.at) ? { at: options.at } : undefined);
@@ -5976,7 +6019,7 @@ function create$9(httpClient) {
5976
6019
  };
5977
6020
  }
5978
6021
 
5979
- function create$8(httpClient) {
6022
+ function create$7(httpClient) {
5980
6023
  return {
5981
6024
  list: async (marketId) => {
5982
6025
  return httpClient.get(`/${marketId}/sale-templates`);
@@ -5996,7 +6039,7 @@ function create$8(httpClient) {
5996
6039
  };
5997
6040
  }
5998
6041
 
5999
- function create$7(httpClient) {
6042
+ function create$6(httpClient) {
6000
6043
  let search = {
6001
6044
  /**
6002
6045
  * Search for documents within a market
@@ -6011,7 +6054,7 @@ function create$7(httpClient) {
6011
6054
  return search;
6012
6055
  }
6013
6056
 
6014
- function create$6(httpClient) {
6057
+ function create$5(httpClient) {
6015
6058
  return {
6016
6059
  get: async (marketId, options) => {
6017
6060
  return httpClient.get(`/${marketId}/settings`, (options === null || options === void 0 ? void 0 : options.at) ? { at: options.at } : undefined);
@@ -6019,60 +6062,13 @@ function create$6(httpClient) {
6019
6062
  };
6020
6063
  }
6021
6064
 
6022
- function create$5(httpClient) {
6023
- return {
6024
- list: async (marketId) => {
6025
- return httpClient.get(`/${marketId}/tax_rates`);
6026
- },
6027
- get: async (marketId, id) => {
6028
- return httpClient.get(`/${marketId}/tax_rates/${id}`);
6029
- },
6030
- };
6031
- }
6032
-
6033
- // Path: studiojs/src/resources/markets.ts
6034
- function create$4(_) {
6035
- const webhooks = {
6036
- /***
6037
- * This is used to construct the webhook event from the request body
6038
- * @param body the request body
6039
- * @param signature the signature of the request taken from the header
6040
- * @param endpointSecret the pre-shared secret
6041
- * @returns the webhook event
6042
- */
6043
- constructEvent: async (bodyAsBuffer, signature, endpointSecret) => {
6044
- if (!endpointSecret) {
6045
- throw new Error("Endpoint secret is required");
6046
- }
6047
- if (!signature) {
6048
- throw new Error("Signature is required");
6049
- }
6050
- let bodyText = bodyAsBuffer.toString();
6051
- let expectedSignature = crypto.createHmac("sha256", endpointSecret)
6052
- .update(bodyText)
6053
- .digest("hex");
6054
- if (signature !== expectedSignature) {
6055
- console.error(`Unable to construct event. Signature mismatch.`, signature, "!=", expectedSignature);
6056
- throw new Error(`Unable to construct event. Signature mismatch.`);
6057
- }
6058
- try {
6059
- return JSON.parse(bodyText);
6060
- }
6061
- catch (e) {
6062
- throw new Error(`Unable to construct event. ${e}`);
6063
- }
6064
- },
6065
- };
6066
- return webhooks;
6067
- }
6068
-
6069
- function create$3(httpClient) {
6065
+ function create$4(httpClient) {
6070
6066
  return {
6071
6067
  lookup: async (marketId, cph) => httpClient.get(`/${marketId}/cph`, { cph }),
6072
6068
  };
6073
6069
  }
6074
6070
 
6075
- function create$2(httpClient) {
6071
+ function create$3(httpClient) {
6076
6072
  return {
6077
6073
  list: async (marketId, customerId, params) => {
6078
6074
  const query = {};
@@ -6097,7 +6093,7 @@ function create$2(httpClient) {
6097
6093
  };
6098
6094
  }
6099
6095
 
6100
- function create$1(httpClient) {
6096
+ function create$2(httpClient) {
6101
6097
  let ledger = {
6102
6098
  /**
6103
6099
  * Get the current balance for a ledger account
@@ -6158,42 +6154,83 @@ function create$1(httpClient) {
6158
6154
  return ledger;
6159
6155
  }
6160
6156
 
6161
- function create(httpClient) {
6157
+ function create$1(httpClient) {
6162
6158
  return {
6163
- sendSMS: async (marketId, data) => httpClient.post(`/${marketId}/sms/send`, data),
6164
- getSMS: async (marketId, smsId) => httpClient.get(`/${marketId}/sms/${smsId}`),
6159
+ list: async (marketId) => {
6160
+ return httpClient.get(`/${marketId}/tax_rates`);
6161
+ },
6162
+ get: async (marketId, id) => {
6163
+ return httpClient.get(`/${marketId}/tax_rates/${id}`);
6164
+ },
6165
6165
  };
6166
6166
  }
6167
6167
 
6168
+ // Path: studiojs/src/resources/markets.ts
6169
+ function create(_) {
6170
+ const webhooks = {
6171
+ /***
6172
+ * This is used to construct the webhook event from the request body
6173
+ * @param body the request body
6174
+ * @param signature the signature of the request taken from the header
6175
+ * @param endpointSecret the pre-shared secret
6176
+ * @returns the webhook event
6177
+ */
6178
+ constructEvent: async (bodyAsBuffer, signature, endpointSecret) => {
6179
+ if (!endpointSecret) {
6180
+ throw new Error("Endpoint secret is required");
6181
+ }
6182
+ if (!signature) {
6183
+ throw new Error("Signature is required");
6184
+ }
6185
+ let bodyText = bodyAsBuffer.toString();
6186
+ let expectedSignature = crypto.createHmac("sha256", endpointSecret)
6187
+ .update(bodyText)
6188
+ .digest("hex");
6189
+ if (signature !== expectedSignature) {
6190
+ console.error(`Unable to construct event. Signature mismatch.`, signature, "!=", expectedSignature);
6191
+ throw new Error(`Unable to construct event. Signature mismatch.`);
6192
+ }
6193
+ try {
6194
+ return JSON.parse(bodyText);
6195
+ }
6196
+ catch (e) {
6197
+ throw new Error(`Unable to construct event. ${e}`);
6198
+ }
6199
+ },
6200
+ };
6201
+ return webhooks;
6202
+ }
6203
+
6168
6204
  function resources(httpClient) {
6169
6205
  return {
6170
- activity: create$p(httpClient),
6206
+ activity: create$q(httpClient),
6207
+ broadcast: create$l(httpClient),
6171
6208
  markets: create$e(httpClient),
6172
6209
  members: create$d(httpClient),
6173
- sales: create$9(httpClient),
6210
+ sales: create$8(httpClient),
6174
6211
  lots: create$f(httpClient),
6175
6212
  lotitems: create$g(httpClient),
6176
- carts: create$n(httpClient),
6177
- cph: create$3(httpClient),
6178
- webhooks: create$4(),
6179
- actions: create$q(),
6180
- bidderApplications: create$l(httpClient),
6181
- settings: create$6(httpClient),
6182
- adjustments: create$o(httpClient),
6183
- extras: create$m(httpClient),
6213
+ carts: create$o(httpClient),
6214
+ cph: create$4(httpClient),
6215
+ webhooks: create(),
6216
+ actions: create$r(),
6217
+ bidderApplications: create$m(httpClient),
6218
+ settings: create$5(httpClient),
6219
+ adjustments: create$p(httpClient),
6220
+ extras: create$n(httpClient),
6184
6221
  productCodes: create$a(httpClient),
6185
- saleTemplates: create$8(httpClient),
6186
- taxRates: create$5(httpClient),
6222
+ saleTemplates: create$7(httpClient),
6223
+ taxRates: create$1(httpClient),
6187
6224
  customers: create$k(httpClient),
6188
6225
  customerLists: create$j(httpClient),
6189
6226
  invoices: create$h(httpClient),
6190
6227
  payments: create$c(httpClient),
6191
6228
  payouts: create$b(httpClient),
6192
- search: create$7(httpClient),
6229
+ reports: create$9(httpClient),
6230
+ search: create$6(httpClient),
6193
6231
  files: create$i(),
6194
- contacts: create$2(httpClient),
6195
- ledger: create$1(httpClient),
6196
- sms: create(httpClient),
6232
+ contacts: create$3(httpClient),
6233
+ ledger: create$2(httpClient),
6197
6234
  };
6198
6235
  }
6199
6236
 
@@ -0,0 +1,7 @@
1
+ import { HttpClient } from "../net/http";
2
+ import { BroadcastPayload, BroadcastSendResponse, BroadcastTask, BroadcastType } from "../types";
3
+ export default function create(httpClient: HttpClient): {
4
+ send: (marketId: string, data: BroadcastPayload) => Promise<BroadcastSendResponse>;
5
+ get: (marketId: string, type: BroadcastType, taskId: string) => Promise<BroadcastTask>;
6
+ };
7
+ export type Broadcast = ReturnType<typeof create>;
@@ -0,0 +1,8 @@
1
+ import { HttpClient } from "../net/http";
2
+ import { DebtBehaviorResponse, DebtOperationalOverviewOptions, DebtOperationalOverviewResponse, DebtProductOptions, DebtProductResponse } from "../types";
3
+ export default function create(httpClient: HttpClient): {
4
+ getDebtOperationalOverview: (marketId: string, options?: DebtOperationalOverviewOptions) => Promise<DebtOperationalOverviewResponse>;
5
+ getDebtBehavior: (marketId: string, options?: DebtOperationalOverviewOptions) => Promise<DebtBehaviorResponse>;
6
+ getDebtProduct: (marketId: string, options?: DebtProductOptions) => Promise<DebtProductResponse>;
7
+ };
8
+ export type Reports = ReturnType<typeof create>;
@@ -19,6 +19,7 @@ type CreateSaleRequest = {
19
19
  image?: string | null;
20
20
  cover?: string | null;
21
21
  templateId?: string | null;
22
+ enableLotGrouping?: boolean;
22
23
  attributeDefaults?: {
23
24
  [attributekey: string]: string | number | boolean;
24
25
  };
@@ -37,6 +38,7 @@ export default function create(httpClient: HttpClient): {
37
38
  defaultProductCode?: string;
38
39
  attributeDefaults?: Record<string, any>;
39
40
  publishStatus?: SalePublishStatus;
41
+ enableLotGrouping?: boolean;
40
42
  marteyeSettings?: {
41
43
  description?: string;
42
44
  image?: string;
@@ -5,6 +5,10 @@ export default function resources(httpClient: HttpClient): {
5
5
  list: (marketId: string, params?: import("./resources/activity").ActivityListParams | undefined) => Promise<import("./resources/activity").ActivityListResponse>;
6
6
  get: (marketId: string, activityId: string) => Promise<import("./types").ActivityLog>;
7
7
  };
8
+ broadcast: {
9
+ send: (marketId: string, data: import("./types").BroadcastPayload) => Promise<import("./types").BroadcastSendResponse>;
10
+ get: (marketId: string, type: import("./types").BroadcastType, taskId: string) => Promise<import("./types").BroadcastTask>;
11
+ };
8
12
  markets: {
9
13
  get: (marketId: string, options?: import("./types").ReadOptions | undefined) => Promise<import("./types").Market>;
10
14
  };
@@ -33,6 +37,7 @@ export default function resources(httpClient: HttpClient): {
33
37
  image?: string | null | undefined;
34
38
  cover?: string | null | undefined;
35
39
  templateId?: string | null | undefined;
40
+ enableLotGrouping?: boolean | undefined;
36
41
  attributeDefaults?: {
37
42
  [attributekey: string]: string | number | boolean;
38
43
  } | undefined;
@@ -46,6 +51,7 @@ export default function resources(httpClient: HttpClient): {
46
51
  defaultProductCode?: string | undefined;
47
52
  attributeDefaults?: Record<string, any> | undefined;
48
53
  publishStatus?: import("./types").SalePublishStatus | undefined;
54
+ enableLotGrouping?: boolean | undefined;
49
55
  marteyeSettings?: {
50
56
  description?: string | undefined;
51
57
  image?: string | undefined;
@@ -261,6 +267,11 @@ export default function resources(httpClient: HttpClient): {
261
267
  get: (marketId: string, payoutId: string) => Promise<import("./types").Payout>;
262
268
  create: (marketId: string, data: import("./resources/payouts").CreatePayoutRequest) => Promise<import("./resources/payouts").PayoutCreateResponse>;
263
269
  };
270
+ reports: {
271
+ getDebtOperationalOverview: (marketId: string, options?: import("./types").DebtOperationalOverviewOptions | undefined) => Promise<import("./types").DebtOperationalOverviewResponse>;
272
+ getDebtBehavior: (marketId: string, options?: import("./types").DebtOperationalOverviewOptions | undefined) => Promise<import("./types").DebtBehaviorResponse>;
273
+ getDebtProduct: (marketId: string, options?: import("./types").DebtProductOptions | undefined) => Promise<import("./types").DebtProductResponse>;
274
+ };
264
275
  search: {
265
276
  query: (marketId: string, query: string) => Promise<import("./resources/search").SearchResult>;
266
277
  };
@@ -294,8 +305,4 @@ export default function resources(httpClient: HttpClient): {
294
305
  getLatestTransaction: (marketId: string, account: string) => Promise<import("./resources/ledger").LedgerTransaction>;
295
306
  listTransactions: (marketId: string, params: import("./resources/ledger").ListTransactionsParams) => Promise<import("./resources/ledger").TransactionsListResponse>;
296
307
  };
297
- sms: {
298
- sendSMS: (marketId: string, data: import("./types").SendSMSPayload) => Promise<import("./types").SMSTask>;
299
- getSMS: (marketId: string, smsId: string) => Promise<import("./types").SMSTask>;
300
- };
301
308
  };
package/dist/studio.d.ts CHANGED
@@ -14,6 +14,10 @@ export declare function Studio(info?: {
14
14
  list: (marketId: string, params?: import("./resources/activity").ActivityListParams | undefined) => Promise<import("./resources/activity").ActivityListResponse>;
15
15
  get: (marketId: string, activityId: string) => Promise<import("./types").ActivityLog>;
16
16
  };
17
+ broadcast: {
18
+ send: (marketId: string, data: import("./types").BroadcastPayload) => Promise<import("./types").BroadcastSendResponse>;
19
+ get: (marketId: string, type: import("./types").BroadcastType, taskId: string) => Promise<import("./types").BroadcastTask>;
20
+ };
17
21
  markets: {
18
22
  get: (marketId: string, options?: import("./types").ReadOptions | undefined) => Promise<import("./types").Market>;
19
23
  };
@@ -42,6 +46,7 @@ export declare function Studio(info?: {
42
46
  image?: string | null | undefined;
43
47
  cover?: string | null | undefined;
44
48
  templateId?: string | null | undefined;
49
+ enableLotGrouping?: boolean | undefined;
45
50
  attributeDefaults?: {
46
51
  [attributekey: string]: string | number | boolean;
47
52
  } | undefined;
@@ -55,6 +60,7 @@ export declare function Studio(info?: {
55
60
  defaultProductCode?: string | undefined;
56
61
  attributeDefaults?: Record<string, any> | undefined;
57
62
  publishStatus?: import("./types").SalePublishStatus | undefined;
63
+ enableLotGrouping?: boolean | undefined;
58
64
  marteyeSettings?: {
59
65
  description?: string | undefined;
60
66
  image?: string | undefined;
@@ -270,6 +276,11 @@ export declare function Studio(info?: {
270
276
  get: (marketId: string, payoutId: string) => Promise<import("./types").Payout>;
271
277
  create: (marketId: string, data: import("./resources/payouts").CreatePayoutRequest) => Promise<import("./resources/payouts").PayoutCreateResponse>;
272
278
  };
279
+ reports: {
280
+ getDebtOperationalOverview: (marketId: string, options?: import("./types").DebtOperationalOverviewOptions | undefined) => Promise<import("./types").DebtOperationalOverviewResponse>;
281
+ getDebtBehavior: (marketId: string, options?: import("./types").DebtOperationalOverviewOptions | undefined) => Promise<import("./types").DebtBehaviorResponse>;
282
+ getDebtProduct: (marketId: string, options?: import("./types").DebtProductOptions | undefined) => Promise<import("./types").DebtProductResponse>;
283
+ };
273
284
  search: {
274
285
  query: (marketId: string, query: string) => Promise<import("./resources/search").SearchResult>;
275
286
  };
@@ -303,8 +314,4 @@ export declare function Studio(info?: {
303
314
  getLatestTransaction: (marketId: string, account: string) => Promise<import("./resources/ledger").LedgerTransaction>;
304
315
  listTransactions: (marketId: string, params: import("./resources/ledger").ListTransactionsParams) => Promise<import("./resources/ledger").TransactionsListResponse>;
305
316
  };
306
- sms: {
307
- sendSMS: (marketId: string, data: import("./types").SendSMSPayload) => Promise<import("./types").SMSTask>;
308
- getSMS: (marketId: string, smsId: string) => Promise<import("./types").SMSTask>;
309
- };
310
317
  };