@shoplygg/node 0.12.1 → 0.12.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.
- package/generated/api.d.ts +126 -20
- 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`. */
|
|
@@ -4454,6 +4462,7 @@ export type OrdersShowResult = {
|
|
|
4454
4462
|
}[];
|
|
4455
4463
|
testPayment: boolean;
|
|
4456
4464
|
payments: unknown[] | Record<string, unknown>;
|
|
4465
|
+
held: unknown;
|
|
4457
4466
|
invoice: unknown;
|
|
4458
4467
|
disputes: unknown[] | Record<string, unknown>;
|
|
4459
4468
|
discord: unknown;
|
|
@@ -4627,6 +4636,7 @@ export type InvoicesListItem = {
|
|
|
4627
4636
|
status: string;
|
|
4628
4637
|
itemCount: number;
|
|
4629
4638
|
paidAt: unknown;
|
|
4639
|
+
closed: boolean;
|
|
4630
4640
|
};
|
|
4631
4641
|
|
|
4632
4642
|
/** What create an invoice takes: `invoices.create`. */
|
|
@@ -5528,6 +5538,8 @@ export interface BlogCategoriesUpdateParams {
|
|
|
5528
5538
|
description?: string;
|
|
5529
5539
|
/** The part of its address after `/blog/`. Left out, it is made from the name. A post and a category cannot share one. */
|
|
5530
5540
|
slug?: string;
|
|
5541
|
+
/** 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. */
|
|
5542
|
+
expectedVersion?: string;
|
|
5531
5543
|
}
|
|
5532
5544
|
|
|
5533
5545
|
/** What update a blog category answers: `blogCategories.update`. */
|
|
@@ -5648,6 +5660,8 @@ export interface BlogPostsUpdateParams {
|
|
|
5648
5660
|
seoTitle?: string;
|
|
5649
5661
|
/** Its own description in search results. Empty is the start of its text. */
|
|
5650
5662
|
seoDescription?: string;
|
|
5663
|
+
/** 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. */
|
|
5664
|
+
expectedVersion?: string;
|
|
5651
5665
|
}
|
|
5652
5666
|
|
|
5653
5667
|
/** What update a blog post answers: `blogPosts.update`. */
|
|
@@ -5754,6 +5768,8 @@ export interface SeoUpdateParams {
|
|
|
5754
5768
|
measurementId?: string;
|
|
5755
5769
|
/** That property's Measurement Protocol API secret. It is never answered back. */
|
|
5756
5770
|
apiSecret?: string;
|
|
5771
|
+
/** 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. */
|
|
5772
|
+
expectedVersion?: string;
|
|
5757
5773
|
}
|
|
5758
5774
|
|
|
5759
5775
|
/** What update search settings answers: `seo.update`. */
|
|
@@ -5805,6 +5821,8 @@ export interface RedirectsUpdateParams {
|
|
|
5805
5821
|
from: string;
|
|
5806
5822
|
/** 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
5823
|
to: string;
|
|
5824
|
+
/** 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. */
|
|
5825
|
+
expectedVersion?: string;
|
|
5808
5826
|
}
|
|
5809
5827
|
|
|
5810
5828
|
/** What update a redirect answers: `redirects.update`. */
|
|
@@ -5865,6 +5883,8 @@ export interface SitemapUpdateKindParams {
|
|
|
5865
5883
|
priority?: string;
|
|
5866
5884
|
/** How often it changes. */
|
|
5867
5885
|
changefreq?: "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never";
|
|
5886
|
+
/** 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. */
|
|
5887
|
+
expectedVersion?: string;
|
|
5868
5888
|
}
|
|
5869
5889
|
|
|
5870
5890
|
/** What update a kind of address answers: `sitemap.updateKind`. */
|
|
@@ -5900,6 +5920,8 @@ export interface SitemapUpdateEntryParams {
|
|
|
5900
5920
|
kind: "pages" | "categories" | "products" | "blog";
|
|
5901
5921
|
/** Which address of that kind, as "Get the sitemap" names it. */
|
|
5902
5922
|
ref: string;
|
|
5923
|
+
/** 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. */
|
|
5924
|
+
expectedVersion?: string;
|
|
5903
5925
|
/** Whether the sitemap lists it. */
|
|
5904
5926
|
listed?: boolean;
|
|
5905
5927
|
/** Its priority, from `0.1` to `1.0`. */
|
|
@@ -5967,6 +5989,8 @@ export interface CartRecoveryUpdateParams {
|
|
|
5967
5989
|
secondSubject?: string;
|
|
5968
5990
|
/** The percent off its coupon. One of 0, 5, 10, 15, 20, 25. 0 sends it with no coupon. */
|
|
5969
5991
|
secondPercent?: number;
|
|
5992
|
+
/** 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. */
|
|
5993
|
+
expectedVersion?: string;
|
|
5970
5994
|
}
|
|
5971
5995
|
|
|
5972
5996
|
/** What change Cart Recovery answers: `cartRecovery.update`. */
|
|
@@ -6101,6 +6125,8 @@ export interface WinBackUpdateParams {
|
|
|
6101
6125
|
secondPercent?: number;
|
|
6102
6126
|
/** Who is written to: empty for every subscriber, `vip`, or the ID of one of the store's tags. */
|
|
6103
6127
|
audience?: string;
|
|
6128
|
+
/** 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. */
|
|
6129
|
+
expectedVersion?: string;
|
|
6104
6130
|
}
|
|
6105
6131
|
|
|
6106
6132
|
/** What change Win-Back answers: `winBack.update`. */
|
|
@@ -6620,6 +6646,11 @@ export type CustomersStatsResult = {
|
|
|
6620
6646
|
/** What get a customer answers: `customers.show`. */
|
|
6621
6647
|
export type CustomersShowResult = {
|
|
6622
6648
|
balance: number;
|
|
6649
|
+
balanceHolds: {
|
|
6650
|
+
orderId: string;
|
|
6651
|
+
amount: number;
|
|
6652
|
+
why: string;
|
|
6653
|
+
}[];
|
|
6623
6654
|
balanceAtCheckout: boolean;
|
|
6624
6655
|
tags: {
|
|
6625
6656
|
id: string;
|
|
@@ -6671,6 +6702,11 @@ export interface CustomersSetBalanceParams {
|
|
|
6671
6702
|
/** What change a customer's balance answers: `customers.setBalance`. */
|
|
6672
6703
|
export type CustomersSetBalanceResult = {
|
|
6673
6704
|
balance: number;
|
|
6705
|
+
balanceHolds: {
|
|
6706
|
+
orderId: string;
|
|
6707
|
+
amount: number;
|
|
6708
|
+
why: string;
|
|
6709
|
+
}[];
|
|
6674
6710
|
balanceAtCheckout: boolean;
|
|
6675
6711
|
tags: {
|
|
6676
6712
|
id: string;
|
|
@@ -6712,6 +6748,11 @@ export interface CustomersBlacklistParams {
|
|
|
6712
6748
|
/** What blacklist a customer answers: `customers.blacklist`. */
|
|
6713
6749
|
export type CustomersBlacklistResult = {
|
|
6714
6750
|
balance: number;
|
|
6751
|
+
balanceHolds: {
|
|
6752
|
+
orderId: string;
|
|
6753
|
+
amount: number;
|
|
6754
|
+
why: string;
|
|
6755
|
+
}[];
|
|
6715
6756
|
balanceAtCheckout: boolean;
|
|
6716
6757
|
tags: {
|
|
6717
6758
|
id: string;
|
|
@@ -6757,6 +6798,11 @@ export interface CustomersUnblacklistParams {
|
|
|
6757
6798
|
/** What clear a customer from the blacklist answers: `customers.unblacklist`. */
|
|
6758
6799
|
export type CustomersUnblacklistResult = {
|
|
6759
6800
|
balance: number;
|
|
6801
|
+
balanceHolds: {
|
|
6802
|
+
orderId: string;
|
|
6803
|
+
amount: number;
|
|
6804
|
+
why: string;
|
|
6805
|
+
}[];
|
|
6760
6806
|
balanceAtCheckout: boolean;
|
|
6761
6807
|
tags: {
|
|
6762
6808
|
id: string;
|
|
@@ -6793,6 +6839,11 @@ export interface CustomersTrustParams {
|
|
|
6793
6839
|
/** What trust a customer answers: `customers.trust`. */
|
|
6794
6840
|
export type CustomersTrustResult = {
|
|
6795
6841
|
balance: number;
|
|
6842
|
+
balanceHolds: {
|
|
6843
|
+
orderId: string;
|
|
6844
|
+
amount: number;
|
|
6845
|
+
why: string;
|
|
6846
|
+
}[];
|
|
6796
6847
|
balanceAtCheckout: boolean;
|
|
6797
6848
|
tags: {
|
|
6798
6849
|
id: string;
|
|
@@ -6823,6 +6874,11 @@ export type CustomersTrustResult = {
|
|
|
6823
6874
|
/** What stop trusting a customer answers: `customers.untrust`. */
|
|
6824
6875
|
export type CustomersUntrustResult = {
|
|
6825
6876
|
balance: number;
|
|
6877
|
+
balanceHolds: {
|
|
6878
|
+
orderId: string;
|
|
6879
|
+
amount: number;
|
|
6880
|
+
why: string;
|
|
6881
|
+
}[];
|
|
6826
6882
|
balanceAtCheckout: boolean;
|
|
6827
6883
|
tags: {
|
|
6828
6884
|
id: string;
|
|
@@ -6913,6 +6969,8 @@ export interface CustomerTagsUpdateParams {
|
|
|
6913
6969
|
name?: string;
|
|
6914
6970
|
/** Its colour. */
|
|
6915
6971
|
tone?: "neutral" | "primary" | "success" | "warning" | "danger";
|
|
6972
|
+
/** 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. */
|
|
6973
|
+
expectedVersion?: string;
|
|
6916
6974
|
}
|
|
6917
6975
|
|
|
6918
6976
|
/** What change a customer tag answers: `customerTags.update`. */
|
|
@@ -7030,6 +7088,8 @@ export interface AffiliatesUpdateParams {
|
|
|
7030
7088
|
discount?: number;
|
|
7031
7089
|
/** Whether their link works. Switched off, it takes nothing off and earns nothing. */
|
|
7032
7090
|
active?: boolean;
|
|
7091
|
+
/** 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. */
|
|
7092
|
+
expectedVersion?: string;
|
|
7033
7093
|
}
|
|
7034
7094
|
|
|
7035
7095
|
/** What update an affiliate answers: `affiliates.update`. */
|
|
@@ -7230,6 +7290,8 @@ export interface AffiliateProgrammeUpdateParams {
|
|
|
7230
7290
|
toStore?: boolean;
|
|
7231
7291
|
/** Whether an affiliate may ask for a payout. */
|
|
7232
7292
|
payouts?: boolean;
|
|
7293
|
+
/** 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. */
|
|
7294
|
+
expectedVersion?: string;
|
|
7233
7295
|
}
|
|
7234
7296
|
|
|
7235
7297
|
/** What update the affiliate programme answers: `affiliateProgramme.update`. */
|
|
@@ -7668,6 +7730,8 @@ export interface TeamsUpdateParams {
|
|
|
7668
7730
|
name: string;
|
|
7669
7731
|
/** 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
7732
|
permissions: string[];
|
|
7733
|
+
/** 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. */
|
|
7734
|
+
expectedVersion?: string;
|
|
7671
7735
|
}
|
|
7672
7736
|
|
|
7673
7737
|
/** What update a team answers: `teams.update`. */
|
|
@@ -7825,6 +7889,8 @@ export interface ResellersUpdateSettingsParams {
|
|
|
7825
7889
|
currency?: string;
|
|
7826
7890
|
/** The smallest top-up a reseller can make, 5.00 to 100,000.00. */
|
|
7827
7891
|
minTopup?: number;
|
|
7892
|
+
/** 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. */
|
|
7893
|
+
expectedVersion?: string;
|
|
7828
7894
|
}
|
|
7829
7895
|
|
|
7830
7896
|
/** What update the panel's settings answers: `resellers.updateSettings`. */
|
|
@@ -7918,7 +7984,7 @@ export interface ResellerProductsBadgesParams {
|
|
|
7918
7984
|
|
|
7919
7985
|
/** What set a product's status and labels on the panel answers: `resellerProducts.badges`. */
|
|
7920
7986
|
export type ResellerProductsBadgesResult = {
|
|
7921
|
-
"
|
|
7987
|
+
"591cc244-1b62-483e-8002-ad61aa7829b2": {
|
|
7922
7988
|
label: string;
|
|
7923
7989
|
color: string;
|
|
7924
7990
|
kind: string;
|
|
@@ -8040,6 +8106,8 @@ export interface ResellerInvitesUpdateParams {
|
|
|
8040
8106
|
* Left out, it is true.
|
|
8041
8107
|
*/
|
|
8042
8108
|
enabled?: boolean;
|
|
8109
|
+
/** 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. */
|
|
8110
|
+
expectedVersion?: string;
|
|
8043
8111
|
}
|
|
8044
8112
|
|
|
8045
8113
|
/** What update an invite link answers: `resellerInvites.update`. */
|
|
@@ -8110,6 +8178,8 @@ export interface ResellerAnnouncementsUpdateParams {
|
|
|
8110
8178
|
* Left out, it is false.
|
|
8111
8179
|
*/
|
|
8112
8180
|
pinned?: boolean;
|
|
8181
|
+
/** 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. */
|
|
8182
|
+
expectedVersion?: string;
|
|
8113
8183
|
}
|
|
8114
8184
|
|
|
8115
8185
|
/** What update an announcement answers: `resellerAnnouncements.update`. */
|
|
@@ -8233,6 +8303,7 @@ export type ResellerTopUpsListItem = {
|
|
|
8233
8303
|
method: string;
|
|
8234
8304
|
createdAt: string;
|
|
8235
8305
|
paidAt: unknown;
|
|
8306
|
+
held: unknown;
|
|
8236
8307
|
};
|
|
8237
8308
|
|
|
8238
8309
|
/** What export top-ups takes: `resellerTopUps.export`. */
|
|
@@ -8359,6 +8430,8 @@ export interface ResellersUpdateParams {
|
|
|
8359
8430
|
discount?: number;
|
|
8360
8431
|
/** Whether they can buy and top up. */
|
|
8361
8432
|
status?: "active" | "paused";
|
|
8433
|
+
/** 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. */
|
|
8434
|
+
expectedVersion?: string;
|
|
8362
8435
|
}
|
|
8363
8436
|
|
|
8364
8437
|
/** What update a reseller answers: `resellers.update`. */
|
|
@@ -8478,6 +8551,8 @@ export type ResellersSetBalanceResult = {
|
|
|
8478
8551
|
export interface ResellersUpdateMemberParams {
|
|
8479
8552
|
/** 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
8553
|
permissions: string[];
|
|
8554
|
+
/** 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. */
|
|
8555
|
+
expectedVersion?: string;
|
|
8481
8556
|
}
|
|
8482
8557
|
|
|
8483
8558
|
/** What change what a reseller's member may do answers: `resellers.updateMember`. */
|
|
@@ -8676,6 +8751,8 @@ export interface BlacklistUpdateParams {
|
|
|
8676
8751
|
* Left out, it is true.
|
|
8677
8752
|
*/
|
|
8678
8753
|
enabled?: boolean;
|
|
8754
|
+
/** 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. */
|
|
8755
|
+
expectedUpdatedAt?: string;
|
|
8679
8756
|
}
|
|
8680
8757
|
|
|
8681
8758
|
/** What update a blacklist rule answers: `blacklist.update`. */
|
|
@@ -8817,6 +8894,8 @@ export interface AllowlistUpdateParams {
|
|
|
8817
8894
|
* Left out, it is true.
|
|
8818
8895
|
*/
|
|
8819
8896
|
enabled?: boolean;
|
|
8897
|
+
/** 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. */
|
|
8898
|
+
expectedUpdatedAt?: string;
|
|
8820
8899
|
}
|
|
8821
8900
|
|
|
8822
8901
|
/** What update an allowlist entry answers: `allowlist.update`. */
|
|
@@ -9513,6 +9592,8 @@ export interface DisputesUpdateSettingsParams {
|
|
|
9513
9592
|
discordRoles?: "keep" | "take" | "kick" | "ban";
|
|
9514
9593
|
/** Whether a dispute closed in the store's favour gives the roles back, adds a kicked buyer again and lifts a ban. */
|
|
9515
9594
|
discordRolesBack?: boolean;
|
|
9595
|
+
/** 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. */
|
|
9596
|
+
expectedVersion?: string;
|
|
9516
9597
|
}
|
|
9517
9598
|
|
|
9518
9599
|
/** What change dispute settings answers: `disputes.updateSettings`. */
|
|
@@ -9794,6 +9875,8 @@ export interface FinanceSetPaymentCostsParams {
|
|
|
9794
9875
|
/** The fixed amount it keeps of each payment, in the store's currency. */
|
|
9795
9876
|
fixed?: number;
|
|
9796
9877
|
}[];
|
|
9878
|
+
/** 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. */
|
|
9879
|
+
expectedVersion?: string;
|
|
9797
9880
|
}
|
|
9798
9881
|
|
|
9799
9882
|
/** What set payment fee rates answers: `finance.setPaymentCosts`. */
|
|
@@ -10095,6 +10178,8 @@ export interface TaxUpdateParams {
|
|
|
10095
10178
|
included?: boolean;
|
|
10096
10179
|
/** 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
10180
|
business?: boolean;
|
|
10181
|
+
/** 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. */
|
|
10182
|
+
expectedVersion?: string;
|
|
10098
10183
|
}
|
|
10099
10184
|
|
|
10100
10185
|
/** What update tax settings answers: `tax.update`. */
|
|
@@ -10383,6 +10468,8 @@ export interface TaxSetRatesParams {
|
|
|
10383
10468
|
/** The rate, in percent. Left out for a whole country, its built-in rate. A state's rate is always sent. */
|
|
10384
10469
|
rate?: number;
|
|
10385
10470
|
}[];
|
|
10471
|
+
/** 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. */
|
|
10472
|
+
expectedVersion?: string;
|
|
10386
10473
|
}
|
|
10387
10474
|
|
|
10388
10475
|
/** What add or change tax rates answers: `tax.setRates`. */
|
|
@@ -11199,6 +11286,8 @@ export interface ExpensesUpdateParams {
|
|
|
11199
11286
|
productId?: string;
|
|
11200
11287
|
/** 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
11288
|
amountCurrency?: string;
|
|
11289
|
+
/** 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. */
|
|
11290
|
+
expectedUpdatedAt?: string;
|
|
11202
11291
|
}
|
|
11203
11292
|
|
|
11204
11293
|
/** What update an expense answers: `expenses.update`. */
|
|
@@ -11285,6 +11374,8 @@ export interface ExpenseCategoriesUpdateParams {
|
|
|
11285
11374
|
name: string;
|
|
11286
11375
|
/** Its icon. Left out, it stays as it is. */
|
|
11287
11376
|
icon?: string;
|
|
11377
|
+
/** 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. */
|
|
11378
|
+
expectedUpdatedAt?: string;
|
|
11288
11379
|
}
|
|
11289
11380
|
|
|
11290
11381
|
/** What update an expense category answers: `expenseCategories.update`. */
|
|
@@ -11391,6 +11482,8 @@ export interface RecurringExpensesUpdateParams {
|
|
|
11391
11482
|
reference?: string;
|
|
11392
11483
|
/** 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
11484
|
amountCurrency?: string;
|
|
11485
|
+
/** 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. */
|
|
11486
|
+
expectedUpdatedAt?: string;
|
|
11394
11487
|
}
|
|
11395
11488
|
|
|
11396
11489
|
/** What update a recurring expense answers: `recurringExpenses.update`. */
|
|
@@ -11714,7 +11807,16 @@ export type CustomerVerifyResult = {
|
|
|
11714
11807
|
export type CustomerShowResult = {
|
|
11715
11808
|
email: string;
|
|
11716
11809
|
customerSince: string;
|
|
11717
|
-
balance:
|
|
11810
|
+
balance: {
|
|
11811
|
+
amount: number;
|
|
11812
|
+
currencyCode: string;
|
|
11813
|
+
available: number;
|
|
11814
|
+
holds: {
|
|
11815
|
+
orderId: string;
|
|
11816
|
+
amount: number;
|
|
11817
|
+
why: string;
|
|
11818
|
+
}[];
|
|
11819
|
+
};
|
|
11718
11820
|
affiliate: {
|
|
11719
11821
|
member: boolean;
|
|
11720
11822
|
canJoin: boolean;
|
|
@@ -13651,7 +13753,7 @@ export interface ShoplyResourcesOrders {
|
|
|
13651
13753
|
/**
|
|
13652
13754
|
* **Get an order**
|
|
13653
13755
|
*
|
|
13654
|
-
* One order with everything its page shows: its lines and what each delivered, its payments, the buyer, its timeline, where it came from, `refund`, which says which ways it can be refunded, and `requests`: what Shoply sent your servers about it, each try of each webhook about the order and each line's dynamic delivery, newest first, with the first 300 characters of what came back. `customPayment` is for an order paid with one of your custom payment methods, and null for any other: the method's name, `status` (`open`, `review` while it waits for you to approve or reject it, `paid` or `rejected`), the amount, and `proof`, what the buyer sent when they said they paid (the reference, whether a proof of payment was sent, and when). An order brought across by Platform Migration is found by its ID on the platform it came from as well, and answers with its own `id`; what it delivered there is in its items' `deliveredKeys`, a line of it each, where that platform says.
|
|
13756
|
+
* One order with everything its page shows: its lines and what each delivered, its payments, the buyer, its timeline, where it came from, `refund`, which says which ways it can be refunded, and `requests`: what Shoply sent your servers about it, each try of each webhook about the order and each line's dynamic delivery, newest first, with the first 300 characters of what came back. `customPayment` is for an order paid with one of your custom payment methods, and null for any other: the method's name, `status` (`open`, `review` while it waits for you to approve or reject it, `paid` or `rejected`), the amount, and `proof`, what the buyer sent when they said they paid (the reference, whether a proof of payment was sent, and when). `held` says why an unpaid order is held for its payment, and is null for any other order. Such an order is not cancelled when its time runs out. `reason` is `unconfirmed` (the payment provider could not say whether it was paid, since `since`) or `pending` (the provider says the payment is on its way), `lines` is the same as sentences, `providers` is who to look for the payment with, `renewal`, for a subscription's renewal, is what cancelling it does: `again`, another is made, or `ends`, the subscription ends, `balance` is how much of the buyer's store balance it holds, which cancelling it releases, and `again`, for a renewal whose charge got no answer and can be sent again, is the `provider`, the `reference` to look for there, and `until` when, or null. It is cancelled, and its charge sent again, in the dashboard, by somebody who has looked, and not with a key. An order brought across by Platform Migration is found by its ID on the platform it came from as well, and answers with its own `id`; what it delivered there is in its items' `deliveredKeys`, a line of it each, where that platform says.
|
|
13655
13757
|
*
|
|
13656
13758
|
* Needs the `orders.read` permission (Read Orders).
|
|
13657
13759
|
*
|
|
@@ -13713,6 +13815,8 @@ export interface ShoplyResourcesOrders {
|
|
|
13713
13815
|
*
|
|
13714
13816
|
* One order is delivered again at most ten times an hour, whoever asks: after that the answer is 429.
|
|
13715
13817
|
*
|
|
13818
|
+
* Refused with `access_held` (409) while the buyer's access to the order is taken back: a dispute on it took its keys and files back, or the subscription it belongs to is paused or has ended.
|
|
13819
|
+
*
|
|
13716
13820
|
* Needs the `orders.fulfil` permission (Deliver Orders).
|
|
13717
13821
|
*
|
|
13718
13822
|
* @see https://docs.shoply.gg/api-reference/orders/deliver-an-order-again
|
|
@@ -13721,7 +13825,7 @@ export interface ShoplyResourcesOrders {
|
|
|
13721
13825
|
/**
|
|
13722
13826
|
* **Retry a dynamic delivery**
|
|
13723
13827
|
*
|
|
13724
|
-
* Asks your delivery endpoint again for the lines whose dynamic delivery failed. Nothing is revoked: those lines never delivered anything. A store may ask for 150 of these in ten minutes.
|
|
13828
|
+
* Asks your delivery endpoint again for the lines whose dynamic delivery failed. Nothing is revoked: those lines never delivered anything. A store may ask for 150 of these in ten minutes. Refused with `access_held` (409) while the buyer's access to the order is taken back, as Deliver an order again is; its lines are delivered once the access is given back.
|
|
13725
13829
|
*
|
|
13726
13830
|
* Needs the `orders.fulfil` permission (Deliver Orders).
|
|
13727
13831
|
*
|
|
@@ -13731,7 +13835,7 @@ export interface ShoplyResourcesOrders {
|
|
|
13731
13835
|
/**
|
|
13732
13836
|
* **Send an order's email again**
|
|
13733
13837
|
*
|
|
13734
|
-
* Sends the order's delivery email again, with what it delivered, to the order's own email address. One customer's order emails are sent again at most five times an hour at your store, across all their orders and whoever asks: after that the answer is 429.
|
|
13838
|
+
* Sends the order's delivery email again, with what it delivered, to the order's own email address. One customer's order emails are sent again at most five times an hour at your store, across all their orders and whoever asks: after that the answer is 429. Refused with `access_held` (409) while the buyer's access to the order is taken back, as Deliver an order again is.
|
|
13735
13839
|
*
|
|
13736
13840
|
* Needs the `orders.fulfil` permission (Deliver Orders). It sends an email, and is counted against a budget of its own: 60 in ten minutes for each key.
|
|
13737
13841
|
*
|
|
@@ -13784,7 +13888,7 @@ export interface ShoplyResourcesInvoices {
|
|
|
13784
13888
|
/**
|
|
13785
13889
|
* **List invoices**
|
|
13786
13890
|
*
|
|
13787
|
-
* The invoices the store has raised, a page at a time, newest first. An invoice is an order the store made for a buyer to pay: `orderId` is that order, and `payUrl` the page it is paid on. A payment link is listed with them (`kind` is `link`): an amount and what it is for (`title`), with no buyer on it (`email` is empty) until it is emailed to somebody or paid. One made in another currency than the store's says what the buyer is asked for in `charge`.
|
|
13891
|
+
* The invoices the store has raised, a page at a time, newest first. An invoice is an order the store made for a buyer to pay: `orderId` is that order, and `payUrl` the page it is paid on. A payment link is listed with them (`kind` is `link`): an amount and what it is for (`title`), with no buyer on it (`email` is empty) until it is emailed to somebody or paid. One made in another currency than the store's says what the buyer is asked for in `charge`. `overdue` is past its due date, so it can no longer be paid. `closed` is unpaid and past its due date with no payment keeping it open, so it is cancelled within minutes.
|
|
13788
13892
|
*
|
|
13789
13893
|
* Needs the `invoices.read` permission (Read Invoices).
|
|
13790
13894
|
*
|
|
@@ -14617,7 +14721,7 @@ export interface ShoplyResourcesCustomers {
|
|
|
14617
14721
|
/**
|
|
14618
14722
|
* **Get a customer**
|
|
14619
14723
|
*
|
|
14620
|
-
* 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.
|
|
14724
|
+
* 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, what of it is on hold (`balanceHolds`: each order, how much, and why: `coming`, `unconfirmed` or `part_paid`), their `tags`, whether they are blacklisted, and their affiliate figures if they are one.
|
|
14621
14725
|
*
|
|
14622
14726
|
* Needs the `customers.read` permission (Read Customers).
|
|
14623
14727
|
*
|
|
@@ -14627,7 +14731,7 @@ export interface ShoplyResourcesCustomers {
|
|
|
14627
14731
|
/**
|
|
14628
14732
|
* **Change a customer's balance**
|
|
14629
14733
|
*
|
|
14630
|
-
* Adds to, takes from or sets the customer's balance at the store, which they can spend at checkout. Send an `Idempotency-Key` with this request, so that a retry does not credit twice. Answers the customer with the new balance and its history.
|
|
14734
|
+
* Adds to, takes from or sets the customer's balance at the store, which they can spend at checkout. Send an `Idempotency-Key` with this request, so that a retry does not credit twice. Answers the customer with the new balance and its history. What is on hold for their orders (`balanceHolds`) can't be taken: a change that would leave less than that is refused with `422`, under `errors.amount`.
|
|
14631
14735
|
*
|
|
14632
14736
|
* Needs the `customers.balance` permission (Change Balances).
|
|
14633
14737
|
*
|
|
@@ -15180,7 +15284,7 @@ export interface ShoplyResourcesResellers {
|
|
|
15180
15284
|
/**
|
|
15181
15285
|
* **Remove a reseller**
|
|
15182
15286
|
*
|
|
15183
|
-
* Removes a reseller from the store: their team can no longer sign in, and their API keys, delivery URLs and team invites are deleted. Their records are kept: their orders and top-ups stay in List reseller orders and List top-ups, and Get a reseller still answers them, with `removedAt` and their balance history. Refused with `reseller_has_balance` while they hold a balance: set it to zero first. A removed reseller is in no list of resellers, and does not count against the store's plan.
|
|
15287
|
+
* Removes a reseller from the store: their team can no longer sign in, and their API keys, delivery URLs and team invites are deleted. Their records are kept: their orders and top-ups stay in List reseller orders and List top-ups, and Get a reseller still answers them, with `removedAt` and their balance history. Refused with `reseller_has_balance` while they hold a balance: set it to zero first. Their top-ups not yet paid are cancelled, and while one is being paid the answer is `reseller_topup_paying` (409): ask again once it has its answer, so the money is on their balance first. A removed reseller is in no list of resellers, and does not count against the store's plan.
|
|
15184
15288
|
*
|
|
15185
15289
|
* Needs the `resellers.write` permission (Change Resellers).
|
|
15186
15290
|
*
|
|
@@ -15425,7 +15529,7 @@ export interface ShoplyResourcesResellerOrders {
|
|
|
15425
15529
|
/**
|
|
15426
15530
|
* **Get a reseller order**
|
|
15427
15531
|
*
|
|
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.
|
|
15532
|
+
* 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
15533
|
*
|
|
15430
15534
|
* Needs the `resellers.read` permission (Read Resellers).
|
|
15431
15535
|
*
|
|
@@ -15438,7 +15542,7 @@ export interface ShoplyResourcesResellerTopUps {
|
|
|
15438
15542
|
/**
|
|
15439
15543
|
* **List top-ups**
|
|
15440
15544
|
*
|
|
15441
|
-
* Money resellers put on their balance, paid on the store's checkout with its own payment methods, newest first, 25 a page. `state` is `paid`, `waiting` (for the reseller to pay), `checking` (paid with one of the store's custom methods, and waiting for the store), `expired` (not paid in the store's unpaid order time) or `taken_back` (its payment was taken back by the bank, and came off the balance). A top-up's `id` is the order it is paid with. `meta.counts` is how many in each state, and `meta.figures` the last 30 days'.
|
|
15545
|
+
* Money resellers put on their balance, paid on the store's checkout with its own payment methods, newest first, 25 a page. `state` is `paid`, `waiting` (for the reseller to pay), `checking` (paid with one of the store's custom methods, and waiting for the store), `expired` (not paid in the store's unpaid order time) or `taken_back` (its payment was taken back by the bank, and came off the balance). A top-up's `id` is the order it is paid with. `held` is why a `waiting` one is held for its payment and does not expire, or null: `reason`, `lines` and `providers`, as on an order. `meta.counts` is how many in each state, and `meta.figures` the last 30 days'.
|
|
15442
15546
|
*
|
|
15443
15547
|
* Needs the `resellers.read` permission (Read Resellers).
|
|
15444
15548
|
*
|
|
@@ -16234,7 +16338,7 @@ export interface ShoplyResourcesRequests {
|
|
|
16234
16338
|
/**
|
|
16235
16339
|
* **Get an API request**
|
|
16236
16340
|
*
|
|
16237
|
-
* One request, with what was sent and what came back. Long bodies are cut short,
|
|
16341
|
+
* 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
16342
|
*
|
|
16239
16343
|
* Needs the `logs.read` permission (Read API Requests).
|
|
16240
16344
|
*
|
|
@@ -16656,7 +16760,7 @@ export interface ShoplyCustomerResources {
|
|
|
16656
16760
|
*
|
|
16657
16761
|
* 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
16762
|
*
|
|
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
|
|
16763
|
+
* 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
16764
|
*
|
|
16661
16765
|
* 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
16766
|
*
|
|
@@ -16684,6 +16788,8 @@ export interface ShoplyCustomerResources {
|
|
|
16684
16788
|
*
|
|
16685
16789
|
* Everything the customer panel's first page shows: the buyer's email, what they have spent, their store balance, their 200 newest orders, and the downloads, files and setup instructions their paid orders hand over.
|
|
16686
16790
|
*
|
|
16791
|
+
* `balance` is null where they hold none. `amount` is all of it and `available` what they can spend now. `holds` is what is on hold of the rest: each order with part of it, how much, and `why`: `coming` (the payment is on its way), `unconfirmed` (nobody can say yet whether it was paid) or `part_paid` (only part of the payment has arrived). It is used when the payment arrives, and released when the payment fails or the order is cancelled.
|
|
16792
|
+
*
|
|
16687
16793
|
* `downloads.files` and `downloads.instructions` are every paid order's together. `downloads.orders` is the same an order at a time, newest first, as the customer panel shows it: each with what it bought, its own files and its own instructions. The store's `buttons` and `general` notes go with every order.
|
|
16688
16794
|
*
|
|
16689
16795
|
* `affiliate` is null unless the store has an affiliate programme the buyer is in or may join, and `subscriptions` says whether they have ever had one. Keys are not listed here: Get an order has them.
|
|
@@ -17165,37 +17271,37 @@ export interface WebhookEventData {
|
|
|
17165
17271
|
/**
|
|
17166
17272
|
* A team was made at the store, with what its people may do.
|
|
17167
17273
|
*
|
|
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 `
|
|
17274
|
+
* `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
17275
|
*/
|
|
17170
17276
|
"team.created": Record<string, unknown>;
|
|
17171
17277
|
/**
|
|
17172
17278
|
* A team was renamed or given other permissions. Its people can do what it now holds from their next request.
|
|
17173
17279
|
*
|
|
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 `
|
|
17280
|
+
* `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
17281
|
*/
|
|
17176
17282
|
"team.updated": Record<string, unknown>;
|
|
17177
17283
|
/**
|
|
17178
17284
|
* A team with nobody on it was deleted, with its invites not yet taken up.
|
|
17179
17285
|
*
|
|
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 `
|
|
17286
|
+
* `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
17287
|
*/
|
|
17182
17288
|
"team.deleted": Record<string, unknown>;
|
|
17183
17289
|
/**
|
|
17184
17290
|
* Somebody took up an invite and can now reach the store from their store switcher.
|
|
17185
17291
|
*
|
|
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 `
|
|
17292
|
+
* `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
17293
|
*/
|
|
17188
17294
|
"team.member_joined": Record<string, unknown>;
|
|
17189
17295
|
/**
|
|
17190
17296
|
* Somebody on the team was moved to another team, and can do what that team holds.
|
|
17191
17297
|
*
|
|
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 `
|
|
17298
|
+
* `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
17299
|
*/
|
|
17194
17300
|
"team.member_moved": Record<string, unknown>;
|
|
17195
17301
|
/**
|
|
17196
|
-
* Somebody can no longer reach the store: they were removed, or
|
|
17302
|
+
* 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
17303
|
*
|
|
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 `
|
|
17304
|
+
* `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
17305
|
*/
|
|
17200
17306
|
"team.member_left": Record<string, unknown>;
|
|
17201
17307
|
/**
|
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.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",
|