@shoplygg/node 0.5.0 → 0.6.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 +47 -35
- package/generated/operations.js +1 -1
- 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;
|
|
@@ -2430,7 +2442,7 @@ export type ProductsListResult = Array<{
|
|
|
2430
2442
|
blockedPaymentMethods: unknown[] | Record<string, unknown>;
|
|
2431
2443
|
}>;
|
|
2432
2444
|
runningSubscriptions: number;
|
|
2433
|
-
}
|
|
2445
|
+
};
|
|
2434
2446
|
|
|
2435
2447
|
/** What create a product takes: `products.create`. */
|
|
2436
2448
|
export interface ProductsCreateParams {
|
|
@@ -11252,7 +11264,7 @@ export interface ShoplyResourcesPaymentMethods {
|
|
|
11252
11264
|
*
|
|
11253
11265
|
* 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
11266
|
*
|
|
11255
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11267
|
+
* 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
11268
|
*
|
|
11257
11269
|
* @see https://docs.shoply.gg/api-reference/payment-methods/switch-a-payment-method-on-or-off
|
|
11258
11270
|
*/
|
|
@@ -11262,7 +11274,7 @@ export interface ShoplyResourcesPaymentMethods {
|
|
|
11262
11274
|
*
|
|
11263
11275
|
* 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
11276
|
*
|
|
11265
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11277
|
+
* 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
11278
|
*
|
|
11267
11279
|
* @see https://docs.shoply.gg/api-reference/payment-methods/sort-payment-methods
|
|
11268
11280
|
*/
|
|
@@ -11272,7 +11284,7 @@ export interface ShoplyResourcesPaymentMethods {
|
|
|
11272
11284
|
*
|
|
11273
11285
|
* Whether the checkout offers buyers their balance at the store. Answers the list again.
|
|
11274
11286
|
*
|
|
11275
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11287
|
+
* 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
11288
|
*
|
|
11277
11289
|
* @see https://docs.shoply.gg/api-reference/payment-methods/switch-paying-with-balance-on-or-off
|
|
11278
11290
|
*/
|
|
@@ -11356,7 +11368,7 @@ export interface ShoplyResourcesStorefronts {
|
|
|
11356
11368
|
/**
|
|
11357
11369
|
* **List storefronts**
|
|
11358
11370
|
*
|
|
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
|
|
11371
|
+
* 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
11372
|
*
|
|
11361
11373
|
* Needs the `storefronts.read` permission (Read Storefronts).
|
|
11362
11374
|
*
|
|
@@ -11368,7 +11380,7 @@ export interface ShoplyResourcesStorefronts {
|
|
|
11368
11380
|
*
|
|
11369
11381
|
* 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
11382
|
*
|
|
11371
|
-
* Needs the `storefronts.write` permission (Change Storefronts).
|
|
11383
|
+
* 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
11384
|
*
|
|
11373
11385
|
* @see https://docs.shoply.gg/api-reference/storefronts/create-a-storefront
|
|
11374
11386
|
*/
|
|
@@ -11376,9 +11388,9 @@ export interface ShoplyResourcesStorefronts {
|
|
|
11376
11388
|
/**
|
|
11377
11389
|
* **Import a storefront**
|
|
11378
11390
|
*
|
|
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.
|
|
11391
|
+
* 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
11392
|
*
|
|
11381
|
-
* Needs the `storefronts.write` permission (Change Storefronts).
|
|
11393
|
+
* 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
11394
|
*
|
|
11383
11395
|
* @see https://docs.shoply.gg/api-reference/storefronts/import-a-storefront
|
|
11384
11396
|
*/
|
|
@@ -11408,7 +11420,7 @@ export interface ShoplyResourcesStorefronts {
|
|
|
11408
11420
|
*
|
|
11409
11421
|
* Removes a storefront that is not the live one. Answers the storefronts that are left.
|
|
11410
11422
|
*
|
|
11411
|
-
* Needs the `storefronts.write` permission (Change Storefronts).
|
|
11423
|
+
* 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
11424
|
*
|
|
11413
11425
|
* @see https://docs.shoply.gg/api-reference/storefronts/delete-a-storefront
|
|
11414
11426
|
*/
|
|
@@ -11418,7 +11430,7 @@ export interface ShoplyResourcesStorefronts {
|
|
|
11418
11430
|
*
|
|
11419
11431
|
* Makes this storefront the one buyers see, as it was last published. Answers the store's storefronts again.
|
|
11420
11432
|
*
|
|
11421
|
-
* Needs the `storefronts.write` permission (Change Storefronts).
|
|
11433
|
+
* 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
11434
|
*
|
|
11423
11435
|
* @see https://docs.shoply.gg/api-reference/storefronts/make-a-storefront-live
|
|
11424
11436
|
*/
|
|
@@ -11634,7 +11646,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11634
11646
|
*
|
|
11635
11647
|
* Adds a method, after every other at checkout. A store holds up to 10. Answers the new method.
|
|
11636
11648
|
*
|
|
11637
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11649
|
+
* 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
11650
|
*
|
|
11639
11651
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/create-a-custom-payment-method
|
|
11640
11652
|
*/
|
|
@@ -11644,7 +11656,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11644
11656
|
*
|
|
11645
11657
|
* 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
11658
|
*
|
|
11647
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11659
|
+
* 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
11660
|
*
|
|
11649
11661
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/update-a-custom-payment-method
|
|
11650
11662
|
*/
|
|
@@ -11654,7 +11666,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11654
11666
|
*
|
|
11655
11667
|
* 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
11668
|
*
|
|
11657
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11669
|
+
* 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
11670
|
*
|
|
11659
11671
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/delete-a-custom-payment-method
|
|
11660
11672
|
*/
|
|
@@ -11664,7 +11676,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11664
11676
|
*
|
|
11665
11677
|
* Answers the store's custom methods again, as "List custom payment methods" does.
|
|
11666
11678
|
*
|
|
11667
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11679
|
+
* 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
11680
|
*
|
|
11669
11681
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/switch-a-custom-payment-method-on-or-off
|
|
11670
11682
|
*/
|
|
@@ -11674,7 +11686,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11674
11686
|
*
|
|
11675
11687
|
* 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
11688
|
*
|
|
11677
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11689
|
+
* 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
11690
|
*
|
|
11679
11691
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/sort-custom-payment-methods
|
|
11680
11692
|
*/
|
|
@@ -11684,7 +11696,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11684
11696
|
*
|
|
11685
11697
|
* 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
11698
|
*
|
|
11687
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11699
|
+
* 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
11700
|
*
|
|
11689
11701
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/upload-a-custom-payment-methods-icon
|
|
11690
11702
|
*/
|
|
@@ -11694,7 +11706,7 @@ export interface ShoplyResourcesCustomMethods {
|
|
|
11694
11706
|
*
|
|
11695
11707
|
* Answers the store's custom methods again, as "List custom payment methods" does.
|
|
11696
11708
|
*
|
|
11697
|
-
* Needs the `payments.write` permission (Change Payment Methods).
|
|
11709
|
+
* 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
11710
|
*
|
|
11699
11711
|
* @see https://docs.shoply.gg/api-reference/custom-payment-methods/remove-a-custom-payment-methods-icon
|
|
11700
11712
|
*/
|
|
@@ -11705,17 +11717,17 @@ export interface ShoplyResourcesProducts {
|
|
|
11705
11717
|
/**
|
|
11706
11718
|
* **List products**
|
|
11707
11719
|
*
|
|
11708
|
-
*
|
|
11720
|
+
* 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
11721
|
*
|
|
11710
11722
|
* Needs the `products.read` permission (Read Products).
|
|
11711
11723
|
*
|
|
11712
11724
|
* @see https://docs.shoply.gg/api-reference/products/list-products
|
|
11713
11725
|
*/
|
|
11714
|
-
list(params?: ProductsListParams, options?: RequestOptions):
|
|
11726
|
+
list(params?: ProductsListParams, options?: RequestOptions): PagePromise<ProductsListItem>;
|
|
11715
11727
|
/**
|
|
11716
11728
|
* **Create a product**
|
|
11717
11729
|
*
|
|
11718
|
-
* Adds a product with its variants. A store holds
|
|
11730
|
+
* 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
11731
|
*
|
|
11720
11732
|
* A refusal names the field, and for a variant its place in the list: `variants.0.price`.
|
|
11721
11733
|
*
|
|
@@ -11802,7 +11814,7 @@ export interface ShoplyResourcesProductImages {
|
|
|
11802
11814
|
/**
|
|
11803
11815
|
* **Upload a product picture**
|
|
11804
11816
|
*
|
|
11805
|
-
* Adds a picture to the product, sent as `multipart/form-data` in a field called `image`. A product holds
|
|
11817
|
+
* 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
11818
|
*
|
|
11807
11819
|
* Needs the `products.write` permission (Change Products).
|
|
11808
11820
|
*
|
|
@@ -11845,7 +11857,7 @@ export interface ShoplyResourcesStock {
|
|
|
11845
11857
|
/**
|
|
11846
11858
|
* **Add license keys**
|
|
11847
11859
|
*
|
|
11848
|
-
* Adds license keys to a variant's stock, up to 5,000 in one request. A variant
|
|
11860
|
+
* 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
11861
|
*
|
|
11850
11862
|
* 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
11863
|
*
|
|
@@ -11857,7 +11869,7 @@ export interface ShoplyResourcesStock {
|
|
|
11857
11869
|
/**
|
|
11858
11870
|
* **Replace a variant's license keys**
|
|
11859
11871
|
*
|
|
11860
|
-
* Makes the variant's unsold stock exactly the keys sent. Keys already delivered are not touched: they are order history, not stock.
|
|
11872
|
+
* 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
11873
|
*
|
|
11862
11874
|
* Needs the `stock.write` permission (Change Stock).
|
|
11863
11875
|
*
|
|
@@ -11899,7 +11911,7 @@ export interface ShoplyResourcesStock {
|
|
|
11899
11911
|
*
|
|
11900
11912
|
* 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
11913
|
*
|
|
11902
|
-
*
|
|
11914
|
+
* 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
11915
|
*
|
|
11904
11916
|
* Needs the `stock.write` permission (Change Stock).
|
|
11905
11917
|
*
|
|
@@ -11932,7 +11944,7 @@ export interface ShoplyResourcesCategories {
|
|
|
11932
11944
|
/**
|
|
11933
11945
|
* **List categories**
|
|
11934
11946
|
*
|
|
11935
|
-
* Every category the store has, in the store's own order, each with the products in it. A store holds
|
|
11947
|
+
* 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
11948
|
*
|
|
11937
11949
|
* Needs the `categories.read` permission (Read Categories).
|
|
11938
11950
|
*
|
|
@@ -11942,7 +11954,7 @@ export interface ShoplyResourcesCategories {
|
|
|
11942
11954
|
/**
|
|
11943
11955
|
* **Create a category**
|
|
11944
11956
|
*
|
|
11945
|
-
* Adds a category, with the products that go in it. A store holds
|
|
11957
|
+
* Adds a category, with the products that go in it. A store holds as many as its plan does.
|
|
11946
11958
|
*
|
|
11947
11959
|
* Needs the `categories.write` permission (Change Categories).
|
|
11948
11960
|
*
|
|
@@ -12005,7 +12017,7 @@ export interface ShoplyResourcesUpsells {
|
|
|
12005
12017
|
/**
|
|
12006
12018
|
* **List upsells**
|
|
12007
12019
|
*
|
|
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
|
|
12020
|
+
* 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
12021
|
*
|
|
12010
12022
|
* Needs the `upsells.read` permission (Read Upsells).
|
|
12011
12023
|
*
|
|
@@ -12015,7 +12027,7 @@ export interface ShoplyResourcesUpsells {
|
|
|
12015
12027
|
/**
|
|
12016
12028
|
* **Create an upsell**
|
|
12017
12029
|
*
|
|
12018
|
-
* Adds an upsell of one kind. What it needs depends on the kind: see each field. A store holds
|
|
12030
|
+
* 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
12031
|
*
|
|
12020
12032
|
* Needs the `upsells.write` permission (Change Upsells).
|
|
12021
12033
|
*
|
|
@@ -12118,7 +12130,7 @@ export interface ShoplyResourcesSubscriptions {
|
|
|
12118
12130
|
/**
|
|
12119
12131
|
* **Sell options as subscriptions**
|
|
12120
12132
|
*
|
|
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
|
|
12133
|
+
* 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
12134
|
*
|
|
12123
12135
|
* Needs the `subscriptions.write` permission (Change Subscriptions).
|
|
12124
12136
|
*
|
|
@@ -12577,7 +12589,7 @@ export interface ShoplyResourcesSales {
|
|
|
12577
12589
|
/**
|
|
12578
12590
|
* **List sales**
|
|
12579
12591
|
*
|
|
12580
|
-
* Every sale the store has, newest first. A store holds
|
|
12592
|
+
* 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
12593
|
*
|
|
12582
12594
|
* Needs the `sales.read` permission (Read Sales).
|
|
12583
12595
|
*
|
|
@@ -12587,7 +12599,7 @@ export interface ShoplyResourcesSales {
|
|
|
12587
12599
|
/**
|
|
12588
12600
|
* **Create a sale**
|
|
12589
12601
|
*
|
|
12590
|
-
* Adds a sale. A store holds
|
|
12602
|
+
* Adds a sale. A store holds as many as its plan does.
|
|
12591
12603
|
*
|
|
12592
12604
|
* Needs the `sales.write` permission (Change Sales).
|
|
12593
12605
|
*
|
|
@@ -13520,7 +13532,7 @@ export interface ShoplyResourcesTeam {
|
|
|
13520
13532
|
/**
|
|
13521
13533
|
* **Get the team**
|
|
13522
13534
|
*
|
|
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
|
|
13535
|
+
* 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
13536
|
*
|
|
13525
13537
|
* Needs the `team.read` permission (Read the Team).
|
|
13526
13538
|
*
|
|
@@ -13593,7 +13605,7 @@ export interface ShoplyResourcesTeams {
|
|
|
13593
13605
|
/**
|
|
13594
13606
|
* **Create a team**
|
|
13595
13607
|
*
|
|
13596
|
-
* A store holds
|
|
13608
|
+
* 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
13609
|
*
|
|
13598
13610
|
* Needs the `team.write` permission (Manage the Team).
|
|
13599
13611
|
*
|
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},
|
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.6.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",
|