@shoplygg/node 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/api.d.ts +430 -11
- package/generated/operations.js +12 -2
- package/index.js +1 -1
- package/package.json +1 -1
package/generated/api.d.ts
CHANGED
|
@@ -2391,6 +2391,7 @@ export type ProductsListItem = {
|
|
|
2391
2391
|
image: string;
|
|
2392
2392
|
imageUrl: unknown;
|
|
2393
2393
|
visibility: string;
|
|
2394
|
+
planPaused: boolean;
|
|
2394
2395
|
sort: number;
|
|
2395
2396
|
isBestSeller: boolean;
|
|
2396
2397
|
badges: {
|
|
@@ -2586,6 +2587,7 @@ export type ProductsCreateResult = {
|
|
|
2586
2587
|
image: string;
|
|
2587
2588
|
imageUrl: unknown;
|
|
2588
2589
|
visibility: string;
|
|
2590
|
+
planPaused: boolean;
|
|
2589
2591
|
sort: number;
|
|
2590
2592
|
isBestSeller: boolean;
|
|
2591
2593
|
badges: {
|
|
@@ -2651,6 +2653,7 @@ export type ProductsShowResult = {
|
|
|
2651
2653
|
image: string;
|
|
2652
2654
|
imageUrl: unknown;
|
|
2653
2655
|
visibility: string;
|
|
2656
|
+
planPaused: boolean;
|
|
2654
2657
|
sort: number;
|
|
2655
2658
|
isBestSeller: boolean;
|
|
2656
2659
|
badges: {
|
|
@@ -2848,6 +2851,7 @@ export type ProductsUpdateResult = {
|
|
|
2848
2851
|
image: string;
|
|
2849
2852
|
imageUrl: unknown;
|
|
2850
2853
|
visibility: string;
|
|
2854
|
+
planPaused: boolean;
|
|
2851
2855
|
sort: number;
|
|
2852
2856
|
isBestSeller: boolean;
|
|
2853
2857
|
badges: {
|
|
@@ -4577,8 +4581,10 @@ export interface ReviewsListParams {
|
|
|
4577
4581
|
rating?: number;
|
|
4578
4582
|
/** Only reviews a buyer wrote, or only the ones given by themselves. */
|
|
4579
4583
|
type?: "buyer" | "automatic";
|
|
4580
|
-
/** A buyer's email, an order's ID, or words from a review. */
|
|
4584
|
+
/** A buyer's email, an order's ID, or words from a review or its reply. */
|
|
4581
4585
|
search?: string;
|
|
4586
|
+
/** Only reviews the store has replied to, or only buyers' reviews it has not (an automatic review cannot be replied to). */
|
|
4587
|
+
reply?: "replied" | "none";
|
|
4582
4588
|
}
|
|
4583
4589
|
|
|
4584
4590
|
/** A row of what list reviews lists: `reviews.list`. */
|
|
@@ -4589,6 +4595,10 @@ export type ReviewsListItem = {
|
|
|
4589
4595
|
automatic: boolean;
|
|
4590
4596
|
imported: boolean;
|
|
4591
4597
|
dateCreated: string;
|
|
4598
|
+
reply: {
|
|
4599
|
+
message: string;
|
|
4600
|
+
dateReplied: string;
|
|
4601
|
+
};
|
|
4592
4602
|
items: {
|
|
4593
4603
|
productId: string;
|
|
4594
4604
|
productName: string;
|
|
@@ -4611,6 +4621,81 @@ export type ReviewsListItem = {
|
|
|
4611
4621
|
};
|
|
4612
4622
|
};
|
|
4613
4623
|
|
|
4624
|
+
/** What reply to a review takes: `reviews.reply`. */
|
|
4625
|
+
export interface ReviewsReplyParams {
|
|
4626
|
+
/** The reply, up to 1,000 characters. */
|
|
4627
|
+
message: string;
|
|
4628
|
+
}
|
|
4629
|
+
|
|
4630
|
+
/** What reply to a review answers: `reviews.reply`. */
|
|
4631
|
+
export type ReviewsReplyResult = {
|
|
4632
|
+
review: {
|
|
4633
|
+
id: string;
|
|
4634
|
+
rating: number;
|
|
4635
|
+
message: string;
|
|
4636
|
+
automatic: boolean;
|
|
4637
|
+
imported: boolean;
|
|
4638
|
+
dateCreated: string;
|
|
4639
|
+
reply: {
|
|
4640
|
+
message: string;
|
|
4641
|
+
dateReplied: string;
|
|
4642
|
+
};
|
|
4643
|
+
items: {
|
|
4644
|
+
productId: string;
|
|
4645
|
+
productName: string;
|
|
4646
|
+
variantName: string;
|
|
4647
|
+
}[];
|
|
4648
|
+
orderId: string;
|
|
4649
|
+
customerId: string;
|
|
4650
|
+
email: string;
|
|
4651
|
+
orderAmount: number;
|
|
4652
|
+
currencyCode: string;
|
|
4653
|
+
flag: {
|
|
4654
|
+
id: string;
|
|
4655
|
+
status: string;
|
|
4656
|
+
reason: string;
|
|
4657
|
+
reasonLabel: string;
|
|
4658
|
+
note: string;
|
|
4659
|
+
answer: string;
|
|
4660
|
+
dateCreated: string;
|
|
4661
|
+
dateDecided: unknown;
|
|
4662
|
+
};
|
|
4663
|
+
};
|
|
4664
|
+
};
|
|
4665
|
+
|
|
4666
|
+
/** What remove a reply to a review answers: `reviews.removeReply`. */
|
|
4667
|
+
export type ReviewsRemoveReplyResult = {
|
|
4668
|
+
review: {
|
|
4669
|
+
id: string;
|
|
4670
|
+
rating: number;
|
|
4671
|
+
message: string;
|
|
4672
|
+
automatic: boolean;
|
|
4673
|
+
imported: boolean;
|
|
4674
|
+
dateCreated: string;
|
|
4675
|
+
reply: unknown;
|
|
4676
|
+
items: {
|
|
4677
|
+
productId: string;
|
|
4678
|
+
productName: string;
|
|
4679
|
+
variantName: string;
|
|
4680
|
+
}[];
|
|
4681
|
+
orderId: string;
|
|
4682
|
+
customerId: string;
|
|
4683
|
+
email: string;
|
|
4684
|
+
orderAmount: number;
|
|
4685
|
+
currencyCode: string;
|
|
4686
|
+
flag: {
|
|
4687
|
+
id: string;
|
|
4688
|
+
status: string;
|
|
4689
|
+
reason: string;
|
|
4690
|
+
reasonLabel: string;
|
|
4691
|
+
note: string;
|
|
4692
|
+
answer: string;
|
|
4693
|
+
dateCreated: string;
|
|
4694
|
+
dateDecided: unknown;
|
|
4695
|
+
};
|
|
4696
|
+
};
|
|
4697
|
+
};
|
|
4698
|
+
|
|
4614
4699
|
/** What list coupons takes: `coupons.list`. */
|
|
4615
4700
|
export interface CouponsListParams {
|
|
4616
4701
|
/**
|
|
@@ -6346,6 +6431,7 @@ export type CustomersShowResult = {
|
|
|
6346
6431
|
blacklistedBy: unknown[] | Record<string, unknown>;
|
|
6347
6432
|
blacklistRules: number;
|
|
6348
6433
|
knownAddresses: number;
|
|
6434
|
+
trusted: boolean;
|
|
6349
6435
|
id: string;
|
|
6350
6436
|
emailAddress: string;
|
|
6351
6437
|
dateCreated: string;
|
|
@@ -6394,6 +6480,7 @@ export type CustomersSetBalanceResult = {
|
|
|
6394
6480
|
blacklistedBy: unknown[] | Record<string, unknown>;
|
|
6395
6481
|
blacklistRules: number;
|
|
6396
6482
|
knownAddresses: number;
|
|
6483
|
+
trusted: boolean;
|
|
6397
6484
|
};
|
|
6398
6485
|
|
|
6399
6486
|
/** What blacklist a customer takes: `customers.blacklist`. */
|
|
@@ -6439,6 +6526,7 @@ export type CustomersBlacklistResult = {
|
|
|
6439
6526
|
}[];
|
|
6440
6527
|
blacklistRules: number;
|
|
6441
6528
|
knownAddresses: number;
|
|
6529
|
+
trusted: boolean;
|
|
6442
6530
|
added: number;
|
|
6443
6531
|
};
|
|
6444
6532
|
|
|
@@ -6478,6 +6566,73 @@ export type CustomersUnblacklistResult = {
|
|
|
6478
6566
|
blacklistedBy: unknown[] | Record<string, unknown>;
|
|
6479
6567
|
blacklistRules: number;
|
|
6480
6568
|
knownAddresses: number;
|
|
6569
|
+
trusted: boolean;
|
|
6570
|
+
removed: number;
|
|
6571
|
+
};
|
|
6572
|
+
|
|
6573
|
+
/** What trust a customer takes: `customers.trust`. */
|
|
6574
|
+
export interface CustomersTrustParams {
|
|
6575
|
+
/** Why. Kept with the entry. */
|
|
6576
|
+
note?: string;
|
|
6577
|
+
}
|
|
6578
|
+
|
|
6579
|
+
/** What trust a customer answers: `customers.trust`. */
|
|
6580
|
+
export type CustomersTrustResult = {
|
|
6581
|
+
balance: number;
|
|
6582
|
+
balanceAtCheckout: boolean;
|
|
6583
|
+
tags: {
|
|
6584
|
+
id: string;
|
|
6585
|
+
name: string;
|
|
6586
|
+
tone: string;
|
|
6587
|
+
automatic: boolean;
|
|
6588
|
+
}[];
|
|
6589
|
+
balanceHistory: {
|
|
6590
|
+
id: string;
|
|
6591
|
+
kind: string;
|
|
6592
|
+
amount: number;
|
|
6593
|
+
balanceAfter: number;
|
|
6594
|
+
currencyCode: string;
|
|
6595
|
+
note: string;
|
|
6596
|
+
orderId: unknown;
|
|
6597
|
+
by: string;
|
|
6598
|
+
dateCreated: string;
|
|
6599
|
+
}[];
|
|
6600
|
+
affiliate: unknown;
|
|
6601
|
+
blacklisted: boolean;
|
|
6602
|
+
blacklistedBy: unknown[] | Record<string, unknown>;
|
|
6603
|
+
blacklistRules: number;
|
|
6604
|
+
knownAddresses: number;
|
|
6605
|
+
trusted: boolean;
|
|
6606
|
+
added: boolean;
|
|
6607
|
+
};
|
|
6608
|
+
|
|
6609
|
+
/** What stop trusting a customer answers: `customers.untrust`. */
|
|
6610
|
+
export type CustomersUntrustResult = {
|
|
6611
|
+
balance: number;
|
|
6612
|
+
balanceAtCheckout: boolean;
|
|
6613
|
+
tags: {
|
|
6614
|
+
id: string;
|
|
6615
|
+
name: string;
|
|
6616
|
+
tone: string;
|
|
6617
|
+
automatic: boolean;
|
|
6618
|
+
}[];
|
|
6619
|
+
balanceHistory: {
|
|
6620
|
+
id: string;
|
|
6621
|
+
kind: string;
|
|
6622
|
+
amount: number;
|
|
6623
|
+
balanceAfter: number;
|
|
6624
|
+
currencyCode: string;
|
|
6625
|
+
note: string;
|
|
6626
|
+
orderId: unknown;
|
|
6627
|
+
by: string;
|
|
6628
|
+
dateCreated: string;
|
|
6629
|
+
}[];
|
|
6630
|
+
affiliate: unknown;
|
|
6631
|
+
blacklisted: boolean;
|
|
6632
|
+
blacklistedBy: unknown[] | Record<string, unknown>;
|
|
6633
|
+
blacklistRules: number;
|
|
6634
|
+
knownAddresses: number;
|
|
6635
|
+
trusted: boolean;
|
|
6481
6636
|
removed: number;
|
|
6482
6637
|
};
|
|
6483
6638
|
|
|
@@ -7533,6 +7688,143 @@ export type BlacklistSetEnabledResult = {
|
|
|
7533
7688
|
updatedAt: string;
|
|
7534
7689
|
};
|
|
7535
7690
|
|
|
7691
|
+
/** What list allowlist entries takes: `allowlist.list`. */
|
|
7692
|
+
export interface AllowlistListParams {
|
|
7693
|
+
/**
|
|
7694
|
+
* Which page of the list. The first is 1.
|
|
7695
|
+
*
|
|
7696
|
+
* Left out, it is 1.
|
|
7697
|
+
*/
|
|
7698
|
+
page?: number;
|
|
7699
|
+
/**
|
|
7700
|
+
* How many a page holds.
|
|
7701
|
+
*
|
|
7702
|
+
* Left out, it is 20.
|
|
7703
|
+
*/
|
|
7704
|
+
perPage?: number;
|
|
7705
|
+
/** Only entries that are in force, or only ones switched off. */
|
|
7706
|
+
status?: "enabled" | "disabled";
|
|
7707
|
+
/** Only entries of this type. */
|
|
7708
|
+
type?: "email" | "ip" | "cidr";
|
|
7709
|
+
/** Part of an entry's value or note. */
|
|
7710
|
+
search?: string;
|
|
7711
|
+
}
|
|
7712
|
+
|
|
7713
|
+
/** A row of what list allowlist entries lists: `allowlist.list`. */
|
|
7714
|
+
export type AllowlistListItem = {
|
|
7715
|
+
id: string;
|
|
7716
|
+
type: string;
|
|
7717
|
+
value: string;
|
|
7718
|
+
note: string;
|
|
7719
|
+
enabled: boolean;
|
|
7720
|
+
source: string;
|
|
7721
|
+
customerId: unknown;
|
|
7722
|
+
hits: number;
|
|
7723
|
+
lastHitAt: unknown;
|
|
7724
|
+
dateCreated: string;
|
|
7725
|
+
updatedAt: string;
|
|
7726
|
+
};
|
|
7727
|
+
|
|
7728
|
+
/** What create an allowlist entry takes: `allowlist.create`. */
|
|
7729
|
+
export interface AllowlistCreateParams {
|
|
7730
|
+
/** What the entry lets through: an email address, an IP address, or a range of them (`cidr`). */
|
|
7731
|
+
type: "email" | "ip" | "cidr";
|
|
7732
|
+
/** What to match. */
|
|
7733
|
+
value: string;
|
|
7734
|
+
/** Why, up to 500 characters. */
|
|
7735
|
+
note?: string;
|
|
7736
|
+
/**
|
|
7737
|
+
* Whether the entry is in force.
|
|
7738
|
+
*
|
|
7739
|
+
* Left out, it is true.
|
|
7740
|
+
*/
|
|
7741
|
+
enabled?: boolean;
|
|
7742
|
+
}
|
|
7743
|
+
|
|
7744
|
+
/** What create an allowlist entry answers: `allowlist.create`. */
|
|
7745
|
+
export type AllowlistCreateResult = {
|
|
7746
|
+
id: string;
|
|
7747
|
+
type: string;
|
|
7748
|
+
value: string;
|
|
7749
|
+
note: string;
|
|
7750
|
+
enabled: boolean;
|
|
7751
|
+
source: string;
|
|
7752
|
+
customerId: unknown;
|
|
7753
|
+
hits: number;
|
|
7754
|
+
lastHitAt: unknown;
|
|
7755
|
+
dateCreated: string;
|
|
7756
|
+
updatedAt: string;
|
|
7757
|
+
};
|
|
7758
|
+
|
|
7759
|
+
/** What export allowlist entries takes: `allowlist.export`. */
|
|
7760
|
+
export interface AllowlistExportParams {
|
|
7761
|
+
/** Only entries that are in force, or only ones switched off. */
|
|
7762
|
+
status?: "enabled" | "disabled";
|
|
7763
|
+
/** Only entries of this type. */
|
|
7764
|
+
type?: "email" | "ip" | "cidr";
|
|
7765
|
+
/** Part of an entry's value or note. */
|
|
7766
|
+
search?: string;
|
|
7767
|
+
/** `1` for how many rows the file would have, as `{ rows }`, in place of the file. Not counted against the store's exports, and refused with 429 where none are left. */
|
|
7768
|
+
check?: "1";
|
|
7769
|
+
}
|
|
7770
|
+
|
|
7771
|
+
/** What update an allowlist entry takes: `allowlist.update`. */
|
|
7772
|
+
export interface AllowlistUpdateParams {
|
|
7773
|
+
/** What the entry lets through: an email address, an IP address, or a range of them (`cidr`). */
|
|
7774
|
+
type: "email" | "ip" | "cidr";
|
|
7775
|
+
/** What to match. */
|
|
7776
|
+
value: string;
|
|
7777
|
+
/** Why, up to 500 characters. */
|
|
7778
|
+
note?: string;
|
|
7779
|
+
/**
|
|
7780
|
+
* Whether the entry is in force.
|
|
7781
|
+
*
|
|
7782
|
+
* Left out, it is true.
|
|
7783
|
+
*/
|
|
7784
|
+
enabled?: boolean;
|
|
7785
|
+
}
|
|
7786
|
+
|
|
7787
|
+
/** What update an allowlist entry answers: `allowlist.update`. */
|
|
7788
|
+
export type AllowlistUpdateResult = {
|
|
7789
|
+
id: string;
|
|
7790
|
+
type: string;
|
|
7791
|
+
value: string;
|
|
7792
|
+
note: string;
|
|
7793
|
+
enabled: boolean;
|
|
7794
|
+
source: string;
|
|
7795
|
+
customerId: unknown;
|
|
7796
|
+
hits: number;
|
|
7797
|
+
lastHitAt: unknown;
|
|
7798
|
+
dateCreated: string;
|
|
7799
|
+
updatedAt: string;
|
|
7800
|
+
};
|
|
7801
|
+
|
|
7802
|
+
/** What delete an allowlist entry answers: `allowlist.delete`. */
|
|
7803
|
+
export type AllowlistDeleteResult = {
|
|
7804
|
+
id: string;
|
|
7805
|
+
};
|
|
7806
|
+
|
|
7807
|
+
/** What switch an allowlist entry on or off takes: `allowlist.setEnabled`. */
|
|
7808
|
+
export interface AllowlistSetEnabledParams {
|
|
7809
|
+
/** Whether the entry is in force. */
|
|
7810
|
+
enabled: boolean;
|
|
7811
|
+
}
|
|
7812
|
+
|
|
7813
|
+
/** What switch an allowlist entry on or off answers: `allowlist.setEnabled`. */
|
|
7814
|
+
export type AllowlistSetEnabledResult = {
|
|
7815
|
+
id: string;
|
|
7816
|
+
type: string;
|
|
7817
|
+
value: string;
|
|
7818
|
+
note: string;
|
|
7819
|
+
enabled: boolean;
|
|
7820
|
+
source: string;
|
|
7821
|
+
customerId: unknown;
|
|
7822
|
+
hits: number;
|
|
7823
|
+
lastHitAt: unknown;
|
|
7824
|
+
dateCreated: string;
|
|
7825
|
+
updatedAt: string;
|
|
7826
|
+
};
|
|
7827
|
+
|
|
7536
7828
|
/** What list fraud events takes: `fraudEvents.list`. */
|
|
7537
7829
|
export interface FraudEventsListParams {
|
|
7538
7830
|
/**
|
|
@@ -7548,7 +7840,7 @@ export interface FraudEventsListParams {
|
|
|
7548
7840
|
*/
|
|
7549
7841
|
perPage?: number;
|
|
7550
7842
|
/** Only events of this reason. `changes` is every change to the rules and settings. */
|
|
7551
|
-
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "refund" | "changes";
|
|
7843
|
+
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "changes";
|
|
7552
7844
|
/** Part of an email address, an IP address or a rule's value. */
|
|
7553
7845
|
search?: string;
|
|
7554
7846
|
/** Only events in this period. */
|
|
@@ -7586,7 +7878,7 @@ export type FraudEventsListItem = {
|
|
|
7586
7878
|
/** What export fraud events takes: `fraudEvents.export`. */
|
|
7587
7879
|
export interface FraudEventsExportParams {
|
|
7588
7880
|
/** Only events of this reason. `changes` is every change to the rules and settings. */
|
|
7589
|
-
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "refund" | "changes";
|
|
7881
|
+
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "changes";
|
|
7590
7882
|
/** Part of an email address, an IP address or a rule's value. */
|
|
7591
7883
|
search?: string;
|
|
7592
7884
|
/** `1` for how many rows the file would have, as `{ rows }`, in place of the file. Not counted against the store's exports, and refused with 429 where none are left. */
|
|
@@ -12233,7 +12525,7 @@ export interface ShoplyResourcesOrders {
|
|
|
12233
12525
|
/**
|
|
12234
12526
|
* **Export orders**
|
|
12235
12527
|
*
|
|
12236
|
-
* The orders the same filters would list, as a CSV file: a row an order with every field its page shows (when it was paid, the fee, tax, balance and affiliate in it, the currency it was charged in, the billing address), or a row a product line with `rows=lines`. The first thirteen columns are always Order ID, Created, Email, Status, Payment, Currency, Subtotal, Discount, Total, Coupon, Country, Items and Products, in that order. No delivered key is in it. Every order the filters match is in the file, however many: it is sent as it is read, with no length given. 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
|
|
12528
|
+
* The orders the same filters would list, as a CSV file: a row an order with every field its page shows (when it was paid, the fee, tax, balance and affiliate in it, the currency it was charged in, the billing address), or a row a product line with `rows=lines`. The first thirteen columns are always Order ID, Created, Email, Status, Payment, Currency, Subtotal, Discount, Total, Coupon, Country, Items and Products, in that order. No delivered key is in it. Every order the filters match is in the file, however many: it is sent as it is read, with no length given. 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.
|
|
12237
12529
|
*
|
|
12238
12530
|
* Needs the `orders.read` permission (Read Orders). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
12239
12531
|
*
|
|
@@ -12447,13 +12739,35 @@ export interface ShoplyResourcesReviews {
|
|
|
12447
12739
|
/**
|
|
12448
12740
|
* **List reviews**
|
|
12449
12741
|
*
|
|
12450
|
-
* The reviews left on the store's orders, a page at a time, newest first. A buyer leaves one for a paid order; an order nobody reviewed is given five stars by itself after seven days. `meta.summary` is the whole store's average and counts, whatever the filters. A review the store flagged for removal carries `flag`: how it stands (`open`, or `kept` with the answer given) and why it was flagged. One that was removed is no longer listed.
|
|
12742
|
+
* The reviews left on the store's orders, a page at a time, newest first. A buyer leaves one for a paid order; an order nobody reviewed is given five stars by itself after seven days. `meta.summary` is the whole store's average and counts, whatever the filters. A review the store flagged for removal carries `flag`: how it stands (`open`, or `kept` with the answer given) and why it was flagged. One that was removed is no longer listed. The store's reply, where it wrote one, is `reply`, and `meta.summary.replied` counts them.
|
|
12451
12743
|
*
|
|
12452
12744
|
* Needs the `reviews.read` permission (Read Reviews).
|
|
12453
12745
|
*
|
|
12454
12746
|
* @see https://docs.shoply.gg/api-reference/reviews/list-reviews
|
|
12455
12747
|
*/
|
|
12456
12748
|
list(params?: ReviewsListParams, options?: RequestOptions): PagePromise<ReviewsListItem>;
|
|
12749
|
+
/**
|
|
12750
|
+
* **Reply to a review**
|
|
12751
|
+
*
|
|
12752
|
+
* Writes the store's reply to a review, shown under it on the store, to its buyer on their order's page, and on the dashboard. A review has one reply: sent again, it takes the place of the one there. Plain words, line breaks kept.
|
|
12753
|
+
*
|
|
12754
|
+
* Refused for an automatic review, which has no words to reply to (`automatic_review`). The buyer is not emailed. Answers the review as [List reviews](https://docs.shoply.gg/api-reference/reviews/list-reviews) has it, with `reply`.
|
|
12755
|
+
*
|
|
12756
|
+
* Needs the `reviews.write` permission (Reply to Reviews).
|
|
12757
|
+
*
|
|
12758
|
+
* @see https://docs.shoply.gg/api-reference/reviews/reply-to-a-review
|
|
12759
|
+
*/
|
|
12760
|
+
reply(reviewId: string, params: ReviewsReplyParams, options?: RequestOptions): Promise<ReviewsReplyResult>;
|
|
12761
|
+
/**
|
|
12762
|
+
* **Remove a reply to a review**
|
|
12763
|
+
*
|
|
12764
|
+
* Takes the store's reply off a review. A review with no reply is answered as it is. Answers the review as [List reviews](https://docs.shoply.gg/api-reference/reviews/list-reviews) has it, its `reply` null.
|
|
12765
|
+
*
|
|
12766
|
+
* Needs the `reviews.write` permission (Reply to Reviews).
|
|
12767
|
+
*
|
|
12768
|
+
* @see https://docs.shoply.gg/api-reference/reviews/remove-a-reply-to-a-review
|
|
12769
|
+
*/
|
|
12770
|
+
removeReply(reviewId: string, options?: RequestOptions): Promise<ReviewsRemoveReplyResult>;
|
|
12457
12771
|
}
|
|
12458
12772
|
|
|
12459
12773
|
export interface ShoplyResourcesCoupons {
|
|
@@ -13165,7 +13479,7 @@ export interface ShoplyResourcesCustomers {
|
|
|
13165
13479
|
/**
|
|
13166
13480
|
* **Export customers**
|
|
13167
13481
|
*
|
|
13168
|
-
* 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
|
|
13482
|
+
* 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.
|
|
13169
13483
|
*
|
|
13170
13484
|
* 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.
|
|
13171
13485
|
*
|
|
@@ -13222,6 +13536,26 @@ export interface ShoplyResourcesCustomers {
|
|
|
13222
13536
|
* @see https://docs.shoply.gg/api-reference/customers/clear-a-customer-from-the-blacklist
|
|
13223
13537
|
*/
|
|
13224
13538
|
unblacklist(customerId: string, params?: CustomersUnblacklistParams, options?: RequestOptions): Promise<CustomersUnblacklistResult>;
|
|
13539
|
+
/**
|
|
13540
|
+
* **Trust a customer**
|
|
13541
|
+
*
|
|
13542
|
+
* Puts the customer's email on the store's allowlist, so its blacklist, blocked countries and VPN rule let them through. An entry already on their email is switched on. Answers the customer, with `trusted`.
|
|
13543
|
+
*
|
|
13544
|
+
* Needs the `customers.write` permission (Change Customers).
|
|
13545
|
+
*
|
|
13546
|
+
* @see https://docs.shoply.gg/api-reference/customers/trust-a-customer
|
|
13547
|
+
*/
|
|
13548
|
+
trust(customerId: string, params?: CustomersTrustParams, options?: RequestOptions): Promise<CustomersTrustResult>;
|
|
13549
|
+
/**
|
|
13550
|
+
* **Stop trusting a customer**
|
|
13551
|
+
*
|
|
13552
|
+
* Takes the allowlist entries on the customer's email, and any made from their page, off. An IP address or range allowed by hand stays.
|
|
13553
|
+
*
|
|
13554
|
+
* Needs the `customers.write` permission (Change Customers).
|
|
13555
|
+
*
|
|
13556
|
+
* @see https://docs.shoply.gg/api-reference/customers/stop-trusting-a-customer
|
|
13557
|
+
*/
|
|
13558
|
+
untrust(customerId: string, options?: RequestOptions): Promise<CustomersUntrustResult>;
|
|
13225
13559
|
/**
|
|
13226
13560
|
* **Set a customer's tags**
|
|
13227
13561
|
*
|
|
@@ -13658,7 +13992,7 @@ export interface ShoplyResourcesBlacklist {
|
|
|
13658
13992
|
/**
|
|
13659
13993
|
* **Export blacklist rules**
|
|
13660
13994
|
*
|
|
13661
|
-
* The rules the same filters would list, as a CSV file, newest first: each one's type, value and note, whether it is in force, when and how it was added, the customer or order it came from, and how many checkouts it has stopped. Every rule the filters match is in the file. 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
|
|
13995
|
+
* The rules the same filters would list, as a CSV file, newest first: each one's type, value and note, whether it is in force, when and how it was added, the customer or order it came from, and how many checkouts it has stopped. Every rule the filters match is in the file. 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.
|
|
13662
13996
|
*
|
|
13663
13997
|
* Needs the `fraud.read` permission (Read Fraud Protection). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
13664
13998
|
*
|
|
@@ -13697,6 +14031,69 @@ export interface ShoplyResourcesBlacklist {
|
|
|
13697
14031
|
setEnabled(ruleId: string, params: BlacklistSetEnabledParams, options?: RequestOptions): Promise<BlacklistSetEnabledResult>;
|
|
13698
14032
|
}
|
|
13699
14033
|
|
|
14034
|
+
export interface ShoplyResourcesAllowlist {
|
|
14035
|
+
/**
|
|
14036
|
+
* **List allowlist entries**
|
|
14037
|
+
*
|
|
14038
|
+
* The store's allowlist, a page at a time: the buyers and addresses its fraud rules always let through. A buyer who matches an entry in force is let past the blacklist, the store's blocked countries and its VPN rule, even where a rule names them. The limit on unpaid orders still applies. An email entry lets through anybody who types that address at a checkout; an IP address or range is the stronger of the two. `hits` is how many checkouts an entry let through that a rule would have stopped. A store holds up to 1,000 entries.
|
|
14039
|
+
*
|
|
14040
|
+
* Needs the `fraud.read` permission (Read Fraud Protection).
|
|
14041
|
+
*
|
|
14042
|
+
* @see https://docs.shoply.gg/api-reference/allowlist/list-allowlist-entries
|
|
14043
|
+
*/
|
|
14044
|
+
list(params?: AllowlistListParams, options?: RequestOptions): PagePromise<AllowlistListItem>;
|
|
14045
|
+
/**
|
|
14046
|
+
* **Create an allowlist entry**
|
|
14047
|
+
*
|
|
14048
|
+
* Adds an entry. Something already on the allowlist is refused, and so is a store's 1,001st (`allowlist_full`).
|
|
14049
|
+
*
|
|
14050
|
+
* Needs the `fraud.write` permission (Change Fraud Protection).
|
|
14051
|
+
*
|
|
14052
|
+
* @see https://docs.shoply.gg/api-reference/allowlist/create-an-allowlist-entry
|
|
14053
|
+
*/
|
|
14054
|
+
create(params: AllowlistCreateParams, options?: RequestOptions): Promise<AllowlistCreateResult>;
|
|
14055
|
+
/**
|
|
14056
|
+
* **Export allowlist entries**
|
|
14057
|
+
*
|
|
14058
|
+
* The entries the same filters would list, as a CSV file, newest first: each one's type, value and note, whether it is in force, when and how it was added, and how many checkouts it has let through. 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.
|
|
14059
|
+
*
|
|
14060
|
+
* Needs the `fraud.read` permission (Read Fraud Protection). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
14061
|
+
*
|
|
14062
|
+
* @see https://docs.shoply.gg/api-reference/allowlist/export-allowlist-entries
|
|
14063
|
+
*/
|
|
14064
|
+
export(params?: AllowlistExportParams, options?: RequestOptions): Promise<Response>;
|
|
14065
|
+
/**
|
|
14066
|
+
* **Update an allowlist entry**
|
|
14067
|
+
*
|
|
14068
|
+
* Saves the entry whole: send every field as it should be.
|
|
14069
|
+
*
|
|
14070
|
+
* Needs the `fraud.write` permission (Change Fraud Protection).
|
|
14071
|
+
*
|
|
14072
|
+
* @see https://docs.shoply.gg/api-reference/allowlist/update-an-allowlist-entry
|
|
14073
|
+
*/
|
|
14074
|
+
update(entryId: string, params: AllowlistUpdateParams, options?: RequestOptions): Promise<AllowlistUpdateResult>;
|
|
14075
|
+
/**
|
|
14076
|
+
* **Delete an allowlist entry**
|
|
14077
|
+
*
|
|
14078
|
+
* Removes the entry.
|
|
14079
|
+
*
|
|
14080
|
+
* Needs the `fraud.write` permission (Change Fraud Protection).
|
|
14081
|
+
*
|
|
14082
|
+
* @see https://docs.shoply.gg/api-reference/allowlist/delete-an-allowlist-entry
|
|
14083
|
+
*/
|
|
14084
|
+
delete(entryId: string, options?: RequestOptions): Promise<AllowlistDeleteResult>;
|
|
14085
|
+
/**
|
|
14086
|
+
* **Switch an allowlist entry on or off**
|
|
14087
|
+
*
|
|
14088
|
+
* Changes whether the entry is in force, without sending the rest of it.
|
|
14089
|
+
*
|
|
14090
|
+
* Needs the `fraud.write` permission (Change Fraud Protection).
|
|
14091
|
+
*
|
|
14092
|
+
* @see https://docs.shoply.gg/api-reference/allowlist/switch-an-allowlist-entry-on-or-off
|
|
14093
|
+
*/
|
|
14094
|
+
setEnabled(entryId: string, params: AllowlistSetEnabledParams, options?: RequestOptions): Promise<AllowlistSetEnabledResult>;
|
|
14095
|
+
}
|
|
14096
|
+
|
|
13700
14097
|
export interface ShoplyResourcesFraudEvents {
|
|
13701
14098
|
/**
|
|
13702
14099
|
* **List fraud events**
|
|
@@ -13711,7 +14108,7 @@ export interface ShoplyResourcesFraudEvents {
|
|
|
13711
14108
|
/**
|
|
13712
14109
|
* **Export fraud events**
|
|
13713
14110
|
*
|
|
13714
|
-
* The events the same filters would list, as a CSV file, newest first: when each happened and how many attempts it gathered, what it was, the email, IP address, country and order, the rule it matched or the change that was made and by whom, and what a lookup of the address already knew (its provider and network, where it is, and whether it looked like a VPN, a data centre or a phone). Nothing is looked up to write the file: an address never looked up has those empty. Every event 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
|
|
14111
|
+
* The events the same filters would list, as a CSV file, newest first: when each happened and how many attempts it gathered, what it was, the email, IP address, country and order, the rule it matched or the change that was made and by whom, and what a lookup of the address already knew (its provider and network, where it is, and whether it looked like a VPN, a data centre or a phone). Nothing is looked up to write the file: an address never looked up has those empty. Every event 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.
|
|
13715
14112
|
*
|
|
13716
14113
|
* Needs the `fraud.read` permission (Read Fraud Protection). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
13717
14114
|
*
|
|
@@ -14454,6 +14851,7 @@ export interface ShoplyResources {
|
|
|
14454
14851
|
team: ShoplyResourcesTeam;
|
|
14455
14852
|
teams: ShoplyResourcesTeams;
|
|
14456
14853
|
blacklist: ShoplyResourcesBlacklist;
|
|
14854
|
+
allowlist: ShoplyResourcesAllowlist;
|
|
14457
14855
|
fraudEvents: ShoplyResourcesFraudEvents;
|
|
14458
14856
|
fraudSettings: ShoplyResourcesFraudSettings;
|
|
14459
14857
|
disputes: ShoplyResourcesDisputes;
|
|
@@ -14794,6 +15192,8 @@ export type WebhookEventName =
|
|
|
14794
15192
|
| "review.created"
|
|
14795
15193
|
| "review.removed"
|
|
14796
15194
|
| "review.flag_declined"
|
|
15195
|
+
| "review.replied"
|
|
15196
|
+
| "review.reply_removed"
|
|
14797
15197
|
| "stock.low"
|
|
14798
15198
|
| "stock.out"
|
|
14799
15199
|
| "product.created"
|
|
@@ -14841,6 +15241,7 @@ export type WebhookEventName =
|
|
|
14841
15241
|
| "team.member_moved"
|
|
14842
15242
|
| "team.member_left"
|
|
14843
15243
|
| "fraud.checkout_blocked"
|
|
15244
|
+
| "fraud.checkout_allowed"
|
|
14844
15245
|
| "webhook.test";
|
|
14845
15246
|
|
|
14846
15247
|
/** What each event's `data` holds. */
|
|
@@ -14920,21 +15321,33 @@ export interface WebhookEventData {
|
|
|
14920
15321
|
/**
|
|
14921
15322
|
* A review was left on an order, by its buyer or by itself after seven days.
|
|
14922
15323
|
*
|
|
14923
|
-
* `data`: `orderId`, `productId`, `email`, and `review` with its `rating`, `message`, `automatic` and `
|
|
15324
|
+
* `data`: `orderId`, `productId`, `email`, and `review` with its `rating`, `message`, `automatic`, `dateCreated` and `reply` (the store's `message` and `dateReplied`, or null). `review.replied` and `review.reply_removed` add `reviewId`. `review.removed` and `review.flag_declined` add `reviewId` and `flag`, the flag as [List reviews](https://docs.shoply.gg/api-reference/reviews/list-reviews) answers it, with Shoply's `answer`.
|
|
14924
15325
|
*/
|
|
14925
15326
|
"review.created": Record<string, unknown>;
|
|
14926
15327
|
/**
|
|
14927
15328
|
* A review the store flagged was removed by Shoply. It is no longer anywhere, and its order can be given no other.
|
|
14928
15329
|
*
|
|
14929
|
-
* `data`: `orderId`, `productId`, `email`, and `review` with its `rating`, `message`, `automatic` and `
|
|
15330
|
+
* `data`: `orderId`, `productId`, `email`, and `review` with its `rating`, `message`, `automatic`, `dateCreated` and `reply` (the store's `message` and `dateReplied`, or null). `review.replied` and `review.reply_removed` add `reviewId`. `review.removed` and `review.flag_declined` add `reviewId` and `flag`, the flag as [List reviews](https://docs.shoply.gg/api-reference/reviews/list-reviews) answers it, with Shoply's `answer`.
|
|
14930
15331
|
*/
|
|
14931
15332
|
"review.removed": Record<string, unknown>;
|
|
14932
15333
|
/**
|
|
14933
15334
|
* A review the store flagged was kept by Shoply, with the reason why.
|
|
14934
15335
|
*
|
|
14935
|
-
* `data`: `orderId`, `productId`, `email`, and `review` with its `rating`, `message`, `automatic` and `
|
|
15336
|
+
* `data`: `orderId`, `productId`, `email`, and `review` with its `rating`, `message`, `automatic`, `dateCreated` and `reply` (the store's `message` and `dateReplied`, or null). `review.replied` and `review.reply_removed` add `reviewId`. `review.removed` and `review.flag_declined` add `reviewId` and `flag`, the flag as [List reviews](https://docs.shoply.gg/api-reference/reviews/list-reviews) answers it, with Shoply's `answer`.
|
|
14936
15337
|
*/
|
|
14937
15338
|
"review.flag_declined": Record<string, unknown>;
|
|
15339
|
+
/**
|
|
15340
|
+
* The store replied to a review, or changed its reply.
|
|
15341
|
+
*
|
|
15342
|
+
* `data`: `orderId`, `productId`, `email`, and `review` with its `rating`, `message`, `automatic`, `dateCreated` and `reply` (the store's `message` and `dateReplied`, or null). `review.replied` and `review.reply_removed` add `reviewId`. `review.removed` and `review.flag_declined` add `reviewId` and `flag`, the flag as [List reviews](https://docs.shoply.gg/api-reference/reviews/list-reviews) answers it, with Shoply's `answer`.
|
|
15343
|
+
*/
|
|
15344
|
+
"review.replied": Record<string, unknown>;
|
|
15345
|
+
/**
|
|
15346
|
+
* The store took its reply to a review off.
|
|
15347
|
+
*
|
|
15348
|
+
* `data`: `orderId`, `productId`, `email`, and `review` with its `rating`, `message`, `automatic`, `dateCreated` and `reply` (the store's `message` and `dateReplied`, or null). `review.replied` and `review.reply_removed` add `reviewId`. `review.removed` and `review.flag_declined` add `reviewId` and `flag`, the flag as [List reviews](https://docs.shoply.gg/api-reference/reviews/list-reviews) answers it, with Shoply's `answer`.
|
|
15349
|
+
*/
|
|
15350
|
+
"review.reply_removed": Record<string, unknown>;
|
|
14938
15351
|
/**
|
|
14939
15352
|
* A sale left a variant that counts its stock with few, at or under the store's low stock number.
|
|
14940
15353
|
*
|
|
@@ -15217,6 +15630,12 @@ export interface WebhookEventData {
|
|
|
15217
15630
|
* `data`: The event, as [List fraud events](https://docs.shoply.gg/api-reference/fraud-protection/list-fraud-events) answers it.
|
|
15218
15631
|
*/
|
|
15219
15632
|
"fraud.checkout_blocked": FraudEventsListItem & Record<string, unknown>;
|
|
15633
|
+
/**
|
|
15634
|
+
* A checkout the blacklist, a blocked country or the VPN rule would have turned away was let through by the store's allowlist. The same buyer let through again within ten minutes is not sent again.
|
|
15635
|
+
*
|
|
15636
|
+
* `data`: The event, as [List fraud events](https://docs.shoply.gg/api-reference/fraud-protection/list-fraud-events) answers it.
|
|
15637
|
+
*/
|
|
15638
|
+
"fraud.checkout_allowed": FraudEventsListItem & Record<string, unknown>;
|
|
15220
15639
|
/** When you press Send a test on an endpoint. */
|
|
15221
15640
|
"webhook.test": Record<string, unknown>;
|
|
15222
15641
|
}
|
package/generated/operations.js
CHANGED
|
@@ -124,7 +124,9 @@ export const OPERATIONS = [
|
|
|
124
124
|
{"id":"invoices.send","name":"invoices.send","method":"POST","path":"/stores/{storeId}/invoices/{orderId}/send","params":["orderId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
125
125
|
{"id":"invoices.link","name":"invoices.link","method":"POST","path":"/stores/{storeId}/payment-links","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
126
126
|
{"id":"invoices.deleteLink","name":"invoices.deleteLink","method":"DELETE","path":"/stores/{storeId}/payment-links/{orderId}","params":["orderId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
127
|
-
{"id":"reviews.list","name":"reviews.list","method":"GET","path":"/stores/{storeId}/reviews","params":[],"query":["page","perPage","rating","type","search"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
127
|
+
{"id":"reviews.list","name":"reviews.list","method":"GET","path":"/stores/{storeId}/reviews","params":[],"query":["page","perPage","rating","type","search","reply"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
128
|
+
{"id":"reviews.reply","name":"reviews.reply","method":"PUT","path":"/stores/{storeId}/reviews/{reviewId}/reply","params":["reviewId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
129
|
+
{"id":"reviews.removeReply","name":"reviews.removeReply","method":"DELETE","path":"/stores/{storeId}/reviews/{reviewId}/reply","params":["reviewId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
128
130
|
{"id":"coupons.list","name":"coupons.list","method":"GET","path":"/stores/{storeId}/coupons","params":[],"query":["page","perPage","search","state","categoryId"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
129
131
|
{"id":"coupons.create","name":"coupons.create","method":"POST","path":"/stores/{storeId}/coupons","params":[],"query":["tz"],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
130
132
|
{"id":"coupons.update","name":"coupons.update","method":"PUT","path":"/stores/{storeId}/coupons/{couponId}","params":["couponId"],"query":["tz"],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
@@ -197,6 +199,8 @@ export const OPERATIONS = [
|
|
|
197
199
|
{"id":"customers.setBalance","name":"customers.setBalance","method":"POST","path":"/stores/{storeId}/customers/{customerId}/balance","params":["customerId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
198
200
|
{"id":"customers.blacklist","name":"customers.blacklist","method":"POST","path":"/stores/{storeId}/customers/{customerId}/blacklist","params":["customerId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
199
201
|
{"id":"customers.unblacklist","name":"customers.unblacklist","method":"DELETE","path":"/stores/{storeId}/customers/{customerId}/blacklist","params":["customerId"],"query":["addresses"],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
202
|
+
{"id":"customers.trust","name":"customers.trust","method":"POST","path":"/stores/{storeId}/customers/{customerId}/trust","params":["customerId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
203
|
+
{"id":"customers.untrust","name":"customers.untrust","method":"DELETE","path":"/stores/{storeId}/customers/{customerId}/trust","params":["customerId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
200
204
|
{"id":"customerTags.list","name":"customerTags.list","method":"GET","path":"/stores/{storeId}/customer-tags","params":[],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
201
205
|
{"id":"customerTags.create","name":"customerTags.create","method":"POST","path":"/stores/{storeId}/customer-tags","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
202
206
|
{"id":"customerTags.automatic","name":"customerTags.automatic","method":"PUT","path":"/stores/{storeId}/customer-tags/automatic","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
@@ -242,6 +246,12 @@ export const OPERATIONS = [
|
|
|
242
246
|
{"id":"blacklist.update","name":"blacklist.update","method":"PUT","path":"/stores/{storeId}/blacklist/{ruleId}","params":["ruleId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
243
247
|
{"id":"blacklist.delete","name":"blacklist.delete","method":"DELETE","path":"/stores/{storeId}/blacklist/{ruleId}","params":["ruleId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
244
248
|
{"id":"blacklist.setEnabled","name":"blacklist.setEnabled","method":"PATCH","path":"/stores/{storeId}/blacklist/{ruleId}/enabled","params":["ruleId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
249
|
+
{"id":"allowlist.list","name":"allowlist.list","method":"GET","path":"/stores/{storeId}/allowlist","params":[],"query":["page","perPage","status","type","search"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
250
|
+
{"id":"allowlist.create","name":"allowlist.create","method":"POST","path":"/stores/{storeId}/allowlist","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
251
|
+
{"id":"allowlist.export","name":"allowlist.export","method":"GET","path":"/stores/{storeId}/allowlist/export","params":[],"query":["status","type","search","check"],"body":false,"upload":null,"file":true,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
252
|
+
{"id":"allowlist.update","name":"allowlist.update","method":"PUT","path":"/stores/{storeId}/allowlist/{entryId}","params":["entryId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
253
|
+
{"id":"allowlist.delete","name":"allowlist.delete","method":"DELETE","path":"/stores/{storeId}/allowlist/{entryId}","params":["entryId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
254
|
+
{"id":"allowlist.setEnabled","name":"allowlist.setEnabled","method":"PATCH","path":"/stores/{storeId}/allowlist/{entryId}/enabled","params":["entryId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
245
255
|
{"id":"fraudEvents.list","name":"fraudEvents.list","method":"GET","path":"/stores/{storeId}/fraud-events","params":[],"query":["page","perPage","reason","search","range","from","to","tz"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
246
256
|
{"id":"fraudEvents.export","name":"fraudEvents.export","method":"GET","path":"/stores/{storeId}/fraud-events/export","params":[],"query":["reason","search","check","range","from","to","tz"],"body":false,"upload":null,"file":true,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
247
257
|
{"id":"fraudEvents.network","name":"fraudEvents.network","method":"GET","path":"/stores/{storeId}/fraud-events/{eventId}/network","params":["eventId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
@@ -336,4 +346,4 @@ export const OPERATIONS = [
|
|
|
336
346
|
];
|
|
337
347
|
|
|
338
348
|
/** Every webhook event, by name. */
|
|
339
|
-
export const EVENTS = ["order.created","order.payment_started","order.paid","order.delivered","order.redelivered","order.email_failed","order.cancelled","order.refunded","order.disputed","order.chargeback","order.payment_submitted","order.rerouted","review.created","review.removed","review.flag_declined","stock.low","stock.out","product.created","product.updated","product.deleted","customer.created","customer.balance_changed","customer.tagged","customer.untagged","affiliate.created","affiliate.payout_requested","affiliate.payout_answered","affiliate.balance_changed","subscription.started","subscription.renewed","subscription.cancelled","subscription.ended","subscription.paused","subscription.resumed","subscription.charge_failed","cart.email_sent","cart.recovered","cart.unsubscribed","winback.email_sent","winback.won_back","subscriber.subscribed","subscriber.unsubscribed","routing.processor_paused","routing.processor_resumed","dispute.opened","dispute.updated","dispute.won","dispute.lost","dispute.closed","app.connected","app.disconnected","ticket.opened","ticket.message","ticket.resolved","ticket.reopened","team.created","team.updated","team.deleted","team.member_joined","team.member_moved","team.member_left","fraud.checkout_blocked","webhook.test"];
|
|
349
|
+
export const EVENTS = ["order.created","order.payment_started","order.paid","order.delivered","order.redelivered","order.email_failed","order.cancelled","order.refunded","order.disputed","order.chargeback","order.payment_submitted","order.rerouted","review.created","review.removed","review.flag_declined","review.replied","review.reply_removed","stock.low","stock.out","product.created","product.updated","product.deleted","customer.created","customer.balance_changed","customer.tagged","customer.untagged","affiliate.created","affiliate.payout_requested","affiliate.payout_answered","affiliate.balance_changed","subscription.started","subscription.renewed","subscription.cancelled","subscription.ended","subscription.paused","subscription.resumed","subscription.charge_failed","cart.email_sent","cart.recovered","cart.unsubscribed","winback.email_sent","winback.won_back","subscriber.subscribed","subscriber.unsubscribed","routing.processor_paused","routing.processor_resumed","dispute.opened","dispute.updated","dispute.won","dispute.lost","dispute.closed","app.connected","app.disconnected","ticket.opened","ticket.message","ticket.resolved","ticket.reopened","team.created","team.updated","team.deleted","team.member_joined","team.member_moved","team.member_left","fraud.checkout_blocked","fraud.checkout_allowed","webhook.test"];
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplygg/node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
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",
|