@flowio/api-internal-prop-types 1.2.23 → 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 (39) hide show
  1. package/.apibuilder/.tracked_files +7 -3
  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/{inventory/v0/models/experienceInventoryItem.js → fulfillment/v0/models/shippingConfigurationItemAvailability.js} +8 -8
  7. package/lib/io/flow/fulfillment/v0/models/shippingConfigurationSummary.js +22 -0
  8. package/lib/io/flow/internal/v0/enums/marketingGatewayAccountConnectionStatus.js +13 -0
  9. package/lib/io/flow/internal/v0/enums/marketingGatewaySyncStatus.js +1 -1
  10. package/lib/io/flow/internal/v0/models/marketingGatewayAccount.js +8 -1
  11. package/lib/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +6 -7
  12. package/lib/io/flow/shopify/external/v0/models/shopifyInventoryLevelResponseWrapper.js +19 -0
  13. package/lib/io/flow/shopify/v0/models/shopifyLocalizedVariant.js +3 -3
  14. package/lib/io/flow/shopify/v0/models/shopifyVariantFlowMetafield.js +3 -3
  15. package/lib/io/flow/shopify/v0/models/shopifyVariantInventoryMetafield.js +3 -3
  16. package/lib/mocks.js +1 -0
  17. package/lib/validators.js +5 -0
  18. package/package.json +1 -1
  19. package/src/index.d.ts +1 -0
  20. package/src/io/flow/experience/v0/models/experienceSettings.js +2 -0
  21. package/src/io/flow/experience/v0/models/logisticsSettings.js +6 -0
  22. package/src/io/flow/fulfillment/v0/models/countryAvailability.js +7 -0
  23. package/src/io/flow/fulfillment/v0/models/shippingConfigurationItemAvailability.js +11 -0
  24. package/src/io/flow/fulfillment/v0/models/shippingConfigurationSummary.js +9 -0
  25. package/src/io/flow/internal/v0/enums/marketingGatewayAccountConnectionStatus.js +8 -0
  26. package/src/io/flow/internal/v0/enums/marketingGatewaySyncStatus.js +1 -8
  27. package/src/io/flow/internal/v0/models/marketingGatewayAccount.js +4 -0
  28. package/src/io/flow/internal/v0/models/marketingGatewayAccountConnection.js +2 -3
  29. package/src/io/flow/shopify/external/v0/models/shopifyInventoryLevelResponseWrapper.js +6 -0
  30. package/src/io/flow/shopify/v0/models/shopifyLocalizedVariant.js +2 -2
  31. package/src/io/flow/shopify/v0/models/shopifyVariantFlowMetafield.js +2 -2
  32. package/src/io/flow/shopify/v0/models/shopifyVariantInventoryMetafield.js +2 -2
  33. package/src/mocks.js +1 -0
  34. package/src/validators.js +2 -0
  35. package/lib/io/flow/fulfillment/v0/models/experienceCentersMapping.js +0 -25
  36. package/src/io/flow/fulfillment/v0/models/experienceCentersMapping.js +0 -9
  37. package/src/io/flow/inventory/v0/models/experienceInventoryItem.js +0 -11
  38. /package/lib/io/flow/{inventory/v0/enums/experienceInventoryItemStatus.js → fulfillment/v0/enums/itemAvailabilityStatus.js} +0 -0
  39. /package/src/io/flow/{inventory/v0/enums/experienceInventoryItemStatus.js → fulfillment/v0/enums/itemAvailabilityStatus.js} +0 -0
@@ -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
@@ -1301,6 +1303,7 @@ flow:
1301
1303
  - src/io/flow/fulfillment/v0/enums/deliveryOptionCostDetailSource.js
1302
1304
  - src/io/flow/fulfillment/v0/enums/deliveryWindowComponentSource.js
1303
1305
  - src/io/flow/fulfillment/v0/enums/deliveryWindowLocation.js
1306
+ - src/io/flow/fulfillment/v0/enums/itemAvailabilityStatus.js
1304
1307
  - src/io/flow/fulfillment/v0/enums/physicalDeliverySpecialSerivce.js
1305
1308
  - src/io/flow/fulfillment/v0/enums/quoteErrorCode.js
1306
1309
  - src/io/flow/fulfillment/v0/enums/shipmentIntegrationType.js
@@ -1323,6 +1326,7 @@ flow:
1323
1326
  - src/io/flow/fulfillment/v0/models/centerSummary.js
1324
1327
  - src/io/flow/fulfillment/v0/models/centerVersion.js
1325
1328
  - src/io/flow/fulfillment/v0/models/commercialInvoiceFee.js
1329
+ - src/io/flow/fulfillment/v0/models/countryAvailability.js
1326
1330
  - src/io/flow/fulfillment/v0/models/deliveryItem.js
1327
1331
  - src/io/flow/fulfillment/v0/models/deliveryOption.js
1328
1332
  - src/io/flow/fulfillment/v0/models/deliveryOptionCostComponent.js
@@ -1339,7 +1343,6 @@ flow:
1339
1343
  - src/io/flow/fulfillment/v0/models/deliveryWindowComponentsV2.js
1340
1344
  - src/io/flow/fulfillment/v0/models/digitalDelivery.js
1341
1345
  - src/io/flow/fulfillment/v0/models/estimatedWindow.js
1342
- - src/io/flow/fulfillment/v0/models/experienceCentersMapping.js
1343
1346
  - src/io/flow/fulfillment/v0/models/flatRate.js
1344
1347
  - src/io/flow/fulfillment/v0/models/flatRateForm.js
1345
1348
  - src/io/flow/fulfillment/v0/models/fulfillmentExperienceReference.js
@@ -1367,7 +1370,9 @@ flow:
1367
1370
  - src/io/flow/fulfillment/v0/models/shippingConfigurationCopy.js
1368
1371
  - src/io/flow/fulfillment/v0/models/shippingConfigurationCopyForm.js
1369
1372
  - src/io/flow/fulfillment/v0/models/shippingConfigurationForm.js
1373
+ - src/io/flow/fulfillment/v0/models/shippingConfigurationItemAvailability.js
1370
1374
  - src/io/flow/fulfillment/v0/models/shippingConfigurationReference.js
1375
+ - src/io/flow/fulfillment/v0/models/shippingConfigurationSummary.js
1371
1376
  - src/io/flow/fulfillment/v0/models/shippingConfigurationVersion.js
1372
1377
  - src/io/flow/fulfillment/v0/models/shippingLane.js
1373
1378
  - src/io/flow/fulfillment/v0/models/shippingLaneForm.js
@@ -1501,11 +1506,9 @@ flow:
1501
1506
  inventory:
1502
1507
  prop_types:
1503
1508
  - src/io/flow/inventory/v0/enums/aggregate.js
1504
- - src/io/flow/inventory/v0/enums/experienceInventoryItemStatus.js
1505
1509
  - src/io/flow/inventory/v0/enums/inventoryStatus.js
1506
1510
  - src/io/flow/inventory/v0/enums/serialStatus.js
1507
1511
  - src/io/flow/inventory/v0/enums/updateType.js
1508
- - src/io/flow/inventory/v0/models/experienceInventoryItem.js
1509
1512
  - src/io/flow/inventory/v0/models/externalApiTimeoutReservationError.js
1510
1513
  - src/io/flow/inventory/v0/models/genericReservationError.js
1511
1514
  - src/io/flow/inventory/v0/models/inventoryBackorder.js
@@ -2078,6 +2081,7 @@ flow:
2078
2081
  - src/io/flow/shopify/external/v0/models/shopifyInventoryItemDelete.js
2079
2082
  - src/io/flow/shopify/external/v0/models/shopifyInventoryLevel.js
2080
2083
  - src/io/flow/shopify/external/v0/models/shopifyInventoryLevelDisconnect.js
2084
+ - src/io/flow/shopify/external/v0/models/shopifyInventoryLevelResponseWrapper.js
2081
2085
  - src/io/flow/shopify/external/v0/models/shopifyLineItem.js
2082
2086
  - src/io/flow/shopify/external/v0/models/shopifyLineItemForm.js
2083
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
+ });
@@ -8,23 +8,23 @@ var _propTypes = require('prop-types');
8
8
 
9
9
  var _propTypes2 = _interopRequireDefault(_propTypes);
10
10
 
11
- var _inventoryExperienceReference = require('./inventoryExperienceReference');
12
-
13
- var _inventoryExperienceReference2 = _interopRequireDefault(_inventoryExperienceReference);
14
-
15
11
  var _itemReference = require('../../../common/v0/models/itemReference');
16
12
 
17
13
  var _itemReference2 = _interopRequireDefault(_itemReference);
18
14
 
19
- var _experienceInventoryItemStatus = require('../enums/experienceInventoryItemStatus');
15
+ var _shippingConfigurationSummary = require('./shippingConfigurationSummary');
16
+
17
+ var _shippingConfigurationSummary2 = _interopRequireDefault(_shippingConfigurationSummary);
18
+
19
+ var _countryAvailability = require('./countryAvailability');
20
20
 
21
- var _experienceInventoryItemStatus2 = _interopRequireDefault(_experienceInventoryItemStatus);
21
+ var _countryAvailability2 = _interopRequireDefault(_countryAvailability);
22
22
 
23
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
24
 
25
25
  exports.default = _propTypes2.default.shape({
26
26
  id: _propTypes2.default.string.isRequired,
27
- experience: _inventoryExperienceReference2.default.isRequired,
28
27
  item: _itemReference2.default.isRequired,
29
- status: _experienceInventoryItemStatus2.default.isRequired
28
+ shipping_configuration: _shippingConfigurationSummary2.default.isRequired,
29
+ availabilities: _propTypes2.default.arrayOf(_countryAvailability2.default).isRequired
30
30
  });
@@ -0,0 +1,22 @@
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 _shippingConfigurationType = require('../enums/shippingConfigurationType');
12
+
13
+ var _shippingConfigurationType2 = _interopRequireDefault(_shippingConfigurationType);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ exports.default = _propTypes2.default.shape({
18
+ id: _propTypes2.default.string.isRequired,
19
+ name: _propTypes2.default.string.isRequired,
20
+ key: _propTypes2.default.string.isRequired,
21
+ type: _shippingConfigurationType2.default.isRequired
22
+ });
@@ -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']);
@@ -10,4 +10,4 @@ var _propTypes2 = _interopRequireDefault(_propTypes);
10
10
 
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
 
13
- exports.default = _propTypes2.default.oneOf(['not_connected', 'disabled', 'pending', 'ongoing', 'succeed', 'failed']);
13
+ exports.default = _propTypes2.default.oneOf(['pending', 'ongoing', 'succeed', 'failed']);
@@ -12,10 +12,17 @@ var _marketingGatewayPlatform = require('../enums/marketingGatewayPlatform');
12
12
 
13
13
  var _marketingGatewayPlatform2 = _interopRequireDefault(_marketingGatewayPlatform);
14
14
 
15
+ var _marketingGatewaySyncStatus = require('../enums/marketingGatewaySyncStatus');
16
+
17
+ var _marketingGatewaySyncStatus2 = _interopRequireDefault(_marketingGatewaySyncStatus);
18
+
15
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
20
 
17
21
  exports.default = _propTypes2.default.shape({
18
22
  id: _propTypes2.default.string.isRequired,
19
23
  platform: _marketingGatewayPlatform2.default.isRequired,
20
- name: _propTypes2.default.string.isRequired
24
+ name: _propTypes2.default.string.isRequired,
25
+ sync_status: _marketingGatewaySyncStatus2.default.isRequired,
26
+ synced_at: _propTypes2.default.string,
27
+ next_sync_at: _propTypes2.default.string.isRequired
21
28
  });
@@ -8,18 +8,17 @@ var _propTypes = require('prop-types');
8
8
 
9
9
  var _propTypes2 = _interopRequireDefault(_propTypes);
10
10
 
11
- var _marketingGatewayAccount = require('./marketingGatewayAccount');
11
+ var _marketingGatewayAccountConnectionStatus = require('../enums/marketingGatewayAccountConnectionStatus');
12
12
 
13
- var _marketingGatewayAccount2 = _interopRequireDefault(_marketingGatewayAccount);
13
+ var _marketingGatewayAccountConnectionStatus2 = _interopRequireDefault(_marketingGatewayAccountConnectionStatus);
14
14
 
15
- var _marketingGatewaySyncStatus = require('../enums/marketingGatewaySyncStatus');
15
+ var _marketingGatewayAccount = require('./marketingGatewayAccount');
16
16
 
17
- var _marketingGatewaySyncStatus2 = _interopRequireDefault(_marketingGatewaySyncStatus);
17
+ var _marketingGatewayAccount2 = _interopRequireDefault(_marketingGatewayAccount);
18
18
 
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
20
 
21
21
  exports.default = _propTypes2.default.shape({
22
- accounts: _propTypes2.default.arrayOf(_marketingGatewayAccount2.default).isRequired,
23
- sync_status: _marketingGatewaySyncStatus2.default.isRequired,
24
- synced_at: _propTypes2.default.string
22
+ status: _marketingGatewayAccountConnectionStatus2.default.isRequired,
23
+ accounts: _propTypes2.default.arrayOf(_marketingGatewayAccount2.default).isRequired
25
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
+ });
@@ -20,9 +20,9 @@ var _subcatalogItemStatus = require('../../../catalog/v0/enums/subcatalogItemSta
20
20
 
21
21
  var _subcatalogItemStatus2 = _interopRequireDefault(_subcatalogItemStatus);
22
22
 
23
- var _experienceInventoryItemStatus = require('../../../inventory/v0/enums/experienceInventoryItemStatus');
23
+ var _itemAvailabilityStatus = require('../../../fulfillment/v0/enums/itemAvailabilityStatus');
24
24
 
25
- var _experienceInventoryItemStatus2 = _interopRequireDefault(_experienceInventoryItemStatus);
25
+ var _itemAvailabilityStatus2 = _interopRequireDefault(_itemAvailabilityStatus);
26
26
 
27
27
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
28
 
@@ -32,5 +32,5 @@ exports.default = _propTypes2.default.shape({
32
32
  experience: _experienceReference2.default.isRequired,
33
33
  prices: _shopifyLocalizedVariantPrices2.default.isRequired,
34
34
  status: _subcatalogItemStatus2.default.isRequired,
35
- inventory_status: _experienceInventoryItemStatus2.default
35
+ inventory_status: _itemAvailabilityStatus2.default
36
36
  });
@@ -12,9 +12,9 @@ var _subcatalogItemStatus = require('../../../catalog/v0/enums/subcatalogItemSta
12
12
 
13
13
  var _subcatalogItemStatus2 = _interopRequireDefault(_subcatalogItemStatus);
14
14
 
15
- var _experienceInventoryItemStatus = require('../../../inventory/v0/enums/experienceInventoryItemStatus');
15
+ var _itemAvailabilityStatus = require('../../../fulfillment/v0/enums/itemAvailabilityStatus');
16
16
 
17
- var _experienceInventoryItemStatus2 = _interopRequireDefault(_experienceInventoryItemStatus);
17
+ var _itemAvailabilityStatus2 = _interopRequireDefault(_itemAvailabilityStatus);
18
18
 
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
20
 
@@ -27,5 +27,5 @@ exports.default = _propTypes2.default.shape({
27
27
  prices_duty: _propTypes2.default.string,
28
28
  prices_compare_at: _propTypes2.default.string,
29
29
  prices_status: _subcatalogItemStatus2.default.isRequired,
30
- inventory_status: _experienceInventoryItemStatus2.default
30
+ inventory_status: _itemAvailabilityStatus2.default
31
31
  });
@@ -12,13 +12,13 @@ var _experienceReference = require('../../../experience/v0/models/experienceRefe
12
12
 
13
13
  var _experienceReference2 = _interopRequireDefault(_experienceReference);
14
14
 
15
- var _experienceInventoryItemStatus = require('../../../inventory/v0/enums/experienceInventoryItemStatus');
15
+ var _itemAvailabilityStatus = require('../../../fulfillment/v0/enums/itemAvailabilityStatus');
16
16
 
17
- var _experienceInventoryItemStatus2 = _interopRequireDefault(_experienceInventoryItemStatus);
17
+ var _itemAvailabilityStatus2 = _interopRequireDefault(_itemAvailabilityStatus);
18
18
 
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
20
 
21
21
  exports.default = _propTypes2.default.shape({
22
22
  experience: _experienceReference2.default.isRequired,
23
- status: _experienceInventoryItemStatus2.default.isRequired
23
+ status: _itemAvailabilityStatus2.default.isRequired
24
24
  });
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.23",
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
+ });
@@ -0,0 +1,11 @@
1
+ import PropTypes from 'prop-types';
2
+ import itemReference from '../../../common/v0/models/itemReference';
3
+ import shippingConfigurationSummary from './shippingConfigurationSummary';
4
+ import countryAvailability from './countryAvailability';
5
+
6
+ export default PropTypes.shape({
7
+ id: PropTypes.string.isRequired,
8
+ item: itemReference.isRequired,
9
+ shipping_configuration: shippingConfigurationSummary.isRequired,
10
+ availabilities: PropTypes.arrayOf(countryAvailability).isRequired,
11
+ });
@@ -0,0 +1,9 @@
1
+ import PropTypes from 'prop-types';
2
+ import shippingConfigurationType from '../enums/shippingConfigurationType';
3
+
4
+ export default PropTypes.shape({
5
+ id: PropTypes.string.isRequired,
6
+ name: PropTypes.string.isRequired,
7
+ key: PropTypes.string.isRequired,
8
+ type: shippingConfigurationType.isRequired,
9
+ });
@@ -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,10 +1,3 @@
1
1
  import PropTypes from 'prop-types';
2
2
 
3
- export default PropTypes.oneOf([
4
- 'not_connected',
5
- 'disabled',
6
- 'pending',
7
- 'ongoing',
8
- 'succeed',
9
- 'failed',
10
- ]);
3
+ export default PropTypes.oneOf(['pending', 'ongoing', 'succeed', 'failed']);
@@ -1,8 +1,12 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import marketingGatewayPlatform from '../enums/marketingGatewayPlatform';
3
+ import marketingGatewaySyncStatus from '../enums/marketingGatewaySyncStatus';
3
4
 
4
5
  export default PropTypes.shape({
5
6
  id: PropTypes.string.isRequired,
6
7
  platform: marketingGatewayPlatform.isRequired,
7
8
  name: PropTypes.string.isRequired,
9
+ sync_status: marketingGatewaySyncStatus.isRequired,
10
+ synced_at: PropTypes.string,
11
+ next_sync_at: PropTypes.string.isRequired,
8
12
  });
@@ -1,9 +1,8 @@
1
1
  import PropTypes from 'prop-types';
2
+ import marketingGatewayAccountConnectionStatus from '../enums/marketingGatewayAccountConnectionStatus';
2
3
  import marketingGatewayAccount from './marketingGatewayAccount';
3
- import marketingGatewaySyncStatus from '../enums/marketingGatewaySyncStatus';
4
4
 
5
5
  export default PropTypes.shape({
6
+ status: marketingGatewayAccountConnectionStatus.isRequired,
6
7
  accounts: PropTypes.arrayOf(marketingGatewayAccount).isRequired,
7
- sync_status: marketingGatewaySyncStatus.isRequired,
8
- synced_at: PropTypes.string,
9
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
+ });
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
2
2
  import experienceReference from '../../../experience/v0/models/experienceReference';
3
3
  import shopifyLocalizedVariantPrices from './shopifyLocalizedVariantPrices';
4
4
  import subcatalogItemStatus from '../../../catalog/v0/enums/subcatalogItemStatus';
5
- import experienceInventoryItemStatus from '../../../inventory/v0/enums/experienceInventoryItemStatus';
5
+ import itemAvailabilityStatus from '../../../fulfillment/v0/enums/itemAvailabilityStatus';
6
6
 
7
7
  export default PropTypes.shape({
8
8
  id: PropTypes.number.isRequired,
@@ -10,5 +10,5 @@ export default PropTypes.shape({
10
10
  experience: experienceReference.isRequired,
11
11
  prices: shopifyLocalizedVariantPrices.isRequired,
12
12
  status: subcatalogItemStatus.isRequired,
13
- inventory_status: experienceInventoryItemStatus,
13
+ inventory_status: itemAvailabilityStatus,
14
14
  });
@@ -1,6 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import subcatalogItemStatus from '../../../catalog/v0/enums/subcatalogItemStatus';
3
- import experienceInventoryItemStatus from '../../../inventory/v0/enums/experienceInventoryItemStatus';
3
+ import itemAvailabilityStatus from '../../../fulfillment/v0/enums/itemAvailabilityStatus';
4
4
 
5
5
  export default PropTypes.shape({
6
6
  prices_item: PropTypes.string.isRequired,
@@ -11,5 +11,5 @@ export default PropTypes.shape({
11
11
  prices_duty: PropTypes.string,
12
12
  prices_compare_at: PropTypes.string,
13
13
  prices_status: subcatalogItemStatus.isRequired,
14
- inventory_status: experienceInventoryItemStatus,
14
+ inventory_status: itemAvailabilityStatus,
15
15
  });
@@ -1,8 +1,8 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import experienceReference from '../../../experience/v0/models/experienceReference';
3
- import experienceInventoryItemStatus from '../../../inventory/v0/enums/experienceInventoryItemStatus';
3
+ import itemAvailabilityStatus from '../../../fulfillment/v0/enums/itemAvailabilityStatus';
4
4
 
5
5
  export default PropTypes.shape({
6
6
  experience: experienceReference.isRequired,
7
- status: experienceInventoryItemStatus.isRequired,
7
+ status: itemAvailabilityStatus.isRequired,
8
8
  });
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
- centers: _propTypes2.default.arrayOf(_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
- centers: PropTypes.arrayOf(centerSummary).isRequired,
9
- });
@@ -1,11 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import inventoryExperienceReference from './inventoryExperienceReference';
3
- import itemReference from '../../../common/v0/models/itemReference';
4
- import experienceInventoryItemStatus from '../enums/experienceInventoryItemStatus';
5
-
6
- export default PropTypes.shape({
7
- id: PropTypes.string.isRequired,
8
- experience: inventoryExperienceReference.isRequired,
9
- item: itemReference.isRequired,
10
- status: experienceInventoryItemStatus.isRequired,
11
- });