@flowio/api-internal-prop-types 1.2.24 → 1.2.25

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 (24) hide show
  1. package/.apibuilder/.tracked_files +4 -1
  2. package/lib/index.d.ts +1 -0
  3. package/lib/io/flow/experience/v0/models/experienceSettings.js +6 -1
  4. package/lib/io/flow/experience/v0/models/logisticsSettings.js +19 -0
  5. package/lib/io/flow/fulfillment/v0/models/countryAvailability.js +20 -0
  6. package/lib/io/flow/fulfillment/v0/models/shippingConfigurationItemAvailability.js +3 -8
  7. package/lib/io/flow/internal/v0/enums/marketingGatewayAccountConnectionStatus.js +13 -0
  8. package/lib/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +5 -1
  9. package/lib/io/flow/shopify/external/v0/models/shopifyInventoryLevelResponseWrapper.js +19 -0
  10. package/lib/mocks.js +1 -0
  11. package/lib/validators.js +5 -0
  12. package/package.json +1 -1
  13. package/src/index.d.ts +1 -0
  14. package/src/io/flow/experience/v0/models/experienceSettings.js +2 -0
  15. package/src/io/flow/experience/v0/models/logisticsSettings.js +6 -0
  16. package/src/io/flow/fulfillment/v0/models/countryAvailability.js +7 -0
  17. package/src/io/flow/fulfillment/v0/models/shippingConfigurationItemAvailability.js +2 -4
  18. package/src/io/flow/internal/v0/enums/marketingGatewayAccountConnectionStatus.js +8 -0
  19. package/src/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +2 -1
  20. package/src/io/flow/shopify/external/v0/models/shopifyInventoryLevelResponseWrapper.js +6 -0
  21. package/src/mocks.js +1 -0
  22. package/src/validators.js +2 -0
  23. package/lib/io/flow/fulfillment/v0/models/experienceCenter.js +0 -25
  24. package/src/io/flow/fulfillment/v0/models/experienceCenter.js +0 -9
@@ -67,6 +67,7 @@ flow:
67
67
  - src/io/flow/internal/v0/enums/itemQuantityAction.js
68
68
  - src/io/flow/internal/v0/enums/labelBillingStrategy.js
69
69
  - src/io/flow/internal/v0/enums/labelInvoiceDetailKey.js
70
+ - src/io/flow/internal/v0/enums/marketingGatewayAccountConnectionStatus.js
70
71
  - src/io/flow/internal/v0/enums/marketingGatewayAccountMarketLocalizationError.js
71
72
  - src/io/flow/internal/v0/enums/marketingGatewayGoogleProductDestinationApprovalStatus.js
72
73
  - src/io/flow/internal/v0/enums/marketingGatewayGoogleProductItemLevelIssueSeverity.js
@@ -1090,6 +1091,7 @@ flow:
1090
1091
  - src/io/flow/experience/v0/models/line.js
1091
1092
  - src/io/flow/experience/v0/models/localizedLineItem.js
1092
1093
  - src/io/flow/experience/v0/models/localizedLineItemDiscount.js
1094
+ - src/io/flow/experience/v0/models/logisticsSettings.js
1093
1095
  - src/io/flow/experience/v0/models/order.js
1094
1096
  - src/io/flow/experience/v0/models/orderAddress.js
1095
1097
  - src/io/flow/experience/v0/models/orderBuilder.js
@@ -1324,6 +1326,7 @@ flow:
1324
1326
  - src/io/flow/fulfillment/v0/models/centerSummary.js
1325
1327
  - src/io/flow/fulfillment/v0/models/centerVersion.js
1326
1328
  - src/io/flow/fulfillment/v0/models/commercialInvoiceFee.js
1329
+ - src/io/flow/fulfillment/v0/models/countryAvailability.js
1327
1330
  - src/io/flow/fulfillment/v0/models/deliveryItem.js
1328
1331
  - src/io/flow/fulfillment/v0/models/deliveryOption.js
1329
1332
  - src/io/flow/fulfillment/v0/models/deliveryOptionCostComponent.js
@@ -1340,7 +1343,6 @@ flow:
1340
1343
  - src/io/flow/fulfillment/v0/models/deliveryWindowComponentsV2.js
1341
1344
  - src/io/flow/fulfillment/v0/models/digitalDelivery.js
1342
1345
  - src/io/flow/fulfillment/v0/models/estimatedWindow.js
1343
- - src/io/flow/fulfillment/v0/models/experienceCenter.js
1344
1346
  - src/io/flow/fulfillment/v0/models/flatRate.js
1345
1347
  - src/io/flow/fulfillment/v0/models/flatRateForm.js
1346
1348
  - src/io/flow/fulfillment/v0/models/fulfillmentExperienceReference.js
@@ -2079,6 +2081,7 @@ flow:
2079
2081
  - src/io/flow/shopify/external/v0/models/shopifyInventoryItemDelete.js
2080
2082
  - src/io/flow/shopify/external/v0/models/shopifyInventoryLevel.js
2081
2083
  - src/io/flow/shopify/external/v0/models/shopifyInventoryLevelDisconnect.js
2084
+ - src/io/flow/shopify/external/v0/models/shopifyInventoryLevelResponseWrapper.js
2082
2085
  - src/io/flow/shopify/external/v0/models/shopifyLineItem.js
2083
2086
  - src/io/flow/shopify/external/v0/models/shopifyLineItemForm.js
2084
2087
  - src/io/flow/shopify/external/v0/models/shopifyLocation.js
package/lib/index.d.ts CHANGED
@@ -400,6 +400,7 @@ declare const defaultExport: {
400
400
  marketingGatewayAccount: Requireable<any> & Validator<any>;
401
401
  marketingGatewayAccountConnection: Requireable<any> & Validator<any>;
402
402
  marketingGatewayAccountConnectionForm: Requireable<any> & Validator<any>;
403
+ marketingGatewayAccountConnectionStatus: Requireable<any> & Validator<any>;
403
404
  marketingGatewayAccountMarketLocalization: Requireable<any> & Validator<any>;
404
405
  marketingGatewayAccountMarketLocalizationError: Requireable<any> & Validator<any>;
405
406
  marketingGatewayAccountMarkets: Requireable<any> & Validator<any>;
@@ -16,9 +16,14 @@ var _pricingSettings = require('./pricingSettings');
16
16
 
17
17
  var _pricingSettings2 = _interopRequireDefault(_pricingSettings);
18
18
 
19
+ var _logisticsSettings = require('./logisticsSettings');
20
+
21
+ var _logisticsSettings2 = _interopRequireDefault(_logisticsSettings);
22
+
19
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
24
 
21
25
  exports.default = _propTypes2.default.shape({
22
26
  delivered_duty: _deliveredDutySetting2.default.isRequired,
23
- pricing_settings: _pricingSettings2.default
27
+ pricing_settings: _pricingSettings2.default,
28
+ logistics_settings: _logisticsSettings2.default
24
29
  });
@@ -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 _shippingConfigurationReference = require('../../../fulfillment/v0/models/shippingConfigurationReference');
12
+
13
+ var _shippingConfigurationReference2 = _interopRequireDefault(_shippingConfigurationReference);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ exports.default = _propTypes2.default.shape({
18
+ shipping_configuration: _shippingConfigurationReference2.default.isRequired
19
+ });
@@ -0,0 +1,20 @@
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 _itemAvailabilityStatus = require('../enums/itemAvailabilityStatus');
12
+
13
+ var _itemAvailabilityStatus2 = _interopRequireDefault(_itemAvailabilityStatus);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ exports.default = _propTypes2.default.shape({
18
+ status: _itemAvailabilityStatus2.default.isRequired,
19
+ countries: _propTypes2.default.arrayOf(_propTypes2.default.string).isRequired
20
+ });
@@ -16,13 +16,9 @@ var _shippingConfigurationSummary = require('./shippingConfigurationSummary');
16
16
 
17
17
  var _shippingConfigurationSummary2 = _interopRequireDefault(_shippingConfigurationSummary);
18
18
 
19
- var _region = require('../../../reference/v0/models/region');
19
+ var _countryAvailability = require('./countryAvailability');
20
20
 
21
- var _region2 = _interopRequireDefault(_region);
22
-
23
- var _itemAvailabilityStatus = require('../enums/itemAvailabilityStatus');
24
-
25
- var _itemAvailabilityStatus2 = _interopRequireDefault(_itemAvailabilityStatus);
21
+ var _countryAvailability2 = _interopRequireDefault(_countryAvailability);
26
22
 
27
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
24
 
@@ -30,6 +26,5 @@ exports.default = _propTypes2.default.shape({
30
26
  id: _propTypes2.default.string.isRequired,
31
27
  item: _itemReference2.default.isRequired,
32
28
  shipping_configuration: _shippingConfigurationSummary2.default.isRequired,
33
- region: _region2.default.isRequired,
34
- status: _itemAvailabilityStatus2.default.isRequired
29
+ availabilities: _propTypes2.default.arrayOf(_countryAvailability2.default).isRequired
35
30
  });
@@ -0,0 +1,13 @@
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.oneOf(['not_connected', 'connected', 'invalid_token', 'deletion_in_progress']);
@@ -8,6 +8,10 @@ var _propTypes = require('prop-types');
8
8
 
9
9
  var _propTypes2 = _interopRequireDefault(_propTypes);
10
10
 
11
+ var _marketingGatewayAccountConnectionStatus = require('../enums/marketingGatewayAccountConnectionStatus');
12
+
13
+ var _marketingGatewayAccountConnectionStatus2 = _interopRequireDefault(_marketingGatewayAccountConnectionStatus);
14
+
11
15
  var _marketingGatewayAccount = require('./marketingGatewayAccount');
12
16
 
13
17
  var _marketingGatewayAccount2 = _interopRequireDefault(_marketingGatewayAccount);
@@ -15,6 +19,6 @@ var _marketingGatewayAccount2 = _interopRequireDefault(_marketingGatewayAccount)
15
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
20
 
17
21
  exports.default = _propTypes2.default.shape({
18
- is_connected: _propTypes2.default.bool.isRequired,
22
+ status: _marketingGatewayAccountConnectionStatus2.default.isRequired,
19
23
  accounts: _propTypes2.default.arrayOf(_marketingGatewayAccount2.default).isRequired
20
24
  });
@@ -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 _shopifyInventoryLevel = require('./shopifyInventoryLevel');
12
+
13
+ var _shopifyInventoryLevel2 = _interopRequireDefault(_shopifyInventoryLevel);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ exports.default = _propTypes2.default.shape({
18
+ inventory_levels: _propTypes2.default.arrayOf(_shopifyInventoryLevel2.default).isRequired
19
+ });
package/lib/mocks.js CHANGED
@@ -50,6 +50,7 @@ exports.default = {
50
50
  itemQuantityAction: noopThunk,
51
51
  labelBillingStrategy: noopThunk,
52
52
  labelInvoiceDetailKey: noopThunk,
53
+ marketingGatewayAccountConnectionStatus: noopThunk,
53
54
  marketingGatewayAccountMarketLocalizationError: noopThunk,
54
55
  marketingGatewayGoogleProductDestinationApprovalStatus: noopThunk,
55
56
  marketingGatewayGoogleProductItemLevelIssueSeverity: noopThunk,
package/lib/validators.js CHANGED
@@ -156,6 +156,10 @@ var _labelInvoiceDetailKey = require('./io/flow/internal/v0/enums/labelInvoiceDe
156
156
 
157
157
  var _labelInvoiceDetailKey2 = _interopRequireDefault(_labelInvoiceDetailKey);
158
158
 
159
+ var _marketingGatewayAccountConnectionStatus = require('./io/flow/internal/v0/enums/marketingGatewayAccountConnectionStatus');
160
+
161
+ var _marketingGatewayAccountConnectionStatus2 = _interopRequireDefault(_marketingGatewayAccountConnectionStatus);
162
+
159
163
  var _marketingGatewayAccountMarketLocalizationError = require('./io/flow/internal/v0/enums/marketingGatewayAccountMarketLocalizationError');
160
164
 
161
165
  var _marketingGatewayAccountMarketLocalizationError2 = _interopRequireDefault(_marketingGatewayAccountMarketLocalizationError);
@@ -2905,6 +2909,7 @@ exports.default = {
2905
2909
  itemQuantityAction: _itemQuantityAction2.default,
2906
2910
  labelBillingStrategy: _labelBillingStrategy2.default,
2907
2911
  labelInvoiceDetailKey: _labelInvoiceDetailKey2.default,
2912
+ marketingGatewayAccountConnectionStatus: _marketingGatewayAccountConnectionStatus2.default,
2908
2913
  marketingGatewayAccountMarketLocalizationError: _marketingGatewayAccountMarketLocalizationError2.default,
2909
2914
  marketingGatewayGoogleProductDestinationApprovalStatus: _marketingGatewayGoogleProductDestinationApprovalStatus2.default,
2910
2915
  marketingGatewayGoogleProductItemLevelIssueSeverity: _marketingGatewayGoogleProductItemLevelIssueSeverity2.default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-prop-types",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "description": "PropType validators that work with internal Flow API",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
package/src/index.d.ts CHANGED
@@ -400,6 +400,7 @@ declare const defaultExport: {
400
400
  marketingGatewayAccount: Requireable<any> & Validator<any>;
401
401
  marketingGatewayAccountConnection: Requireable<any> & Validator<any>;
402
402
  marketingGatewayAccountConnectionForm: Requireable<any> & Validator<any>;
403
+ marketingGatewayAccountConnectionStatus: Requireable<any> & Validator<any>;
403
404
  marketingGatewayAccountMarketLocalization: Requireable<any> & Validator<any>;
404
405
  marketingGatewayAccountMarketLocalizationError: Requireable<any> & Validator<any>;
405
406
  marketingGatewayAccountMarkets: Requireable<any> & Validator<any>;
@@ -1,8 +1,10 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import deliveredDutySetting from './deliveredDutySetting';
3
3
  import pricingSettings from './pricingSettings';
4
+ import logisticsSettings from './logisticsSettings';
4
5
 
5
6
  export default PropTypes.shape({
6
7
  delivered_duty: deliveredDutySetting.isRequired,
7
8
  pricing_settings: pricingSettings,
9
+ logistics_settings: logisticsSettings,
8
10
  });
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+ import shippingConfigurationReference from '../../../fulfillment/v0/models/shippingConfigurationReference';
3
+
4
+ export default PropTypes.shape({
5
+ shipping_configuration: shippingConfigurationReference.isRequired,
6
+ });
@@ -0,0 +1,7 @@
1
+ import PropTypes from 'prop-types';
2
+ import itemAvailabilityStatus from '../enums/itemAvailabilityStatus';
3
+
4
+ export default PropTypes.shape({
5
+ status: itemAvailabilityStatus.isRequired,
6
+ countries: PropTypes.arrayOf(PropTypes.string).isRequired,
7
+ });
@@ -1,13 +1,11 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import itemReference from '../../../common/v0/models/itemReference';
3
3
  import shippingConfigurationSummary from './shippingConfigurationSummary';
4
- import region from '../../../reference/v0/models/region';
5
- import itemAvailabilityStatus from '../enums/itemAvailabilityStatus';
4
+ import countryAvailability from './countryAvailability';
6
5
 
7
6
  export default PropTypes.shape({
8
7
  id: PropTypes.string.isRequired,
9
8
  item: itemReference.isRequired,
10
9
  shipping_configuration: shippingConfigurationSummary.isRequired,
11
- region: region.isRequired,
12
- status: itemAvailabilityStatus.isRequired,
10
+ availabilities: PropTypes.arrayOf(countryAvailability).isRequired,
13
11
  });
@@ -0,0 +1,8 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.oneOf([
4
+ 'not_connected',
5
+ 'connected',
6
+ 'invalid_token',
7
+ 'deletion_in_progress',
8
+ ]);
@@ -1,7 +1,8 @@
1
1
  import PropTypes from 'prop-types';
2
+ import marketingGatewayAccountConnectionStatus from '../enums/marketingGatewayAccountConnectionStatus';
2
3
  import marketingGatewayAccount from './marketingGatewayAccount';
3
4
 
4
5
  export default PropTypes.shape({
5
- is_connected: PropTypes.bool.isRequired,
6
+ status: marketingGatewayAccountConnectionStatus.isRequired,
6
7
  accounts: PropTypes.arrayOf(marketingGatewayAccount).isRequired,
7
8
  });
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+ import shopifyInventoryLevel from './shopifyInventoryLevel';
3
+
4
+ export default PropTypes.shape({
5
+ inventory_levels: PropTypes.arrayOf(shopifyInventoryLevel).isRequired,
6
+ });
package/src/mocks.js CHANGED
@@ -45,6 +45,7 @@ export default {
45
45
  itemQuantityAction: noopThunk,
46
46
  labelBillingStrategy: noopThunk,
47
47
  labelInvoiceDetailKey: noopThunk,
48
+ marketingGatewayAccountConnectionStatus: noopThunk,
48
49
  marketingGatewayAccountMarketLocalizationError: noopThunk,
49
50
  marketingGatewayGoogleProductDestinationApprovalStatus: noopThunk,
50
51
  marketingGatewayGoogleProductItemLevelIssueSeverity: noopThunk,
package/src/validators.js CHANGED
@@ -36,6 +36,7 @@ import itemClassificationStatus from './io/flow/internal/v0/enums/itemClassifica
36
36
  import itemQuantityAction from './io/flow/internal/v0/enums/itemQuantityAction';
37
37
  import labelBillingStrategy from './io/flow/internal/v0/enums/labelBillingStrategy';
38
38
  import labelInvoiceDetailKey from './io/flow/internal/v0/enums/labelInvoiceDetailKey';
39
+ import marketingGatewayAccountConnectionStatus from './io/flow/internal/v0/enums/marketingGatewayAccountConnectionStatus';
39
40
  import marketingGatewayAccountMarketLocalizationError from './io/flow/internal/v0/enums/marketingGatewayAccountMarketLocalizationError';
40
41
  import marketingGatewayGoogleProductDestinationApprovalStatus from './io/flow/internal/v0/enums/marketingGatewayGoogleProductDestinationApprovalStatus';
41
42
  import marketingGatewayGoogleProductItemLevelIssueSeverity from './io/flow/internal/v0/enums/marketingGatewayGoogleProductItemLevelIssueSeverity';
@@ -753,6 +754,7 @@ export default {
753
754
  itemQuantityAction,
754
755
  labelBillingStrategy,
755
756
  labelInvoiceDetailKey,
757
+ marketingGatewayAccountConnectionStatus,
756
758
  marketingGatewayAccountMarketLocalizationError,
757
759
  marketingGatewayGoogleProductDestinationApprovalStatus,
758
760
  marketingGatewayGoogleProductItemLevelIssueSeverity,
@@ -1,25 +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 _experienceSummary = require('../../../common/v0/models/experienceSummary');
12
-
13
- var _experienceSummary2 = _interopRequireDefault(_experienceSummary);
14
-
15
- var _centerSummary = require('./centerSummary');
16
-
17
- var _centerSummary2 = _interopRequireDefault(_centerSummary);
18
-
19
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
-
21
- exports.default = _propTypes2.default.shape({
22
- id: _propTypes2.default.string.isRequired,
23
- experience: _experienceSummary2.default.isRequired,
24
- center: _centerSummary2.default.isRequired
25
- });
@@ -1,9 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import experienceSummary from '../../../common/v0/models/experienceSummary';
3
- import centerSummary from './centerSummary';
4
-
5
- export default PropTypes.shape({
6
- id: PropTypes.string.isRequired,
7
- experience: experienceSummary.isRequired,
8
- center: centerSummary.isRequired,
9
- });