@foxy.io/sdk 1.8.0 → 1.9.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/dist/types/backend/Graph/coupon_codes.d.ts +9 -0
- package/dist/types/backend/Graph/download_url.d.ts +5 -0
- package/dist/types/backend/Graph/generate_codes.d.ts +2 -0
- package/dist/types/backend/Graph/gift_card_codes.d.ts +11 -0
- package/dist/types/backend/Graph/report.d.ts +30 -0
- package/dist/types/backend/Graph/reports.d.ts +10 -0
- package/dist/types/backend/Graph/store.d.ts +3 -0
- package/dist/types/backend/Rels.d.ts +3 -0
- package/dist/types/customer/Graph/attribute.d.ts +0 -2
- package/dist/types/customer/Graph/custom_field.d.ts +24 -0
- package/dist/types/customer/Graph/custom_fields.d.ts +10 -0
- package/dist/types/customer/Graph/transaction.d.ts +4 -0
- package/package.json +1 -1
|
@@ -8,3 +8,12 @@ export interface CouponCodes extends Graph {
|
|
|
8
8
|
props: CollectionGraphProps;
|
|
9
9
|
child: CouponCode;
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
export interface CouponCodesImport extends Graph {
|
|
13
|
+
curie: 'fx:coupon_codes';
|
|
14
|
+
|
|
15
|
+
props: {
|
|
16
|
+
/** List of codes to import. */
|
|
17
|
+
coupon_codes: string[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -10,5 +10,7 @@ export interface GenerateCodes extends Graph {
|
|
|
10
10
|
number_of_codes: number;
|
|
11
11
|
/** Optional number of coupon code variations you would like to generate. For example, if you would like all the coupon code variations to have a "summer_special" prefix, set that here. */
|
|
12
12
|
prefix: string;
|
|
13
|
+
/** Optional initial balance (gift cards only). Defaults to 0. */
|
|
14
|
+
current_balance?: number;
|
|
13
15
|
};
|
|
14
16
|
}
|
|
@@ -8,3 +8,14 @@ export interface GiftCardCodes extends Graph {
|
|
|
8
8
|
props: CollectionGraphProps;
|
|
9
9
|
child: GiftCardCode;
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
export interface GiftCardCodesImport extends Graph {
|
|
13
|
+
curie: 'fx:gift_card_codes';
|
|
14
|
+
|
|
15
|
+
props: {
|
|
16
|
+
/** List of codes to import. */
|
|
17
|
+
gift_card_codes: string[];
|
|
18
|
+
/** Initial balance. */
|
|
19
|
+
current_balance: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DownloadUrl } from './download_url';
|
|
2
|
+
import type { Graph } from '../../core';
|
|
3
|
+
import type { User } from './user';
|
|
4
|
+
|
|
5
|
+
export interface Report extends Graph {
|
|
6
|
+
curie: 'fx:report';
|
|
7
|
+
|
|
8
|
+
links: {
|
|
9
|
+
'self': Report;
|
|
10
|
+
'fx:download_url': DownloadUrl;
|
|
11
|
+
'fx:user': User;
|
|
12
|
+
};
|
|
13
|
+
|
|
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';
|
|
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
|
+
version: '1';
|
|
19
|
+
/** Current status of the report. Possible values include `queued`, `error`, and `ready`. */
|
|
20
|
+
status: 'queued' | 'error' | 'ready';
|
|
21
|
+
/** A timestamp in the `YYYY-MM-DD HH:MM:SS` format, for the start of the reporting period, for your store's configured timezone. Note that any offset will be ignored, and the datetime passed in will be used as your store's configured timezone. */
|
|
22
|
+
datetime_start: string;
|
|
23
|
+
/** Same as `datetime_start`, but for the end of the report's timeframe. Note that you likely want to pass `23:59:59` as the time portion, or you may inadvertently miss data from the last day of the reporting period. */
|
|
24
|
+
datetime_end: string;
|
|
25
|
+
/** The date this resource was created. */
|
|
26
|
+
date_created: string | null;
|
|
27
|
+
/** The date this resource was last modified. */
|
|
28
|
+
date_modified: string | null;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults';
|
|
2
|
+
import type { Graph } from '../../core';
|
|
3
|
+
import type { Report } from './report';
|
|
4
|
+
|
|
5
|
+
export interface Reports extends Graph {
|
|
6
|
+
curie: 'fx:reports';
|
|
7
|
+
links: CollectionGraphLinks<Reports>;
|
|
8
|
+
props: CollectionGraphProps;
|
|
9
|
+
child: Report;
|
|
10
|
+
}
|
|
@@ -17,6 +17,7 @@ import type { ItemCategories } from './item_categories';
|
|
|
17
17
|
import type { PaymentMethodSets } from './payment_method_sets';
|
|
18
18
|
import type { ProcessSubscriptionWebhook } from './process_subscription_webhook';
|
|
19
19
|
import type { ReceiptTemplates } from './receipt_templates';
|
|
20
|
+
import type { Reports } from './reports';
|
|
20
21
|
import type { StoreVersion } from './store_version';
|
|
21
22
|
import type { SubscriptionSettings } from './subscription_settings';
|
|
22
23
|
import type { Subscriptions } from './subscriptions';
|
|
@@ -38,6 +39,8 @@ export interface Store extends Graph {
|
|
|
38
39
|
'fx:users': Users;
|
|
39
40
|
/** List of taxes configured for this store. */
|
|
40
41
|
'fx:taxes': Taxes;
|
|
42
|
+
/** List of reports for this store. */
|
|
43
|
+
'fx:reports': Reports;
|
|
41
44
|
/** List of coupons available in this store. */
|
|
42
45
|
'fx:coupons': Coupons;
|
|
43
46
|
/** List of customers of this store. */
|
|
@@ -109,9 +109,12 @@ export * from './Graph/receipt_template';
|
|
|
109
109
|
export * from './Graph/receipt_templates';
|
|
110
110
|
export * from './Graph/refund';
|
|
111
111
|
export * from './Graph/regions';
|
|
112
|
+
export * from './Graph/report';
|
|
113
|
+
export * from './Graph/download_url';
|
|
112
114
|
export * from './Graph/reporting';
|
|
113
115
|
export * from './Graph/reporting_email_exists';
|
|
114
116
|
export * from './Graph/reporting_store_domain_exists';
|
|
117
|
+
export * from './Graph/reports';
|
|
115
118
|
export * from './Graph/send_emails';
|
|
116
119
|
export * from './Graph/shipment';
|
|
117
120
|
export * from './Graph/shipments';
|
|
@@ -12,8 +12,6 @@ export interface Attribute extends Graph {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
props: {
|
|
15
|
-
/** Controls who can see this attribute. Only public attributes are accessible via this API. */
|
|
16
|
-
visibility: 'public';
|
|
17
15
|
/** The name of this attribute. */
|
|
18
16
|
name: string;
|
|
19
17
|
/** The value of this attribute. */
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Graph } from '../../core';
|
|
2
|
+
import type { Transaction } from './transaction';
|
|
3
|
+
|
|
4
|
+
export interface CustomField extends Graph {
|
|
5
|
+
curie: 'fx:custom_field';
|
|
6
|
+
|
|
7
|
+
links: {
|
|
8
|
+
/** This resource. */
|
|
9
|
+
'self': CustomField;
|
|
10
|
+
/** Transaction this custom field is linked to. */
|
|
11
|
+
'fx:transaction': Transaction;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
props: {
|
|
15
|
+
/** The name of the custom field. */
|
|
16
|
+
name: string;
|
|
17
|
+
/** The value of this custom field. */
|
|
18
|
+
value: string;
|
|
19
|
+
/** The date this resource was created. */
|
|
20
|
+
date_created: string | null;
|
|
21
|
+
/** The date this resource was last modified. */
|
|
22
|
+
date_modified: string | null;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CollectionGraphLinks, CollectionGraphProps } from '../../core/defaults';
|
|
2
|
+
import type { CustomField } from './custom_field';
|
|
3
|
+
import type { Graph } from '../../core';
|
|
4
|
+
|
|
5
|
+
export interface CustomFields extends Graph {
|
|
6
|
+
curie: 'fx:custom_fields';
|
|
7
|
+
links: CollectionGraphLinks<CustomFields>;
|
|
8
|
+
props: CollectionGraphProps;
|
|
9
|
+
child: CustomField;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Attributes } from './attributes';
|
|
2
|
+
import type { CustomFields } from './custom_fields';
|
|
2
3
|
import type { Graph as Customer } from './index';
|
|
3
4
|
import type { Graph } from '../../core';
|
|
4
5
|
import type { Items } from './items';
|
|
@@ -15,6 +16,8 @@ export interface Transaction extends Graph {
|
|
|
15
16
|
'fx:customer': Customer;
|
|
16
17
|
/** List of custom attributes on this transaction. */
|
|
17
18
|
'fx:attributes': Attributes;
|
|
19
|
+
/** List of custom fields on this transaction. */
|
|
20
|
+
'fx:custom_fields': CustomFields;
|
|
18
21
|
/** List of items for this transaction. */
|
|
19
22
|
'fx:items': Items;
|
|
20
23
|
};
|
|
@@ -71,6 +74,7 @@ export interface Transaction extends Graph {
|
|
|
71
74
|
};
|
|
72
75
|
|
|
73
76
|
zooms: {
|
|
77
|
+
custom_fields?: CustomFields;
|
|
74
78
|
attributes: Attributes;
|
|
75
79
|
customer?: Customer;
|
|
76
80
|
items?: Items;
|
package/package.json
CHANGED