@flowio/api-internal-prop-types 1.1.1 → 1.1.3
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/.eslintrc +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.js +80 -0
- package/lib/io/flow/common/v0/models/billingAddress.js +24 -0
- package/lib/io/flow/experience/internal/v0/models/giftCard.js +22 -0
- package/lib/io/flow/experience/internal/v0/models/giftCardForm.js +16 -0
- package/lib/io/flow/experience/internal/v0/models/giftCardProgram.js +25 -0
- package/lib/io/flow/experience/internal/v0/models/loyaltyProgram.js +30 -0
- package/lib/io/flow/experience/v0/models/discount.js +23 -0
- package/lib/io/flow/experience/v0/models/orderPayment.js +3 -3
- package/lib/io/flow/experience/v0/unions/promotion.js +5 -1
- package/lib/io/flow/internal/v0/enums/eventType.js +1 -1
- package/lib/io/flow/internal/v0/models/giftCard.js +22 -0
- package/lib/io/flow/internal/v0/models/giftCardForm.js +16 -0
- package/lib/io/flow/internal/v0/models/giftCardProgram.js +25 -0
- package/lib/io/flow/internal/v0/models/internalCardAuthorizationDetails.js +24 -0
- package/lib/io/flow/internal/v0/models/internalStripeAuthorizationDetails.js +19 -0
- package/lib/io/flow/internal/v0/models/itemsShipped.js +34 -0
- package/lib/io/flow/internal/v0/models/loyaltyProgramMessage.js +15 -0
- package/lib/io/flow/internal/v0/models/loyaltyProgramReward.js +16 -0
- package/lib/io/flow/internal/v0/models/loyaltyProgramRewards.js +19 -0
- package/lib/io/flow/internal/v0/models/organizationMembershipCopy.js +17 -0
- package/lib/io/flow/internal/v0/models/organizationMembershipCopyForm.js +16 -0
- package/lib/io/flow/internal/v0/models/sessionReference.js +15 -0
- package/lib/io/flow/internal/v0/models/shippedItemValue.js +26 -0
- package/lib/io/flow/internal/v0/models/stripeAuthenticationDataReference.js +15 -0
- package/lib/io/flow/internal/v0/models/submittedOrderUpserted.js +27 -0
- package/lib/io/flow/internal/v0/unions/event.js +9 -1
- package/lib/io/flow/internal/v0/unions/internalAuthorizationDetails.js +5 -1
- package/lib/io/flow/payment/v0/models/achAuthorizationForm.js +3 -3
- package/lib/io/flow/payment/v0/models/card.js +3 -3
- package/lib/io/flow/payment/v0/models/cardAuthorization.js +5 -0
- package/lib/io/flow/payment/v0/models/cardForm.js +3 -3
- package/lib/io/flow/payment/v0/models/directAuthorizationForm.js +5 -0
- package/lib/io/flow/payment/v0/models/inlineAuthorizationForm.js +3 -3
- package/lib/io/flow/payment/v0/models/onlineAuthorization.js +5 -1
- package/package.json +6 -6
- package/src/index.d.ts +16 -0
- package/src/index.js +32 -0
- package/src/io/flow/common/v0/models/billingAddress.js +11 -0
- package/src/io/flow/experience/internal/v0/models/giftCard.js +9 -0
- package/src/io/flow/experience/internal/v0/models/giftCardForm.js +6 -0
- package/src/io/flow/experience/internal/v0/models/giftCardProgram.js +9 -0
- package/src/io/flow/experience/internal/v0/models/loyaltyProgram.js +11 -0
- package/src/io/flow/experience/v0/models/discount.js +10 -0
- package/src/io/flow/experience/v0/models/orderPayment.js +2 -2
- package/src/io/flow/experience/v0/unions/promotion.js +2 -1
- package/src/io/flow/internal/v0/enums/eventType.js +2 -0
- package/src/io/flow/internal/v0/models/giftCard.js +9 -0
- package/src/io/flow/internal/v0/models/giftCardForm.js +6 -0
- package/src/io/flow/internal/v0/models/giftCardProgram.js +9 -0
- package/src/io/flow/internal/v0/models/internalCardAuthorizationDetails.js +8 -0
- package/src/io/flow/internal/v0/models/internalStripeAuthorizationDetails.js +6 -0
- package/src/io/flow/internal/v0/models/itemsShipped.js +15 -0
- package/src/io/flow/internal/v0/models/loyaltyProgramMessage.js +5 -0
- package/src/io/flow/internal/v0/models/loyaltyProgramReward.js +6 -0
- package/src/io/flow/internal/v0/models/loyaltyProgramRewards.js +6 -0
- package/src/io/flow/internal/v0/models/organizationMembershipCopy.js +7 -0
- package/src/io/flow/internal/v0/models/organizationMembershipCopyForm.js +6 -0
- package/src/io/flow/internal/v0/models/sessionReference.js +5 -0
- package/src/io/flow/internal/v0/models/shippedItemValue.js +10 -0
- package/src/io/flow/internal/v0/models/stripeAuthenticationDataReference.js +5 -0
- package/src/io/flow/internal/v0/models/submittedOrderUpserted.js +11 -0
- package/src/io/flow/internal/v0/unions/event.js +4 -0
- package/src/io/flow/internal/v0/unions/internalAuthorizationDetails.js +2 -0
- package/src/io/flow/payment/v0/models/achAuthorizationForm.js +2 -2
- package/src/io/flow/payment/v0/models/card.js +2 -2
- package/src/io/flow/payment/v0/models/cardAuthorization.js +2 -0
- package/src/io/flow/payment/v0/models/cardForm.js +2 -2
- package/src/io/flow/payment/v0/models/directAuthorizationForm.js +2 -0
- package/src/io/flow/payment/v0/models/inlineAuthorizationForm.js +2 -2
- package/src/io/flow/payment/v0/models/onlineAuthorization.js +2 -1
- package/.eslintcache +0 -1
- /package/lib/io/flow/experience/{v0 → internal/v0}/models/loyaltyProgramMessage.js +0 -0
- /package/lib/io/flow/experience/{v0 → internal/v0}/models/loyaltyProgramReward.js +0 -0
- /package/lib/io/flow/experience/{v0 → internal/v0}/models/loyaltyProgramRewards.js +0 -0
- /package/lib/io/flow/{experience → internal}/v0/models/loyaltyProgram.js +0 -0
- /package/src/io/flow/experience/{v0 → internal/v0}/models/loyaltyProgramMessage.js +0 -0
- /package/src/io/flow/experience/{v0 → internal/v0}/models/loyaltyProgramReward.js +0 -0
- /package/src/io/flow/experience/{v0 → internal/v0}/models/loyaltyProgramRewards.js +0 -0
- /package/src/io/flow/{experience → internal}/v0/models/loyaltyProgram.js +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import inputFormSpecification from '../../../../common/v0/models/inputFormSpecification';
|
|
3
|
+
import giftCard from './giftCard';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
title: PropTypes.string.isRequired,
|
|
7
|
+
input_specification: inputFormSpecification,
|
|
8
|
+
cards: PropTypes.arrayOf(giftCard).isRequired,
|
|
9
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import loyaltyProgramMessage from './loyaltyProgramMessage';
|
|
3
|
+
import inputFormSpecification from '../../../../common/v0/models/inputFormSpecification';
|
|
4
|
+
import loyaltyProgramRewards from './loyaltyProgramRewards';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
title: PropTypes.string.isRequired,
|
|
8
|
+
message: loyaltyProgramMessage,
|
|
9
|
+
input_specification: inputFormSpecification,
|
|
10
|
+
rewards: loyaltyProgramRewards,
|
|
11
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import priceWithBase from '../../../common/v0/models/priceWithBase';
|
|
3
|
+
|
|
4
|
+
export default PropTypes.shape({
|
|
5
|
+
id: PropTypes.string.isRequired,
|
|
6
|
+
code: PropTypes.string,
|
|
7
|
+
label: PropTypes.string.isRequired,
|
|
8
|
+
price: priceWithBase.isRequired,
|
|
9
|
+
attributes: PropTypes.objectOf(PropTypes.string),
|
|
10
|
+
});
|
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import orderPaymentType from '../enums/orderPaymentType';
|
|
3
3
|
import merchantOfRecord from '../../../common/v0/enums/merchantOfRecord';
|
|
4
4
|
import priceWithBase from '../../../common/v0/models/priceWithBase';
|
|
5
|
-
import
|
|
5
|
+
import billingAddress from '../../../common/v0/models/billingAddress';
|
|
6
6
|
|
|
7
7
|
export default PropTypes.shape({
|
|
8
8
|
id: PropTypes.string.isRequired,
|
|
@@ -11,6 +11,6 @@ export default PropTypes.shape({
|
|
|
11
11
|
reference: PropTypes.string.isRequired,
|
|
12
12
|
description: PropTypes.string.isRequired,
|
|
13
13
|
total: priceWithBase.isRequired,
|
|
14
|
-
address:
|
|
14
|
+
address: billingAddress,
|
|
15
15
|
date: PropTypes.string,
|
|
16
16
|
});
|
|
@@ -28,6 +28,7 @@ export default PropTypes.oneOf([
|
|
|
28
28
|
'item_sales_margin_upserted',
|
|
29
29
|
'order_attribute_deleted',
|
|
30
30
|
'order_attribute_upserted',
|
|
31
|
+
'submitted_order_upserted',
|
|
31
32
|
'experiment_upserted',
|
|
32
33
|
'experiment_deleted',
|
|
33
34
|
'export_completed',
|
|
@@ -78,6 +79,7 @@ export default PropTypes.oneOf([
|
|
|
78
79
|
'ready_to_fulfill',
|
|
79
80
|
'fulfillment_cancel',
|
|
80
81
|
'order_shipped',
|
|
82
|
+
'items_shipped',
|
|
81
83
|
'order_rates_published_v3',
|
|
82
84
|
'lane_upserted',
|
|
83
85
|
'lane_deleted',
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import inputFormSpecification from '../../../common/v0/models/inputFormSpecification';
|
|
3
|
+
import giftCard from './giftCard';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
title: PropTypes.string.isRequired,
|
|
7
|
+
input_specification: inputFormSpecification,
|
|
8
|
+
cards: PropTypes.arrayOf(giftCard).isRequired,
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import authorizationResult from '../../../payment/v0/models/authorizationResult';
|
|
3
|
+
import internalAuthorizationDetails from '../unions/internalAuthorizationDetails';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
result: authorizationResult.isRequired,
|
|
7
|
+
internal: internalAuthorizationDetails,
|
|
8
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import order from '../../../experience/v0/models/order';
|
|
3
|
+
import fulfillment from '../../../order/management/v0/models/fulfillment';
|
|
4
|
+
import shippedItemValue from './shippedItemValue';
|
|
5
|
+
|
|
6
|
+
export default PropTypes.shape({
|
|
7
|
+
event_id: PropTypes.string.isRequired,
|
|
8
|
+
timestamp: PropTypes.string.isRequired,
|
|
9
|
+
organization: PropTypes.string.isRequired,
|
|
10
|
+
order_number: PropTypes.string.isRequired,
|
|
11
|
+
order: order.isRequired,
|
|
12
|
+
fulfillments: PropTypes.arrayOf(fulfillment).isRequired,
|
|
13
|
+
flow_tracking_number: PropTypes.string.isRequired,
|
|
14
|
+
shipped_item_values: PropTypes.arrayOf(shippedItemValue).isRequired,
|
|
15
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import catalogItemReference from '../../../common/v0/models/catalogItemReference';
|
|
3
|
+
import priceWithBase from '../../../common/v0/models/priceWithBase';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
item: catalogItemReference.isRequired,
|
|
7
|
+
taxes: priceWithBase.isRequired,
|
|
8
|
+
duties: priceWithBase.isRequired,
|
|
9
|
+
total: priceWithBase.isRequired,
|
|
10
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import order from '../../../experience/v0/models/order';
|
|
3
|
+
import sessionReference from './sessionReference';
|
|
4
|
+
|
|
5
|
+
export default PropTypes.shape({
|
|
6
|
+
event_id: PropTypes.string.isRequired,
|
|
7
|
+
timestamp: PropTypes.string.isRequired,
|
|
8
|
+
organization: PropTypes.string.isRequired,
|
|
9
|
+
order: order.isRequired,
|
|
10
|
+
session: sessionReference,
|
|
11
|
+
});
|
|
@@ -26,6 +26,7 @@ import itemSalesMarginDeleted from '../models/itemSalesMarginDeleted';
|
|
|
26
26
|
import itemSalesMarginUpserted from '../models/itemSalesMarginUpserted';
|
|
27
27
|
import orderAttributeDeleted from '../models/orderAttributeDeleted';
|
|
28
28
|
import orderAttributeUpserted from '../models/orderAttributeUpserted';
|
|
29
|
+
import submittedOrderUpserted from '../models/submittedOrderUpserted';
|
|
29
30
|
import experimentUpserted from '../models/experimentUpserted';
|
|
30
31
|
import experimentDeleted from '../models/experimentDeleted';
|
|
31
32
|
import exportCompleted from '../models/exportCompleted';
|
|
@@ -76,6 +77,7 @@ import orderFulfillmentUpserted from '../models/orderFulfillmentUpserted';
|
|
|
76
77
|
import readyToFulfill from '../models/readyToFulfill';
|
|
77
78
|
import fulfillmentCancel from '../models/fulfillmentCancel';
|
|
78
79
|
import orderShipped from '../models/orderShipped';
|
|
80
|
+
import itemsShipped from '../models/itemsShipped';
|
|
79
81
|
import orderRatesPublishedV3 from '../models/orderRatesPublishedV3';
|
|
80
82
|
import laneUpserted from '../models/laneUpserted';
|
|
81
83
|
import laneDeleted from '../models/laneDeleted';
|
|
@@ -118,6 +120,7 @@ export default PropTypes.oneOfType([
|
|
|
118
120
|
itemSalesMarginUpserted,
|
|
119
121
|
orderAttributeDeleted,
|
|
120
122
|
orderAttributeUpserted,
|
|
123
|
+
submittedOrderUpserted,
|
|
121
124
|
experimentUpserted,
|
|
122
125
|
experimentDeleted,
|
|
123
126
|
exportCompleted,
|
|
@@ -168,6 +171,7 @@ export default PropTypes.oneOfType([
|
|
|
168
171
|
readyToFulfill,
|
|
169
172
|
fulfillmentCancel,
|
|
170
173
|
orderShipped,
|
|
174
|
+
itemsShipped,
|
|
171
175
|
orderRatesPublishedV3,
|
|
172
176
|
laneUpserted,
|
|
173
177
|
laneDeleted,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import internalPaypalAuthorizationDetails from '../models/internalPaypalAuthorizationDetails';
|
|
3
3
|
import internalBitpayAuthorizationDetails from '../models/internalBitpayAuthorizationDetails';
|
|
4
|
+
import internalStripeAuthorizationDetails from '../models/internalStripeAuthorizationDetails';
|
|
4
5
|
|
|
5
6
|
export default PropTypes.oneOfType([
|
|
6
7
|
internalPaypalAuthorizationDetails,
|
|
7
8
|
internalBitpayAuthorizationDetails,
|
|
9
|
+
internalStripeAuthorizationDetails,
|
|
8
10
|
]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import
|
|
2
|
+
import billingAddress from '../../../common/v0/models/billingAddress';
|
|
3
3
|
|
|
4
4
|
export default PropTypes.shape({
|
|
5
5
|
account_owner_name: PropTypes.string.isRequired,
|
|
6
6
|
account_number: PropTypes.string.isRequired,
|
|
7
7
|
routing_number: PropTypes.string.isRequired,
|
|
8
|
-
billing_address:
|
|
8
|
+
billing_address: billingAddress.isRequired,
|
|
9
9
|
order_number: PropTypes.string,
|
|
10
10
|
amount: PropTypes.number.isRequired,
|
|
11
11
|
currency: PropTypes.string.isRequired,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import cardType from '../enums/cardType';
|
|
3
3
|
import expiration from './expiration';
|
|
4
|
-
import
|
|
4
|
+
import billingAddress from '../../../common/v0/models/billingAddress';
|
|
5
5
|
|
|
6
6
|
export default PropTypes.shape({
|
|
7
7
|
id: PropTypes.string.isRequired,
|
|
@@ -11,5 +11,5 @@ export default PropTypes.shape({
|
|
|
11
11
|
iin: PropTypes.string.isRequired,
|
|
12
12
|
last4: PropTypes.string.isRequired,
|
|
13
13
|
name: PropTypes.string.isRequired,
|
|
14
|
-
address:
|
|
14
|
+
address: billingAddress,
|
|
15
15
|
});
|
|
@@ -5,6 +5,7 @@ import expandableCard from '../unions/expandableCard';
|
|
|
5
5
|
import money from '../../../common/v0/models/money';
|
|
6
6
|
import customer from '../../../common/v0/models/customer';
|
|
7
7
|
import address from '../../../common/v0/models/address';
|
|
8
|
+
import billingAddress from '../../../common/v0/models/billingAddress';
|
|
8
9
|
import authorizationOrderReference from './authorizationOrderReference';
|
|
9
10
|
import authorizationResult from './authorizationResult';
|
|
10
11
|
|
|
@@ -20,6 +21,7 @@ export default PropTypes.shape({
|
|
|
20
21
|
customer: customer.isRequired,
|
|
21
22
|
attributes: PropTypes.objectOf(PropTypes.string).isRequired,
|
|
22
23
|
destination: address,
|
|
24
|
+
billing_address: billingAddress,
|
|
23
25
|
order: authorizationOrderReference,
|
|
24
26
|
ip: PropTypes.string,
|
|
25
27
|
result: authorizationResult.isRequired,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import
|
|
2
|
+
import billingAddress from '../../../common/v0/models/billingAddress';
|
|
3
3
|
import tokenType from '../enums/tokenType';
|
|
4
4
|
|
|
5
5
|
export default PropTypes.shape({
|
|
@@ -9,7 +9,7 @@ export default PropTypes.shape({
|
|
|
9
9
|
expiration_year: PropTypes.number.isRequired,
|
|
10
10
|
name: PropTypes.string.isRequired,
|
|
11
11
|
cvv: PropTypes.string.isRequired,
|
|
12
|
-
address:
|
|
12
|
+
address: billingAddress,
|
|
13
13
|
ip: PropTypes.string,
|
|
14
14
|
challenge_text: PropTypes.string,
|
|
15
15
|
challenge_cipher: PropTypes.string,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import customer from '../../../common/v0/models/customer';
|
|
3
3
|
import address from '../../../common/v0/models/address';
|
|
4
|
+
import billingAddress from '../../../common/v0/models/billingAddress';
|
|
4
5
|
import authorizationOption from '../enums/authorizationOption';
|
|
5
6
|
import postPaymentRedirectUrls from './postPaymentRedirectUrls';
|
|
6
7
|
|
|
@@ -13,6 +14,7 @@ export default PropTypes.shape({
|
|
|
13
14
|
cvv: PropTypes.string,
|
|
14
15
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
15
16
|
destination: address,
|
|
17
|
+
billing_address: billingAddress,
|
|
16
18
|
ip: PropTypes.string,
|
|
17
19
|
options: PropTypes.arrayOf(authorizationOption),
|
|
18
20
|
redirect_urls: postPaymentRedirectUrls,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import issuerReference from './issuerReference';
|
|
3
|
-
import
|
|
3
|
+
import billingAddress from '../../../common/v0/models/billingAddress';
|
|
4
4
|
|
|
5
5
|
export default PropTypes.shape({
|
|
6
6
|
method: PropTypes.string.isRequired,
|
|
@@ -8,7 +8,7 @@ export default PropTypes.shape({
|
|
|
8
8
|
order_number: PropTypes.string.isRequired,
|
|
9
9
|
amount: PropTypes.number.isRequired,
|
|
10
10
|
currency: PropTypes.string.isRequired,
|
|
11
|
-
billing_address:
|
|
11
|
+
billing_address: billingAddress,
|
|
12
12
|
key: PropTypes.string,
|
|
13
13
|
attributes: PropTypes.objectOf(PropTypes.string),
|
|
14
14
|
ip: PropTypes.string,
|
|
@@ -5,6 +5,7 @@ import onlineAuthorizationDetails from '../unions/onlineAuthorizationDetails';
|
|
|
5
5
|
import money from '../../../common/v0/models/money';
|
|
6
6
|
import customer from '../../../common/v0/models/customer';
|
|
7
7
|
import address from '../../../common/v0/models/address';
|
|
8
|
+
import billingAddress from '../../../common/v0/models/billingAddress';
|
|
8
9
|
import authorizationOrderReference from './authorizationOrderReference';
|
|
9
10
|
import authorizationResult from './authorizationResult';
|
|
10
11
|
|
|
@@ -21,7 +22,7 @@ export default PropTypes.shape({
|
|
|
21
22
|
customer: customer.isRequired,
|
|
22
23
|
attributes: PropTypes.objectOf(PropTypes.string).isRequired,
|
|
23
24
|
destination: address,
|
|
24
|
-
billing_address:
|
|
25
|
+
billing_address: billingAddress,
|
|
25
26
|
order: authorizationOrderReference,
|
|
26
27
|
ip: PropTypes.string,
|
|
27
28
|
result: authorizationResult.isRequired,
|