@shoplygg/node 0.11.4 → 0.11.5

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.
@@ -615,6 +615,7 @@ export type AnalyticsOverviewResult = {
615
615
  inProgress: boolean;
616
616
  };
617
617
  currencyCode: string;
618
+ otherCurrencies: unknown[] | Record<string, unknown>;
618
619
  totals: {
619
620
  revenue: number;
620
621
  orders: number;
@@ -4420,6 +4421,7 @@ export type OrdersShowResult = {
4420
4421
  customerTotals: {
4421
4422
  totalOrders: number;
4422
4423
  totalSpend: number;
4424
+ otherSpend: unknown[] | Record<string, unknown>;
4423
4425
  paidOrders: number;
4424
4426
  };
4425
4427
  customerOrders: {
@@ -6454,6 +6456,7 @@ export type CustomersListItem = {
6454
6456
  dateCreated: string;
6455
6457
  totalOrders: number;
6456
6458
  totalSpend: number;
6459
+ otherSpend: unknown[] | Record<string, unknown>;
6457
6460
  paidOrders: number;
6458
6461
  lastOrderAt: unknown;
6459
6462
  balance: number;
@@ -6479,6 +6482,7 @@ export type CustomersCreateResult = {
6479
6482
  dateCreated: string;
6480
6483
  totalOrders: number;
6481
6484
  totalSpend: number;
6485
+ otherSpend: unknown[] | Record<string, unknown>;
6482
6486
  paidOrders: number;
6483
6487
  lastOrderAt: unknown;
6484
6488
  balance: number;
@@ -6585,7 +6589,9 @@ export type CustomersShowResult = {
6585
6589
  dateCreated: string;
6586
6590
  totalOrders: number;
6587
6591
  totalSpend: number;
6592
+ otherSpend: unknown[] | Record<string, unknown>;
6588
6593
  paidOrders: number;
6594
+ paidInCurrency: number;
6589
6595
  lastOrderAt: unknown;
6590
6596
  currencyCode: string;
6591
6597
  ordersTruncated: boolean;
@@ -6820,7 +6826,7 @@ export type CustomerTagsCreateResult = {
6820
6826
  export interface CustomerTagsAutomaticParams {
6821
6827
  /** Whether VIP is put on. */
6822
6828
  vipOn?: boolean;
6823
- /** A VIP has spent at least this, in the store's currency, on completed orders. 0 leaves it out. */
6829
+ /** A VIP has spent at least this on completed orders in the store's currency today, as `totalSpend` counts it: what a buyer paid in another is not counted. 0 leaves it out. */
6824
6830
  vipSpent?: number;
6825
6831
  /** Or paid for at least this many orders. 0 leaves it out. */
6826
6832
  vipOrders?: number;
@@ -7851,7 +7857,7 @@ export interface ResellerProductsBadgesParams {
7851
7857
 
7852
7858
  /** What set a product's status and labels on the panel answers: `resellerProducts.badges`. */
7853
7859
  export type ResellerProductsBadgesResult = {
7854
- "5553d50f-7e0b-405b-9a29-b30b84627a91": {
7860
+ "7502259b-6fc7-41f3-9052-c8675b99433a": {
7855
7861
  label: string;
7856
7862
  color: string;
7857
7863
  kind: string;
@@ -9561,6 +9567,11 @@ export type FinanceProfitResult = {
9561
9567
  profit: unknown;
9562
9568
  costSet: string;
9563
9569
  }[];
9570
+ otherCurrencies: unknown[] | Record<string, unknown>;
9571
+ unknownExpenses: {
9572
+ count: number;
9573
+ total: number;
9574
+ };
9564
9575
  };
9565
9576
 
9566
9577
  /** What get the books takes: `finance.accounting`. */
@@ -9622,6 +9633,11 @@ export type FinanceAccountingResult = {
9622
9633
  orders: number;
9623
9634
  expenses: number;
9624
9635
  };
9636
+ others: unknown[] | Record<string, unknown>;
9637
+ unknownExpenses: {
9638
+ count: number;
9639
+ total: number;
9640
+ };
9625
9641
  countries: {
9626
9642
  country: string;
9627
9643
  name: string;
@@ -9639,9 +9655,11 @@ export type FinanceAccountingResult = {
9639
9655
  net: number;
9640
9656
  }[];
9641
9657
  taxReport: {
9658
+ currency: string;
9642
9659
  rows: unknown[] | Record<string, unknown>;
9643
9660
  taxable: number;
9644
9661
  tax: number;
9662
+ others: unknown[] | Record<string, unknown>;
9645
9663
  };
9646
9664
  };
9647
9665
 
@@ -10914,6 +10932,7 @@ export type ExpensesListResult = {
10914
10932
  method: string;
10915
10933
  reference: string;
10916
10934
  amount: number;
10935
+ currency: string;
10917
10936
  entered: unknown;
10918
10937
  productId: unknown;
10919
10938
  recurring: boolean;
@@ -10961,6 +10980,7 @@ export type ExpensesCreateResult = {
10961
10980
  method: string;
10962
10981
  reference: string;
10963
10982
  amount: number;
10983
+ currency: string;
10964
10984
  entered: unknown;
10965
10985
  productId: unknown;
10966
10986
  recurring: boolean;
@@ -10998,9 +11018,11 @@ export type ExpensesSummaryResult = {
10998
11018
  };
10999
11019
  spent: number;
11000
11020
  previous: number;
11021
+ otherCurrencies: unknown[] | Record<string, unknown>;
11001
11022
  recurring: {
11002
11023
  count: number;
11003
11024
  monthly: number;
11025
+ others: unknown[] | Record<string, unknown>;
11004
11026
  };
11005
11027
  largest: {
11006
11028
  name: string;
@@ -11112,6 +11134,8 @@ export interface ExpensesUpdateParams {
11112
11134
  reference?: string;
11113
11135
  /** A product this expense is a cost of. */
11114
11136
  productId?: string;
11137
+ /** With its amount as it was, the currency that amount is in: for an expense whose currency is not known (`currency` null), or to put right one that is wrong. Nothing is converted. With a new `amount` it is not read: a new amount is in the store's currency today. */
11138
+ amountCurrency?: string;
11115
11139
  }
11116
11140
 
11117
11141
  /** What update an expense answers: `expenses.update`. */
@@ -11128,6 +11152,7 @@ export type ExpensesUpdateResult = {
11128
11152
  method: string;
11129
11153
  reference: string;
11130
11154
  amount: number;
11155
+ currency: string;
11131
11156
  entered: unknown;
11132
11157
  productId: unknown;
11133
11158
  recurring: boolean;
@@ -11234,6 +11259,7 @@ export type RecurringExpensesListResult = {
11234
11259
  method: string;
11235
11260
  reference: string;
11236
11261
  amount: number;
11262
+ currency: string;
11237
11263
  cadence: string;
11238
11264
  onDay: number;
11239
11265
  nextOn: string;
@@ -11247,7 +11273,7 @@ export type RecurringExpensesListResult = {
11247
11273
  export interface RecurringExpensesCreateParams {
11248
11274
  /** Who is paid, up to 120 characters. */
11249
11275
  payee: string;
11250
- /** How much each time, in the store's currency. */
11276
+ /** How much each time, in the store's currency today. */
11251
11277
  amount: number;
11252
11278
  /** How often it comes round. */
11253
11279
  cadence: "month" | "year";
@@ -11272,6 +11298,7 @@ export type RecurringExpensesCreateResult = {
11272
11298
  method: string;
11273
11299
  reference: string;
11274
11300
  amount: number;
11301
+ currency: string;
11275
11302
  cadence: string;
11276
11303
  onDay: number;
11277
11304
  nextOn: string;
@@ -11285,7 +11312,7 @@ export type RecurringExpensesCreateResult = {
11285
11312
  export interface RecurringExpensesUpdateParams {
11286
11313
  /** Who is paid, up to 120 characters. */
11287
11314
  payee: string;
11288
- /** How much each time, in the store's currency. */
11315
+ /** How much each time, in the store's currency today. */
11289
11316
  amount: number;
11290
11317
  /** How often it comes round. */
11291
11318
  cadence: "month" | "year";
@@ -11299,6 +11326,8 @@ export interface RecurringExpensesUpdateParams {
11299
11326
  note?: string;
11300
11327
  /** A reference, up to 160 characters. */
11301
11328
  reference?: string;
11329
+ /** With its amount as it was, the currency that amount is in: for one whose currency is not known (`currency` null), or to put right one that is wrong. Nothing is converted. The expenses it writes from then on are in it; those it has written keep theirs. */
11330
+ amountCurrency?: string;
11302
11331
  }
11303
11332
 
11304
11333
  /** What update a recurring expense answers: `recurringExpenses.update`. */
@@ -11310,6 +11339,7 @@ export type RecurringExpensesUpdateResult = {
11310
11339
  method: string;
11311
11340
  reference: string;
11312
11341
  amount: number;
11342
+ currency: string;
11313
11343
  cadence: string;
11314
11344
  onDay: number;
11315
11345
  nextOn: string;
@@ -11338,6 +11368,7 @@ export type RecurringExpensesSkipResult = {
11338
11368
  method: string;
11339
11369
  reference: string;
11340
11370
  amount: number;
11371
+ currency: string;
11341
11372
  cadence: string;
11342
11373
  onDay: number;
11343
11374
  nextOn: string;
@@ -12608,7 +12639,7 @@ export interface ShoplyResourcesAnalytics {
12608
12639
  /**
12609
12640
  * **Get the overview**
12610
12641
  *
12611
- * A period's headline figures (revenue, orders, customers and the rest), the same figures for the period before, and a day by day series. What the dashboard's home page draws.
12642
+ * A period's headline figures (revenue, orders, customers and the rest), the same figures for the period before, and a day by day series. What the dashboard's home page draws. Every figure of money is in the store's currency today (`currencyCode`), its orders alone; what the period took in another currency is `otherCurrencies`, each in its own, never added in or converted. A count that is not money counts every order.
12612
12643
  *
12613
12644
  * Needs the `analytics.read` permission (Read Analytics). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
12614
12645
  *
@@ -14460,7 +14491,7 @@ export interface ShoplyResourcesCustomers {
14460
14491
  /**
14461
14492
  * **List customers**
14462
14493
  *
14463
- * The store's customers, a page at a time, each with how many orders they have paid for, what they have spent, their balance and their `tags`: Shoply's two first (`vip` and `disputed`, worked out from their orders as they are read), then the store's own.
14494
+ * The store's customers, a page at a time, each with how many orders they have paid for, what they have spent in the store's currency today (`totalSpend`) and in any other (`otherSpend`, never added in or converted), their balance and their `tags`: Shoply's two first (`vip` and `disputed`, worked out from their orders as they are read), then the store's own.
14464
14495
  *
14465
14496
  * Needs the `customers.read` permission (Read Customers).
14466
14497
  *
@@ -14480,7 +14511,7 @@ export interface ShoplyResourcesCustomers {
14480
14511
  /**
14481
14512
  * **Export customers**
14482
14513
  *
14483
- * The customers the same filters would list, as a CSV file: each one's email, when they were first seen, the orders they paid for and what they spent, their first and last paid order, their store balance, their affiliate code and balance where they have one, their tags, and whether they are subscribed to the store's news and offers. Every customer the filters match is in the file, however many: it is sent as it is read. Add `check=1` for `{ rows }`, how many it would have, which is not counted. A store exports at most 30 files every 10 minutes, orders, customers, fraud events, blacklist rules and allowlist entries together, whoever asks: after that the answer is 429.
14514
+ * The customers the same filters would list, as a CSV file: each one's email, when they were first seen, the orders they paid for and what they spent in the store's currency today, with what they spent in any other in a column of its own, their first and last paid order, their store balance, their affiliate code and balance where they have one, their tags, and whether they are subscribed to the store's news and offers. Every customer the filters match is in the file, however many: it is sent as it is read. Add `check=1` for `{ rows }`, how many it would have, which is not counted. A store exports at most 30 files every 10 minutes, orders, customers, fraud events, blacklist rules and allowlist entries together, whoever asks: after that the answer is 429.
14484
14515
  *
14485
14516
  * Needs the `customers.read` permission (Read Customers). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
14486
14517
  *
@@ -14500,7 +14531,7 @@ export interface ShoplyResourcesCustomers {
14500
14531
  /**
14501
14532
  * **Get a customer**
14502
14533
  *
14503
- * One customer: their orders, their balance and its history, their `tags`, whether they are blacklisted, and their affiliate figures if they are one.
14534
+ * One customer: their orders, what they have spent in the store's currency today (`totalSpend`, over `paidInCurrency` of their paid orders) and in any other (`otherSpend`), their balance and its history, their `tags`, whether they are blacklisted, and their affiliate figures if they are one.
14504
14535
  *
14505
14536
  * Needs the `customers.read` permission (Read Customers).
14506
14537
  *
@@ -14593,7 +14624,7 @@ export interface ShoplyResourcesCustomerTags {
14593
14624
  /**
14594
14625
  * **List customer tags**
14595
14626
  *
14596
- * The store's own tags as `data`, by name, each with `customers`, how many wear it. `meta.automatic` is Shoply's two: VIP's rule (`vipOn`, `vipSpent` in the store's currency, `vipOrders` completed orders, `vipDays` the period, 0 for all time; either number 0 leaves that half out) and `disputedOn`, with `vipCustomers` and `disputedCustomers`, how many wear each today.
14627
+ * The store's own tags as `data`, by name, each with `customers`, how many wear it. `meta.automatic` is Shoply's two: VIP's rule (`vipOn`, `vipSpent` in the store's currency today, counting the orders in it alone, `vipOrders` completed orders in any currency, `vipDays` the period, 0 for all time; either number 0 leaves that half out) and `disputedOn`, with `vipCustomers` and `disputedCustomers`, how many wear each today.
14597
14628
  *
14598
14629
  * Needs the `customers.read` permission (Read Customers).
14599
14630
  *
@@ -15298,7 +15329,7 @@ export interface ShoplyResourcesResellerOrders {
15298
15329
  /**
15299
15330
  * **Export reseller orders**
15300
15331
  *
15301
- * The orders the same filters would list, as a CSV file: Order ID, Reseller, Bought By, Product, Variant, Quantity, Total, Currency, Bought With and Date. No delivered key is in it. Every row the filters match is in the file, up to 50,000, sent as it is read. Add `check=1` for `{ rows }`, how many it would have, which is not counted. A store exports at most 30 files every 10 minutes, whatever they are of, whoever asks: after that the answer is 429.
15332
+ * The orders the same filters would list, as a CSV file: Order ID, Reseller, Bought By, Product, Variant, Quantity, Total, Currency, Bought With and Date. No delivered key is in it. Every row the filters match is in the file, however many, sent as it is read. Add `check=1` for `{ rows }`, how many it would have, which is not counted. A store exports at most 30 files every 10 minutes, whatever they are of, whoever asks: after that the answer is 429.
15302
15333
  *
15303
15334
  * Needs the `resellers.read` permission (Read Resellers). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
15304
15335
  *
@@ -15331,7 +15362,7 @@ export interface ShoplyResourcesResellerTopUps {
15331
15362
  /**
15332
15363
  * **Export top-ups**
15333
15364
  *
15334
- * The top-ups the same filters would list, as a CSV file: Top-up ID, Reseller, Paid By, Amount, Currency, Paid With, Status, Opened and Paid. Every row the filters match is in the file, up to 50,000, sent as it is read. Add `check=1` for `{ rows }`, how many it would have, which is not counted. A store exports at most 30 files every 10 minutes, whatever they are of, whoever asks: after that the answer is 429.
15365
+ * The top-ups the same filters would list, as a CSV file: Top-up ID, Reseller, Paid By, Amount, Currency, Paid With, Status, Opened and Paid. Every row the filters match is in the file, however many, sent as it is read. Add `check=1` for `{ rows }`, how many it would have, which is not counted. A store exports at most 30 files every 10 minutes, whatever they are of, whoever asks: after that the answer is 429.
15335
15366
  *
15336
15367
  * Needs the `resellers.read` permission (Read Resellers). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
15337
15368
  *
@@ -15739,7 +15770,7 @@ export interface ShoplyResourcesFinance {
15739
15770
  /**
15740
15771
  * **Get profit**
15741
15772
  *
15742
- * What the store kept in a period and how that is made up, beside the period before: net sales, the cost of goods, payment fees, affiliate commission, expenses and net profit, twelve months of sales and profit, and every product with what each variant sold and cost. A sale is what the buyer paid: at its sale price, after its coupon and any affiliate link's discount, without tax. Payment fees are worked out from the rates the store typed, never read from a provider, so they can be slightly off. A store makes at most 20 reports every 10 minutes, counting this one, the other report, their files and the dashboard's Generate Report together: after that the answer is 429. Refused with `business_details_required` until the store has its business details.
15773
+ * What the store kept in a period and how that is made up, beside the period before: net sales, the cost of goods, payment fees, affiliate commission, expenses and net profit, twelve months of sales and profit, and every product with what each variant sold and cost. A sale is what the buyer paid: at its sale price, after its coupon and any affiliate link's discount, without tax. Payment fees are worked out from the rates the store typed, never read from a provider, so they can be slightly off. Every figure is in the store's currency today (`currency`), its orders and its expenses alone. What the period took or spent in another currency is `otherCurrencies`, each in its own, and the expenses whose currency is not known are `unknownExpenses`: nothing is added across currencies or converted. A store makes at most 20 reports every 10 minutes, counting this one, the other report, their files and the dashboard's Generate Report together: after that the answer is 429. Refused with `business_details_required` until the store has its business details.
15743
15774
  *
15744
15775
  * Needs the `finance.read` permission (Read Finance). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
15745
15776
  *
@@ -15749,7 +15780,7 @@ export interface ShoplyResourcesFinance {
15749
15780
  /**
15750
15781
  * **Get the books**
15751
15782
  *
15752
- * The books for a period: the profit and loss line by line beside the period before, where the buyers were, and what each payment method took in. Gross sales are at the prices before any sale, and what sales, discounts, refunds and chargebacks took off is a line each; affiliate commission is a cost of sales. Tax collected is not income and is in none of it but the tax report. A store makes at most 20 reports every 10 minutes, counting this one, the other report, their files and the dashboard's Generate Report together: after that the answer is 429. Refused with `business_details_required` until the store has its business details.
15783
+ * The books for a period: the profit and loss line by line beside the period before, where the buyers were, and what each payment method took in. Gross sales are at the prices before any sale, and what sales, discounts, refunds and chargebacks took off is a line each; affiliate commission is a cost of sales. Tax collected is not income and is in none of it but the tax report. The statement is in the store's currency today (`currency`), its orders and its expenses alone. Each other currency the period or the one before took or spent anything in has a statement of its own in `others`, beside the period before in that currency, and the expenses whose currency is not known are `unknownExpenses`. `taxReport` is the same: its rows in the store's currency, then `others`. Nothing is added across currencies or converted. A store makes at most 20 reports every 10 minutes, counting this one, the other report, their files and the dashboard's Generate Report together: after that the answer is 429. Refused with `business_details_required` until the store has its business details.
15753
15784
  *
15754
15785
  * Needs the `finance.read` permission (Read Finance). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
15755
15786
  *
@@ -15845,7 +15876,7 @@ export interface ShoplyResourcesExpenses {
15845
15876
  /**
15846
15877
  * **List expenses**
15847
15878
  *
15848
- * A period's expenses, newest first, up to 2,000 of them. `meta.totals` is what the expenses matched come to, counting every one, and `meta.groups` the same by category. Refused with `business_details_required` until the store has its business details.
15879
+ * A period's expenses, newest first, up to 2,000 of them, each with the `currency` its amount is in (null where it is not known). `meta.totals` is what the expenses matched in the store's currency today (`meta.currency`) come to, counting every one, and `meta.groups` the same by category. `meta.otherCurrencies` is what those in each other currency come to, and those whose currency is not known (`currency` null), never added in or converted. `meta.listedOf` is how many the filters match, whatever their currency. Refused with `business_details_required` until the store has its business details.
15849
15880
  *
15850
15881
  * Needs the `expenses.read` permission (Read Expenses).
15851
15882
  *
@@ -15865,7 +15896,7 @@ export interface ShoplyResourcesExpenses {
15865
15896
  /**
15866
15897
  * **Get an expense summary**
15867
15898
  *
15868
- * A period's spending at a glance: the total beside the period before, what repeats, the largest category, how many have receipts, twelve months of totals and what is coming up. Refused with `business_details_required` until the store has its business details.
15899
+ * A period's spending at a glance: the total beside the period before, what repeats, the largest category, how many have receipts, twelve months of totals and what is coming up. The figures are in the store's currency today; `otherCurrencies` is what the period spent in each other currency, and in none known. Refused with `business_details_required` until the store has its business details.
15869
15900
  *
15870
15901
  * Needs the `expenses.read` permission (Read Expenses). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
15871
15902
  *
@@ -15895,7 +15926,7 @@ export interface ShoplyResourcesExpenses {
15895
15926
  /**
15896
15927
  * **Update an expense**
15897
15928
  *
15898
- * Changes an expense. A field left out stays as it is. Refused with `business_details_required` until the store has its business details.
15929
+ * Changes an expense. A field left out stays as it is. An expense keeps the currency its amount was typed in, the store's of that moment, while its amount stays as it was; a new amount is in the store's currency today. Refused with `business_details_required` until the store has its business details.
15899
15930
  *
15900
15931
  * Needs the `expenses.write` permission (Change Expenses).
15901
15932
  *
@@ -16011,7 +16042,7 @@ export interface ShoplyResourcesRecurringExpenses {
16011
16042
  /**
16012
16043
  * **List recurring expenses**
16013
16044
  *
16014
- * The expenses that come round every month or year, with the day each is next due. A store holds up to 100. Refused with `business_details_required` until the store has its business details.
16045
+ * The expenses that come round every month or year, with the day each is next due and the `currency` its amount is in (null where it is not known). A store holds up to 100. `meta.running` is what the running ones come to a month, a yearly one as a twelfth: `monthly` those in the store's currency today, `others` those in each other currency and those not known, never added in or converted, and `count` every one. Refused with `business_details_required` until the store has its business details.
16015
16046
  *
16016
16047
  * Needs the `expenses.read` permission (Read Expenses).
16017
16048
  *
@@ -16031,7 +16062,7 @@ export interface ShoplyResourcesRecurringExpenses {
16031
16062
  /**
16032
16063
  * **Update a recurring expense**
16033
16064
  *
16034
- * Changes a recurring expense. A field left out stays as it is. The expenses it has already written are not changed. Refused with `business_details_required` until the store has its business details.
16065
+ * Changes a recurring expense. A field left out stays as it is. The expenses it has already written are not changed. It keeps the currency its amount was typed in while its amount stays as it was; a new amount is in the store's currency today. Refused with `business_details_required` until the store has its business details.
16035
16066
  *
16036
16067
  * Needs the `expenses.write` permission (Change Expenses).
16037
16068
  *
@@ -17084,43 +17115,43 @@ export interface WebhookEventData {
17084
17115
  /**
17085
17116
  * A business joined the store's reseller panel through one of its invite links.
17086
17117
  *
17087
- * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `chargeback`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17118
+ * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17088
17119
  */
17089
17120
  "reseller.joined": Record<string, unknown>;
17090
17121
  /**
17091
17122
  * A reseller was paused or made active again, or given another tier or discount, by the store or by Shoply; or paused because a top-up's payment was taken back.
17092
17123
  *
17093
- * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `chargeback`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17124
+ * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17094
17125
  */
17095
17126
  "reseller.updated": Record<string, unknown>;
17096
17127
  /**
17097
17128
  * The store removed a reseller: their team can no longer sign in. Their orders, top-ups and balance history are kept.
17098
17129
  *
17099
- * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `chargeback`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17130
+ * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17100
17131
  */
17101
17132
  "reseller.removed": Record<string, unknown>;
17102
17133
  /**
17103
17134
  * A reseller's balance changed: a top-up paid, a purchase, a change by hand, or a top-up's payment taken back.
17104
17135
  *
17105
- * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `chargeback`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17136
+ * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17106
17137
  */
17107
17138
  "reseller.balance_changed": Record<string, unknown>;
17108
17139
  /**
17109
17140
  * A reseller's top-up was paid, or marked paid by the store, and is on their balance.
17110
17141
  *
17111
- * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `chargeback`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17142
+ * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17112
17143
  */
17113
17144
  "reseller.top_up_paid": Record<string, unknown>;
17114
17145
  /**
17115
17146
  * A reseller says they paid a top-up with one of the store's custom payment methods, and it waits for the store to approve or reject it. Approved, it is `reseller.top_up_paid`.
17116
17147
  *
17117
- * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `chargeback`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17148
+ * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17118
17149
  */
17119
17150
  "reseller.top_up_submitted": Record<string, unknown>;
17120
17151
  /**
17121
17152
  * A reseller bought from the panel, in the panel itself, with their API or by a delivery URL, paid from their balance.
17122
17153
  *
17123
- * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `chargeback`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17154
+ * `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
17124
17155
  */
17125
17156
  "reseller.order_completed": Record<string, unknown>;
17126
17157
  /**
package/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { EVENTS, OPERATIONS } from "./generated/operations.js";
16
16
 
17
- export const VERSION = "0.11.4";
17
+ export const VERSION = "0.11.5";
18
18
 
19
19
  const API = "https://api.shoply.gg/v1";
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplygg/node",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "description": "Shoply's API from your own server: every route as a typed method, safe retries, pages, checking webhooks, and OAuth for apps.",
5
5
  "keywords": ["shoply", "api", "sdk", "ecommerce", "webhooks", "digital-goods"],
6
6
  "homepage": "https://docs.shoply.gg/api-reference/node",