@flowio/api-types 0.0.252 → 0.0.253
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/io.flow.billing.v0.billing.d.ts +1 -1
- package/generated/io.flow.internal.v0.api-internal.d.ts +153 -772
- package/generated/io.flow.product.v0.product.d.ts +1 -0
- package/generated/io.flow.sellability.v0.sellability.d.ts +1 -6
- package/generated/io.flow.shopify.markets.internal.v0.shopify-markets-internal.d.ts +12 -1
- package/generated/io.flow.tech.onboarding.playground.v0.tech-onboarding-playground.d.ts +36 -0
- package/generated/io.flow.v0.api.d.ts +169 -331
- package/index.d.ts +0 -4
- package/package.json +2 -2
- package/generated/io.flow.customer.v0.customer.d.ts +0 -93
- package/generated/io.flow.order.management.event.v0.order-management-event.d.ts +0 -57
- package/generated/io.flow.session.v0.session.d.ts +0 -93
- package/generated/io.flow.shopify.v0.shopify.d.ts +0 -271
package/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
/// <reference path="generated/io.flow.common.v0.common.d.ts" />
|
|
17
17
|
/// <reference path="generated/io.flow.crypto.v0.crypto.d.ts" />
|
|
18
18
|
/// <reference path="generated/io.flow.currency.v0.currency.d.ts" />
|
|
19
|
-
/// <reference path="generated/io.flow.customer.v0.customer.d.ts" />
|
|
20
19
|
/// <reference path="generated/io.flow.error.v0.error.d.ts" />
|
|
21
20
|
/// <reference path="generated/io.flow.experience.v0.experience.d.ts" />
|
|
22
21
|
/// <reference path="generated/io.flow.export.v0.export.d.ts" />
|
|
@@ -33,7 +32,6 @@
|
|
|
33
32
|
/// <reference path="generated/io.flow.label.v0.label.d.ts" />
|
|
34
33
|
/// <reference path="generated/io.flow.merchant.of.record.v0.merchant-of-record.d.ts" />
|
|
35
34
|
/// <reference path="generated/io.flow.merchant.onboarding.v0.merchant-onboarding.d.ts" />
|
|
36
|
-
/// <reference path="generated/io.flow.order.management.event.v0.order-management-event.d.ts" />
|
|
37
35
|
/// <reference path="generated/io.flow.order.management.v0.order-management.d.ts" />
|
|
38
36
|
/// <reference path="generated/io.flow.order.price.v0.order-price.d.ts" />
|
|
39
37
|
/// <reference path="generated/io.flow.organization.onboarding.state.v0.organization-onboarding-state.d.ts" />
|
|
@@ -50,13 +48,11 @@
|
|
|
50
48
|
/// <reference path="generated/io.flow.reference.v0.reference.d.ts" />
|
|
51
49
|
/// <reference path="generated/io.flow.return.v0.return.d.ts" />
|
|
52
50
|
/// <reference path="generated/io.flow.sellability.v0.sellability.d.ts" />
|
|
53
|
-
/// <reference path="generated/io.flow.session.v0.session.d.ts" />
|
|
54
51
|
/// <reference path="generated/io.flow.shopify.external.v0.shopify-external.d.ts" />
|
|
55
52
|
/// <reference path="generated/io.flow.shopify.markets.internal.event.v0.shopify-markets-internal-event.d.ts" />
|
|
56
53
|
/// <reference path="generated/io.flow.shopify.markets.internal.v0.shopify-markets-internal.d.ts" />
|
|
57
54
|
/// <reference path="generated/io.flow.shopify.markets.v0.shopify-markets.d.ts" />
|
|
58
55
|
/// <reference path="generated/io.flow.shopify.merchant.config.v0.shopify-merchant-config.d.ts" />
|
|
59
|
-
/// <reference path="generated/io.flow.shopify.v0.shopify.d.ts" />
|
|
60
56
|
/// <reference path="generated/io.flow.stripe.v0.stripe.d.ts" />
|
|
61
57
|
/// <reference path="generated/io.flow.tech.onboarding.playground.v0.tech-onboarding-playground.d.ts" />
|
|
62
58
|
/// <reference path="generated/io.flow.token.v0.token.d.ts" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.253",
|
|
4
4
|
"description": "Global TypeScript typings for Flow Commerce API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"generate": "apibuilder update && node scripts/generate-index.js"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "dc15917b90729596ccdb10b88461680f7f910f89"
|
|
18
18
|
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
declare namespace io.flow.customer.v0.enums {
|
|
2
|
-
type CustomerAddressType = 'billing' | 'invoice' | 'shipping';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare namespace io.flow.customer.v0.models {
|
|
6
|
-
interface Customer {
|
|
7
|
-
readonly 'id': string;
|
|
8
|
-
readonly 'number': string;
|
|
9
|
-
readonly 'email'?: string;
|
|
10
|
-
readonly 'name'?: io.flow.common.v0.models.Name;
|
|
11
|
-
readonly 'phone'?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface CustomerAddressBook {
|
|
15
|
-
readonly 'contacts': io.flow.customer.v0.models.CustomerAddressBookContact[];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface CustomerAddressBookContact {
|
|
19
|
-
readonly 'id': string;
|
|
20
|
-
readonly 'address': io.flow.common.v0.models.Address;
|
|
21
|
-
readonly 'contact': io.flow.common.v0.models.Contact;
|
|
22
|
-
readonly 'address_preferences': io.flow.customer.v0.models.CustomerAddressPreference[];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface CustomerAddressBookContactForm {
|
|
26
|
-
readonly 'address': io.flow.common.v0.models.Address;
|
|
27
|
-
readonly 'contact'?: io.flow.common.v0.models.Contact;
|
|
28
|
-
readonly 'address_preferences'?: io.flow.customer.v0.models.CustomerAddressPreference[];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface CustomerAddressBookForm {
|
|
32
|
-
readonly 'contacts': io.flow.customer.v0.models.CustomerAddressBookContactForm[];
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface CustomerAddressPreference {
|
|
36
|
-
readonly 'type': io.flow.customer.v0.enums.CustomerAddressType;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface CustomerBundle {
|
|
40
|
-
readonly 'customer': io.flow.customer.v0.models.Customer;
|
|
41
|
-
readonly 'last_used'?: io.flow.customer.v0.models.CustomerLastUsed;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface CustomerClientToken {
|
|
45
|
-
readonly 'token': string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface CustomerForm {
|
|
49
|
-
readonly 'number': string;
|
|
50
|
-
readonly 'email'?: string;
|
|
51
|
-
readonly 'name'?: io.flow.common.v0.models.Name;
|
|
52
|
-
readonly 'phone'?: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface CustomerLastUsed {
|
|
56
|
-
readonly 'order': io.flow.customer.v0.models.CustomerOrder;
|
|
57
|
-
readonly 'payment': io.flow.customer.v0.models.CustomerPayment;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
interface CustomerOrder {
|
|
61
|
-
readonly 'number': string;
|
|
62
|
-
readonly 'destination': io.flow.experience.v0.models.OrderAddress;
|
|
63
|
-
readonly 'payments'?: io.flow.experience.v0.models.OrderPayment[];
|
|
64
|
-
readonly 'submitted_at'?: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface CustomerPayment {
|
|
68
|
-
readonly 'payment_methods': io.flow.reference.v0.models.PaymentMethod[];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
interface CustomerPurgeSettings {
|
|
72
|
-
readonly 'id': string;
|
|
73
|
-
readonly 'days_until_purge_unused': number;
|
|
74
|
-
readonly 'days_until_purge_used': number;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface CustomerPurgeSettingsForm {
|
|
78
|
-
readonly 'days_until_purge_unused': number;
|
|
79
|
-
readonly 'days_until_purge_used': number;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
interface CustomerPutForm {
|
|
83
|
-
readonly 'email'?: string;
|
|
84
|
-
readonly 'name'?: io.flow.common.v0.models.Name;
|
|
85
|
-
readonly 'phone'?: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
interface CustomerToken {
|
|
89
|
-
readonly 'id': string;
|
|
90
|
-
readonly 'customer': io.flow.common.v0.models.CustomerReference;
|
|
91
|
-
readonly 'token': string;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
declare namespace io.flow.order.management.event.v0.models {
|
|
2
|
-
interface FulfillmentItemAllocationDetails {
|
|
3
|
-
readonly 'item_number': string;
|
|
4
|
-
readonly 'line_number': number;
|
|
5
|
-
readonly 'levies': io.flow.common.v0.models.PriceWithBase;
|
|
6
|
-
readonly 'total': io.flow.common.v0.models.PriceWithBase;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface OrderPlaced {
|
|
10
|
-
readonly 'discriminator': 'order_placed';
|
|
11
|
-
readonly 'event_id': string;
|
|
12
|
-
readonly 'timestamp': string;
|
|
13
|
-
readonly 'organization': string;
|
|
14
|
-
readonly 'order_number': string;
|
|
15
|
-
readonly 'order': io.flow.experience.v0.models.Order;
|
|
16
|
-
readonly 'allocation': io.flow.experience.v0.models.AllocationV2;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface OrderPlacedV2 {
|
|
20
|
-
readonly 'discriminator': 'order_placed_v2';
|
|
21
|
-
readonly 'event_id': string;
|
|
22
|
-
readonly 'timestamp': string;
|
|
23
|
-
readonly 'organization': string;
|
|
24
|
-
readonly 'order_placed': io.flow.order.management.v0.models.OrderPlacedDetails;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface ReadyToFulfill {
|
|
28
|
-
readonly 'discriminator': 'ready_to_fulfill';
|
|
29
|
-
readonly 'event_id': string;
|
|
30
|
-
readonly 'timestamp': string;
|
|
31
|
-
readonly 'organization': string;
|
|
32
|
-
readonly 'order_number': string;
|
|
33
|
-
readonly 'order': io.flow.experience.v0.models.Order;
|
|
34
|
-
readonly 'fulfillments'?: io.flow.order.management.v0.models.Fulfillment[];
|
|
35
|
-
readonly 'fulfillment_item_allocation_details'?: io.flow.order.management.event.v0.models.FulfillmentItemAllocationDetails[];
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface ReadyToFulfillDetails {
|
|
39
|
-
readonly 'id': string;
|
|
40
|
-
readonly 'order_number': string;
|
|
41
|
-
readonly 'order': io.flow.experience.v0.models.Order;
|
|
42
|
-
readonly 'fulfillments'?: io.flow.order.management.v0.models.Fulfillment[];
|
|
43
|
-
readonly 'fulfillment_item_allocation_details'?: io.flow.order.management.event.v0.models.FulfillmentItemAllocationDetails[];
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface ReadyToFulfillV2 {
|
|
47
|
-
readonly 'discriminator': 'ready_to_fulfill_v2';
|
|
48
|
-
readonly 'event_id': string;
|
|
49
|
-
readonly 'timestamp': string;
|
|
50
|
-
readonly 'organization': string;
|
|
51
|
-
readonly 'ready_to_fulfill': io.flow.order.management.event.v0.models.ReadyToFulfillDetails;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
declare namespace io.flow.order.management.event.v0.unions {
|
|
56
|
-
type OrderManagementEvent = (io.flow.order.management.event.v0.models.OrderPlaced | io.flow.order.management.event.v0.models.OrderPlacedV2 | io.flow.order.management.event.v0.models.ReadyToFulfill | io.flow.order.management.event.v0.models.ReadyToFulfillV2);
|
|
57
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
declare namespace io.flow.session.v0.models {
|
|
2
|
-
interface CartReference {
|
|
3
|
-
readonly 'id': string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
interface LocalSession {
|
|
7
|
-
readonly 'country': io.flow.reference.v0.models.Country;
|
|
8
|
-
readonly 'currency': io.flow.reference.v0.models.Currency;
|
|
9
|
-
readonly 'language': io.flow.reference.v0.models.Language;
|
|
10
|
-
readonly 'locale': io.flow.reference.v0.models.Locale;
|
|
11
|
-
readonly 'experience': io.flow.experience.v0.models.ExperienceGeo;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface OrganizationSession {
|
|
15
|
-
readonly 'discriminator': 'organization_session';
|
|
16
|
-
readonly 'id': string;
|
|
17
|
-
readonly 'organization': string;
|
|
18
|
-
readonly 'visitor': io.flow.session.v0.models.SessionVisitor;
|
|
19
|
-
readonly 'visit': io.flow.session.v0.models.SessionVisit;
|
|
20
|
-
readonly 'environment': io.flow.common.v0.enums.Environment;
|
|
21
|
-
readonly 'attributes': Record<string, string>;
|
|
22
|
-
readonly 'ip'?: string;
|
|
23
|
-
readonly 'local'?: io.flow.session.v0.models.LocalSession;
|
|
24
|
-
readonly 'geo'?: io.flow.session.v0.models.SessionGeo;
|
|
25
|
-
readonly 'experience'?: io.flow.experience.v0.models.ExperienceGeo;
|
|
26
|
-
readonly 'format'?: io.flow.session.v0.models.SessionFormat;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface OrganizationSessionAuthorization {
|
|
30
|
-
readonly 'discriminator': 'organization_session_authorization';
|
|
31
|
-
readonly 'organization': io.flow.common.v0.models.OrganizationReference;
|
|
32
|
-
readonly 'environment': io.flow.common.v0.enums.Environment;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface SessionAuthorizationForm {
|
|
36
|
-
readonly 'session': string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface SessionCurrencyFormat {
|
|
40
|
-
readonly 'symbol': io.flow.common.v0.enums.CurrencySymbolFormat;
|
|
41
|
-
readonly 'label_formatters': io.flow.common.v0.enums.CurrencyLabelFormatter[];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface SessionExpirationConfig {
|
|
45
|
-
readonly 'unit': io.flow.common.v0.enums.UnitOfTime;
|
|
46
|
-
readonly 'value': number;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface SessionForm {
|
|
50
|
-
readonly 'ip'?: string;
|
|
51
|
-
readonly 'experience'?: string;
|
|
52
|
-
readonly 'country'?: string;
|
|
53
|
-
readonly 'currency'?: string;
|
|
54
|
-
readonly 'language'?: string;
|
|
55
|
-
readonly 'locale'?: string;
|
|
56
|
-
readonly 'attributes'?: Record<string, string>;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface SessionFormat {
|
|
60
|
-
readonly 'currency': io.flow.session.v0.models.SessionCurrencyFormat;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface SessionGeo {
|
|
64
|
-
readonly 'country': io.flow.reference.v0.models.Country;
|
|
65
|
-
readonly 'currency': io.flow.reference.v0.models.Currency;
|
|
66
|
-
readonly 'language': io.flow.reference.v0.models.Language;
|
|
67
|
-
readonly 'locale': io.flow.reference.v0.models.Locale;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface SessionPutForm {
|
|
71
|
-
readonly 'ip'?: string;
|
|
72
|
-
readonly 'experience'?: string;
|
|
73
|
-
readonly 'country'?: string;
|
|
74
|
-
readonly 'currency'?: string;
|
|
75
|
-
readonly 'language'?: string;
|
|
76
|
-
readonly 'locale'?: string;
|
|
77
|
-
readonly 'attributes'?: Record<string, string>;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
interface SessionVisit {
|
|
81
|
-
readonly 'id': string;
|
|
82
|
-
readonly 'expires_at': string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface SessionVisitor {
|
|
86
|
-
readonly 'id': string;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
declare namespace io.flow.session.v0.unions {
|
|
91
|
-
type Session = (io.flow.session.v0.models.OrganizationSession);
|
|
92
|
-
type SessionAuthorization = (io.flow.session.v0.models.OrganizationSessionAuthorization);
|
|
93
|
-
}
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
declare namespace io.flow.shopify.v0.enums {
|
|
2
|
-
type ShopifyGrant = 'customer' | 'discount' | 'gift_card' | 'metafield' | 'order';
|
|
3
|
-
type ShopifyLocalizationMethod = 'api' | 'ssr';
|
|
4
|
-
type ShopifySyncCheck = 'localized_variants' | 'flow_variant_metafields';
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
declare namespace io.flow.shopify.v0.models {
|
|
8
|
-
interface FlowCenterReference {
|
|
9
|
-
readonly 'key': string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface GeoForm {
|
|
13
|
-
readonly 'country': string;
|
|
14
|
-
readonly 'currency': string;
|
|
15
|
-
readonly 'language': string;
|
|
16
|
-
readonly 'locale': string;
|
|
17
|
-
readonly 'experience': string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface ShopifyCart {
|
|
21
|
-
readonly 'id': string;
|
|
22
|
-
readonly 'items': io.flow.shopify.v0.models.ShopifyCartItem[];
|
|
23
|
-
readonly 'item_count': number;
|
|
24
|
-
readonly 'total_price': number;
|
|
25
|
-
readonly 'local': io.flow.shopify.v0.models.ShopifyLocalCartMetadata;
|
|
26
|
-
readonly 'attributes'?: any/*object*/;
|
|
27
|
-
readonly 'note'?: string;
|
|
28
|
-
readonly 'requires_shipping': boolean;
|
|
29
|
-
readonly 'total_weight'?: number;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface ShopifyCartAddMultipleForm {
|
|
33
|
-
readonly 'discriminator': 'shopify_cart_add_multiple_form';
|
|
34
|
-
readonly 'items': io.flow.shopify.v0.models.ShopifyCartAddSingleForm[];
|
|
35
|
-
readonly 'attributes'?: Record<string, string>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface ShopifyCartAddSingleForm {
|
|
39
|
-
readonly 'discriminator': 'shopify_cart_add_single_form';
|
|
40
|
-
readonly 'id': number;
|
|
41
|
-
readonly 'quantity': number;
|
|
42
|
-
readonly 'properties'?: Record<string, string>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface ShopifyCartChangeForm {
|
|
46
|
-
readonly 'quantity': number;
|
|
47
|
-
readonly 'line'?: number;
|
|
48
|
-
readonly 'id'?: number;
|
|
49
|
-
readonly 'properties'?: Record<string, string>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface ShopifyCartConversion {
|
|
53
|
-
readonly 'flow': io.flow.shopify.v0.models.ShopifyCartConversionFlowOrder;
|
|
54
|
-
readonly 'shopify': io.flow.shopify.v0.models.ShopifyCartConversionShopifyCart;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface ShopifyCartConversionFlowOrder {
|
|
58
|
-
readonly 'order': io.flow.experience.v0.models.Order;
|
|
59
|
-
readonly 'errors'?: io.flow.experience.v0.models.OrderError[];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
interface ShopifyCartConversionShopifyCart {
|
|
63
|
-
readonly 'cart': io.flow.shopify.external.v0.models.ShopifyExternalCart;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
interface ShopifyCartItem {
|
|
67
|
-
readonly 'id': string;
|
|
68
|
-
readonly 'handle': string;
|
|
69
|
-
readonly 'line_price': number;
|
|
70
|
-
readonly 'price': number;
|
|
71
|
-
readonly 'product_id': number;
|
|
72
|
-
readonly 'product_title': string;
|
|
73
|
-
readonly 'quantity': number;
|
|
74
|
-
readonly 'title': string;
|
|
75
|
-
readonly 'url': string;
|
|
76
|
-
readonly 'variant_id': number;
|
|
77
|
-
readonly 'local': io.flow.shopify.v0.models.ShopifyLocalCartItemMetadata;
|
|
78
|
-
readonly 'gift_card': boolean;
|
|
79
|
-
readonly 'image'?: string;
|
|
80
|
-
readonly 'product_description'?: string;
|
|
81
|
-
readonly 'product_type'?: string;
|
|
82
|
-
readonly 'properties'?: Record<string, string>;
|
|
83
|
-
readonly 'requires_shipping': boolean;
|
|
84
|
-
readonly 'sku'?: string;
|
|
85
|
-
readonly 'variant_title'?: string;
|
|
86
|
-
readonly 'variant_options'?: string[];
|
|
87
|
-
readonly 'vendor'?: string;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
interface ShopifyCustomerMetafieldValue {
|
|
91
|
-
readonly 'flow_consumer_id': string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
interface ShopifyItemEventBucket {
|
|
95
|
-
readonly 'discriminator': 'shopify_item_event_bucket';
|
|
96
|
-
readonly 'range': io.flow.common.v0.models.DatetimeRange;
|
|
97
|
-
readonly 'count': number;
|
|
98
|
-
readonly 'data': io.flow.shopify.v0.models.ShopifyItemEventData[];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
interface ShopifyItemEventData {
|
|
102
|
-
readonly 'created_at': string;
|
|
103
|
-
readonly 'experience': io.flow.experience.v0.models.ExperienceReference;
|
|
104
|
-
readonly 'item': io.flow.common.v0.models.CatalogItemSummary;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
interface ShopifyLine {
|
|
108
|
-
readonly 'variant_id': number;
|
|
109
|
-
readonly 'quantity': number;
|
|
110
|
-
readonly 'price': io.flow.shopify.v0.models.ShopifyPrice;
|
|
111
|
-
readonly 'total': io.flow.shopify.v0.models.ShopifyPrice;
|
|
112
|
-
readonly 'price_source'?: io.flow.common.v0.unions.PriceSource;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface ShopifyLocalCartItemMetadata {
|
|
116
|
-
readonly 'line_price': io.flow.common.v0.models.PriceWithBase;
|
|
117
|
-
readonly 'price': io.flow.common.v0.models.PriceWithBase;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
interface ShopifyLocalCartMetadata {
|
|
121
|
-
readonly 'total_price': io.flow.common.v0.models.PriceWithBase;
|
|
122
|
-
readonly 'promotions': io.flow.experience.v0.models.Promotions;
|
|
123
|
-
readonly 'rules'?: io.flow.experience.v0.models.OrderRulesSummary;
|
|
124
|
-
readonly 'subtotal': io.flow.common.v0.models.PriceWithBase;
|
|
125
|
-
readonly 'vat'?: io.flow.common.v0.models.PriceWithBase;
|
|
126
|
-
readonly 'duty'?: io.flow.common.v0.models.PriceWithBase;
|
|
127
|
-
readonly 'discount'?: io.flow.common.v0.models.PriceWithBase;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
interface ShopifyLocalPriceMetadata {
|
|
131
|
-
readonly 'price': io.flow.common.v0.models.PriceWithBase;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
interface ShopifyLocalizationSetting {
|
|
135
|
-
readonly 'id': string;
|
|
136
|
-
readonly 'method': io.flow.shopify.v0.enums.ShopifyLocalizationMethod;
|
|
137
|
-
readonly 'datetime_range': io.flow.common.v0.models.DatetimeRange;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
interface ShopifyLocalizationSettingForm {
|
|
141
|
-
readonly 'method': io.flow.shopify.v0.enums.ShopifyLocalizationMethod;
|
|
142
|
-
readonly 'datetime_range': io.flow.common.v0.models.DatetimeRange;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
interface ShopifyLocalizedOrder {
|
|
146
|
-
readonly 'id': number;
|
|
147
|
-
readonly 'lines': io.flow.shopify.v0.models.ShopifyLine[];
|
|
148
|
-
readonly 'prices': io.flow.shopify.v0.models.ShopifyPrice[];
|
|
149
|
-
readonly 'total': io.flow.shopify.v0.models.ShopifyPrice;
|
|
150
|
-
readonly 'allocation_details': io.flow.experience.v0.unions.AllocationDetail[];
|
|
151
|
-
readonly 'merchant_of_record'?: io.flow.common.v0.enums.OrderMerchantOfRecord;
|
|
152
|
-
readonly 'merchant_of_record_entity'?: io.flow.common.v0.models.MerchantOfRecordEntity;
|
|
153
|
-
readonly 'incoterm'?: io.flow.common.v0.enums.Incoterm;
|
|
154
|
-
readonly 'flow_order_id'?: string;
|
|
155
|
-
readonly 'tax_registration'?: io.flow.harmonization.v0.models.TaxRegistration;
|
|
156
|
-
readonly 'geo'?: io.flow.experience.v0.models.OrderGeo;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
interface ShopifyLocalizedVariant {
|
|
160
|
-
readonly 'id': number;
|
|
161
|
-
readonly 'handle': string;
|
|
162
|
-
readonly 'experience': io.flow.experience.v0.models.ExperienceReference;
|
|
163
|
-
readonly 'prices': io.flow.shopify.v0.models.ShopifyLocalizedVariantPrices;
|
|
164
|
-
readonly 'status': io.flow.catalog.v0.enums.SubcatalogItemStatus;
|
|
165
|
-
readonly 'inventory_status'?: io.flow.fulfillment.v0.enums.ItemAvailabilityStatus;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
interface ShopifyLocalizedVariantPrices {
|
|
169
|
-
readonly 'item': io.flow.shopify.v0.models.ShopifyPrice;
|
|
170
|
-
readonly 'compare_at'?: io.flow.shopify.v0.models.ShopifyPrice;
|
|
171
|
-
readonly 'vat'?: io.flow.shopify.v0.models.ShopifyPrice;
|
|
172
|
-
readonly 'duty'?: io.flow.shopify.v0.models.ShopifyPrice;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
interface ShopifyLocationFlowCenterMapping {
|
|
176
|
-
readonly 'id': string;
|
|
177
|
-
readonly 'shopify_location': io.flow.shopify.v0.models.ShopifyLocationReference;
|
|
178
|
-
readonly 'flow_center': io.flow.shopify.v0.models.FlowCenterReference;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
interface ShopifyLocationFlowCenterMappingForm {
|
|
182
|
-
readonly 'shopify_location_id': number;
|
|
183
|
-
readonly 'flow_center_key': string;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
interface ShopifyLocationReference {
|
|
187
|
-
readonly 'id': string;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
interface ShopifyOrderAttributesForm {
|
|
191
|
-
readonly 'attributes': Record<string, string>;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
interface ShopifyOrderDeliveryMetafield {
|
|
195
|
-
readonly 'key'?: string;
|
|
196
|
-
readonly 'items': io.flow.shopify.v0.models.ShopifyOrderDeliveryMetafieldItem[];
|
|
197
|
-
readonly 'service': io.flow.fulfillment.v0.models.ServiceSummary;
|
|
198
|
-
readonly 'window': io.flow.fulfillment.v0.models.DeliveryWindow;
|
|
199
|
-
readonly 'liability'?: io.flow.fulfillment.v0.enums.RatecardOwner;
|
|
200
|
-
readonly 'cost'?: io.flow.common.v0.models.MoneyWithOptionalBase;
|
|
201
|
-
readonly 'prices'?: io.flow.shopify.v0.models.ShopifyPrice[];
|
|
202
|
-
readonly 'total'?: io.flow.shopify.v0.models.ShopifyPrice;
|
|
203
|
-
readonly 'merchant_of_record_entity'?: io.flow.common.v0.models.MerchantOfRecordEntity;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
interface ShopifyOrderDeliveryMetafieldItem {
|
|
207
|
-
readonly 'number': string;
|
|
208
|
-
readonly 'quantity': number;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
interface ShopifyOrderPriceAttributesMetafield {
|
|
212
|
-
readonly 'item_number': string;
|
|
213
|
-
readonly 'price_attributes': Record<string, io.flow.common.v0.models.PriceWithBase>;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
interface ShopifyOrderRomanizationMetafield {
|
|
217
|
-
readonly 'destination': io.flow.experience.v0.models.OrderAddress;
|
|
218
|
-
readonly 'billing'?: io.flow.common.v0.models.BillingAddress;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
interface ShopifyPrice {
|
|
222
|
-
readonly 'name': string;
|
|
223
|
-
readonly 'amount': number;
|
|
224
|
-
readonly 'cents': number;
|
|
225
|
-
readonly 'currency': string;
|
|
226
|
-
readonly 'label': string;
|
|
227
|
-
readonly 'includes'?: io.flow.common.v0.models.IncludedLevies;
|
|
228
|
-
readonly 'local'?: io.flow.shopify.v0.models.ShopifyLocalPriceMetadata;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
interface ShopifyPrivateApp {
|
|
232
|
-
readonly 'id': string;
|
|
233
|
-
readonly 'api_key': string;
|
|
234
|
-
readonly 'password': string;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
interface ShopifyPrivateAppForm {
|
|
238
|
-
readonly 'api_key': string;
|
|
239
|
-
readonly 'password': string;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
interface ShopifySyncStatus {
|
|
243
|
-
readonly 'sync_check': io.flow.shopify.v0.enums.ShopifySyncCheck;
|
|
244
|
-
readonly 'range': io.flow.common.v0.models.DatetimeRange;
|
|
245
|
-
readonly 'interval_seconds': number;
|
|
246
|
-
readonly 'total': number;
|
|
247
|
-
readonly 'buckets': io.flow.shopify.v0.unions.ShopifyEventBucket[];
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
interface ShopifyVariantFlowMetafield {
|
|
251
|
-
readonly 'prices_item': string;
|
|
252
|
-
readonly 'prices_currency': string;
|
|
253
|
-
readonly 'prices_includes'?: string;
|
|
254
|
-
readonly 'prices_vat'?: string;
|
|
255
|
-
readonly 'prices_vat_name'?: string;
|
|
256
|
-
readonly 'prices_duty'?: string;
|
|
257
|
-
readonly 'prices_compare_at'?: string;
|
|
258
|
-
readonly 'prices_status': io.flow.catalog.v0.enums.SubcatalogItemStatus;
|
|
259
|
-
readonly 'inventory_status'?: io.flow.fulfillment.v0.enums.ItemAvailabilityStatus;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
interface ShopifyVariantInventoryMetafield {
|
|
263
|
-
readonly 'experience': io.flow.experience.v0.models.ExperienceReference;
|
|
264
|
-
readonly 'status': io.flow.fulfillment.v0.enums.ItemAvailabilityStatus;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
declare namespace io.flow.shopify.v0.unions {
|
|
269
|
-
type ShopifyCartAddForm = (io.flow.shopify.v0.models.ShopifyCartAddSingleForm | io.flow.shopify.v0.models.ShopifyCartAddMultipleForm);
|
|
270
|
-
type ShopifyEventBucket = (io.flow.shopify.v0.models.ShopifyItemEventBucket);
|
|
271
|
-
}
|