@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
@@ -12,6 +12,10 @@ var _shopifyLineItem = require('./shopifyLineItem');
12
12
 
13
13
  var _shopifyLineItem2 = _interopRequireDefault(_shopifyLineItem);
14
14
 
15
+ var _restockType = require('../enums/restockType');
16
+
17
+ var _restockType2 = _interopRequireDefault(_restockType);
18
+
15
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
20
 
17
21
  exports.default = _propTypes2.default.shape({
@@ -19,6 +23,8 @@ exports.default = _propTypes2.default.shape({
19
23
  line_item: _shopifyLineItem2.default.isRequired,
20
24
  line_item_id: _propTypes2.default.number.isRequired,
21
25
  quantity: _propTypes2.default.number.isRequired,
26
+ restock_type: _restockType2.default.isRequired,
27
+ location_id: _propTypes2.default.number,
22
28
  subtotal: _propTypes2.default.number,
23
29
  total_tax: _propTypes2.default.number
24
30
  });
@@ -8,9 +8,15 @@ var _propTypes = require('prop-types');
8
8
 
9
9
  var _propTypes2 = _interopRequireDefault(_propTypes);
10
10
 
11
+ var _restockType = require('../enums/restockType');
12
+
13
+ var _restockType2 = _interopRequireDefault(_restockType);
14
+
11
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
16
 
13
17
  exports.default = _propTypes2.default.shape({
14
18
  line_item_id: _propTypes2.default.number.isRequired,
15
- quantity: _propTypes2.default.number.isRequired
19
+ quantity: _propTypes2.default.number.isRequired,
20
+ restock_type: _restockType2.default.isRequired,
21
+ location_id: _propTypes2.default.number
16
22
  });
@@ -27,6 +27,5 @@ exports.default = _propTypes2.default.shape({
27
27
  range: _datetimeRange2.default.isRequired,
28
28
  interval_seconds: _propTypes2.default.number.isRequired,
29
29
  total: _propTypes2.default.number.isRequired,
30
- needle_marker: _propTypes2.default.string.isRequired,
31
30
  buckets: _propTypes2.default.arrayOf(_shopifyEventBucket2.default).isRequired
32
31
  });
@@ -0,0 +1,52 @@
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 _keys = require('./keys');
12
+
13
+ var _keys2 = _interopRequireDefault(_keys);
14
+
15
+ var _legalEntity = require('./legalEntity');
16
+
17
+ var _legalEntity2 = _interopRequireDefault(_legalEntity);
18
+
19
+ var _tosAcceptance = require('./tosAcceptance');
20
+
21
+ var _tosAcceptance2 = _interopRequireDefault(_tosAcceptance);
22
+
23
+ var _accountType = require('../enums/accountType');
24
+
25
+ var _accountType2 = _interopRequireDefault(_accountType);
26
+
27
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
+
29
+ exports.default = _propTypes2.default.shape({
30
+ id: _propTypes2.default.string.isRequired,
31
+ object: _propTypes2.default.string.isRequired,
32
+ business_logo: _propTypes2.default.string,
33
+ business_name: _propTypes2.default.string,
34
+ business_url: _propTypes2.default.string,
35
+ charges_enabled: _propTypes2.default.bool,
36
+ country: _propTypes2.default.string,
37
+ created: _propTypes2.default.number,
38
+ debit_negative_balances: _propTypes2.default.bool,
39
+ default_currency: _propTypes2.default.string,
40
+ details_submitted: _propTypes2.default.bool,
41
+ display_name: _propTypes2.default.string,
42
+ email: _propTypes2.default.string,
43
+ keys: _keys2.default,
44
+ legal_entity: _legalEntity2.default,
45
+ payout_statement_descriptor: _propTypes2.default.string,
46
+ payouts_enabled: _propTypes2.default.bool,
47
+ product_description: _propTypes2.default.string,
48
+ statement_descriptor: _propTypes2.default.string,
49
+ timezone: _propTypes2.default.string,
50
+ tos_acceptance: _tosAcceptance2.default,
51
+ type: _accountType2.default
52
+ });
@@ -0,0 +1,32 @@
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 _accountType = require('../enums/accountType');
12
+
13
+ var _accountType2 = _interopRequireDefault(_accountType);
14
+
15
+ var _legalEntity = require('./legalEntity');
16
+
17
+ var _legalEntity2 = _interopRequireDefault(_legalEntity);
18
+
19
+ var _tosAcceptance = require('./tosAcceptance');
20
+
21
+ var _tosAcceptance2 = _interopRequireDefault(_tosAcceptance);
22
+
23
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
+
25
+ exports.default = _propTypes2.default.shape({
26
+ type: _accountType2.default.isRequired,
27
+ country: _propTypes2.default.string,
28
+ business_name: _propTypes2.default.string,
29
+ legal_entity: _legalEntity2.default,
30
+ payout_statement_descriptor: _propTypes2.default.string,
31
+ tos_acceptance: _tosAcceptance2.default
32
+ });
@@ -0,0 +1,16 @@
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
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+
13
+ exports.default = _propTypes2.default.shape({
14
+ secret: _propTypes2.default.string,
15
+ publishable: _propTypes2.default.string
16
+ });
@@ -0,0 +1,19 @@
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 _owner = require('./owner');
12
+
13
+ var _owner2 = _interopRequireDefault(_owner);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ exports.default = _propTypes2.default.shape({
18
+ additional_owners: _propTypes2.default.arrayOf(_owner2.default)
19
+ });
@@ -0,0 +1,17 @@
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
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+
13
+ exports.default = _propTypes2.default.shape({
14
+ date: _propTypes2.default.string,
15
+ ip: _propTypes2.default.string,
16
+ user_agent: _propTypes2.default.string
17
+ });
package/lib/mocks.js CHANGED
@@ -164,6 +164,7 @@ exports.default = {
164
164
  checkout: noopThunk,
165
165
  checkoutBundle: noopThunk,
166
166
  checkoutContent: noopThunk,
167
+ checkoutFinalizeOrderForm: noopThunk,
167
168
  checkoutMarketingContent: noopThunk,
168
169
  checkoutMetadata: noopThunk,
169
170
  checkoutPaymentContent: noopThunk,
@@ -498,6 +499,7 @@ exports.default = {
498
499
  paymentSummaryV2: noopThunk,
499
500
  paypalAuthenticationData: noopThunk,
500
501
  paypalAuthenticationDataReference: noopThunk,
502
+ paypalAuthorizationPayload: noopThunk,
501
503
  paypalExecutionDeleted: noopThunk,
502
504
  paypalExecutionUpserted: noopThunk,
503
505
  paypalInternalExecution: noopThunk,
@@ -537,7 +539,9 @@ exports.default = {
537
539
  ratecardEstimateV2: noopThunk,
538
540
  ratecardForm: noopThunk,
539
541
  ratecardLane: noopThunk,
542
+ ratecardLaneDeleted: noopThunk,
540
543
  ratecardLaneForm: noopThunk,
544
+ ratecardLaneUpserted: noopThunk,
541
545
  ratecardLaneVersion: noopThunk,
542
546
  ratecardPublished: noopThunk,
543
547
  ratecardRate: noopThunk,
@@ -619,6 +623,8 @@ exports.default = {
619
623
  stringFeatureRule: noopThunk,
620
624
  stringFeatureRuleForm: noopThunk,
621
625
  stringFeatureValue: noopThunk,
626
+ stripeAccount: noopThunk,
627
+ stripeAccountForm: noopThunk,
622
628
  stripeAuthenticationDataReference: noopThunk,
623
629
  stripeAuthorizationDeleted: noopThunk,
624
630
  stripeAuthorizationUpserted: noopThunk,
@@ -694,6 +700,8 @@ exports.default = {
694
700
  marketingGatewayPlatformMarket: noopThunk,
695
701
  marketingGatewayProduct: noopThunk,
696
702
  orderActionForm: noopThunk,
703
+ paymentAccount: noopThunk,
704
+ paymentAccountForm: noopThunk,
697
705
  paymentRedirect: noopThunk,
698
706
  paymentSummaryDetails: noopThunk,
699
707
  pendingBankPaymentDetail: noopThunk,
package/lib/validators.js CHANGED
@@ -612,6 +612,10 @@ var _checkoutContent = require('./io/flow/internal/v0/models/checkoutContent');
612
612
 
613
613
  var _checkoutContent2 = _interopRequireDefault(_checkoutContent);
614
614
 
615
+ var _checkoutFinalizeOrderForm = require('./io/flow/internal/v0/models/checkoutFinalizeOrderForm');
616
+
617
+ var _checkoutFinalizeOrderForm2 = _interopRequireDefault(_checkoutFinalizeOrderForm);
618
+
615
619
  var _checkoutMarketingContent = require('./io/flow/internal/v0/models/checkoutMarketingContent');
616
620
 
617
621
  var _checkoutMarketingContent2 = _interopRequireDefault(_checkoutMarketingContent);
@@ -1948,6 +1952,10 @@ var _paypalAuthenticationDataReference = require('./io/flow/internal/v0/models/p
1948
1952
 
1949
1953
  var _paypalAuthenticationDataReference2 = _interopRequireDefault(_paypalAuthenticationDataReference);
1950
1954
 
1955
+ var _paypalAuthorizationPayload = require('./io/flow/internal/v0/models/paypalAuthorizationPayload');
1956
+
1957
+ var _paypalAuthorizationPayload2 = _interopRequireDefault(_paypalAuthorizationPayload);
1958
+
1951
1959
  var _paypalExecutionDeleted = require('./io/flow/internal/v0/models/paypalExecutionDeleted');
1952
1960
 
1953
1961
  var _paypalExecutionDeleted2 = _interopRequireDefault(_paypalExecutionDeleted);
@@ -2104,10 +2112,18 @@ var _ratecardLane = require('./io/flow/internal/v0/models/ratecardLane');
2104
2112
 
2105
2113
  var _ratecardLane2 = _interopRequireDefault(_ratecardLane);
2106
2114
 
2115
+ var _ratecardLaneDeleted = require('./io/flow/internal/v0/models/ratecardLaneDeleted');
2116
+
2117
+ var _ratecardLaneDeleted2 = _interopRequireDefault(_ratecardLaneDeleted);
2118
+
2107
2119
  var _ratecardLaneForm = require('./io/flow/internal/v0/models/ratecardLaneForm');
2108
2120
 
2109
2121
  var _ratecardLaneForm2 = _interopRequireDefault(_ratecardLaneForm);
2110
2122
 
2123
+ var _ratecardLaneUpserted = require('./io/flow/internal/v0/models/ratecardLaneUpserted');
2124
+
2125
+ var _ratecardLaneUpserted2 = _interopRequireDefault(_ratecardLaneUpserted);
2126
+
2111
2127
  var _ratecardLaneVersion = require('./io/flow/internal/v0/models/ratecardLaneVersion');
2112
2128
 
2113
2129
  var _ratecardLaneVersion2 = _interopRequireDefault(_ratecardLaneVersion);
@@ -2432,6 +2448,14 @@ var _stringFeatureValue = require('./io/flow/internal/v0/models/stringFeatureVal
2432
2448
 
2433
2449
  var _stringFeatureValue2 = _interopRequireDefault(_stringFeatureValue);
2434
2450
 
2451
+ var _stripeAccount = require('./io/flow/internal/v0/models/stripeAccount');
2452
+
2453
+ var _stripeAccount2 = _interopRequireDefault(_stripeAccount);
2454
+
2455
+ var _stripeAccountForm = require('./io/flow/internal/v0/models/stripeAccountForm');
2456
+
2457
+ var _stripeAccountForm2 = _interopRequireDefault(_stripeAccountForm);
2458
+
2435
2459
  var _stripeAuthenticationDataReference = require('./io/flow/internal/v0/models/stripeAuthenticationDataReference');
2436
2460
 
2437
2461
  var _stripeAuthenticationDataReference2 = _interopRequireDefault(_stripeAuthenticationDataReference);
@@ -2732,6 +2756,14 @@ var _orderActionForm = require('./io/flow/internal/v0/unions/orderActionForm');
2732
2756
 
2733
2757
  var _orderActionForm2 = _interopRequireDefault(_orderActionForm);
2734
2758
 
2759
+ var _paymentAccount = require('./io/flow/internal/v0/unions/paymentAccount');
2760
+
2761
+ var _paymentAccount2 = _interopRequireDefault(_paymentAccount);
2762
+
2763
+ var _paymentAccountForm = require('./io/flow/internal/v0/unions/paymentAccountForm');
2764
+
2765
+ var _paymentAccountForm2 = _interopRequireDefault(_paymentAccountForm);
2766
+
2735
2767
  var _paymentRedirect = require('./io/flow/internal/v0/unions/paymentRedirect');
2736
2768
 
2737
2769
  var _paymentRedirect2 = _interopRequireDefault(_paymentRedirect);
@@ -2959,6 +2991,7 @@ exports.default = {
2959
2991
  checkout: _checkout2.default,
2960
2992
  checkoutBundle: _checkoutBundle2.default,
2961
2993
  checkoutContent: _checkoutContent2.default,
2994
+ checkoutFinalizeOrderForm: _checkoutFinalizeOrderForm2.default,
2962
2995
  checkoutMarketingContent: _checkoutMarketingContent2.default,
2963
2996
  checkoutMetadata: _checkoutMetadata2.default,
2964
2997
  checkoutPaymentContent: _checkoutPaymentContent2.default,
@@ -3293,6 +3326,7 @@ exports.default = {
3293
3326
  paymentSummaryV2: _paymentSummaryV2.default,
3294
3327
  paypalAuthenticationData: _paypalAuthenticationData2.default,
3295
3328
  paypalAuthenticationDataReference: _paypalAuthenticationDataReference2.default,
3329
+ paypalAuthorizationPayload: _paypalAuthorizationPayload2.default,
3296
3330
  paypalExecutionDeleted: _paypalExecutionDeleted2.default,
3297
3331
  paypalExecutionUpserted: _paypalExecutionUpserted2.default,
3298
3332
  paypalInternalExecution: _paypalInternalExecution2.default,
@@ -3332,7 +3366,9 @@ exports.default = {
3332
3366
  ratecardEstimateV2: _ratecardEstimateV4.default,
3333
3367
  ratecardForm: _ratecardForm2.default,
3334
3368
  ratecardLane: _ratecardLane2.default,
3369
+ ratecardLaneDeleted: _ratecardLaneDeleted2.default,
3335
3370
  ratecardLaneForm: _ratecardLaneForm2.default,
3371
+ ratecardLaneUpserted: _ratecardLaneUpserted2.default,
3336
3372
  ratecardLaneVersion: _ratecardLaneVersion2.default,
3337
3373
  ratecardPublished: _ratecardPublished2.default,
3338
3374
  ratecardRate: _ratecardRate2.default,
@@ -3414,6 +3450,8 @@ exports.default = {
3414
3450
  stringFeatureRule: _stringFeatureRule2.default,
3415
3451
  stringFeatureRuleForm: _stringFeatureRuleForm2.default,
3416
3452
  stringFeatureValue: _stringFeatureValue2.default,
3453
+ stripeAccount: _stripeAccount2.default,
3454
+ stripeAccountForm: _stripeAccountForm2.default,
3417
3455
  stripeAuthenticationDataReference: _stripeAuthenticationDataReference2.default,
3418
3456
  stripeAuthorizationDeleted: _stripeAuthorizationDeleted2.default,
3419
3457
  stripeAuthorizationUpserted: _stripeAuthorizationUpserted2.default,
@@ -3489,6 +3527,8 @@ exports.default = {
3489
3527
  marketingGatewayPlatformMarket: _marketingGatewayPlatformMarket2.default,
3490
3528
  marketingGatewayProduct: _marketingGatewayProduct2.default,
3491
3529
  orderActionForm: _orderActionForm2.default,
3530
+ paymentAccount: _paymentAccount2.default,
3531
+ paymentAccountForm: _paymentAccountForm2.default,
3492
3532
  paymentRedirect: _paymentRedirect2.default,
3493
3533
  paymentSummaryDetails: _paymentSummaryDetails2.default,
3494
3534
  pendingBankPaymentDetail: _pendingBankPaymentDetail2.default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-prop-types",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "description": "PropType validators that work with internal Flow API",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -39,5 +39,6 @@
39
39
  "eslint-plugin-react": "^7.10.0",
40
40
  "prop-types": "^15.6.0",
41
41
  "rimraf": "^2.6.2"
42
- }
42
+ },
43
+ "gitHead": "62c3f3ff06e7e8a18ffe19c036522960a41ffbdb"
43
44
  }
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for flow api-internal 0.5.40
1
+ // Type definitions for flow api-internal 0.5.84
2
2
  // Definitions by: API Builder <https://www.apibuilder.io/>
3
3
 
4
4
  export type Validator<T> = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null;
@@ -96,6 +96,7 @@ declare const defaultExport: {
96
96
  checkout: Requireable<any> & Validator<any>;
97
97
  checkoutBundle: Requireable<any> & Validator<any>;
98
98
  checkoutContent: Requireable<any> & Validator<any>;
99
+ checkoutFinalizeOrderForm: Requireable<any> & Validator<any>;
99
100
  checkoutMarketingContent: Requireable<any> & Validator<any>;
100
101
  checkoutMetadata: Requireable<any> & Validator<any>;
101
102
  checkoutPaymentContent: Requireable<any> & Validator<any>;
@@ -489,6 +490,8 @@ declare const defaultExport: {
489
490
  passphrase: Requireable<any> & Validator<any>;
490
491
  passphraseForm: Requireable<any> & Validator<any>;
491
492
  passphraseSummary: Requireable<any> & Validator<any>;
493
+ paymentAccount: Requireable<any> & Validator<any>;
494
+ paymentAccountForm: Requireable<any> & Validator<any>;
492
495
  paymentRedirect: Requireable<any> & Validator<any>;
493
496
  paymentSummaryDetails: Requireable<any> & Validator<any>;
494
497
  paymentSummaryType: Requireable<any> & Validator<any>;
@@ -496,6 +499,7 @@ declare const defaultExport: {
496
499
  paymentTerm: Requireable<any> & Validator<any>;
497
500
  paypalAuthenticationData: Requireable<any> & Validator<any>;
498
501
  paypalAuthenticationDataReference: Requireable<any> & Validator<any>;
502
+ paypalAuthorizationPayload: Requireable<any> & Validator<any>;
499
503
  paypalExecutionDeleted: Requireable<any> & Validator<any>;
500
504
  paypalExecutionUpserted: Requireable<any> & Validator<any>;
501
505
  paypalInternalExecution: Requireable<any> & Validator<any>;
@@ -546,7 +550,9 @@ declare const defaultExport: {
546
550
  ratecardFee: Requireable<any> & Validator<any>;
547
551
  ratecardForm: Requireable<any> & Validator<any>;
548
552
  ratecardLane: Requireable<any> & Validator<any>;
553
+ ratecardLaneDeleted: Requireable<any> & Validator<any>;
549
554
  ratecardLaneForm: Requireable<any> & Validator<any>;
555
+ ratecardLaneUpserted: Requireable<any> & Validator<any>;
550
556
  ratecardLaneVersion: Requireable<any> & Validator<any>;
551
557
  ratecardPublished: Requireable<any> & Validator<any>;
552
558
  ratecardRate: Requireable<any> & Validator<any>;
@@ -647,6 +653,8 @@ declare const defaultExport: {
647
653
  stringFeatureRule: Requireable<any> & Validator<any>;
648
654
  stringFeatureRuleForm: Requireable<any> & Validator<any>;
649
655
  stringFeatureValue: Requireable<any> & Validator<any>;
656
+ stripeAccount: Requireable<any> & Validator<any>;
657
+ stripeAccountForm: Requireable<any> & Validator<any>;
650
658
  stripeAuthenticationDataReference: Requireable<any> & Validator<any>;
651
659
  stripeAuthorizationDeleted: Requireable<any> & Validator<any>;
652
660
  stripeAuthorizationUpserted: Requireable<any> & Validator<any>;
@@ -12,6 +12,7 @@ export default PropTypes.oneOf([
12
12
  'invalid_country',
13
13
  'invalid_region',
14
14
  'invalid_language',
15
- 'order_item_out_of_stock',
16
- 'gift_card_error',
15
+ 'item_out_of_stock',
16
+ 'gift_card_not_accepted',
17
+ 'total_changed',
17
18
  ]);
@@ -103,6 +103,8 @@ export default PropTypes.oneOf([
103
103
  'lane_deleted',
104
104
  'ratecard_rate_upserted',
105
105
  'ratecard_rate_deleted',
106
+ 'ratecard_lane_upserted',
107
+ 'ratecard_lane_deleted',
106
108
  'shopify_shop_upserted',
107
109
  'shopify_shop_deleted',
108
110
  'shopify_experience_short_id_upserted',
@@ -0,0 +1,8 @@
1
+ import PropTypes from 'prop-types';
2
+ import expectedOrderSummary from './expectedOrderSummary';
3
+ import orderPutForm from '../../../experience/v0/models/orderPutForm';
4
+
5
+ export default PropTypes.shape({
6
+ expected_order_summary: expectedOrderSummary.isRequired,
7
+ order_put_form: orderPutForm.isRequired,
8
+ });
@@ -1,11 +1,8 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import marketingGatewayPlatform from '../enums/marketingGatewayPlatform';
3
- import marketingGatewaySyncStatus from '../enums/marketingGatewaySyncStatus';
4
3
 
5
4
  export default PropTypes.shape({
6
5
  id: PropTypes.string.isRequired,
7
6
  platform: marketingGatewayPlatform.isRequired,
8
7
  name: PropTypes.string.isRequired,
9
- sync_status: marketingGatewaySyncStatus.isRequired,
10
- synced_at: PropTypes.string,
11
8
  });
@@ -3,4 +3,5 @@ import PropTypes from 'prop-types';
3
3
  export default PropTypes.shape({
4
4
  value: PropTypes.string.isRequired,
5
5
  currency: PropTypes.string.isRequired,
6
+ label: PropTypes.string.isRequired,
6
7
  });
@@ -10,6 +10,7 @@ import marketingGatewayGoogleProductTax from './marketingGatewayGoogleProductTax
10
10
  import marketingGatewayGoogleCustomLabels from './marketingGatewayGoogleCustomLabels';
11
11
  import marketingGatewayGoogleProductStatusDetails from './marketingGatewayGoogleProductStatusDetails';
12
12
  import marketingGatewayProductStatus from '../enums/marketingGatewayProductStatus';
13
+ import catalogItemSummary from '../../../common/v0/models/catalogItemSummary';
13
14
 
14
15
  export default PropTypes.shape({
15
16
  id: PropTypes.string.isRequired,
@@ -35,4 +36,5 @@ export default PropTypes.shape({
35
36
  custom_labels: marketingGatewayGoogleCustomLabels.isRequired,
36
37
  status_details: marketingGatewayGoogleProductStatusDetails,
37
38
  status: marketingGatewayProductStatus.isRequired,
39
+ item_catalog_summary: catalogItemSummary,
38
40
  });
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ payment_id: PropTypes.string.isRequired,
5
+ payer_id: PropTypes.string.isRequired,
6
+ });
@@ -8,7 +8,6 @@ import ratecardServiceSummary from './ratecardServiceSummary';
8
8
  import ratecardRate from './ratecardRate';
9
9
  import rounding from '../../../common/v0/models/rounding';
10
10
  import unitOfMeasurement from '../../../common/v0/enums/unitOfMeasurement';
11
- import address from '../../../common/v0/models/address';
12
11
 
13
12
  export default PropTypes.shape({
14
13
  id: PropTypes.string.isRequired,
@@ -25,5 +24,4 @@ export default PropTypes.shape({
25
24
  rounding: rounding.isRequired,
26
25
  weight_unit: unitOfMeasurement.isRequired,
27
26
  distance_unit: unitOfMeasurement.isRequired,
28
- consolidation_address: address,
29
27
  });
@@ -0,0 +1,8 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ event_id: PropTypes.string.isRequired,
5
+ timestamp: PropTypes.string.isRequired,
6
+ organization: PropTypes.string.isRequired,
7
+ id: PropTypes.string.isRequired,
8
+ });
@@ -6,7 +6,6 @@ import ratecardFee from '../unions/ratecardFee';
6
6
  import rounding from '../../../common/v0/models/rounding';
7
7
  import ratecardRateForm from './ratecardRateForm';
8
8
  import unitOfMeasurement from '../../../common/v0/enums/unitOfMeasurement';
9
- import address from '../../../common/v0/models/address';
10
9
 
11
10
  export default PropTypes.shape({
12
11
  ratecard_id: PropTypes.string.isRequired,
@@ -21,5 +20,4 @@ export default PropTypes.shape({
21
20
  rates: PropTypes.arrayOf(ratecardRateForm).isRequired,
22
21
  weight_unit: unitOfMeasurement.isRequired,
23
22
  distance_unit: unitOfMeasurement.isRequired,
24
- consolidation_address: address,
25
23
  });
@@ -0,0 +1,9 @@
1
+ import PropTypes from 'prop-types';
2
+ import ratecardLane from '../../../ratecard/internal/v0/models/ratecardLane';
3
+
4
+ export default PropTypes.shape({
5
+ event_id: PropTypes.string.isRequired,
6
+ timestamp: PropTypes.string.isRequired,
7
+ organization: PropTypes.string.isRequired,
8
+ ratecard_lane: ratecardLane.isRequired,
9
+ });
@@ -0,0 +1,5 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ account_id: PropTypes.string.isRequired,
5
+ });
@@ -0,0 +1,12 @@
1
+ import PropTypes from 'prop-types';
2
+ import accountType from '../../../stripe/v0/enums/accountType';
3
+ import merchantOfRecord from '../../../common/v0/enums/merchantOfRecord';
4
+
5
+ export default PropTypes.shape({
6
+ account_name: PropTypes.string.isRequired,
7
+ account_type: accountType.isRequired,
8
+ country: PropTypes.string.isRequired,
9
+ merchant_of_record: merchantOfRecord.isRequired,
10
+ organization_id: PropTypes.string.isRequired,
11
+ payout_statement_descriptor: PropTypes.string.isRequired,
12
+ });
@@ -1,4 +1,8 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import applePaymentToken from '../models/applePaymentToken';
3
+ import paypalAuthorizationPayload from '../models/paypalAuthorizationPayload';
3
4
 
4
- export default PropTypes.oneOfType([applePaymentToken]);
5
+ export default PropTypes.oneOfType([
6
+ applePaymentToken,
7
+ paypalAuthorizationPayload,
8
+ ]);
@@ -101,6 +101,8 @@ import laneUpserted from '../models/laneUpserted';
101
101
  import laneDeleted from '../models/laneDeleted';
102
102
  import ratecardRateUpserted from '../models/ratecardRateUpserted';
103
103
  import ratecardRateDeleted from '../models/ratecardRateDeleted';
104
+ import ratecardLaneUpserted from '../models/ratecardLaneUpserted';
105
+ import ratecardLaneDeleted from '../models/ratecardLaneDeleted';
104
106
  import shopifyShopUpserted from '../models/shopifyShopUpserted';
105
107
  import shopifyShopDeleted from '../models/shopifyShopDeleted';
106
108
  import shopifyExperienceShortIdUpserted from '../models/shopifyExperienceShortIdUpserted';
@@ -223,6 +225,8 @@ export default PropTypes.oneOfType([
223
225
  laneDeleted,
224
226
  ratecardRateUpserted,
225
227
  ratecardRateDeleted,
228
+ ratecardLaneUpserted,
229
+ ratecardLaneDeleted,
226
230
  shopifyShopUpserted,
227
231
  shopifyShopDeleted,
228
232
  shopifyExperienceShortIdUpserted,
@@ -0,0 +1,4 @@
1
+ import PropTypes from 'prop-types';
2
+ import stripeAccount from '../models/stripeAccount';
3
+
4
+ export default PropTypes.oneOfType([stripeAccount]);
@@ -0,0 +1,4 @@
1
+ import PropTypes from 'prop-types';
2
+ import stripeAccountForm from '../models/stripeAccountForm';
3
+
4
+ export default PropTypes.oneOfType([stripeAccountForm]);
@@ -5,7 +5,6 @@ import merchantOfRecordAuthorizationForm from '../models/merchantOfRecordAuthori
5
5
  import paypalAuthorizationForm from '../models/paypalAuthorizationForm';
6
6
  import redirectAuthorizationForm from '../models/redirectAuthorizationForm';
7
7
  import inlineAuthorizationForm from '../models/inlineAuthorizationForm';
8
- import cardAuthorizationForm from '../models/cardAuthorizationForm';
9
8
  import achAuthorizationForm from '../models/achAuthorizationForm';
10
9
 
11
10
  export default PropTypes.oneOfType([
@@ -15,6 +14,5 @@ export default PropTypes.oneOfType([
15
14
  paypalAuthorizationForm,
16
15
  redirectAuthorizationForm,
17
16
  inlineAuthorizationForm,
18
- cardAuthorizationForm,
19
17
  achAuthorizationForm,
20
18
  ]);
@@ -0,0 +1,3 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.oneOf(['no_restock', 'cancel', 'return']);
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
2
2
  import shopifyLineItem from './shopifyLineItem';
3
3
 
4
4
  export default PropTypes.shape({
5
+ location_id: PropTypes.number.isRequired,
5
6
  created_at: PropTypes.string,
6
7
  id: PropTypes.number,
7
8
  line_items: PropTypes.arrayOf(shopifyLineItem).isRequired,
@@ -0,0 +1,19 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ active: PropTypes.bool.isRequired,
5
+ address1: PropTypes.string,
6
+ address2: PropTypes.string,
7
+ city: PropTypes.string,
8
+ country: PropTypes.string,
9
+ country_code: PropTypes.string,
10
+ created_at: PropTypes.string.isRequired,
11
+ id: PropTypes.number.isRequired,
12
+ legacy: PropTypes.bool.isRequired,
13
+ name: PropTypes.string.isRequired,
14
+ phone: PropTypes.number,
15
+ province: PropTypes.string,
16
+ province_code: PropTypes.string,
17
+ updated_at: PropTypes.string,
18
+ zip: PropTypes.string,
19
+ });
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+ import shopifyLocation from './shopifyLocation';
3
+
4
+ export default PropTypes.shape({
5
+ locations: PropTypes.arrayOf(shopifyLocation).isRequired,
6
+ });