@wix/auto_sdk_premium-assets_premium-assets 1.0.4 → 1.0.6

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.
@@ -5,29 +5,33 @@ export { Account, AccountInfo, ActionEvent, ActionStatus, ActionStatusStatusOneO
5
5
  declare function queryPremiumAssets$1(httpClient: HttpClient): QueryPremiumAssetsSignature;
6
6
  interface QueryPremiumAssetsSignature {
7
7
  /**
8
- * Retrieves a list of Premium assets, given the provided [paging][1] and
9
- * [filtering][2]. Assets for which the account is
10
- * [Billing Manager](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps)
11
- * aren't returned by default.
8
+ * Retrieves a list of up to 100 Premium assets, given the provided paging,
9
+ * filtering, and sorting.
10
+ *
12
11
  *
12
+ * Query Premium Assets runs with these defaults, which you can override:
13
13
  *
14
- * You must pass `targetAccountId` explicitly as a header parameter to query
15
- * assets. The call fails if you omit it.
14
+ * - `cursorPaging.limit` is `50`
16
15
  *
17
- * To query assets for which the account is Billing Manager pass
18
- * `{"includePermitted": true}`.
16
+ * Pass the ID of the account whose assets you want to retrieve in the
17
+ * `targetAccountId` header. The call fails without it.
19
18
  *
20
- * Sorting is applied to the first page of results only. Following requests use
21
- * the cursor token, which already carries the sort from the first call.
19
+ * Which assets are returned depends on what the caller is permitted on. A
20
+ * caller permitted on the target account receives all of the account's assets.
21
+ * A caller permitted only on a specific site receives that site's assets alone,
22
+ * and the results are filtered to that site. In the second case the site is
23
+ * taken from the call scope, so a call with neither an account permission nor a
24
+ * site in scope fails.
22
25
  *
23
- * Up to 100 Premium assets can be returned per request. The default
24
- * `cursorPaging.limit` is 50.
26
+ * Assets for which the account is
27
+ * [Billing Manager](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps)
28
+ * aren't returned by default. Pass `{"includePermitted": true}` to include
29
+ * them. Sort isn't guaranteed to be applied when `includePermitted` is `true`.
25
30
  *
26
- * To learn how to query Premium assets, see [API Query Language][3].
31
+ * Sorting applies to the first page of results. Following requests use the
32
+ * cursor token, which already carries the sort from the first call.
27
33
  *
28
- * [1]: https://dev.wix.com/api/rest/getting-started/pagination
29
- * [2]: https://dev.wix.com/api/rest/contacts/contacts/sorting,-filtering,-and-searching
30
- * [3]: https://dev.wix.com/api/rest/getting-started/api-query-language
34
+ * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).
31
35
  */
32
36
  (options?: QueryPremiumAssetsOptions): Promise<NonNullablePaths<QueryPremiumAssetsResponse, `premiumAssets` | `premiumAssets.${number}.domainsData.domain` | `premiumAssets.${number}.domainsData.primary` | `premiumAssets.${number}.domainsData.privacy` | `premiumAssets.${number}.domainsData.validInRegistrar` | `premiumAssets.${number}.domainsData.dnssecSupported` | `premiumAssets.${number}.domainsData.insuranceSupported` | `premiumAssets.${number}.domainsData.insuranceActivated` | `premiumAssets.${number}.mailboxesData.domainName` | `premiumAssets.${number}.mailboxesData.seats` | `premiumAssets.${number}.mailboxesData.vendor` | `premiumAssets.${number}.digitalGoodsData.digitalGoodsType` | `premiumAssets.${number}.premiumId` | `premiumAssets.${number}.siteData.metasiteId` | `premiumAssets.${number}.siteData.siteName` | `premiumAssets.${number}.accountOwnerId` | `premiumAssets.${number}.billingReference.providerName` | `premiumAssets.${number}.billingReference.providerReferenceId` | `premiumAssets.${number}.status` | `premiumAssets.${number}.deliveryComplete` | `premiumAssets.${number}.renewalType` | `premiumAssets.${number}.billingCycle.cycleType` | `premiumAssets.${number}.billingCycle.cycleDuration.unit` | `premiumAssets.${number}.billingCycle.cycleDuration.count` | `premiumAssets.${number}.pendingChanges.product.productId` | `premiumAssets.${number}.pendingChanges.product.productTypeId` | `premiumAssets.${number}.pendingChanges.product.productTypeName` | `premiumAssets.${number}.pendingChanges.product.productName` | `premiumAssets.${number}.wixBillingDetails.paymentMethod.paymentMethodType` | `premiumAssets.${number}.wixBillingDetails.paymentMethod.displayLabel` | `premiumAssets.${number}.wixBillingDetails.paymentMethod.paymentSourceId` | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.invoiceId` | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.currencyCode` | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.amount` | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.paymentStatus` | `premiumAssets.${number}.wixBillingDetails.customCharges` | `premiumAssets.${number}.freeTrialData.inFreeTrialPeriod` | `premiumAssets.${number}.freeTrialData.pendingExternalActivation`, 4> & {
33
37
  __applicationErrorsType?: QueryPremiumAssetsApplicationErrors;