@flowio/api-internal-prop-types 1.2.21 → 1.2.23

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 (68) hide show
  1. package/.apibuilder/.tracked_files +39 -27
  2. package/lib/index.d.ts +4 -3
  3. package/lib/io/flow/catalog/v0/enums/attributeIntent.js +1 -1
  4. package/lib/io/flow/catalog/v0/models/itemFormOverlay.js +5 -0
  5. package/lib/io/flow/catalog/v0/models/itemFormOverlayForm.js +2 -0
  6. package/lib/io/flow/fulfillment/v0/models/experienceCentersMapping.js +25 -0
  7. package/lib/io/flow/fulfillment/v0/models/tierSummary.js +2 -1
  8. package/lib/io/flow/harmonization/internal/v0/enums/itemClassificationAction.js +13 -0
  9. package/lib/io/flow/harmonization/internal/v0/models/productClassificationForm.js +7 -2
  10. package/lib/io/flow/harmonization/internal/v0/models/productClassificationResult.js +1 -1
  11. package/lib/io/flow/internal/v0/enums/itemClassificationAction.js +13 -0
  12. package/lib/io/flow/internal/v0/models/billingOrganizationSettings.js +1 -1
  13. package/lib/io/flow/internal/v0/models/marketingGatewayAccountMarketLocalization.js +3 -3
  14. package/lib/io/flow/internal/v0/models/marketingGatewayConfiguredMarket.js +5 -3
  15. package/lib/io/flow/internal/v0/models/marketingGatewayConfiguredMarketForm.js +5 -3
  16. package/lib/io/flow/internal/v0/models/marketingGatewayExperience.js +18 -0
  17. package/lib/io/flow/internal/v0/models/marketingGatewayProductResult.js +25 -0
  18. package/lib/io/flow/internal/v0/models/productClassificationForm.js +7 -2
  19. package/lib/io/flow/internal/v0/models/productClassificationResult.js +1 -1
  20. package/lib/io/flow/shopify/external/v0/enums/topic.js +1 -1
  21. package/lib/io/flow/shopify/external/v0/models/productVariant.js +1 -0
  22. package/lib/io/flow/shopify/external/v0/models/shopifyInventoryItem.js +20 -0
  23. package/lib/io/flow/shopify/external/v0/models/shopifyInventoryItemDelete.js +15 -0
  24. package/lib/io/flow/shopify/external/v0/models/shopifyInventoryLevel.js +18 -0
  25. package/lib/io/flow/shopify/external/v0/models/shopifyInventoryLevelDisconnect.js +16 -0
  26. package/lib/io/flow/shopify/external/v0/models/shopifyLocation.js +1 -1
  27. package/lib/io/flow/shopify/external/v0/models/shopifyLocationDelete.js +15 -0
  28. package/lib/io/flow/shopify/v0/models/flowCenterReference.js +15 -0
  29. package/lib/io/flow/shopify/v0/models/shopifyLocalizedVariant.js +6 -1
  30. package/lib/io/flow/shopify/v0/models/shopifyLocationFlowCenterMapping.js +25 -0
  31. package/lib/io/flow/shopify/v0/models/shopifyLocationFlowCenterMappingForm.js +16 -0
  32. package/lib/io/flow/shopify/v0/models/shopifyLocationReference.js +15 -0
  33. package/lib/mocks.js +3 -2
  34. package/lib/validators.js +15 -10
  35. package/package.json +17 -2
  36. package/src/index.d.ts +4 -3
  37. package/src/io/flow/catalog/v0/enums/attributeIntent.js +1 -0
  38. package/src/io/flow/catalog/v0/models/itemFormOverlay.js +2 -0
  39. package/src/io/flow/catalog/v0/models/itemFormOverlayForm.js +2 -0
  40. package/src/io/flow/fulfillment/v0/models/experienceCentersMapping.js +9 -0
  41. package/src/io/flow/fulfillment/v0/models/tierSummary.js +1 -0
  42. package/src/io/flow/harmonization/internal/v0/enums/itemClassificationAction.js +3 -0
  43. package/src/io/flow/harmonization/internal/v0/models/productClassificationForm.js +3 -1
  44. package/src/io/flow/harmonization/internal/v0/models/productClassificationResult.js +1 -1
  45. package/src/io/flow/internal/v0/enums/itemClassificationAction.js +3 -0
  46. package/src/io/flow/internal/v0/models/billingOrganizationSettings.js +1 -1
  47. package/src/io/flow/internal/v0/models/marketingGatewayAccountMarketLocalization.js +3 -2
  48. package/src/io/flow/internal/v0/models/marketingGatewayConfiguredMarket.js +2 -3
  49. package/src/io/flow/internal/v0/models/marketingGatewayConfiguredMarketForm.js +2 -3
  50. package/src/io/flow/internal/v0/models/marketingGatewayExperience.js +8 -0
  51. package/src/io/flow/internal/v0/models/marketingGatewayProductResult.js +9 -0
  52. package/src/io/flow/internal/v0/models/productClassificationForm.js +3 -1
  53. package/src/io/flow/internal/v0/models/productClassificationResult.js +1 -1
  54. package/src/io/flow/shopify/external/v0/enums/topic.js +9 -0
  55. package/src/io/flow/shopify/external/v0/models/productVariant.js +1 -0
  56. package/src/io/flow/shopify/external/v0/models/shopifyInventoryItem.js +10 -0
  57. package/src/io/flow/shopify/external/v0/models/shopifyInventoryItemDelete.js +5 -0
  58. package/src/io/flow/shopify/external/v0/models/shopifyInventoryLevel.js +8 -0
  59. package/src/io/flow/shopify/external/v0/models/shopifyInventoryLevelDisconnect.js +6 -0
  60. package/src/io/flow/shopify/external/v0/models/shopifyLocation.js +1 -1
  61. package/src/io/flow/shopify/external/v0/models/shopifyLocationDelete.js +5 -0
  62. package/src/io/flow/shopify/v0/models/flowCenterReference.js +5 -0
  63. package/src/io/flow/shopify/v0/models/shopifyLocalizedVariant.js +2 -0
  64. package/src/io/flow/shopify/v0/models/shopifyLocationFlowCenterMapping.js +9 -0
  65. package/src/io/flow/shopify/v0/models/shopifyLocationFlowCenterMappingForm.js +6 -0
  66. package/src/io/flow/shopify/v0/models/shopifyLocationReference.js +5 -0
  67. package/src/mocks.js +3 -2
  68. package/src/validators.js +6 -4
@@ -0,0 +1,25 @@
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 _shopifyLocationReference = require('./shopifyLocationReference');
12
+
13
+ var _shopifyLocationReference2 = _interopRequireDefault(_shopifyLocationReference);
14
+
15
+ var _flowCenterReference = require('./flowCenterReference');
16
+
17
+ var _flowCenterReference2 = _interopRequireDefault(_flowCenterReference);
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
+ shopify_location: _shopifyLocationReference2.default.isRequired,
24
+ flow_center: _flowCenterReference2.default.isRequired
25
+ });
@@ -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
+ shopify_location_id: _propTypes2.default.number.isRequired,
15
+ flow_center_key: _propTypes2.default.string.isRequired
16
+ });
@@ -0,0 +1,15 @@
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
+ id: _propTypes2.default.string.isRequired
15
+ });
package/lib/mocks.js CHANGED
@@ -45,6 +45,7 @@ exports.default = {
45
45
  installmentPaymentType: noopThunk,
46
46
  installmentProgramStatus: noopThunk,
47
47
  installmentStatus: noopThunk,
48
+ itemClassificationAction: noopThunk,
48
49
  itemClassificationStatus: noopThunk,
49
50
  itemQuantityAction: noopThunk,
50
51
  labelBillingStrategy: noopThunk,
@@ -396,7 +397,6 @@ exports.default = {
396
397
  localization: noopThunk,
397
398
  localizationForm: noopThunk,
398
399
  localizationRef: noopThunk,
399
- localizationSummary: noopThunk,
400
400
  localizationUpserted: noopThunk,
401
401
  localizedContent: noopThunk,
402
402
  localizedContentElement: noopThunk,
@@ -425,6 +425,7 @@ exports.default = {
425
425
  marketingGatewayConfiguredMarket: noopThunk,
426
426
  marketingGatewayConfiguredMarketForm: noopThunk,
427
427
  marketingGatewayExistingMarket: noopThunk,
428
+ marketingGatewayExperience: noopThunk,
428
429
  marketingGatewayGoogleCustomLabels: noopThunk,
429
430
  marketingGatewayGoogleCustomProductShippingLocation: noopThunk,
430
431
  marketingGatewayGoogleMarket: noopThunk,
@@ -446,6 +447,7 @@ exports.default = {
446
447
  marketingGatewayGoogleProductUnitPricingMeasure: noopThunk,
447
448
  marketingGatewayGoogleProductWarning: noopThunk,
448
449
  marketingGatewayImageLinks: noopThunk,
450
+ marketingGatewayProductResult: noopThunk,
449
451
  marketingGatewayProductsResult: noopThunk,
450
452
  marketingGatewayProductsStatusCount: noopThunk,
451
453
  nextBillingStatement: noopThunk,
@@ -528,7 +530,6 @@ exports.default = {
528
530
  productPhrase: noopThunk,
529
531
  productPhraseForm: noopThunk,
530
532
  productReference: noopThunk,
531
- productResult: noopThunk,
532
533
  rate: noopThunk,
533
534
  rateData: noopThunk,
534
535
  rateDataV3: noopThunk,
package/lib/validators.js CHANGED
@@ -136,6 +136,10 @@ var _installmentStatus = require('./io/flow/internal/v0/enums/installmentStatus'
136
136
 
137
137
  var _installmentStatus2 = _interopRequireDefault(_installmentStatus);
138
138
 
139
+ var _itemClassificationAction = require('./io/flow/internal/v0/enums/itemClassificationAction');
140
+
141
+ var _itemClassificationAction2 = _interopRequireDefault(_itemClassificationAction);
142
+
139
143
  var _itemClassificationStatus = require('./io/flow/internal/v0/enums/itemClassificationStatus');
140
144
 
141
145
  var _itemClassificationStatus2 = _interopRequireDefault(_itemClassificationStatus);
@@ -1540,10 +1544,6 @@ var _localizationRef = require('./io/flow/internal/v0/models/localizationRef');
1540
1544
 
1541
1545
  var _localizationRef2 = _interopRequireDefault(_localizationRef);
1542
1546
 
1543
- var _localizationSummary = require('./io/flow/internal/v0/models/localizationSummary');
1544
-
1545
- var _localizationSummary2 = _interopRequireDefault(_localizationSummary);
1546
-
1547
1547
  var _localizationUpserted = require('./io/flow/internal/v0/models/localizationUpserted');
1548
1548
 
1549
1549
  var _localizationUpserted2 = _interopRequireDefault(_localizationUpserted);
@@ -1656,6 +1656,10 @@ var _marketingGatewayExistingMarket = require('./io/flow/internal/v0/models/mark
1656
1656
 
1657
1657
  var _marketingGatewayExistingMarket2 = _interopRequireDefault(_marketingGatewayExistingMarket);
1658
1658
 
1659
+ var _marketingGatewayExperience = require('./io/flow/internal/v0/models/marketingGatewayExperience');
1660
+
1661
+ var _marketingGatewayExperience2 = _interopRequireDefault(_marketingGatewayExperience);
1662
+
1659
1663
  var _marketingGatewayGoogleCustomLabels = require('./io/flow/internal/v0/models/marketingGatewayGoogleCustomLabels');
1660
1664
 
1661
1665
  var _marketingGatewayGoogleCustomLabels2 = _interopRequireDefault(_marketingGatewayGoogleCustomLabels);
@@ -1740,6 +1744,10 @@ var _marketingGatewayImageLinks = require('./io/flow/internal/v0/models/marketin
1740
1744
 
1741
1745
  var _marketingGatewayImageLinks2 = _interopRequireDefault(_marketingGatewayImageLinks);
1742
1746
 
1747
+ var _marketingGatewayProductResult = require('./io/flow/internal/v0/models/marketingGatewayProductResult');
1748
+
1749
+ var _marketingGatewayProductResult2 = _interopRequireDefault(_marketingGatewayProductResult);
1750
+
1743
1751
  var _marketingGatewayProductsResult = require('./io/flow/internal/v0/models/marketingGatewayProductsResult');
1744
1752
 
1745
1753
  var _marketingGatewayProductsResult2 = _interopRequireDefault(_marketingGatewayProductsResult);
@@ -2068,10 +2076,6 @@ var _productReference = require('./io/flow/internal/v0/models/productReference')
2068
2076
 
2069
2077
  var _productReference2 = _interopRequireDefault(_productReference);
2070
2078
 
2071
- var _productResult = require('./io/flow/internal/v0/models/productResult');
2072
-
2073
- var _productResult2 = _interopRequireDefault(_productResult);
2074
-
2075
2079
  var _rate = require('./io/flow/internal/v0/models/rate');
2076
2080
 
2077
2081
  var _rate2 = _interopRequireDefault(_rate);
@@ -2896,6 +2900,7 @@ exports.default = {
2896
2900
  installmentPaymentType: _installmentPaymentType2.default,
2897
2901
  installmentProgramStatus: _installmentProgramStatus2.default,
2898
2902
  installmentStatus: _installmentStatus2.default,
2903
+ itemClassificationAction: _itemClassificationAction2.default,
2899
2904
  itemClassificationStatus: _itemClassificationStatus2.default,
2900
2905
  itemQuantityAction: _itemQuantityAction2.default,
2901
2906
  labelBillingStrategy: _labelBillingStrategy2.default,
@@ -3247,7 +3252,6 @@ exports.default = {
3247
3252
  localization: _localization2.default,
3248
3253
  localizationForm: _localizationForm2.default,
3249
3254
  localizationRef: _localizationRef2.default,
3250
- localizationSummary: _localizationSummary2.default,
3251
3255
  localizationUpserted: _localizationUpserted2.default,
3252
3256
  localizedContent: _localizedContent2.default,
3253
3257
  localizedContentElement: _localizedContentElement2.default,
@@ -3276,6 +3280,7 @@ exports.default = {
3276
3280
  marketingGatewayConfiguredMarket: _marketingGatewayConfiguredMarket2.default,
3277
3281
  marketingGatewayConfiguredMarketForm: _marketingGatewayConfiguredMarketForm2.default,
3278
3282
  marketingGatewayExistingMarket: _marketingGatewayExistingMarket2.default,
3283
+ marketingGatewayExperience: _marketingGatewayExperience2.default,
3279
3284
  marketingGatewayGoogleCustomLabels: _marketingGatewayGoogleCustomLabels2.default,
3280
3285
  marketingGatewayGoogleCustomProductShippingLocation: _marketingGatewayGoogleCustomProductShippingLocation2.default,
3281
3286
  marketingGatewayGoogleMarket: _marketingGatewayGoogleMarket2.default,
@@ -3297,6 +3302,7 @@ exports.default = {
3297
3302
  marketingGatewayGoogleProductUnitPricingMeasure: _marketingGatewayGoogleProductUnitPricingMeasure2.default,
3298
3303
  marketingGatewayGoogleProductWarning: _marketingGatewayGoogleProductWarning2.default,
3299
3304
  marketingGatewayImageLinks: _marketingGatewayImageLinks2.default,
3305
+ marketingGatewayProductResult: _marketingGatewayProductResult2.default,
3300
3306
  marketingGatewayProductsResult: _marketingGatewayProductsResult2.default,
3301
3307
  marketingGatewayProductsStatusCount: _marketingGatewayProductsStatusCount2.default,
3302
3308
  nextBillingStatement: _nextBillingStatement2.default,
@@ -3379,7 +3385,6 @@ exports.default = {
3379
3385
  productPhrase: _productPhrase2.default,
3380
3386
  productPhraseForm: _productPhraseForm2.default,
3381
3387
  productReference: _productReference2.default,
3382
- productResult: _productResult2.default,
3383
3388
  rate: _rate2.default,
3384
3389
  rateData: _rateData2.default,
3385
3390
  rateDataV3: _rateDataV2.default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-prop-types",
3
- "version": "1.2.21",
3
+ "version": "1.2.23",
4
4
  "description": "PropType validators that work with internal Flow API",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@
8
8
  "clean": "rimraf ./coverage ./lib",
9
9
  "fix": "eslint . --fix --cache --format=codeframe",
10
10
  "lint": "eslint . --cache --format=codeframe",
11
- "prepare": "npm run clean && npm run build",
11
+ "prepublish": "npm run clean && npm run build",
12
12
  "regenerate": "apibuilder update"
13
13
  },
14
14
  "repository": "https://github.com/flowcommerce/react-toolkit/tree/master/packages/api-internal-prop-types",
@@ -25,5 +25,20 @@
25
25
  },
26
26
  "peerDependencies": {
27
27
  "prop-types": "^15.0.0"
28
+ },
29
+ "devDependencies": {
30
+ "@flowio/eslint-config-flowio": "^12.0.0",
31
+ "@flowio/eslint-plugin-flowio": "^0.0.1",
32
+ "babel-cli": "^6.26.0",
33
+ "babel-core": "^6.26.0",
34
+ "babel-plugin-transform-runtime": "^6.23.0",
35
+ "babel-preset-es2015": "^6.24.1",
36
+ "babel-preset-stage-1": "^6.24.1",
37
+ "eslint": "^5.1.0",
38
+ "eslint-plugin-import": "^2.13.0",
39
+ "eslint-plugin-jsx-a11y": "^6.1.1",
40
+ "eslint-plugin-react": "^7.10.0",
41
+ "prop-types": "^15.6.0",
42
+ "rimraf": "^2.6.2"
28
43
  }
29
44
  }
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for flow api-internal 0.5.86
1
+ // Type definitions for flow api-internal 0.5.97
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;
@@ -331,6 +331,7 @@ declare const defaultExport: {
331
331
  issuer: Requireable<any> & Validator<any>;
332
332
  issuerDeleted: Requireable<any> & Validator<any>;
333
333
  issuerUpserted: Requireable<any> & Validator<any>;
334
+ itemClassificationAction: Requireable<any> & Validator<any>;
334
335
  itemClassificationStatus: Requireable<any> & Validator<any>;
335
336
  itemDimensionEstimateDeleted: Requireable<any> & Validator<any>;
336
337
  itemDimensionEstimateUpserted: Requireable<any> & Validator<any>;
@@ -376,7 +377,6 @@ declare const defaultExport: {
376
377
  localization: Requireable<any> & Validator<any>;
377
378
  localizationForm: Requireable<any> & Validator<any>;
378
379
  localizationRef: Requireable<any> & Validator<any>;
379
- localizationSummary: Requireable<any> & Validator<any>;
380
380
  localizationUpserted: Requireable<any> & Validator<any>;
381
381
  localizedContent: Requireable<any> & Validator<any>;
382
382
  localizedContentElement: Requireable<any> & Validator<any>;
@@ -406,6 +406,7 @@ declare const defaultExport: {
406
406
  marketingGatewayConfiguredMarket: Requireable<any> & Validator<any>;
407
407
  marketingGatewayConfiguredMarketForm: Requireable<any> & Validator<any>;
408
408
  marketingGatewayExistingMarket: Requireable<any> & Validator<any>;
409
+ marketingGatewayExperience: Requireable<any> & Validator<any>;
409
410
  marketingGatewayGoogleCustomLabels: Requireable<any> & Validator<any>;
410
411
  marketingGatewayGoogleCustomProductShippingLocation: Requireable<any> & Validator<any>;
411
412
  marketingGatewayGoogleMarket: Requireable<any> & Validator<any>;
@@ -432,6 +433,7 @@ declare const defaultExport: {
432
433
  marketingGatewayPlatform: Requireable<any> & Validator<any>;
433
434
  marketingGatewayPlatformMarket: Requireable<any> & Validator<any>;
434
435
  marketingGatewayProduct: Requireable<any> & Validator<any>;
436
+ marketingGatewayProductResult: Requireable<any> & Validator<any>;
435
437
  marketingGatewayProductStatus: Requireable<any> & Validator<any>;
436
438
  marketingGatewayProductsResult: Requireable<any> & Validator<any>;
437
439
  marketingGatewayProductsStatusCount: Requireable<any> & Validator<any>;
@@ -532,7 +534,6 @@ declare const defaultExport: {
532
534
  productPhrase: Requireable<any> & Validator<any>;
533
535
  productPhraseForm: Requireable<any> & Validator<any>;
534
536
  productReference: Requireable<any> & Validator<any>;
535
- productResult: Requireable<any> & Validator<any>;
536
537
  promptAction: Requireable<any> & Validator<any>;
537
538
  promptOptions: Requireable<any> & Validator<any>;
538
539
  promptTarget: Requireable<any> & Validator<any>;
@@ -14,4 +14,5 @@ export default PropTypes.oneOf([
14
14
  'consumer_url',
15
15
  'gtin',
16
16
  'mpn',
17
+ 'excluded_regions',
17
18
  ]);
@@ -1,4 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
+ import price from '../../../common/v0/models/price';
2
3
  import dimensions from '../../../common/v0/models/dimensions';
3
4
  import imageForm from './imageForm';
4
5
 
@@ -6,6 +7,7 @@ export default PropTypes.shape({
6
7
  id: PropTypes.string.isRequired,
7
8
  number: PropTypes.string.isRequired,
8
9
  position: PropTypes.number.isRequired,
10
+ price: price,
9
11
  categories: PropTypes.arrayOf(PropTypes.string),
10
12
  description: PropTypes.string,
11
13
  attributes: PropTypes.objectOf(PropTypes.string),
@@ -4,6 +4,8 @@ import imageForm from './imageForm';
4
4
 
5
5
  export default PropTypes.shape({
6
6
  number: PropTypes.string.isRequired,
7
+ price: PropTypes.number,
8
+ currency: PropTypes.string,
7
9
  position: PropTypes.number,
8
10
  categories: PropTypes.arrayOf(PropTypes.string),
9
11
  description: PropTypes.string,
@@ -0,0 +1,9 @@
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
+ });
@@ -15,4 +15,5 @@ export default PropTypes.shape({
15
15
  visibility: visibility.isRequired,
16
16
  currency: PropTypes.string.isRequired,
17
17
  display: tierDisplay,
18
+ message: PropTypes.string,
18
19
  });
@@ -0,0 +1,3 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.oneOf(['ACCEPT', 'MANUAL', 'REJECT']);
@@ -1,8 +1,10 @@
1
1
  import PropTypes from 'prop-types';
2
+ import itemClassificationAction from '../enums/itemClassificationAction';
2
3
 
3
4
  export default PropTypes.shape({
4
5
  organization_id: PropTypes.string.isRequired,
5
6
  product_id: PropTypes.string.isRequired,
6
- classification_model_id: PropTypes.string.isRequired,
7
+ classification_model_id: PropTypes.string,
7
8
  classification: PropTypes.string.isRequired,
9
+ action: itemClassificationAction.isRequired,
8
10
  });
@@ -4,5 +4,5 @@ import classificationProductId from './classificationProductId';
4
4
 
5
5
  export default PropTypes.shape({
6
6
  classified_product: classifiedProduct.isRequired,
7
- next_product: classificationProductId.isRequired,
7
+ next_product: classificationProductId,
8
8
  });
@@ -0,0 +1,3 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.oneOf(['ACCEPT', 'MANUAL', 'REJECT']);
@@ -10,5 +10,5 @@ export default PropTypes.shape({
10
10
  send_statements_to_flow_ftp_server: PropTypes.bool.isRequired,
11
11
  invoicing_terms: paymentTerm,
12
12
  transfer_method: transferMethod,
13
- enable_b2b_tax_remittance_transactions: PropTypes.bool.isRequired,
13
+ b2b_tax_remittance_days: PropTypes.number,
14
14
  });
@@ -1,13 +1,14 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import marketingGatewayPlatformMarket from '../unions/marketingGatewayPlatformMarket';
3
- import experienceSummary from '../../../common/v0/models/experienceSummary';
3
+ import marketingGatewayExperience from './marketingGatewayExperience';
4
4
  import marketingGatewayExistingMarket from './marketingGatewayExistingMarket';
5
5
  import marketingGatewayConfiguredMarket from './marketingGatewayConfiguredMarket';
6
6
  import marketingGatewayAccountMarketLocalizationError from '../enums/marketingGatewayAccountMarketLocalizationError';
7
7
 
8
8
  export default PropTypes.shape({
9
9
  market: marketingGatewayPlatformMarket.isRequired,
10
- compatible_experiences: PropTypes.arrayOf(experienceSummary).isRequired,
10
+ compatible_experiences: PropTypes.arrayOf(marketingGatewayExperience)
11
+ .isRequired,
11
12
  existing_markets: PropTypes.arrayOf(marketingGatewayExistingMarket)
12
13
  .isRequired,
13
14
  configured_markets: marketingGatewayConfiguredMarket,
@@ -1,14 +1,13 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import marketingGatewayPlatformMarket from '../unions/marketingGatewayPlatformMarket';
3
+ import marketingGatewayExperience from './marketingGatewayExperience';
3
4
  import marketingGatewayProductsStatusCount from './marketingGatewayProductsStatusCount';
4
5
  import marketingGatewaySyncStatus from '../enums/marketingGatewaySyncStatus';
5
6
 
6
7
  export default PropTypes.shape({
7
8
  id: PropTypes.string.isRequired,
8
9
  market: marketingGatewayPlatformMarket.isRequired,
9
- experience_id: PropTypes.string,
10
- experience_name: PropTypes.string,
11
- experience_key: PropTypes.string,
10
+ experience: marketingGatewayExperience,
12
11
  existing_market_id: PropTypes.string.isRequired,
13
12
  products_status_counts: PropTypes.arrayOf(marketingGatewayProductsStatusCount)
14
13
  .isRequired,
@@ -1,10 +1,9 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import marketingGatewayPlatformMarket from '../unions/marketingGatewayPlatformMarket';
3
+ import marketingGatewayExperience from './marketingGatewayExperience';
3
4
 
4
5
  export default PropTypes.shape({
5
6
  market: marketingGatewayPlatformMarket.isRequired,
6
- experience_id: PropTypes.string.isRequired,
7
- experience_name: PropTypes.string.isRequired,
8
- experience_key: PropTypes.string.isRequired,
7
+ experience: marketingGatewayExperience.isRequired,
9
8
  existing_market_id: PropTypes.string.isRequired,
10
9
  });
@@ -0,0 +1,8 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ id: PropTypes.string.isRequired,
5
+ name: PropTypes.string.isRequired,
6
+ key: PropTypes.string.isRequired,
7
+ subcatalog_id: PropTypes.string.isRequired,
8
+ });
@@ -0,0 +1,9 @@
1
+ import PropTypes from 'prop-types';
2
+ import marketingGatewayProduct from '../unions/marketingGatewayProduct';
3
+ import marketingGatewayExperience from './marketingGatewayExperience';
4
+
5
+ export default PropTypes.shape({
6
+ base_product: marketingGatewayProduct.isRequired,
7
+ configured_product: marketingGatewayProduct,
8
+ configurer_experience: marketingGatewayExperience,
9
+ });
@@ -1,8 +1,10 @@
1
1
  import PropTypes from 'prop-types';
2
+ import itemClassificationAction from '../enums/itemClassificationAction';
2
3
 
3
4
  export default PropTypes.shape({
4
5
  organization_id: PropTypes.string.isRequired,
5
6
  product_id: PropTypes.string.isRequired,
6
- classification_model_id: PropTypes.string.isRequired,
7
+ classification_model_id: PropTypes.string,
7
8
  classification: PropTypes.string.isRequired,
9
+ action: itemClassificationAction.isRequired,
8
10
  });
@@ -4,5 +4,5 @@ import classificationProductId from './classificationProductId';
4
4
 
5
5
  export default PropTypes.shape({
6
6
  classified_product: classifiedProduct.isRequired,
7
- next_product: classificationProductId.isRequired,
7
+ next_product: classificationProductId,
8
8
  });
@@ -24,6 +24,15 @@ export default PropTypes.oneOf([
24
24
  'fulfillment_events/delete',
25
25
  'fulfillments/create',
26
26
  'fulfillments/update',
27
+ 'inventory_items/create',
28
+ 'inventory_items/update',
29
+ 'inventory_items/delete',
30
+ 'inventory_levels/connect',
31
+ 'inventory_levels/update',
32
+ 'inventory_levels/disconnect',
33
+ 'locations/create',
34
+ 'locations/update',
35
+ 'locations/delete',
27
36
  'order_transactions/create',
28
37
  'orders/cancelled',
29
38
  'orders/create',
@@ -22,6 +22,7 @@ export default PropTypes.shape({
22
22
  inventory_policy: inventoryPolicy.isRequired,
23
23
  weight: PropTypes.number,
24
24
  weight_unit: weightUnit,
25
+ inventory_item_id: PropTypes.number,
25
26
  inventory_quantity: PropTypes.number,
26
27
  metafield: PropTypes.arrayOf(metafieldForm),
27
28
  option1: PropTypes.string,
@@ -0,0 +1,10 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ id: PropTypes.number.isRequired,
5
+ sku: PropTypes.string.isRequired,
6
+ tracked: PropTypes.bool.isRequired,
7
+ cost: PropTypes.string,
8
+ created_at: PropTypes.string.isRequired,
9
+ updated_at: PropTypes.string,
10
+ });
@@ -0,0 +1,5 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ id: PropTypes.number.isRequired,
5
+ });
@@ -0,0 +1,8 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ inventory_item_id: PropTypes.number.isRequired,
5
+ location_id: PropTypes.number.isRequired,
6
+ updated_at: PropTypes.string.isRequired,
7
+ available: PropTypes.number,
8
+ });
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ inventory_item_id: PropTypes.number.isRequired,
5
+ location_id: PropTypes.number.isRequired,
6
+ });
@@ -11,7 +11,7 @@ export default PropTypes.shape({
11
11
  id: PropTypes.number.isRequired,
12
12
  legacy: PropTypes.bool.isRequired,
13
13
  name: PropTypes.string.isRequired,
14
- phone: PropTypes.number,
14
+ phone: PropTypes.string,
15
15
  province: PropTypes.string,
16
16
  province_code: PropTypes.string,
17
17
  updated_at: PropTypes.string,
@@ -0,0 +1,5 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ id: PropTypes.number.isRequired,
5
+ });
@@ -0,0 +1,5 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ key: PropTypes.string.isRequired,
5
+ });
@@ -2,6 +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
6
 
6
7
  export default PropTypes.shape({
7
8
  id: PropTypes.number.isRequired,
@@ -9,4 +10,5 @@ export default PropTypes.shape({
9
10
  experience: experienceReference.isRequired,
10
11
  prices: shopifyLocalizedVariantPrices.isRequired,
11
12
  status: subcatalogItemStatus.isRequired,
13
+ inventory_status: experienceInventoryItemStatus,
12
14
  });
@@ -0,0 +1,9 @@
1
+ import PropTypes from 'prop-types';
2
+ import shopifyLocationReference from './shopifyLocationReference';
3
+ import flowCenterReference from './flowCenterReference';
4
+
5
+ export default PropTypes.shape({
6
+ id: PropTypes.string.isRequired,
7
+ shopify_location: shopifyLocationReference.isRequired,
8
+ flow_center: flowCenterReference.isRequired,
9
+ });
@@ -0,0 +1,6 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ shopify_location_id: PropTypes.number.isRequired,
5
+ flow_center_key: PropTypes.string.isRequired,
6
+ });
@@ -0,0 +1,5 @@
1
+ import PropTypes from 'prop-types';
2
+
3
+ export default PropTypes.shape({
4
+ id: PropTypes.string.isRequired,
5
+ });
package/src/mocks.js CHANGED
@@ -40,6 +40,7 @@ export default {
40
40
  installmentPaymentType: noopThunk,
41
41
  installmentProgramStatus: noopThunk,
42
42
  installmentStatus: noopThunk,
43
+ itemClassificationAction: noopThunk,
43
44
  itemClassificationStatus: noopThunk,
44
45
  itemQuantityAction: noopThunk,
45
46
  labelBillingStrategy: noopThunk,
@@ -391,7 +392,6 @@ export default {
391
392
  localization: noopThunk,
392
393
  localizationForm: noopThunk,
393
394
  localizationRef: noopThunk,
394
- localizationSummary: noopThunk,
395
395
  localizationUpserted: noopThunk,
396
396
  localizedContent: noopThunk,
397
397
  localizedContentElement: noopThunk,
@@ -420,6 +420,7 @@ export default {
420
420
  marketingGatewayConfiguredMarket: noopThunk,
421
421
  marketingGatewayConfiguredMarketForm: noopThunk,
422
422
  marketingGatewayExistingMarket: noopThunk,
423
+ marketingGatewayExperience: noopThunk,
423
424
  marketingGatewayGoogleCustomLabels: noopThunk,
424
425
  marketingGatewayGoogleCustomProductShippingLocation: noopThunk,
425
426
  marketingGatewayGoogleMarket: noopThunk,
@@ -441,6 +442,7 @@ export default {
441
442
  marketingGatewayGoogleProductUnitPricingMeasure: noopThunk,
442
443
  marketingGatewayGoogleProductWarning: noopThunk,
443
444
  marketingGatewayImageLinks: noopThunk,
445
+ marketingGatewayProductResult: noopThunk,
444
446
  marketingGatewayProductsResult: noopThunk,
445
447
  marketingGatewayProductsStatusCount: noopThunk,
446
448
  nextBillingStatement: noopThunk,
@@ -523,7 +525,6 @@ export default {
523
525
  productPhrase: noopThunk,
524
526
  productPhraseForm: noopThunk,
525
527
  productReference: noopThunk,
526
- productResult: noopThunk,
527
528
  rate: noopThunk,
528
529
  rateData: noopThunk,
529
530
  rateDataV3: noopThunk,