@shoplygg/node 0.5.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 +477 -46
- package/generated/operations.js +13 -3
- package/index.js +1 -1
- package/package.json +1 -1
package/generated/api.d.ts
CHANGED
|
@@ -2365,10 +2365,22 @@ export interface ProductsListParams {
|
|
|
2365
2365
|
visibility?: "public" | "unlisted" | "private" | "on_hold";
|
|
2366
2366
|
/** Only products whose name contains this. */
|
|
2367
2367
|
search?: string;
|
|
2368
|
+
/**
|
|
2369
|
+
* Which page of the list. The first is 1.
|
|
2370
|
+
*
|
|
2371
|
+
* Left out, it is 1.
|
|
2372
|
+
*/
|
|
2373
|
+
page?: number;
|
|
2374
|
+
/**
|
|
2375
|
+
* How many a page holds, up to 100. Asking for a page and not saying is 50.
|
|
2376
|
+
*
|
|
2377
|
+
* Left out, it is 50.
|
|
2378
|
+
*/
|
|
2379
|
+
perPage?: number;
|
|
2368
2380
|
}
|
|
2369
2381
|
|
|
2370
|
-
/**
|
|
2371
|
-
export type
|
|
2382
|
+
/** A row of what list products lists: `products.list`. */
|
|
2383
|
+
export type ProductsListItem = {
|
|
2372
2384
|
id: string;
|
|
2373
2385
|
storeId: string;
|
|
2374
2386
|
name: string;
|
|
@@ -2379,6 +2391,7 @@ export type ProductsListResult = Array<{
|
|
|
2379
2391
|
image: string;
|
|
2380
2392
|
imageUrl: unknown;
|
|
2381
2393
|
visibility: string;
|
|
2394
|
+
planPaused: boolean;
|
|
2382
2395
|
sort: number;
|
|
2383
2396
|
isBestSeller: boolean;
|
|
2384
2397
|
badges: {
|
|
@@ -2430,7 +2443,7 @@ export type ProductsListResult = Array<{
|
|
|
2430
2443
|
blockedPaymentMethods: unknown[] | Record<string, unknown>;
|
|
2431
2444
|
}>;
|
|
2432
2445
|
runningSubscriptions: number;
|
|
2433
|
-
}
|
|
2446
|
+
};
|
|
2434
2447
|
|
|
2435
2448
|
/** What create a product takes: `products.create`. */
|
|
2436
2449
|
export interface ProductsCreateParams {
|
|
@@ -2574,6 +2587,7 @@ export type ProductsCreateResult = {
|
|
|
2574
2587
|
image: string;
|
|
2575
2588
|
imageUrl: unknown;
|
|
2576
2589
|
visibility: string;
|
|
2590
|
+
planPaused: boolean;
|
|
2577
2591
|
sort: number;
|
|
2578
2592
|
isBestSeller: boolean;
|
|
2579
2593
|
badges: {
|
|
@@ -2639,6 +2653,7 @@ export type ProductsShowResult = {
|
|
|
2639
2653
|
image: string;
|
|
2640
2654
|
imageUrl: unknown;
|
|
2641
2655
|
visibility: string;
|
|
2656
|
+
planPaused: boolean;
|
|
2642
2657
|
sort: number;
|
|
2643
2658
|
isBestSeller: boolean;
|
|
2644
2659
|
badges: {
|
|
@@ -2836,6 +2851,7 @@ export type ProductsUpdateResult = {
|
|
|
2836
2851
|
image: string;
|
|
2837
2852
|
imageUrl: unknown;
|
|
2838
2853
|
visibility: string;
|
|
2854
|
+
planPaused: boolean;
|
|
2839
2855
|
sort: number;
|
|
2840
2856
|
isBestSeller: boolean;
|
|
2841
2857
|
badges: {
|
|
@@ -4565,8 +4581,10 @@ export interface ReviewsListParams {
|
|
|
4565
4581
|
rating?: number;
|
|
4566
4582
|
/** Only reviews a buyer wrote, or only the ones given by themselves. */
|
|
4567
4583
|
type?: "buyer" | "automatic";
|
|
4568
|
-
/** 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. */
|
|
4569
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";
|
|
4570
4588
|
}
|
|
4571
4589
|
|
|
4572
4590
|
/** A row of what list reviews lists: `reviews.list`. */
|
|
@@ -4577,6 +4595,10 @@ export type ReviewsListItem = {
|
|
|
4577
4595
|
automatic: boolean;
|
|
4578
4596
|
imported: boolean;
|
|
4579
4597
|
dateCreated: string;
|
|
4598
|
+
reply: {
|
|
4599
|
+
message: string;
|
|
4600
|
+
dateReplied: string;
|
|
4601
|
+
};
|
|
4580
4602
|
items: {
|
|
4581
4603
|
productId: string;
|
|
4582
4604
|
productName: string;
|
|
@@ -4599,6 +4621,81 @@ export type ReviewsListItem = {
|
|
|
4599
4621
|
};
|
|
4600
4622
|
};
|
|
4601
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
|
+
|
|
4602
4699
|
/** What list coupons takes: `coupons.list`. */
|
|
4603
4700
|
export interface CouponsListParams {
|
|
4604
4701
|
/**
|
|
@@ -6334,6 +6431,7 @@ export type CustomersShowResult = {
|
|
|
6334
6431
|
blacklistedBy: unknown[] | Record<string, unknown>;
|
|
6335
6432
|
blacklistRules: number;
|
|
6336
6433
|
knownAddresses: number;
|
|
6434
|
+
trusted: boolean;
|
|
6337
6435
|
id: string;
|
|
6338
6436
|
emailAddress: string;
|
|
6339
6437
|
dateCreated: string;
|
|
@@ -6382,6 +6480,7 @@ export type CustomersSetBalanceResult = {
|
|
|
6382
6480
|
blacklistedBy: unknown[] | Record<string, unknown>;
|
|
6383
6481
|
blacklistRules: number;
|
|
6384
6482
|
knownAddresses: number;
|
|
6483
|
+
trusted: boolean;
|
|
6385
6484
|
};
|
|
6386
6485
|
|
|
6387
6486
|
/** What blacklist a customer takes: `customers.blacklist`. */
|
|
@@ -6427,6 +6526,7 @@ export type CustomersBlacklistResult = {
|
|
|
6427
6526
|
}[];
|
|
6428
6527
|
blacklistRules: number;
|
|
6429
6528
|
knownAddresses: number;
|
|
6529
|
+
trusted: boolean;
|
|
6430
6530
|
added: number;
|
|
6431
6531
|
};
|
|
6432
6532
|
|
|
@@ -6466,6 +6566,73 @@ export type CustomersUnblacklistResult = {
|
|
|
6466
6566
|
blacklistedBy: unknown[] | Record<string, unknown>;
|
|
6467
6567
|
blacklistRules: number;
|
|
6468
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;
|
|
6469
6636
|
removed: number;
|
|
6470
6637
|
};
|
|
6471
6638
|
|
|
@@ -7521,6 +7688,143 @@ export type BlacklistSetEnabledResult = {
|
|
|
7521
7688
|
updatedAt: string;
|
|
7522
7689
|
};
|
|
7523
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
|
+
|
|
7524
7828
|
/** What list fraud events takes: `fraudEvents.list`. */
|
|
7525
7829
|
export interface FraudEventsListParams {
|
|
7526
7830
|
/**
|
|
@@ -7536,7 +7840,7 @@ export interface FraudEventsListParams {
|
|
|
7536
7840
|
*/
|
|
7537
7841
|
perPage?: number;
|
|
7538
7842
|
/** Only events of this reason. `changes` is every change to the rules and settings. */
|
|
7539
|
-
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "refund" | "changes";
|
|
7843
|
+
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "changes";
|
|
7540
7844
|
/** Part of an email address, an IP address or a rule's value. */
|
|
7541
7845
|
search?: string;
|
|
7542
7846
|
/** Only events in this period. */
|
|
@@ -7574,7 +7878,7 @@ export type FraudEventsListItem = {
|
|
|
7574
7878
|
/** What export fraud events takes: `fraudEvents.export`. */
|
|
7575
7879
|
export interface FraudEventsExportParams {
|
|
7576
7880
|
/** Only events of this reason. `changes` is every change to the rules and settings. */
|
|
7577
|
-
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "refund" | "changes";
|
|
7881
|
+
reason?: "blacklist" | "vpn" | "country" | "unpaid_limit" | "dispute" | "allowed" | "refund" | "changes";
|
|
7578
7882
|
/** Part of an email address, an IP address or a rule's value. */
|
|
7579
7883
|
search?: string;
|
|
7580
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. */
|
|
@@ -11252,7 +11556,7 @@ export interface ShoplyResourcesPaymentMethods {
|
|
|
11252
11556
|
*
|
|
11253
11557
|
* Takes a connected method off the checkout, or puts it back. Off keeps its credentials. On is refused for a method that is missing something it needs, which is put right in the dashboard. Answers the list again.
|
|
11254
11558
|
*
|
|
11255
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11559
|
+
* Needs the `payments.write` permission (Change Payment Methods). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11256
11560
|
*
|
|
11257
11561
|
* @see https://docs.shoply.gg/api-reference/payment-methods/switch-a-payment-method-on-or-off
|
|
11258
11562
|
*/
|
|
@@ -11262,7 +11566,7 @@ export interface ShoplyResourcesPaymentMethods {
|
|
|
11262
11566
|
*
|
|
11263
11567
|
* Sets the order the checkout offers payment methods in. The first is the one most buyers take. Name some of them and they are put in this order in the places they hold now, and the rest stay where they are: a custom payment method between two connected ones stays between them. A custom method is named by its id in `meta.order`. Answers the list again.
|
|
11264
11568
|
*
|
|
11265
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11569
|
+
* Needs the `payments.write` permission (Change Payment Methods). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11266
11570
|
*
|
|
11267
11571
|
* @see https://docs.shoply.gg/api-reference/payment-methods/sort-payment-methods
|
|
11268
11572
|
*/
|
|
@@ -11272,7 +11576,7 @@ export interface ShoplyResourcesPaymentMethods {
|
|
|
11272
11576
|
*
|
|
11273
11577
|
* Whether the checkout offers buyers their balance at the store. Answers the list again.
|
|
11274
11578
|
*
|
|
11275
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11579
|
+
* Needs the `payments.write` permission (Change Payment Methods). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11276
11580
|
*
|
|
11277
11581
|
* @see https://docs.shoply.gg/api-reference/payment-methods/switch-paying-with-balance-on-or-off
|
|
11278
11582
|
*/
|
|
@@ -11356,7 +11660,7 @@ export interface ShoplyResourcesStorefronts {
|
|
|
11356
11660
|
/**
|
|
11357
11661
|
* **List storefronts**
|
|
11358
11662
|
*
|
|
11359
|
-
* The store's storefronts: each a design of its site, on a theme. One of them is live (`meta.liveId`), which is the one buyers see. A store holds
|
|
11663
|
+
* The store's storefronts: each a design of its site, on a theme. One of them is live (`meta.liveId`), which is the one buyers see. A store holds as many as its plan does. `meta.themes` is the themes a new one can start from.
|
|
11360
11664
|
*
|
|
11361
11665
|
* Needs the `storefronts.read` permission (Read Storefronts).
|
|
11362
11666
|
*
|
|
@@ -11368,7 +11672,7 @@ export interface ShoplyResourcesStorefronts {
|
|
|
11368
11672
|
*
|
|
11369
11673
|
* Adds a storefront as a draft: a theme's starting design, or a copy of one the store already has. Answers the store's storefronts with the new one among them.
|
|
11370
11674
|
*
|
|
11371
|
-
* Needs the `storefronts.write` permission (Change Storefronts).
|
|
11675
|
+
* Needs the `storefronts.write` permission (Change Storefronts). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11372
11676
|
*
|
|
11373
11677
|
* @see https://docs.shoply.gg/api-reference/storefronts/create-a-storefront
|
|
11374
11678
|
*/
|
|
@@ -11376,9 +11680,9 @@ export interface ShoplyResourcesStorefronts {
|
|
|
11376
11680
|
/**
|
|
11377
11681
|
* **Import a storefront**
|
|
11378
11682
|
*
|
|
11379
|
-
* Makes a new storefront, as a draft, from one that was exported: the JSON document "Export a storefront" answers under `storefront`, sent as `multipart/form-data` in a field called `file`. Nothing in it is trusted: its design is rebuilt from the theme, and each of its files is checked. One thing wrong refuses all of it, and the refusal names the file. `meta.imported` says which storefront it became and how many problems its code has to be fixed before it can be published.
|
|
11683
|
+
* Makes a new storefront, as a draft, from one that was exported: the JSON document "Export a storefront" answers under `storefront`, sent as `multipart/form-data` in a field called `file`. Nothing in it is trusted: its design is rebuilt from the theme, and each of its files is checked. One thing wrong refuses all of it, and the refusal names the file. The document can be up to 50 MB, `import_too_large` past it; a storefront whose files are more than that is imported with fewer, and the rest saved after. `meta.imported` says which storefront it became and how many problems its code has to be fixed before it can be published.
|
|
11380
11684
|
*
|
|
11381
|
-
* Needs the `storefronts.write` permission (Change Storefronts).
|
|
11685
|
+
* Needs the `storefronts.write` permission (Change Storefronts). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11382
11686
|
*
|
|
11383
11687
|
* @see https://docs.shoply.gg/api-reference/storefronts/import-a-storefront
|
|
11384
11688
|
*/
|
|
@@ -11408,7 +11712,7 @@ export interface ShoplyResourcesStorefronts {
|
|
|
11408
11712
|
*
|
|
11409
11713
|
* Removes a storefront that is not the live one. Answers the storefronts that are left.
|
|
11410
11714
|
*
|
|
11411
|
-
* Needs the `storefronts.write` permission (Change Storefronts).
|
|
11715
|
+
* Needs the `storefronts.write` permission (Change Storefronts). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11412
11716
|
*
|
|
11413
11717
|
* @see https://docs.shoply.gg/api-reference/storefronts/delete-a-storefront
|
|
11414
11718
|
*/
|
|
@@ -11418,7 +11722,7 @@ export interface ShoplyResourcesStorefronts {
|
|
|
11418
11722
|
*
|
|
11419
11723
|
* Makes this storefront the one buyers see, as it was last published. Answers the store's storefronts again.
|
|
11420
11724
|
*
|
|
11421
|
-
* Needs the `storefronts.write` permission (Change Storefronts).
|
|
11725
|
+
* Needs the `storefronts.write` permission (Change Storefronts). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11422
11726
|
*
|
|
11423
11727
|
* @see https://docs.shoply.gg/api-reference/storefronts/make-a-storefront-live
|
|
11424
11728
|
*/
|
|
@@ -11634,7 +11938,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11634
11938
|
*
|
|
11635
11939
|
* Adds a method, after every other at checkout. A store holds up to 10. Answers the new method.
|
|
11636
11940
|
*
|
|
11637
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11941
|
+
* Needs the `payments.write` permission (Change Payment Methods). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11638
11942
|
*
|
|
11639
11943
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/create-a-custom-payment-method
|
|
11640
11944
|
*/
|
|
@@ -11644,7 +11948,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11644
11948
|
*
|
|
11645
11949
|
* Changes what is sent and keeps the rest. A payment already opened keeps what its buyer was told. Answers the store's custom methods again, as "List custom payment methods" does.
|
|
11646
11950
|
*
|
|
11647
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11951
|
+
* Needs the `payments.write` permission (Change Payment Methods). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11648
11952
|
*
|
|
11649
11953
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/update-a-custom-payment-method
|
|
11650
11954
|
*/
|
|
@@ -11654,7 +11958,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11654
11958
|
*
|
|
11655
11959
|
* Its orders keep its name. Its ID is never used again. Answers the store's custom methods again, as "List custom payment methods" does.
|
|
11656
11960
|
*
|
|
11657
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11961
|
+
* Needs the `payments.write` permission (Change Payment Methods). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11658
11962
|
*
|
|
11659
11963
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/delete-a-custom-payment-method
|
|
11660
11964
|
*/
|
|
@@ -11664,7 +11968,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11664
11968
|
*
|
|
11665
11969
|
* Answers the store's custom methods again, as "List custom payment methods" does.
|
|
11666
11970
|
*
|
|
11667
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11971
|
+
* Needs the `payments.write` permission (Change Payment Methods). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11668
11972
|
*
|
|
11669
11973
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/switch-a-custom-payment-method-on-or-off
|
|
11670
11974
|
*/
|
|
@@ -11674,7 +11978,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11674
11978
|
*
|
|
11675
11979
|
* Puts the methods named in this order, in the places they hold now among the connected ones. To move one between connected methods, use "Sort payment methods" with its ID. Answers the store's custom methods again, as "List custom payment methods" does.
|
|
11676
11980
|
*
|
|
11677
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11981
|
+
* Needs the `payments.write` permission (Change Payment Methods). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11678
11982
|
*
|
|
11679
11983
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/sort-custom-payment-methods
|
|
11680
11984
|
*/
|
|
@@ -11684,7 +11988,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11684
11988
|
*
|
|
11685
11989
|
* Sent as `multipart/form-data` in a field called `image`. It replaces the one it had. Answers the store's custom methods again, as "List custom payment methods" does.
|
|
11686
11990
|
*
|
|
11687
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11991
|
+
* Needs the `payments.write` permission (Change Payment Methods). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11688
11992
|
*
|
|
11689
11993
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/upload-a-custom-payment-methods-icon
|
|
11690
11994
|
*/
|
|
@@ -11694,7 +11998,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11694
11998
|
*
|
|
11695
11999
|
* Answers the store's custom methods again, as "List custom payment methods" does.
|
|
11696
12000
|
*
|
|
11697
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
12001
|
+
* Needs the `payments.write` permission (Change Payment Methods). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
|
|
11698
12002
|
*
|
|
11699
12003
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/remove-a-custom-payment-methods-icon
|
|
11700
12004
|
*/
|
|
@@ -11705,17 +12009,17 @@ export interface ShoplyResourcesProducts {
|
|
|
11705
12009
|
/**
|
|
11706
12010
|
* **List products**
|
|
11707
12011
|
*
|
|
11708
|
-
*
|
|
12012
|
+
* The store's products, in the store's own order, each with its variants, pictures, categories and stock counts. A store holds as many as its plan does, up to 1,000: ask for them a page at a time with `page` or `perPage`, and `pages` and `total` say how many there are. With neither, every product, in one answer.
|
|
11709
12013
|
*
|
|
11710
12014
|
* Needs the `products.read` permission (Read Products).
|
|
11711
12015
|
*
|
|
11712
12016
|
* @see https://docs.shoply.gg/api-reference/products/list-products
|
|
11713
12017
|
*/
|
|
11714
|
-
list(params?: ProductsListParams, options?: RequestOptions):
|
|
12018
|
+
list(params?: ProductsListParams, options?: RequestOptions): PagePromise<ProductsListItem>;
|
|
11715
12019
|
/**
|
|
11716
12020
|
* **Create a product**
|
|
11717
12021
|
*
|
|
11718
|
-
* Adds a product with its variants. A store holds
|
|
12022
|
+
* Adds a product with its variants. A store holds as many products as its plan does. Stock is added afterwards, a variant at a time, with the variant IDs in the answer.
|
|
11719
12023
|
*
|
|
11720
12024
|
* A refusal names the field, and for a variant its place in the list: `variants.0.price`.
|
|
11721
12025
|
*
|
|
@@ -11802,7 +12106,7 @@ export interface ShoplyResourcesProductImages {
|
|
|
11802
12106
|
/**
|
|
11803
12107
|
* **Upload a product picture**
|
|
11804
12108
|
*
|
|
11805
|
-
* Adds a picture to the product, sent as `multipart/form-data` in a field called `image`. A product holds
|
|
12109
|
+
* Adds a picture to the product, sent as `multipart/form-data` in a field called `image`. A product holds as many as its store's plan does. The first one uploaded is the one listings show.
|
|
11806
12110
|
*
|
|
11807
12111
|
* Needs the `products.write` permission (Change Products).
|
|
11808
12112
|
*
|
|
@@ -11845,7 +12149,7 @@ export interface ShoplyResourcesStock {
|
|
|
11845
12149
|
/**
|
|
11846
12150
|
* **Add license keys**
|
|
11847
12151
|
*
|
|
11848
|
-
* Adds license keys to a variant's stock, up to 5,000 in one request. A variant
|
|
12152
|
+
* Adds license keys to a variant's stock, up to 5,000 in one request. A variant and a store each hold as many unsold keys as the store's plan does.
|
|
11849
12153
|
*
|
|
11850
12154
|
* A key sent twice is stocked twice, which is how one key is sold to several buyers. `duplicates` in the answer counts the ones that matched stock the variant already had, so sending the same batch a second time by mistake shows.
|
|
11851
12155
|
*
|
|
@@ -11857,7 +12161,7 @@ export interface ShoplyResourcesStock {
|
|
|
11857
12161
|
/**
|
|
11858
12162
|
* **Replace a variant's license keys**
|
|
11859
12163
|
*
|
|
11860
|
-
* Makes the variant's unsold stock exactly the keys sent. Keys already delivered are not touched: they are order history, not stock.
|
|
12164
|
+
* Makes the variant's unsold stock exactly the keys sent. Keys already delivered are not touched: they are order history, not stock. Up to 5,000 keys, and only for a variant with no more than that in stock: one with more is refused with `validation_error`, and its keys are added and deleted instead.
|
|
11861
12165
|
*
|
|
11862
12166
|
* Needs the `stock.write` permission (Change Stock).
|
|
11863
12167
|
*
|
|
@@ -11899,7 +12203,7 @@ export interface ShoplyResourcesStock {
|
|
|
11899
12203
|
*
|
|
11900
12204
|
* The first of three steps to give a variant a file to deliver. This one says what the file is and answers a signed address to send it to. Then send the file itself to that address with a `PUT`. Then call "Finish a file upload".
|
|
11901
12205
|
*
|
|
11902
|
-
*
|
|
12206
|
+
* How many files a variant and a store hold, how large one may be and how much a store holds in all are the store's plan's. Accepted: ZIP, RAR, 7z, PDF, MP4, MP3, WAV, EPUB, EXE, DMG, MSI and APK.
|
|
11903
12207
|
*
|
|
11904
12208
|
* Needs the `stock.write` permission (Change Stock).
|
|
11905
12209
|
*
|
|
@@ -11932,7 +12236,7 @@ export interface ShoplyResourcesCategories {
|
|
|
11932
12236
|
/**
|
|
11933
12237
|
* **List categories**
|
|
11934
12238
|
*
|
|
11935
|
-
* Every category the store has, in the store's own order, each with the products in it. A store holds
|
|
12239
|
+
* Every category the store has, in the store's own order, each with the products in it. A store holds as many as its plan does, 500 at most, so the list is not paged.
|
|
11936
12240
|
*
|
|
11937
12241
|
* Needs the `categories.read` permission (Read Categories).
|
|
11938
12242
|
*
|
|
@@ -11942,7 +12246,7 @@ export interface ShoplyResourcesCategories {
|
|
|
11942
12246
|
/**
|
|
11943
12247
|
* **Create a category**
|
|
11944
12248
|
*
|
|
11945
|
-
* Adds a category, with the products that go in it. A store holds
|
|
12249
|
+
* Adds a category, with the products that go in it. A store holds as many as its plan does.
|
|
11946
12250
|
*
|
|
11947
12251
|
* Needs the `categories.write` permission (Change Categories).
|
|
11948
12252
|
*
|
|
@@ -12005,7 +12309,7 @@ export interface ShoplyResourcesUpsells {
|
|
|
12005
12309
|
/**
|
|
12006
12310
|
* **List upsells**
|
|
12007
12311
|
*
|
|
12008
|
-
* Every upsell the store has, a kind at a time in the store's order, with the times each was shown, the paid orders that took it and what those lines came to over a period. A store holds
|
|
12312
|
+
* Every upsell the store has, a kind at a time in the store's order, with the times each was shown, the paid orders that took it and what those lines came to over a period. A store holds as many as its plan does.
|
|
12009
12313
|
*
|
|
12010
12314
|
* Needs the `upsells.read` permission (Read Upsells).
|
|
12011
12315
|
*
|
|
@@ -12015,7 +12319,7 @@ export interface ShoplyResourcesUpsells {
|
|
|
12015
12319
|
/**
|
|
12016
12320
|
* **Create an upsell**
|
|
12017
12321
|
*
|
|
12018
|
-
* Adds an upsell of one kind. What it needs depends on the kind: see each field. A store holds
|
|
12322
|
+
* Adds an upsell of one kind. What it needs depends on the kind: see each field. A store holds as many as its plan does.
|
|
12019
12323
|
*
|
|
12020
12324
|
* Needs the `upsells.write` permission (Change Upsells).
|
|
12021
12325
|
*
|
|
@@ -12118,7 +12422,7 @@ export interface ShoplyResourcesSubscriptions {
|
|
|
12118
12422
|
/**
|
|
12119
12423
|
* **Sell options as subscriptions**
|
|
12120
12424
|
*
|
|
12121
|
-
* Makes options subscriptions, or changes how often one renews. A change reaches new subscriptions only: a running one renews as it started. A store has
|
|
12425
|
+
* Makes options subscriptions, or changes how often one renews. A change reaches new subscriptions only: a running one renews as it started. A store has as many subscription options as its plan does. The answer is every plan the store has.
|
|
12122
12426
|
*
|
|
12123
12427
|
* Needs the `subscriptions.write` permission (Change Subscriptions).
|
|
12124
12428
|
*
|
|
@@ -12221,7 +12525,7 @@ export interface ShoplyResourcesOrders {
|
|
|
12221
12525
|
/**
|
|
12222
12526
|
* **Export orders**
|
|
12223
12527
|
*
|
|
12224
|
-
* 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.
|
|
12225
12529
|
*
|
|
12226
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.
|
|
12227
12531
|
*
|
|
@@ -12435,13 +12739,35 @@ export interface ShoplyResourcesReviews {
|
|
|
12435
12739
|
/**
|
|
12436
12740
|
* **List reviews**
|
|
12437
12741
|
*
|
|
12438
|
-
* 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.
|
|
12439
12743
|
*
|
|
12440
12744
|
* Needs the `reviews.read` permission (Read Reviews).
|
|
12441
12745
|
*
|
|
12442
12746
|
* @see https://docs.shoply.gg/api-reference/reviews/list-reviews
|
|
12443
12747
|
*/
|
|
12444
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>;
|
|
12445
12771
|
}
|
|
12446
12772
|
|
|
12447
12773
|
export interface ShoplyResourcesCoupons {
|
|
@@ -12577,7 +12903,7 @@ export interface ShoplyResourcesSales {
|
|
|
12577
12903
|
/**
|
|
12578
12904
|
* **List sales**
|
|
12579
12905
|
*
|
|
12580
|
-
* Every sale the store has, newest first. A store holds
|
|
12906
|
+
* Every sale the store has, newest first. A store holds as many as its plan does, 150 at most, so the list is not paged.
|
|
12581
12907
|
*
|
|
12582
12908
|
* Needs the `sales.read` permission (Read Sales).
|
|
12583
12909
|
*
|
|
@@ -12587,7 +12913,7 @@ export interface ShoplyResourcesSales {
|
|
|
12587
12913
|
/**
|
|
12588
12914
|
* **Create a sale**
|
|
12589
12915
|
*
|
|
12590
|
-
* Adds a sale. A store holds
|
|
12916
|
+
* Adds a sale. A store holds as many as its plan does.
|
|
12591
12917
|
*
|
|
12592
12918
|
* Needs the `sales.write` permission (Change Sales).
|
|
12593
12919
|
*
|
|
@@ -13153,7 +13479,7 @@ export interface ShoplyResourcesCustomers {
|
|
|
13153
13479
|
/**
|
|
13154
13480
|
* **Export customers**
|
|
13155
13481
|
*
|
|
13156
|
-
* 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.
|
|
13157
13483
|
*
|
|
13158
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.
|
|
13159
13485
|
*
|
|
@@ -13210,6 +13536,26 @@ export interface ShoplyResourcesCustomers {
|
|
|
13210
13536
|
* @see https://docs.shoply.gg/api-reference/customers/clear-a-customer-from-the-blacklist
|
|
13211
13537
|
*/
|
|
13212
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>;
|
|
13213
13559
|
/**
|
|
13214
13560
|
* **Set a customer's tags**
|
|
13215
13561
|
*
|
|
@@ -13520,7 +13866,7 @@ export interface ShoplyResourcesTeam {
|
|
|
13520
13866
|
/**
|
|
13521
13867
|
* **Get the team**
|
|
13522
13868
|
*
|
|
13523
|
-
* The store's teams, each with its `permissions`, how many of them are `sensitive`, the parts of the dashboard it `reach`es, its `people` and how many invites are `waiting`; every `invite` not yet taken up; the store's `owner`, who is on no team and can do everything; and `permissions`, every permission there is in its `groups`, each with its `label`, what it lets a person do (`about`), whether it is `sensitive` and what it `needs`, and the `presets` a team can start from. `limits` says how many teams
|
|
13869
|
+
* The store's teams, each with its `permissions`, how many of them are `sensitive`, the parts of the dashboard it `reach`es, its `people` and how many invites are `waiting`; every `invite` not yet taken up; the store's `owner`, who is on no team and can do everything; and `permissions`, every permission there is in its `groups`, each with its `label`, what it lets a person do (`about`), whether it is `sensitive` and what it `needs`, and the `presets` a team can start from. `limits` says how many teams the store and people a team may have on its plan (invites not yet taken up counted among the people), how long a team's `name` may be, how many addresses one invite takes (`perInvite`) and how many days an invite lasts (`inviteDays`).
|
|
13524
13870
|
*
|
|
13525
13871
|
* Needs the `team.read` permission (Read the Team).
|
|
13526
13872
|
*
|
|
@@ -13593,7 +13939,7 @@ export interface ShoplyResourcesTeams {
|
|
|
13593
13939
|
/**
|
|
13594
13940
|
* **Create a team**
|
|
13595
13941
|
*
|
|
13596
|
-
* A store holds
|
|
13942
|
+
* A store holds as many teams as its plan does (`limits.teams` in Get the team). A permission marked `sensitive` that the team did not hold before cannot be given with a key: give it on the dashboard, which asks the person to confirm it is them.
|
|
13597
13943
|
*
|
|
13598
13944
|
* Needs the `team.write` permission (Manage the Team).
|
|
13599
13945
|
*
|
|
@@ -13646,7 +13992,7 @@ export interface ShoplyResourcesBlacklist {
|
|
|
13646
13992
|
/**
|
|
13647
13993
|
* **Export blacklist rules**
|
|
13648
13994
|
*
|
|
13649
|
-
* 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.
|
|
13650
13996
|
*
|
|
13651
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.
|
|
13652
13998
|
*
|
|
@@ -13685,6 +14031,69 @@ export interface ShoplyResourcesBlacklist {
|
|
|
13685
14031
|
setEnabled(ruleId: string, params: BlacklistSetEnabledParams, options?: RequestOptions): Promise<BlacklistSetEnabledResult>;
|
|
13686
14032
|
}
|
|
13687
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
|
+
|
|
13688
14097
|
export interface ShoplyResourcesFraudEvents {
|
|
13689
14098
|
/**
|
|
13690
14099
|
* **List fraud events**
|
|
@@ -13699,7 +14108,7 @@ export interface ShoplyResourcesFraudEvents {
|
|
|
13699
14108
|
/**
|
|
13700
14109
|
* **Export fraud events**
|
|
13701
14110
|
*
|
|
13702
|
-
* 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.
|
|
13703
14112
|
*
|
|
13704
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.
|
|
13705
14114
|
*
|
|
@@ -14442,6 +14851,7 @@ export interface ShoplyResources {
|
|
|
14442
14851
|
team: ShoplyResourcesTeam;
|
|
14443
14852
|
teams: ShoplyResourcesTeams;
|
|
14444
14853
|
blacklist: ShoplyResourcesBlacklist;
|
|
14854
|
+
allowlist: ShoplyResourcesAllowlist;
|
|
14445
14855
|
fraudEvents: ShoplyResourcesFraudEvents;
|
|
14446
14856
|
fraudSettings: ShoplyResourcesFraudSettings;
|
|
14447
14857
|
disputes: ShoplyResourcesDisputes;
|
|
@@ -14782,6 +15192,8 @@ export type WebhookEventName =
|
|
|
14782
15192
|
| "review.created"
|
|
14783
15193
|
| "review.removed"
|
|
14784
15194
|
| "review.flag_declined"
|
|
15195
|
+
| "review.replied"
|
|
15196
|
+
| "review.reply_removed"
|
|
14785
15197
|
| "stock.low"
|
|
14786
15198
|
| "stock.out"
|
|
14787
15199
|
| "product.created"
|
|
@@ -14829,6 +15241,7 @@ export type WebhookEventName =
|
|
|
14829
15241
|
| "team.member_moved"
|
|
14830
15242
|
| "team.member_left"
|
|
14831
15243
|
| "fraud.checkout_blocked"
|
|
15244
|
+
| "fraud.checkout_allowed"
|
|
14832
15245
|
| "webhook.test";
|
|
14833
15246
|
|
|
14834
15247
|
/** What each event's `data` holds. */
|
|
@@ -14908,21 +15321,33 @@ export interface WebhookEventData {
|
|
|
14908
15321
|
/**
|
|
14909
15322
|
* A review was left on an order, by its buyer or by itself after seven days.
|
|
14910
15323
|
*
|
|
14911
|
-
* `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`.
|
|
14912
15325
|
*/
|
|
14913
15326
|
"review.created": Record<string, unknown>;
|
|
14914
15327
|
/**
|
|
14915
15328
|
* A review the store flagged was removed by Shoply. It is no longer anywhere, and its order can be given no other.
|
|
14916
15329
|
*
|
|
14917
|
-
* `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`.
|
|
14918
15331
|
*/
|
|
14919
15332
|
"review.removed": Record<string, unknown>;
|
|
14920
15333
|
/**
|
|
14921
15334
|
* A review the store flagged was kept by Shoply, with the reason why.
|
|
14922
15335
|
*
|
|
14923
|
-
* `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`.
|
|
14924
15337
|
*/
|
|
14925
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>;
|
|
14926
15351
|
/**
|
|
14927
15352
|
* A sale left a variant that counts its stock with few, at or under the store's low stock number.
|
|
14928
15353
|
*
|
|
@@ -15205,6 +15630,12 @@ export interface WebhookEventData {
|
|
|
15205
15630
|
* `data`: The event, as [List fraud events](https://docs.shoply.gg/api-reference/fraud-protection/list-fraud-events) answers it.
|
|
15206
15631
|
*/
|
|
15207
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>;
|
|
15208
15639
|
/** When you press Send a test on an endpoint. */
|
|
15209
15640
|
"webhook.test": Record<string, unknown>;
|
|
15210
15641
|
}
|
package/generated/operations.js
CHANGED
|
@@ -57,7 +57,7 @@ export const OPERATIONS = [
|
|
|
57
57
|
{"id":"customMethods.sort","name":"customMethods.sort","method":"POST","path":"/stores/{storeId}/custom-payment-methods/reorder","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
58
58
|
{"id":"customMethods.uploadIcon","name":"customMethods.uploadIcon","method":"POST","path":"/stores/{storeId}/custom-payment-methods/{methodId}/icon","params":["methodId"],"query":[],"body":false,"upload":"image","file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
59
59
|
{"id":"customMethods.deleteIcon","name":"customMethods.deleteIcon","method":"DELETE","path":"/stores/{storeId}/custom-payment-methods/{methodId}/icon","params":["methodId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
60
|
-
{"id":"products.list","name":"products.list","method":"GET","path":"/stores/{storeId}/products","params":[],"query":["visibility","search"],"body":false,"upload":null,"file":false,"paged":
|
|
60
|
+
{"id":"products.list","name":"products.list","method":"GET","path":"/stores/{storeId}/products","params":[],"query":["visibility","search","page","perPage"],"body":false,"upload":null,"file":false,"paged":true,"customer":false,"signedIn":true,"idempotent":false},
|
|
61
61
|
{"id":"products.create","name":"products.create","method":"POST","path":"/stores/{storeId}/products","params":[],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
62
62
|
{"id":"products.show","name":"products.show","method":"GET","path":"/stores/{storeId}/products/{productId}","params":["productId"],"query":[],"body":false,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":false},
|
|
63
63
|
{"id":"products.update","name":"products.update","method":"PUT","path":"/stores/{storeId}/products/{productId}","params":["productId"],"query":[],"body":true,"upload":null,"file":false,"paged":false,"customer":false,"signedIn":true,"idempotent":true},
|
|
@@ -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",
|