@foxy.io/sdk 1.16.0-beta.1 → 1.16.0-beta.2

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.
@@ -1,7 +1,9 @@
1
1
  import type { Customer } from './customer';
2
+ import type { DownloadUrl } from './download_url';
2
3
  import type { Downloadable } from './downloadable';
3
4
  import type { Graph } from '../../core';
4
5
  import type { Item } from './item';
6
+ import type { ResetUsage } from './reset_usage';
5
7
  import type { Store } from './store';
6
8
  import type { Transaction } from './transaction';
7
9
 
@@ -21,6 +23,10 @@ export interface DownloadablePurchase extends Graph {
21
23
  'fx:transaction': Transaction;
22
24
  /** Downloadable product. */
23
25
  'fx:downloadable': Downloadable;
26
+ /** POST to this URL to reset the usage count for this downloadable purchase. */
27
+ 'fx:reset_usage': ResetUsage;
28
+ /** The URL to download the purchased item. */
29
+ 'fx:download_url': DownloadUrl;
24
30
  };
25
31
 
26
32
  props: {
@@ -2,6 +2,7 @@ import type { Attributes } from './attributes';
2
2
  import type { Cart } from './cart';
3
3
  import type { CouponDetails } from './coupon_details';
4
4
  import type { DiscountDetails } from './discount_details';
5
+ import type { DownloadablePurchase } from './downloadable_purchase';
5
6
  import type { Graph } from '../../core';
6
7
  import type { ItemCategory } from './item_category';
7
8
  import type { ItemOptions } from './item_options';
@@ -36,6 +37,8 @@ export interface Item extends Graph {
36
37
  'fx:coupon_details': CouponDetails;
37
38
  /** Details about discounts linked to this item. */
38
39
  'fx:discount_details': DiscountDetails;
40
+ /** Related downloadable purchase info. This link is available only when this item has a downloadable purchase associated with it. */
41
+ 'fx:downloadable_purchase': DownloadablePurchase;
39
42
  };
40
43
 
41
44
  props: {
@@ -12,8 +12,8 @@ export interface Report extends Graph {
12
12
  };
13
13
 
14
14
  props: {
15
- /** The type of report generated, indicating the content of the report. `complete` includes transaction details, summaries, coupon usage, subscription forecasts, and more. `customers` is for exporting customers to import elsewhere. `customers_ltv` includes the lifetime value per customer. */
16
- name: 'complete' | 'customers' | 'customers_ltv';
15
+ /** The type of report generated, indicating the content of the report. `complete` includes transaction details, summaries, coupon usage, subscription forecasts, and more. `customers` is for exporting customers to import elsewhere. `customers_ltv` includes the lifetime value per customer. `transactions` includes transaction details only. */
16
+ name: 'complete' | 'customers' | 'customers_ltv' | 'transactions';
17
17
  /** In the event a report changes significantly, a new version of the report may be available. Leave this empty to retrieve the latest version, or pass a 1 to request a specific version. In the future, additional versions of each named report may be available. */
18
18
  version: '1';
19
19
  /** Current status of the report. Possible values include `queued`, `error`, and `ready`. */
@@ -0,0 +1,5 @@
1
+ import type { Graph } from '../../core';
2
+
3
+ export interface ResetUsage extends Graph {
4
+ curie: 'fx:reset_usage';
5
+ }
@@ -118,6 +118,7 @@ export * from './Graph/reporting';
118
118
  export * from './Graph/reporting_email_exists';
119
119
  export * from './Graph/reporting_store_domain_exists';
120
120
  export * from './Graph/reports';
121
+ export * from './Graph/reset_usage';
121
122
  export * from './Graph/send_emails';
122
123
  export * from './Graph/send_webhooks';
123
124
  export * from './Graph/shipment';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foxy.io/sdk",
3
3
  "type": "commonjs",
4
- "version": "1.16.0-beta.1",
4
+ "version": "1.16.0-beta.2",
5
5
  "description": "Universal SDK for a full server-side and a limited in-browser access to Foxy hAPI.",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",