@flowio/api-internal-prop-types 1.2.15 → 1.2.16

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.
Files changed (75) hide show
  1. package/.apibuilder/.tracked_files +16 -2
  2. package/LICENSE +21 -0
  3. package/lib/index.d.ts +9 -1
  4. package/lib/io/flow/experience/v0/enums/orderErrorCode.js +1 -1
  5. package/lib/io/flow/internal/v0/enums/eventType.js +1 -1
  6. package/lib/io/flow/internal/v0/models/checkoutFinalizeOrderForm.js +24 -0
  7. package/lib/io/flow/internal/v0/models/marketingGatewayAccount.js +1 -7
  8. package/lib/io/flow/internal/v0/models/marketingGatewayGooglePrice.js +2 -1
  9. package/lib/io/flow/internal/v0/models/marketingGatewayGoogleProduct.js +6 -1
  10. package/lib/io/flow/internal/v0/models/paypalAuthorizationPayload.js +16 -0
  11. package/lib/io/flow/internal/v0/models/ratecardLane.js +1 -6
  12. package/lib/io/flow/internal/v0/models/ratecardLaneDeleted.js +18 -0
  13. package/lib/io/flow/internal/v0/models/ratecardLaneForm.js +1 -6
  14. package/lib/io/flow/internal/v0/models/ratecardLaneUpserted.js +22 -0
  15. package/lib/io/flow/internal/v0/models/stripeAccount.js +15 -0
  16. package/lib/io/flow/internal/v0/models/stripeAccountForm.js +28 -0
  17. package/lib/io/flow/internal/v0/unions/authorizationPayload.js +5 -1
  18. package/lib/io/flow/internal/v0/unions/event.js +9 -1
  19. package/lib/io/flow/internal/v0/unions/paymentAccount.js +17 -0
  20. package/lib/io/flow/internal/v0/unions/paymentAccountForm.js +17 -0
  21. package/lib/io/flow/payment/v0/unions/authorizationForm.js +1 -5
  22. package/lib/io/flow/shopify/external/v0/enums/restockType.js +13 -0
  23. package/lib/io/flow/shopify/external/v0/models/shopifyFulfillment.js +1 -0
  24. package/lib/io/flow/shopify/external/v0/models/shopifyLocation.js +29 -0
  25. package/lib/io/flow/shopify/external/v0/models/shopifyLocationsResponseWrapper.js +19 -0
  26. package/lib/io/flow/shopify/external/v0/models/shopifyRefundForm.js +8 -8
  27. package/lib/io/flow/shopify/external/v0/models/shopifyRefundLineItem.js +6 -0
  28. package/lib/io/flow/shopify/external/v0/models/shopifyRefundLineItemForm.js +7 -1
  29. package/lib/io/flow/shopify/v0/models/shopifySyncStatus.js +0 -1
  30. package/lib/io/flow/stripe/v0/models/account.js +52 -0
  31. package/lib/io/flow/stripe/v0/models/accountRequest.js +32 -0
  32. package/lib/io/flow/stripe/v0/models/keys.js +16 -0
  33. package/lib/io/flow/stripe/v0/models/legalEntity.js +19 -0
  34. package/lib/io/flow/stripe/v0/models/tosAcceptance.js +17 -0
  35. package/lib/mocks.js +8 -0
  36. package/lib/validators.js +40 -0
  37. package/package.json +3 -2
  38. package/src/index.d.ts +9 -1
  39. package/src/io/flow/experience/v0/enums/orderErrorCode.js +3 -2
  40. package/src/io/flow/internal/v0/enums/eventType.js +2 -0
  41. package/src/io/flow/internal/v0/models/checkoutFinalizeOrderForm.js +8 -0
  42. package/src/io/flow/internal/v0/models/marketingGatewayAccount.js +0 -3
  43. package/src/io/flow/internal/v0/models/marketingGatewayGooglePrice.js +1 -0
  44. package/src/io/flow/internal/v0/models/marketingGatewayGoogleProduct.js +2 -0
  45. package/src/io/flow/internal/v0/models/paypalAuthorizationPayload.js +6 -0
  46. package/src/io/flow/internal/v0/models/ratecardLane.js +0 -2
  47. package/src/io/flow/internal/v0/models/ratecardLaneDeleted.js +8 -0
  48. package/src/io/flow/internal/v0/models/ratecardLaneForm.js +0 -2
  49. package/src/io/flow/internal/v0/models/ratecardLaneUpserted.js +9 -0
  50. package/src/io/flow/internal/v0/models/stripeAccount.js +5 -0
  51. package/src/io/flow/internal/v0/models/stripeAccountForm.js +12 -0
  52. package/src/io/flow/internal/v0/unions/authorizationPayload.js +5 -1
  53. package/src/io/flow/internal/v0/unions/event.js +4 -0
  54. package/src/io/flow/internal/v0/unions/paymentAccount.js +4 -0
  55. package/src/io/flow/internal/v0/unions/paymentAccountForm.js +4 -0
  56. package/src/io/flow/payment/v0/unions/authorizationForm.js +0 -2
  57. package/src/io/flow/shopify/external/v0/enums/restockType.js +3 -0
  58. package/src/io/flow/shopify/external/v0/models/shopifyFulfillment.js +1 -0
  59. package/src/io/flow/shopify/external/v0/models/shopifyLocation.js +19 -0
  60. package/src/io/flow/shopify/external/v0/models/shopifyLocationsResponseWrapper.js +6 -0
  61. package/src/io/flow/shopify/external/v0/models/shopifyRefundForm.js +4 -4
  62. package/src/io/flow/shopify/external/v0/models/shopifyRefundLineItem.js +3 -0
  63. package/src/io/flow/shopify/external/v0/models/shopifyRefundLineItemForm.js +3 -0
  64. package/src/io/flow/shopify/v0/models/shopifySyncStatus.js +0 -1
  65. package/src/io/flow/stripe/v0/models/account.js +30 -0
  66. package/src/io/flow/stripe/v0/models/accountRequest.js +13 -0
  67. package/src/io/flow/stripe/v0/models/keys.js +6 -0
  68. package/src/io/flow/stripe/v0/models/legalEntity.js +6 -0
  69. package/src/io/flow/stripe/v0/models/tosAcceptance.js +7 -0
  70. package/src/mocks.js +8 -0
  71. package/src/validators.js +16 -0
  72. package/lib/io/flow/payment/v0/models/cardAuthorizationForm.js +0 -31
  73. package/lib/io/flow/payment/v0/unions/cardAuthorizationData.js +0 -21
  74. package/src/io/flow/payment/v0/models/cardAuthorizationForm.js +0 -15
  75. package/src/io/flow/payment/v0/unions/cardAuthorizationData.js +0 -5
@@ -1,12 +1,12 @@
1
1
  import PropTypes from 'prop-types';
2
- import shopifyTransactionForm from './shopifyTransactionForm';
3
2
  import discrepancyReason from '../enums/discrepancyReason';
4
3
  import shopifyRefundLineItemForm from './shopifyRefundLineItemForm';
4
+ import shopifyTransactionForm from './shopifyTransactionForm';
5
5
 
6
6
  export default PropTypes.shape({
7
- restock: PropTypes.bool.isRequired,
8
- transactions: PropTypes.arrayOf(shopifyTransactionForm).isRequired,
9
- discrepancy_reason: discrepancyReason,
10
7
  note: PropTypes.string,
8
+ discrepancy_reason: discrepancyReason,
11
9
  refund_line_items: PropTypes.arrayOf(shopifyRefundLineItemForm).isRequired,
10
+ transactions: PropTypes.arrayOf(shopifyTransactionForm).isRequired,
11
+ currency: PropTypes.string.isRequired,
12
12
  });
@@ -1,11 +1,14 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import shopifyLineItem from './shopifyLineItem';
3
+ import restockType from '../enums/restockType';
3
4
 
4
5
  export default PropTypes.shape({
5
6
  id: PropTypes.number.isRequired,
6
7
  line_item: shopifyLineItem.isRequired,
7
8
  line_item_id: PropTypes.number.isRequired,
8
9
  quantity: PropTypes.number.isRequired,
10
+ restock_type: restockType.isRequired,
11
+ location_id: PropTypes.number,
9
12
  subtotal: PropTypes.number,
10
13
  total_tax: PropTypes.number,
11
14
  });
@@ -1,6 +1,9 @@
1
1
  import PropTypes from 'prop-types';
2
+ import restockType from '../enums/restockType';
2
3
 
3
4
  export default PropTypes.shape({
4
5
  line_item_id: PropTypes.number.isRequired,
5
6
  quantity: PropTypes.number.isRequired,
7
+ restock_type: restockType.isRequired,
8
+ location_id: PropTypes.number,
6
9
  });
@@ -8,6 +8,5 @@ export default PropTypes.shape({
8
8
  range: datetimeRange.isRequired,
9
9
  interval_seconds: PropTypes.number.isRequired,
10
10
  total: PropTypes.number.isRequired,
11
- needle_marker: PropTypes.string.isRequired,
12
11
  buckets: PropTypes.arrayOf(shopifyEventBucket).isRequired,
13
12
  });
@@ -0,0 +1,30 @@
1
+ import PropTypes from 'prop-types';
2
+ import keys from './keys';
3
+ import legalEntity from './legalEntity';
4
+ import tosAcceptance from './tosAcceptance';
5
+ import accountType from '../enums/accountType';
6
+
7
+ export default PropTypes.shape({
8
+ id: PropTypes.string.isRequired,
9
+ object: PropTypes.string.isRequired,
10
+ business_logo: PropTypes.string,
11
+ business_name: PropTypes.string,
12
+ business_url: PropTypes.string,
13
+ charges_enabled: PropTypes.bool,
14
+ country: PropTypes.string,
15
+ created: PropTypes.number,
16
+ debit_negative_balances: PropTypes.bool,
17
+ default_currency: PropTypes.string,
18
+ details_submitted: PropTypes.bool,
19
+ display_name: PropTypes.string,
20
+ email: PropTypes.string,
21
+ keys: keys,
22
+ legal_entity: legalEntity,
23
+ payout_statement_descriptor: PropTypes.string,
24
+ payouts_enabled: PropTypes.bool,
25
+ product_description: PropTypes.string,
26
+ statement_descriptor: PropTypes.string,
27
+ timezone: PropTypes.string,
28
+ tos_acceptance: tosAcceptance,
29
+ type: accountType,
30
+ });
@@ -0,0 +1,13 @@
1
+ import PropTypes from 'prop-types';
2
+ import accountType from '../enums/accountType';
3
+ import legalEntity from './legalEntity';
4
+ import tosAcceptance from './tosAcceptance';
5
+
6
+ export default PropTypes.shape({
7
+ type: accountType.isRequired,
8
+ country: PropTypes.string,
9
+ business_name: PropTypes.string,
10
+ legal_entity: legalEntity,
11
+ payout_statement_descriptor: PropTypes.string,
12
+ tos_acceptance: tosAcceptance,
13
+ });
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ secret: PropTypes.string,
5
+ publishable: PropTypes.string,
6
+ });
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+ import owner from './owner';
3
+
4
+ export default PropTypes.shape({
5
+ additional_owners: PropTypes.arrayOf(owner),
6
+ });
@@ -0,0 +1,7 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ date: PropTypes.string,
5
+ ip: PropTypes.string,
6
+ user_agent: PropTypes.string,
7
+ });
package/src/mocks.js CHANGED
@@ -159,6 +159,7 @@ export default {
159
159
  checkout: noopThunk,
160
160
  checkoutBundle: noopThunk,
161
161
  checkoutContent: noopThunk,
162
+ checkoutFinalizeOrderForm: noopThunk,
162
163
  checkoutMarketingContent: noopThunk,
163
164
  checkoutMetadata: noopThunk,
164
165
  checkoutPaymentContent: noopThunk,
@@ -493,6 +494,7 @@ export default {
493
494
  paymentSummaryV2: noopThunk,
494
495
  paypalAuthenticationData: noopThunk,
495
496
  paypalAuthenticationDataReference: noopThunk,
497
+ paypalAuthorizationPayload: noopThunk,
496
498
  paypalExecutionDeleted: noopThunk,
497
499
  paypalExecutionUpserted: noopThunk,
498
500
  paypalInternalExecution: noopThunk,
@@ -532,7 +534,9 @@ export default {
532
534
  ratecardEstimateV2: noopThunk,
533
535
  ratecardForm: noopThunk,
534
536
  ratecardLane: noopThunk,
537
+ ratecardLaneDeleted: noopThunk,
535
538
  ratecardLaneForm: noopThunk,
539
+ ratecardLaneUpserted: noopThunk,
536
540
  ratecardLaneVersion: noopThunk,
537
541
  ratecardPublished: noopThunk,
538
542
  ratecardRate: noopThunk,
@@ -614,6 +618,8 @@ export default {
614
618
  stringFeatureRule: noopThunk,
615
619
  stringFeatureRuleForm: noopThunk,
616
620
  stringFeatureValue: noopThunk,
621
+ stripeAccount: noopThunk,
622
+ stripeAccountForm: noopThunk,
617
623
  stripeAuthenticationDataReference: noopThunk,
618
624
  stripeAuthorizationDeleted: noopThunk,
619
625
  stripeAuthorizationUpserted: noopThunk,
@@ -689,6 +695,8 @@ export default {
689
695
  marketingGatewayPlatformMarket: noopThunk,
690
696
  marketingGatewayProduct: noopThunk,
691
697
  orderActionForm: noopThunk,
698
+ paymentAccount: noopThunk,
699
+ paymentAccountForm: noopThunk,
692
700
  paymentRedirect: noopThunk,
693
701
  paymentSummaryDetails: noopThunk,
694
702
  pendingBankPaymentDetail: noopThunk,
package/src/validators.js CHANGED
@@ -150,6 +150,7 @@ import checkbox from './io/flow/internal/v0/models/checkbox';
150
150
  import checkout from './io/flow/internal/v0/models/checkout';
151
151
  import checkoutBundle from './io/flow/internal/v0/models/checkoutBundle';
152
152
  import checkoutContent from './io/flow/internal/v0/models/checkoutContent';
153
+ import checkoutFinalizeOrderForm from './io/flow/internal/v0/models/checkoutFinalizeOrderForm';
153
154
  import checkoutMarketingContent from './io/flow/internal/v0/models/checkoutMarketingContent';
154
155
  import checkoutMetadata from './io/flow/internal/v0/models/checkoutMetadata';
155
156
  import checkoutPaymentContent from './io/flow/internal/v0/models/checkoutPaymentContent';
@@ -484,6 +485,7 @@ import passphraseSummary from './io/flow/internal/v0/models/passphraseSummary';
484
485
  import paymentSummaryV2 from './io/flow/internal/v0/models/paymentSummaryV2';
485
486
  import paypalAuthenticationData from './io/flow/internal/v0/models/paypalAuthenticationData';
486
487
  import paypalAuthenticationDataReference from './io/flow/internal/v0/models/paypalAuthenticationDataReference';
488
+ import paypalAuthorizationPayload from './io/flow/internal/v0/models/paypalAuthorizationPayload';
487
489
  import paypalExecutionDeleted from './io/flow/internal/v0/models/paypalExecutionDeleted';
488
490
  import paypalExecutionUpserted from './io/flow/internal/v0/models/paypalExecutionUpserted';
489
491
  import paypalInternalExecution from './io/flow/internal/v0/models/paypalInternalExecution';
@@ -523,7 +525,9 @@ import ratecardEstimateV1 from './io/flow/internal/v0/models/ratecardEstimateV1'
523
525
  import ratecardEstimateV2 from './io/flow/internal/v0/models/ratecardEstimateV2';
524
526
  import ratecardForm from './io/flow/internal/v0/models/ratecardForm';
525
527
  import ratecardLane from './io/flow/internal/v0/models/ratecardLane';
528
+ import ratecardLaneDeleted from './io/flow/internal/v0/models/ratecardLaneDeleted';
526
529
  import ratecardLaneForm from './io/flow/internal/v0/models/ratecardLaneForm';
530
+ import ratecardLaneUpserted from './io/flow/internal/v0/models/ratecardLaneUpserted';
527
531
  import ratecardLaneVersion from './io/flow/internal/v0/models/ratecardLaneVersion';
528
532
  import ratecardPublished from './io/flow/internal/v0/models/ratecardPublished';
529
533
  import ratecardRate from './io/flow/internal/v0/models/ratecardRate';
@@ -605,6 +609,8 @@ import storeConnectionForm from './io/flow/internal/v0/models/storeConnectionFor
605
609
  import stringFeatureRule from './io/flow/internal/v0/models/stringFeatureRule';
606
610
  import stringFeatureRuleForm from './io/flow/internal/v0/models/stringFeatureRuleForm';
607
611
  import stringFeatureValue from './io/flow/internal/v0/models/stringFeatureValue';
612
+ import stripeAccount from './io/flow/internal/v0/models/stripeAccount';
613
+ import stripeAccountForm from './io/flow/internal/v0/models/stripeAccountForm';
608
614
  import stripeAuthenticationDataReference from './io/flow/internal/v0/models/stripeAuthenticationDataReference';
609
615
  import stripeAuthorizationDeleted from './io/flow/internal/v0/models/stripeAuthorizationDeleted';
610
616
  import stripeAuthorizationUpserted from './io/flow/internal/v0/models/stripeAuthorizationUpserted';
@@ -680,6 +686,8 @@ import localizableContent from './io/flow/internal/v0/unions/localizableContent'
680
686
  import marketingGatewayPlatformMarket from './io/flow/internal/v0/unions/marketingGatewayPlatformMarket';
681
687
  import marketingGatewayProduct from './io/flow/internal/v0/unions/marketingGatewayProduct';
682
688
  import orderActionForm from './io/flow/internal/v0/unions/orderActionForm';
689
+ import paymentAccount from './io/flow/internal/v0/unions/paymentAccount';
690
+ import paymentAccountForm from './io/flow/internal/v0/unions/paymentAccountForm';
683
691
  import paymentRedirect from './io/flow/internal/v0/unions/paymentRedirect';
684
692
  import paymentSummaryDetails from './io/flow/internal/v0/unions/paymentSummaryDetails';
685
693
  import pendingBankPaymentDetail from './io/flow/internal/v0/unions/pendingBankPaymentDetail';
@@ -852,6 +860,7 @@ export default {
852
860
  checkout,
853
861
  checkoutBundle,
854
862
  checkoutContent,
863
+ checkoutFinalizeOrderForm,
855
864
  checkoutMarketingContent,
856
865
  checkoutMetadata,
857
866
  checkoutPaymentContent,
@@ -1186,6 +1195,7 @@ export default {
1186
1195
  paymentSummaryV2,
1187
1196
  paypalAuthenticationData,
1188
1197
  paypalAuthenticationDataReference,
1198
+ paypalAuthorizationPayload,
1189
1199
  paypalExecutionDeleted,
1190
1200
  paypalExecutionUpserted,
1191
1201
  paypalInternalExecution,
@@ -1225,7 +1235,9 @@ export default {
1225
1235
  ratecardEstimateV2,
1226
1236
  ratecardForm,
1227
1237
  ratecardLane,
1238
+ ratecardLaneDeleted,
1228
1239
  ratecardLaneForm,
1240
+ ratecardLaneUpserted,
1229
1241
  ratecardLaneVersion,
1230
1242
  ratecardPublished,
1231
1243
  ratecardRate,
@@ -1307,6 +1319,8 @@ export default {
1307
1319
  stringFeatureRule,
1308
1320
  stringFeatureRuleForm,
1309
1321
  stringFeatureValue,
1322
+ stripeAccount,
1323
+ stripeAccountForm,
1310
1324
  stripeAuthenticationDataReference,
1311
1325
  stripeAuthorizationDeleted,
1312
1326
  stripeAuthorizationUpserted,
@@ -1382,6 +1396,8 @@ export default {
1382
1396
  marketingGatewayPlatformMarket,
1383
1397
  marketingGatewayProduct,
1384
1398
  orderActionForm,
1399
+ paymentAccount,
1400
+ paymentAccountForm,
1385
1401
  paymentRedirect,
1386
1402
  paymentSummaryDetails,
1387
1403
  pendingBankPaymentDetail,
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _propTypes = require('prop-types');
8
-
9
- var _propTypes2 = _interopRequireDefault(_propTypes);
10
-
11
- var _cardAuthorizationData = require('../unions/cardAuthorizationData');
12
-
13
- var _cardAuthorizationData2 = _interopRequireDefault(_cardAuthorizationData);
14
-
15
- var _authorizationOption = require('../enums/authorizationOption');
16
-
17
- var _authorizationOption2 = _interopRequireDefault(_authorizationOption);
18
-
19
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
-
21
- exports.default = _propTypes2.default.shape({
22
- card: _cardAuthorizationData2.default.isRequired,
23
- order_number: _propTypes2.default.string,
24
- amount: _propTypes2.default.number,
25
- currency: _propTypes2.default.string,
26
- key: _propTypes2.default.string,
27
- cvv: _propTypes2.default.string,
28
- attributes: _propTypes2.default.objectOf(_propTypes2.default.string),
29
- ip: _propTypes2.default.string,
30
- options: _propTypes2.default.arrayOf(_authorizationOption2.default)
31
- });
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _propTypes = require('prop-types');
8
-
9
- var _propTypes2 = _interopRequireDefault(_propTypes);
10
-
11
- var _cardTokenForm = require('../models/cardTokenForm');
12
-
13
- var _cardTokenForm2 = _interopRequireDefault(_cardTokenForm);
14
-
15
- var _cardForm = require('../models/cardForm');
16
-
17
- var _cardForm2 = _interopRequireDefault(_cardForm);
18
-
19
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
-
21
- exports.default = _propTypes2.default.oneOfType([_cardTokenForm2.default, _cardForm2.default]);
@@ -1,15 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import cardAuthorizationData from '../unions/cardAuthorizationData';
3
- import authorizationOption from '../enums/authorizationOption';
4
-
5
- export default PropTypes.shape({
6
- card: cardAuthorizationData.isRequired,
7
- order_number: PropTypes.string,
8
- amount: PropTypes.number,
9
- currency: PropTypes.string,
10
- key: PropTypes.string,
11
- cvv: PropTypes.string,
12
- attributes: PropTypes.objectOf(PropTypes.string),
13
- ip: PropTypes.string,
14
- options: PropTypes.arrayOf(authorizationOption),
15
- });
@@ -1,5 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import cardTokenForm from '../models/cardTokenForm';
3
- import cardForm from '../models/cardForm';
4
-
5
- export default PropTypes.oneOfType([cardTokenForm, cardForm]);