@shoplygg/node 0.12.1 → 0.12.2
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/generated/api.d.ts +70 -10
- package/index.js +1 -1
- package/package.json +1 -1
package/generated/api.d.ts
CHANGED
|
@@ -1646,6 +1646,8 @@ export interface RoutingUpdateParams {
|
|
|
1646
1646
|
guardWindow?: number;
|
|
1647
1647
|
/** The percent of a processor's paid orders disputed that the store is told of, once a week at most, above 0 and up to 100. Empty or null for none. Nothing is moved for it. */
|
|
1648
1648
|
disputeAlert?: number;
|
|
1649
|
+
/** The `settings.version` you last read. Sent, the change is refused with `stale_write` if what this saves has changed since. Left out, it is saved whatever happened in between. */
|
|
1650
|
+
expectedVersion?: string;
|
|
1649
1651
|
}
|
|
1650
1652
|
|
|
1651
1653
|
/** What change Payment Routing answers: `routing.update`. */
|
|
@@ -1787,6 +1789,8 @@ export interface RoutingUpdateProcessorParams {
|
|
|
1787
1789
|
minOrder?: number;
|
|
1788
1790
|
/** The largest order it is given. At least `minOrder`. */
|
|
1789
1791
|
maxOrder?: number;
|
|
1792
|
+
/** The processor's `version` (in `processors`) you last read. Sent, the change is refused with `stale_write` if that processor has changed since. Left out, it is saved whatever happened in between. */
|
|
1793
|
+
expectedVersion?: string;
|
|
1790
1794
|
}
|
|
1791
1795
|
|
|
1792
1796
|
/** What change a processor answers: `routing.updateProcessor`. */
|
|
@@ -2117,6 +2121,8 @@ export interface RoutingUpdateRuleParams {
|
|
|
2117
2121
|
action: "only" | "never";
|
|
2118
2122
|
/** The processor the rule is about, one in the routing. */
|
|
2119
2123
|
provider: string;
|
|
2124
|
+
/** The rule's `version` (in `rules`) you last read. Sent, the change is refused with `stale_write` if the rule has changed since. Left out, it is saved whatever happened in between. */
|
|
2125
|
+
expectedVersion?: string;
|
|
2120
2126
|
}
|
|
2121
2127
|
|
|
2122
2128
|
/** What change a rule answers: `routing.updateRule`. */
|
|
@@ -2373,6 +2379,8 @@ export interface CustomMethodsUpdateParams {
|
|
|
2373
2379
|
requiresPicture?: boolean;
|
|
2374
2380
|
/** Whether the checkout offers it. */
|
|
2375
2381
|
enabled?: boolean;
|
|
2382
|
+
/** The method's `version` you last read. Sent, the change is refused with `stale_write` if the method has changed since. Left out, it is saved whatever happened in between. */
|
|
2383
|
+
expectedVersion?: string;
|
|
2376
2384
|
}
|
|
2377
2385
|
|
|
2378
2386
|
/** What update a custom payment method answers: `customMethods.update`. */
|
|
@@ -5528,6 +5536,8 @@ export interface BlogCategoriesUpdateParams {
|
|
|
5528
5536
|
description?: string;
|
|
5529
5537
|
/** The part of its address after `/blog/`. Left out, it is made from the name. A post and a category cannot share one. */
|
|
5530
5538
|
slug?: string;
|
|
5539
|
+
/** The category's `version` you last read. Sent, the change is refused with `stale_write` if the category has changed since. Left out, it is saved whatever happened in between. */
|
|
5540
|
+
expectedVersion?: string;
|
|
5531
5541
|
}
|
|
5532
5542
|
|
|
5533
5543
|
/** What update a blog category answers: `blogCategories.update`. */
|
|
@@ -5648,6 +5658,8 @@ export interface BlogPostsUpdateParams {
|
|
|
5648
5658
|
seoTitle?: string;
|
|
5649
5659
|
/** Its own description in search results. Empty is the start of its text. */
|
|
5650
5660
|
seoDescription?: string;
|
|
5661
|
+
/** The post's `version` you last read. Sent, the change is refused with `stale_write` if the post has changed since. Left out, it is saved whatever happened in between. */
|
|
5662
|
+
expectedVersion?: string;
|
|
5651
5663
|
}
|
|
5652
5664
|
|
|
5653
5665
|
/** What update a blog post answers: `blogPosts.update`. */
|
|
@@ -5754,6 +5766,8 @@ export interface SeoUpdateParams {
|
|
|
5754
5766
|
measurementId?: string;
|
|
5755
5767
|
/** That property's Measurement Protocol API secret. It is never answered back. */
|
|
5756
5768
|
apiSecret?: string;
|
|
5769
|
+
/** The `version` you last read. Sent, the change is refused with `stale_write` if any of these settings has changed since. Left out, it is saved whatever happened in between. */
|
|
5770
|
+
expectedVersion?: string;
|
|
5757
5771
|
}
|
|
5758
5772
|
|
|
5759
5773
|
/** What update search settings answers: `seo.update`. */
|
|
@@ -5805,6 +5819,8 @@ export interface RedirectsUpdateParams {
|
|
|
5805
5819
|
from: string;
|
|
5806
5820
|
/** Where it leads, as a path on the store. A redirect never leaves the store, and never leads to an address that is itself redirected. */
|
|
5807
5821
|
to: string;
|
|
5822
|
+
/** The redirect's `version` you last read. Sent, the change is refused with `stale_write` if the redirect has changed since. Left out, it is saved whatever happened in between. */
|
|
5823
|
+
expectedVersion?: string;
|
|
5808
5824
|
}
|
|
5809
5825
|
|
|
5810
5826
|
/** What update a redirect answers: `redirects.update`. */
|
|
@@ -5865,6 +5881,8 @@ export interface SitemapUpdateKindParams {
|
|
|
5865
5881
|
priority?: string;
|
|
5866
5882
|
/** How often it changes. */
|
|
5867
5883
|
changefreq?: "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never";
|
|
5884
|
+
/** The kind's `version` (in `kinds`) you last read. Sent, the change is refused with `stale_write` if that kind's rule has changed since. Left out, it is saved whatever happened in between. */
|
|
5885
|
+
expectedVersion?: string;
|
|
5868
5886
|
}
|
|
5869
5887
|
|
|
5870
5888
|
/** What update a kind of address answers: `sitemap.updateKind`. */
|
|
@@ -5900,6 +5918,8 @@ export interface SitemapUpdateEntryParams {
|
|
|
5900
5918
|
kind: "pages" | "categories" | "products" | "blog";
|
|
5901
5919
|
/** Which address of that kind, as "Get the sitemap" names it. */
|
|
5902
5920
|
ref: string;
|
|
5921
|
+
/** The entry's `version` (in its kind's `entries`) you last read. Sent, the change is refused with `stale_write` if the entry has changed since. Left out, it is saved whatever happened in between. */
|
|
5922
|
+
expectedVersion?: string;
|
|
5903
5923
|
/** Whether the sitemap lists it. */
|
|
5904
5924
|
listed?: boolean;
|
|
5905
5925
|
/** Its priority, from `0.1` to `1.0`. */
|
|
@@ -5967,6 +5987,8 @@ export interface CartRecoveryUpdateParams {
|
|
|
5967
5987
|
secondSubject?: string;
|
|
5968
5988
|
/** The percent off its coupon. One of 0, 5, 10, 15, 20, 25. 0 sends it with no coupon. */
|
|
5969
5989
|
secondPercent?: number;
|
|
5990
|
+
/** The `version` you last read. Sent, the change is refused with `stale_write` if any of these settings has changed since. Left out, it is saved whatever happened in between. */
|
|
5991
|
+
expectedVersion?: string;
|
|
5970
5992
|
}
|
|
5971
5993
|
|
|
5972
5994
|
/** What change Cart Recovery answers: `cartRecovery.update`. */
|
|
@@ -6101,6 +6123,8 @@ export interface WinBackUpdateParams {
|
|
|
6101
6123
|
secondPercent?: number;
|
|
6102
6124
|
/** Who is written to: empty for every subscriber, `vip`, or the ID of one of the store's tags. */
|
|
6103
6125
|
audience?: string;
|
|
6126
|
+
/** The `version` you last read. Sent, the change is refused with `stale_write` if any of these settings has changed since. Left out, it is saved whatever happened in between. */
|
|
6127
|
+
expectedVersion?: string;
|
|
6104
6128
|
}
|
|
6105
6129
|
|
|
6106
6130
|
/** What change Win-Back answers: `winBack.update`. */
|
|
@@ -6913,6 +6937,8 @@ export interface CustomerTagsUpdateParams {
|
|
|
6913
6937
|
name?: string;
|
|
6914
6938
|
/** Its colour. */
|
|
6915
6939
|
tone?: "neutral" | "primary" | "success" | "warning" | "danger";
|
|
6940
|
+
/** The tag's `version` you last read. Sent, the change is refused with `stale_write` if the tag has changed since. Left out, it is saved whatever happened in between. */
|
|
6941
|
+
expectedVersion?: string;
|
|
6916
6942
|
}
|
|
6917
6943
|
|
|
6918
6944
|
/** What change a customer tag answers: `customerTags.update`. */
|
|
@@ -7030,6 +7056,8 @@ export interface AffiliatesUpdateParams {
|
|
|
7030
7056
|
discount?: number;
|
|
7031
7057
|
/** Whether their link works. Switched off, it takes nothing off and earns nothing. */
|
|
7032
7058
|
active?: boolean;
|
|
7059
|
+
/** The affiliate's `version` you last read. Sent, the change is refused with `stale_write` if what this saves of them has changed since. Left out, it is saved whatever happened in between. */
|
|
7060
|
+
expectedVersion?: string;
|
|
7033
7061
|
}
|
|
7034
7062
|
|
|
7035
7063
|
/** What update an affiliate answers: `affiliates.update`. */
|
|
@@ -7230,6 +7258,8 @@ export interface AffiliateProgrammeUpdateParams {
|
|
|
7230
7258
|
toStore?: boolean;
|
|
7231
7259
|
/** Whether an affiliate may ask for a payout. */
|
|
7232
7260
|
payouts?: boolean;
|
|
7261
|
+
/** The programme's `version` (`meta.version`) you last read. Sent, the change is refused with `stale_write` if any of its settings has changed since. Left out, it is saved whatever happened in between. */
|
|
7262
|
+
expectedVersion?: string;
|
|
7233
7263
|
}
|
|
7234
7264
|
|
|
7235
7265
|
/** What update the affiliate programme answers: `affiliateProgramme.update`. */
|
|
@@ -7668,6 +7698,8 @@ export interface TeamsUpdateParams {
|
|
|
7668
7698
|
name: string;
|
|
7669
7699
|
/** What its people may do, by name (List the team answers every permission in `permissions`). What a permission leans on is added with it: `stock.edit` brings `stock.view` and `products.view`. */
|
|
7670
7700
|
permissions: string[];
|
|
7701
|
+
/** The team's `version` (in `teams`) you last read. Sent, the change is refused with `stale_write` if the team has changed since. Left out, it is saved whatever happened in between. */
|
|
7702
|
+
expectedVersion?: string;
|
|
7671
7703
|
}
|
|
7672
7704
|
|
|
7673
7705
|
/** What update a team answers: `teams.update`. */
|
|
@@ -7825,6 +7857,8 @@ export interface ResellersUpdateSettingsParams {
|
|
|
7825
7857
|
currency?: string;
|
|
7826
7858
|
/** The smallest top-up a reseller can make, 5.00 to 100,000.00. */
|
|
7827
7859
|
minTopup?: number;
|
|
7860
|
+
/** The settings' `version` (`meta.version`) you last read. Sent, the change is refused with `stale_write` if any of them has changed since. Left out, it is saved whatever happened in between. */
|
|
7861
|
+
expectedVersion?: string;
|
|
7828
7862
|
}
|
|
7829
7863
|
|
|
7830
7864
|
/** What update the panel's settings answers: `resellers.updateSettings`. */
|
|
@@ -8040,6 +8074,8 @@ export interface ResellerInvitesUpdateParams {
|
|
|
8040
8074
|
* Left out, it is true.
|
|
8041
8075
|
*/
|
|
8042
8076
|
enabled?: boolean;
|
|
8077
|
+
/** The link's `version` you last read. Sent, the change is refused with `stale_write` if the link has changed since. Left out, it is saved whatever happened in between. */
|
|
8078
|
+
expectedVersion?: string;
|
|
8043
8079
|
}
|
|
8044
8080
|
|
|
8045
8081
|
/** What update an invite link answers: `resellerInvites.update`. */
|
|
@@ -8110,6 +8146,8 @@ export interface ResellerAnnouncementsUpdateParams {
|
|
|
8110
8146
|
* Left out, it is false.
|
|
8111
8147
|
*/
|
|
8112
8148
|
pinned?: boolean;
|
|
8149
|
+
/** The announcement's `version` you last read. Sent, the change is refused with `stale_write` if the announcement has changed since. Left out, it is saved whatever happened in between. */
|
|
8150
|
+
expectedVersion?: string;
|
|
8113
8151
|
}
|
|
8114
8152
|
|
|
8115
8153
|
/** What update an announcement answers: `resellerAnnouncements.update`. */
|
|
@@ -8359,6 +8397,8 @@ export interface ResellersUpdateParams {
|
|
|
8359
8397
|
discount?: number;
|
|
8360
8398
|
/** Whether they can buy and top up. */
|
|
8361
8399
|
status?: "active" | "paused";
|
|
8400
|
+
/** The reseller's `version` you last read. Sent, the change is refused with `stale_write` if what this saves of them has changed since. Left out, it is saved whatever happened in between. */
|
|
8401
|
+
expectedVersion?: string;
|
|
8362
8402
|
}
|
|
8363
8403
|
|
|
8364
8404
|
/** What update a reseller answers: `resellers.update`. */
|
|
@@ -8478,6 +8518,8 @@ export type ResellersSetBalanceResult = {
|
|
|
8478
8518
|
export interface ResellersUpdateMemberParams {
|
|
8479
8519
|
/** What they may do, by name: `products.view`, `products.buy`, `orders.view`, `orders.keys`, `balance.view`, `balance.topup`, `api.keys`, `api.urls`, `team.view`, `team.manage`, `alerts.manage`. */
|
|
8480
8520
|
permissions: string[];
|
|
8521
|
+
/** The member's `version` (in the reseller's `team`) you last read. Sent, the change is refused with `stale_write` if the member has changed since. Left out, it is saved whatever happened in between. */
|
|
8522
|
+
expectedVersion?: string;
|
|
8481
8523
|
}
|
|
8482
8524
|
|
|
8483
8525
|
/** What change what a reseller's member may do answers: `resellers.updateMember`. */
|
|
@@ -8676,6 +8718,8 @@ export interface BlacklistUpdateParams {
|
|
|
8676
8718
|
* Left out, it is true.
|
|
8677
8719
|
*/
|
|
8678
8720
|
enabled?: boolean;
|
|
8721
|
+
/** The rule's `updatedAt` you last read. Sent, the change is refused with `stale_write` if the rule has changed since. Left out, it is saved whatever happened in between. */
|
|
8722
|
+
expectedUpdatedAt?: string;
|
|
8679
8723
|
}
|
|
8680
8724
|
|
|
8681
8725
|
/** What update a blacklist rule answers: `blacklist.update`. */
|
|
@@ -8817,6 +8861,8 @@ export interface AllowlistUpdateParams {
|
|
|
8817
8861
|
* Left out, it is true.
|
|
8818
8862
|
*/
|
|
8819
8863
|
enabled?: boolean;
|
|
8864
|
+
/** The entry's `updatedAt` you last read. Sent, the change is refused with `stale_write` if the entry has changed since. Left out, it is saved whatever happened in between. */
|
|
8865
|
+
expectedUpdatedAt?: string;
|
|
8820
8866
|
}
|
|
8821
8867
|
|
|
8822
8868
|
/** What update an allowlist entry answers: `allowlist.update`. */
|
|
@@ -9513,6 +9559,8 @@ export interface DisputesUpdateSettingsParams {
|
|
|
9513
9559
|
discordRoles?: "keep" | "take" | "kick" | "ban";
|
|
9514
9560
|
/** Whether a dispute closed in the store's favour gives the roles back, adds a kicked buyer again and lifts a ban. */
|
|
9515
9561
|
discordRolesBack?: boolean;
|
|
9562
|
+
/** The `version` you last read. Sent, the change is refused with `stale_write` if any of these settings has changed since. Left out, it is saved whatever happened in between. */
|
|
9563
|
+
expectedVersion?: string;
|
|
9516
9564
|
}
|
|
9517
9565
|
|
|
9518
9566
|
/** What change dispute settings answers: `disputes.updateSettings`. */
|
|
@@ -9794,6 +9842,8 @@ export interface FinanceSetPaymentCostsParams {
|
|
|
9794
9842
|
/** The fixed amount it keeps of each payment, in the store's currency. */
|
|
9795
9843
|
fixed?: number;
|
|
9796
9844
|
}[];
|
|
9845
|
+
/** The `version` of the payment costs you last read. Sent, the change is refused with `stale_write` if any of them has changed since. Left out, it is saved whatever happened in between. */
|
|
9846
|
+
expectedVersion?: string;
|
|
9797
9847
|
}
|
|
9798
9848
|
|
|
9799
9849
|
/** What set payment fee rates answers: `finance.setPaymentCosts`. */
|
|
@@ -10095,6 +10145,8 @@ export interface TaxUpdateParams {
|
|
|
10095
10145
|
included?: boolean;
|
|
10096
10146
|
/** Whether a business buyer's VAT number takes the tax off, when the EU's register confirms it and it is from another country than the store's. */
|
|
10097
10147
|
business?: boolean;
|
|
10148
|
+
/** The `version` you last read. Sent, the change is refused with `stale_write` if any of these settings has changed since; the rates have a `ratesVersion` of their own. Left out, it is saved whatever happened in between. */
|
|
10149
|
+
expectedVersion?: string;
|
|
10098
10150
|
}
|
|
10099
10151
|
|
|
10100
10152
|
/** What update tax settings answers: `tax.update`. */
|
|
@@ -10383,6 +10435,8 @@ export interface TaxSetRatesParams {
|
|
|
10383
10435
|
/** The rate, in percent. Left out for a whole country, its built-in rate. A state's rate is always sent. */
|
|
10384
10436
|
rate?: number;
|
|
10385
10437
|
}[];
|
|
10438
|
+
/** The `ratesVersion` you last read. Sent, the change is refused with `stale_write` if a rate has changed since. Left out, it is saved whatever happened in between. */
|
|
10439
|
+
expectedVersion?: string;
|
|
10386
10440
|
}
|
|
10387
10441
|
|
|
10388
10442
|
/** What add or change tax rates answers: `tax.setRates`. */
|
|
@@ -11199,6 +11253,8 @@ export interface ExpensesUpdateParams {
|
|
|
11199
11253
|
productId?: string;
|
|
11200
11254
|
/** 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. */
|
|
11201
11255
|
amountCurrency?: string;
|
|
11256
|
+
/** The expense's `updatedAt` you last read. Sent, the change is refused with `stale_write` if the expense has changed since. Left out, it is saved whatever happened in between. */
|
|
11257
|
+
expectedUpdatedAt?: string;
|
|
11202
11258
|
}
|
|
11203
11259
|
|
|
11204
11260
|
/** What update an expense answers: `expenses.update`. */
|
|
@@ -11285,6 +11341,8 @@ export interface ExpenseCategoriesUpdateParams {
|
|
|
11285
11341
|
name: string;
|
|
11286
11342
|
/** Its icon. Left out, it stays as it is. */
|
|
11287
11343
|
icon?: string;
|
|
11344
|
+
/** The category's `updatedAt` you last read. Sent, the change is refused with `stale_write` if the category has changed since. Left out, it is saved whatever happened in between. */
|
|
11345
|
+
expectedUpdatedAt?: string;
|
|
11288
11346
|
}
|
|
11289
11347
|
|
|
11290
11348
|
/** What update an expense category answers: `expenseCategories.update`. */
|
|
@@ -11391,6 +11449,8 @@ export interface RecurringExpensesUpdateParams {
|
|
|
11391
11449
|
reference?: string;
|
|
11392
11450
|
/** 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. */
|
|
11393
11451
|
amountCurrency?: string;
|
|
11452
|
+
/** The recurring expense's `updatedAt` you last read. Sent, the change is refused with `stale_write` if it has changed since. Left out, it is saved whatever happened in between. */
|
|
11453
|
+
expectedUpdatedAt?: string;
|
|
11394
11454
|
}
|
|
11395
11455
|
|
|
11396
11456
|
/** What update a recurring expense answers: `recurringExpenses.update`. */
|
|
@@ -15425,7 +15485,7 @@ export interface ShoplyResourcesResellerOrders {
|
|
|
15425
15485
|
/**
|
|
15426
15486
|
* **Get a reseller order**
|
|
15427
15487
|
*
|
|
15428
|
-
* One reseller order whole, as the dashboard's page for it shows it: who bought it (`reseller`, and `boughtBy`, the member of their team), how (`via`), the `total` taken off their balance, `listTotal` (what it came to at the panel's list prices when bought) and `discount` (what their price took off it), both null for an order from before those were kept, and `balanceAfter`. Each of `lines` is an option it bought, with its `unitPrice` and `quantity` and what it delivered: `keys`, `items` (what a dynamic delivery's server handed back, a line each), `instructions`, and `waiting` while a dynamic line is still being fetched. A store's own order or a top-up answers 404.
|
|
15488
|
+
* One reseller order whole, as the dashboard's page for it shows it: who bought it (`reseller`, and `boughtBy`, the member of their team), how (`via`), the `total` taken off their balance, `listTotal` (what it came to at the panel's list prices when bought) and `discount` (what their price took off it), both null for an order from before those were kept, and `balanceAfter`. Each of `lines` is an option it bought, with its `unitPrice` and `quantity` and what it delivered: `keys`, `items` (what a dynamic delivery's server handed back, a line each), `instructions`, and `waiting` while a dynamic line is still being fetched. What it delivered is answered only to a key that also holds `orders.read`, as a store order's is: to any other, `keys` and `items` are empty, `instructions` is empty, `delivered` says how many, and `goodsShown` is false. A store's own order or a top-up answers 404.
|
|
15429
15489
|
*
|
|
15430
15490
|
* Needs the `resellers.read` permission (Read Resellers).
|
|
15431
15491
|
*
|
|
@@ -16234,7 +16294,7 @@ export interface ShoplyResourcesRequests {
|
|
|
16234
16294
|
/**
|
|
16235
16295
|
* **Get an API request**
|
|
16236
16296
|
*
|
|
16237
|
-
* One request, with what was sent and what came back. Long bodies are cut short,
|
|
16297
|
+
* One request, with what was sent and what came back. Long bodies are cut short. A secret is never kept, in what was sent, what came back or the query: a value under a name that says it is one (a password, a signing secret, a token) and a value shaped like one under any name (an API key, a join link) is `[not kept]`. Nor are license keys going into stock. The two bodies are answered only to a key that holds the scope of what the request did, and `bodiesWithheld` is true where they were kept back. A request's ID is the `X-Request-Id` header of its answer.
|
|
16238
16298
|
*
|
|
16239
16299
|
* Needs the `logs.read` permission (Read API Requests).
|
|
16240
16300
|
*
|
|
@@ -16656,7 +16716,7 @@ export interface ShoplyCustomerResources {
|
|
|
16656
16716
|
*
|
|
16657
16717
|
* Emails a six-digit code to the address a buyer typed, for them to type back with Sign in with the code. The code works for 10 minutes, five tries.
|
|
16658
16718
|
*
|
|
16659
|
-
* The answer is the same for any address, and a code is only mailed to an address that has orders at the store, so this cannot be used to find out who has bought there. One address is sent a code a minute at most, five an hour and ten a day: past that the answer is `code_cooldown` with `resendIn`, the seconds to wait. A store sends 60 codes an hour at most, and past that
|
|
16719
|
+
* The answer is the same for any address, and a code is only mailed to an address that has orders at the store, so this cannot be used to find out who has bought there. One address is sent a code a minute at most, five an hour and ten a day: past that the answer is `code_cooldown` with `resendIn`, the seconds to wait. A store sends 60 codes an hour at most, and past that the answer is `store_busy`. Other stores' codes never count against it.
|
|
16660
16720
|
*
|
|
16661
16721
|
* Call it from the buyer's own device. It is counted for the address that asks, 10 an hour, so a server asking for every buyer would run out at once.
|
|
16662
16722
|
*
|
|
@@ -17165,37 +17225,37 @@ export interface WebhookEventData {
|
|
|
17165
17225
|
/**
|
|
17166
17226
|
* A team was made at the store, with what its people may do.
|
|
17167
17227
|
*
|
|
17168
|
-
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed` or `
|
|
17228
|
+
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed`, `left`, or `account_deleted` when their Shoply account was deleted, 30 days after it was closed) and `keysStopped`.
|
|
17169
17229
|
*/
|
|
17170
17230
|
"team.created": Record<string, unknown>;
|
|
17171
17231
|
/**
|
|
17172
17232
|
* A team was renamed or given other permissions. Its people can do what it now holds from their next request.
|
|
17173
17233
|
*
|
|
17174
|
-
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed` or `
|
|
17234
|
+
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed`, `left`, or `account_deleted` when their Shoply account was deleted, 30 days after it was closed) and `keysStopped`.
|
|
17175
17235
|
*/
|
|
17176
17236
|
"team.updated": Record<string, unknown>;
|
|
17177
17237
|
/**
|
|
17178
17238
|
* A team with nobody on it was deleted, with its invites not yet taken up.
|
|
17179
17239
|
*
|
|
17180
|
-
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed` or `
|
|
17240
|
+
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed`, `left`, or `account_deleted` when their Shoply account was deleted, 30 days after it was closed) and `keysStopped`.
|
|
17181
17241
|
*/
|
|
17182
17242
|
"team.deleted": Record<string, unknown>;
|
|
17183
17243
|
/**
|
|
17184
17244
|
* Somebody took up an invite and can now reach the store from their store switcher.
|
|
17185
17245
|
*
|
|
17186
|
-
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed` or `
|
|
17246
|
+
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed`, `left`, or `account_deleted` when their Shoply account was deleted, 30 days after it was closed) and `keysStopped`.
|
|
17187
17247
|
*/
|
|
17188
17248
|
"team.member_joined": Record<string, unknown>;
|
|
17189
17249
|
/**
|
|
17190
17250
|
* Somebody on the team was moved to another team, and can do what that team holds.
|
|
17191
17251
|
*
|
|
17192
|
-
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed` or `
|
|
17252
|
+
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed`, `left`, or `account_deleted` when their Shoply account was deleted, 30 days after it was closed) and `keysStopped`.
|
|
17193
17253
|
*/
|
|
17194
17254
|
"team.member_moved": Record<string, unknown>;
|
|
17195
17255
|
/**
|
|
17196
|
-
* Somebody can no longer reach the store: they were removed, or
|
|
17256
|
+
* Somebody can no longer reach the store: they were removed, they left, or their Shoply account was deleted. The API keys they made and the apps they connected stopped working with them.
|
|
17197
17257
|
*
|
|
17198
|
-
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed` or `
|
|
17258
|
+
* `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed`, `left`, or `account_deleted` when their Shoply account was deleted, 30 days after it was closed) and `keysStopped`.
|
|
17199
17259
|
*/
|
|
17200
17260
|
"team.member_left": Record<string, unknown>;
|
|
17201
17261
|
/**
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplygg/node",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
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",
|