@flowio/api-internal-prop-types 9.3.0 → 9.5.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-prop-types",
3
- "version": "9.3.0",
3
+ "version": "9.5.0",
4
4
  "description": "PropType validators that work with internal Flow API",
5
5
  "keywords": [
6
6
  "flow",
@@ -30,5 +30,5 @@
30
30
  "peerDependencies": {
31
31
  "prop-types": "^15.7.0"
32
32
  },
33
- "gitHead": "c52ba90b248da3e6d6a65a6b9b0a220358ff6151"
33
+ "gitHead": "b074b7431789c52c4c75cd7719de08bb338ee973"
34
34
  }
@@ -79,7 +79,7 @@ declare namespace io.flow.tracking.internal.v0.models {
79
79
  readonly 'password': string;
80
80
  readonly 'access_license_number': string;
81
81
  readonly 'account_number': string;
82
- readonly 'direct_feed_location_code': string;
82
+ readonly 'direct_feed_location_code'?: string;
83
83
  }
84
84
  }
85
85
 
@@ -2313,16 +2313,24 @@ declare namespace io.flow.RESERVED_WORD_export.v0.models {
2313
2313
  readonly 'sort'?: string;
2314
2314
  }
2315
2315
 
2316
- interface CsvPriceBookItemExportRow {
2316
+ interface CsvPriceBookItemExportRowByItemNumber {
2317
+ readonly 'item_number': string;
2317
2318
  readonly 'price_book_key': string;
2318
2319
  readonly 'price_book_item_key': string;
2319
- readonly 'item_number': string;
2320
+ readonly 'item_name': string;
2321
+ readonly 'amount': number;
2322
+ readonly 'item_attributes'?: Record<string, string>;
2323
+ readonly 'schedule': io.flow.price.v0.models.PriceBookItemSchedule;
2324
+ }
2325
+
2326
+ interface CsvPriceBookItemExportRowBySku {
2320
2327
  readonly 'sku': string;
2328
+ readonly 'price_book_key': string;
2329
+ readonly 'price_book_item_key': string;
2321
2330
  readonly 'item_name': string;
2322
2331
  readonly 'amount': number;
2323
2332
  readonly 'item_attributes'?: Record<string, string>;
2324
- readonly 'starts_at': string;
2325
- readonly 'ends_at'?: string;
2333
+ readonly 'schedule': io.flow.price.v0.models.PriceBookItemSchedule;
2326
2334
  }
2327
2335
 
2328
2336
  interface ExperienceExportType {
@@ -6255,6 +6263,10 @@ declare namespace io.flow.search.v0.models {
6255
6263
  readonly 'count'?: number;
6256
6264
  }
6257
6265
 
6266
+ interface PriceBookItemExportOptions {
6267
+ readonly 'available_identifiers': io.flow.RESERVED_WORD_export.v0.enums.ItemIdentifier[];
6268
+ }
6269
+
6258
6270
  interface Suggestion {
6259
6271
  readonly 'label': string;
6260
6272
  readonly 'count': number;
@@ -13533,7 +13545,12 @@ declare namespace io.flow.payment.v0.models {
13533
13545
  readonly 'organization': string;
13534
13546
  readonly 'key': string;
13535
13547
  readonly 'identifier': io.flow.payment.v0.models.PaymentProcessorIdentifier;
13536
- readonly 'parent_account'?: io.flow.payment.v0.models.PaymentProcessorAccount;
13548
+ readonly 'parent_account'?: io.flow.payment.v0.models.PaymentProcessorAccountReference;
13549
+ }
13550
+
13551
+ interface PaymentProcessorAccountReference {
13552
+ readonly 'organization': string;
13553
+ readonly 'key': string;
13537
13554
  }
13538
13555
 
13539
13556
  interface PaymentProcessorIdentifier {
@@ -21830,6 +21847,7 @@ declare namespace io.flow.internal.v0.models {
21830
21847
  readonly 'method': string;
21831
21848
  readonly 'customer'?: io.flow.common.v0.models.OrderCustomer;
21832
21849
  readonly 'address'?: io.flow.common.v0.models.Address;
21850
+ readonly 'processor'?: io.flow.payment.v0.models.PaymentProcessor;
21833
21851
  }
21834
21852
 
21835
21853
  interface SearchCustomerSummary {
@@ -22902,7 +22920,7 @@ declare namespace io.flow.internal.v0.models {
22902
22920
  readonly 'password': string;
22903
22921
  readonly 'access_license_number': string;
22904
22922
  readonly 'account_number': string;
22905
- readonly 'direct_feed_location_code': string;
22923
+ readonly 'direct_feed_location_code'?: string;
22906
22924
  }
22907
22925
 
22908
22926
  interface UserDeletedV2 {
@@ -403,16 +403,9 @@ T['io.flow.payment.v0.models.direct_debit'] = PropTypes.exact({
403
403
  last4: PropTypes.string.isRequired,
404
404
  });
405
405
 
406
- T['io.flow.payment.v0.models.payment_processor_identifier'] = PropTypes.exact({
407
- id: PropTypes.string.isRequired,
408
- label: PropTypes.string.isRequired,
409
- });
410
-
411
- T['io.flow.payment.v0.models.payment_processor_account'] = PropTypes.exact({
406
+ T['io.flow.payment.v0.models.payment_processor_account_reference'] = PropTypes.exact({
412
407
  organization: PropTypes.string.isRequired,
413
408
  key: PropTypes.string.isRequired,
414
- identifier: T['io.flow.payment.v0.models.payment_processor_identifier'].isRequired,
415
- parent_account: PropTypes.any,
416
409
  });
417
410
 
418
411
  T['io.flow.payment.v0.enums.payment_error_code'] = PropTypes.oneOf([
@@ -464,24 +457,12 @@ T['io.flow.payment.v0.models.payment_processor_reference'] = PropTypes.exact({
464
457
  processor: PropTypes.string.isRequired,
465
458
  });
466
459
 
467
- T['io.flow.payment.v0.models.payment_processor'] = PropTypes.exact({
468
- discriminator: PropTypes.oneOf(['payment_processor']).isRequired,
469
- processor: PropTypes.string.isRequired,
470
- operation_identifier: T['io.flow.payment.v0.models.payment_processor_identifier'],
471
- account: PropTypes.any,
472
- });
473
-
474
460
  T['io.flow.payment.v0.models.card_reference'] = PropTypes.exact({
475
461
  discriminator: PropTypes.oneOf(['card_reference']).isRequired,
476
462
  id: PropTypes.string.isRequired,
477
463
  token: PropTypes.string.isRequired,
478
464
  });
479
465
 
480
- T['io.flow.payment.v0.unions.expandable_payment_processor'] = PropTypes.oneOfType([
481
- T['io.flow.payment.v0.models.payment_processor'],
482
- T['io.flow.payment.v0.models.payment_processor_reference'],
483
- ]);
484
-
485
466
  T['io.flow.payment.v0.models.issuer_summary'] = PropTypes.exact({
486
467
  iin: PropTypes.string.isRequired,
487
468
  name: PropTypes.string,
@@ -2244,27 +2225,6 @@ T['io.flow.price.v0.enums.price_detail_component_key'] = PropTypes.oneOf([
2244
2225
  'duty_percent_sales_margin',
2245
2226
  ]);
2246
2227
 
2247
- T['io.flow.price.v0.models.price_book_item_schedule'] = PropTypes.exact({
2248
- starts_at: PropTypes.string.isRequired,
2249
- ends_at: PropTypes.string,
2250
- });
2251
-
2252
- T['io.flow.price.v0.models.price_book_item_query_form'] = PropTypes.exact({
2253
- price_book_key: PropTypes.string.isRequired,
2254
- item_query: PropTypes.string.isRequired,
2255
- amount: PropTypes.number.isRequired,
2256
- schedule: T['io.flow.price.v0.models.price_book_item_schedule'],
2257
- item_attributes: PropTypes.objectOf(PropTypes.string),
2258
- });
2259
-
2260
- T['io.flow.price.v0.models.price_book_item_form'] = PropTypes.exact({
2261
- price_book_key: PropTypes.string.isRequired,
2262
- item_number: PropTypes.string.isRequired,
2263
- amount: PropTypes.number.isRequired,
2264
- schedule: T['io.flow.price.v0.models.price_book_item_schedule'],
2265
- item_attributes: PropTypes.objectOf(PropTypes.string),
2266
- });
2267
-
2268
2228
  T['io.flow.common.v0.enums.price_book_status'] = PropTypes.oneOf(['draft', 'published', 'archived']);
2269
2229
 
2270
2230
  T['io.flow.price.v0.models.price_detail_component'] = PropTypes.exact({
@@ -6889,6 +6849,10 @@ T['io.flow.return.v0.models.return_order_reference'] = PropTypes.exact({
6889
6849
 
6890
6850
  T['io.flow.export.v0.enums.item_identifier'] = PropTypes.oneOf(['item_number', 'sku']);
6891
6851
 
6852
+ T['io.flow.search.v0.models.price_book_item_export_options'] = PropTypes.exact({
6853
+ available_identifiers: PropTypes.arrayOf(T['io.flow.export.v0.enums.item_identifier']).isRequired,
6854
+ });
6855
+
6892
6856
  T['io.flow.common.v0.models.included_levies'] = PropTypes.exact({
6893
6857
  key: T['io.flow.common.v0.enums.included_levy_key'].isRequired,
6894
6858
  label: PropTypes.string.isRequired,
@@ -7034,6 +6998,47 @@ T['io.flow.import.v0.models.import'] = PropTypes.exact({
7034
6998
  deliveries: PropTypes.arrayOf(T['io.flow.export.v0.unions.export_delivery']).isRequired,
7035
6999
  });
7036
7000
 
7001
+ T['io.flow.price.v0.models.price_book_item_schedule'] = PropTypes.exact({
7002
+ starts_at: PropTypes.string.isRequired,
7003
+ ends_at: PropTypes.string,
7004
+ });
7005
+
7006
+ T['io.flow.price.v0.models.price_book_item_query_form'] = PropTypes.exact({
7007
+ price_book_key: PropTypes.string.isRequired,
7008
+ item_query: PropTypes.string.isRequired,
7009
+ amount: PropTypes.number.isRequired,
7010
+ schedule: T['io.flow.price.v0.models.price_book_item_schedule'],
7011
+ item_attributes: PropTypes.objectOf(PropTypes.string),
7012
+ });
7013
+
7014
+ T['io.flow.price.v0.models.price_book_item_form'] = PropTypes.exact({
7015
+ price_book_key: PropTypes.string.isRequired,
7016
+ item_number: PropTypes.string.isRequired,
7017
+ amount: PropTypes.number.isRequired,
7018
+ schedule: T['io.flow.price.v0.models.price_book_item_schedule'],
7019
+ item_attributes: PropTypes.objectOf(PropTypes.string),
7020
+ });
7021
+
7022
+ T['io.flow.export.v0.models.csv_price_book_item_export_row_by_sku'] = PropTypes.exact({
7023
+ sku: PropTypes.string.isRequired,
7024
+ price_book_key: PropTypes.string.isRequired,
7025
+ price_book_item_key: PropTypes.string.isRequired,
7026
+ item_name: PropTypes.string.isRequired,
7027
+ amount: PropTypes.number.isRequired,
7028
+ item_attributes: PropTypes.objectOf(PropTypes.string),
7029
+ schedule: T['io.flow.price.v0.models.price_book_item_schedule'].isRequired,
7030
+ });
7031
+
7032
+ T['io.flow.export.v0.models.csv_price_book_item_export_row_by_item_number'] = PropTypes.exact({
7033
+ item_number: PropTypes.string.isRequired,
7034
+ price_book_key: PropTypes.string.isRequired,
7035
+ price_book_item_key: PropTypes.string.isRequired,
7036
+ item_name: PropTypes.string.isRequired,
7037
+ amount: PropTypes.number.isRequired,
7038
+ item_attributes: PropTypes.objectOf(PropTypes.string),
7039
+ schedule: T['io.flow.price.v0.models.price_book_item_schedule'].isRequired,
7040
+ });
7041
+
7037
7042
  T['io.flow.checkout.protocol.v0.models.checkout_get_request_form'] = PropTypes.exact({
7038
7043
  discriminator: PropTypes.oneOf(['checkout_get_request_form']).isRequired,
7039
7044
  checkout_id: PropTypes.string.isRequired,
@@ -9425,7 +9430,7 @@ T['io.flow.internal.v0.models.ups'] = PropTypes.exact({
9425
9430
  password: PropTypes.string.isRequired,
9426
9431
  access_license_number: PropTypes.string.isRequired,
9427
9432
  account_number: PropTypes.string.isRequired,
9428
- direct_feed_location_code: PropTypes.string.isRequired,
9433
+ direct_feed_location_code: PropTypes.string,
9429
9434
  });
9430
9435
 
9431
9436
  T['io.flow.internal.v0.models.fedex_crossborder'] = PropTypes.exact({
@@ -10220,6 +10225,30 @@ T['io.flow.internal.v0.models.search_experience_summary'] = PropTypes.exact({
10220
10225
  status: T['io.flow.experience.v0.enums.experience_status'].isRequired,
10221
10226
  });
10222
10227
 
10228
+ T['io.flow.payment.v0.models.payment_processor_identifier'] = PropTypes.exact({
10229
+ id: PropTypes.string.isRequired,
10230
+ label: PropTypes.string.isRequired,
10231
+ });
10232
+
10233
+ T['io.flow.payment.v0.models.payment_processor_account'] = PropTypes.exact({
10234
+ organization: PropTypes.string.isRequired,
10235
+ key: PropTypes.string.isRequired,
10236
+ identifier: T['io.flow.payment.v0.models.payment_processor_identifier'].isRequired,
10237
+ parent_account: T['io.flow.payment.v0.models.payment_processor_account_reference'],
10238
+ });
10239
+
10240
+ T['io.flow.payment.v0.models.payment_processor'] = PropTypes.exact({
10241
+ discriminator: PropTypes.oneOf(['payment_processor']).isRequired,
10242
+ processor: PropTypes.string.isRequired,
10243
+ operation_identifier: T['io.flow.payment.v0.models.payment_processor_identifier'],
10244
+ account: T['io.flow.payment.v0.models.payment_processor_account'],
10245
+ });
10246
+
10247
+ T['io.flow.payment.v0.unions.expandable_payment_processor'] = PropTypes.oneOfType([
10248
+ T['io.flow.payment.v0.models.payment_processor'],
10249
+ T['io.flow.payment.v0.models.payment_processor_reference'],
10250
+ ]);
10251
+
10223
10252
  T['io.flow.return.v0.models.return_reason'] = PropTypes.exact({
10224
10253
  name: PropTypes.string.isRequired,
10225
10254
  });
@@ -18636,7 +18665,7 @@ T['io.flow.tracking.internal.v0.models.ups'] = PropTypes.exact({
18636
18665
  password: PropTypes.string.isRequired,
18637
18666
  access_license_number: PropTypes.string.isRequired,
18638
18667
  account_number: PropTypes.string.isRequired,
18639
- direct_feed_location_code: PropTypes.string.isRequired,
18668
+ direct_feed_location_code: PropTypes.string,
18640
18669
  });
18641
18670
 
18642
18671
  T['io.flow.tracking.internal.v0.models.fedex_crossborder'] = PropTypes.exact({
@@ -20400,6 +20429,7 @@ T['io.flow.internal.v0.models.search_authorization'] = PropTypes.exact({
20400
20429
  method: PropTypes.string.isRequired,
20401
20430
  customer: T['io.flow.common.v0.models.order_customer'],
20402
20431
  address: T['io.flow.common.v0.models.address'],
20432
+ processor: T['io.flow.payment.v0.models.payment_processor'],
20403
20433
  });
20404
20434
 
20405
20435
  T['io.flow.internal.v0.unions.payment_summary_details'] = PropTypes.oneOfType([T['io.flow.internal.v0.models.search_authorization']]);
@@ -25148,18 +25178,6 @@ T['io.flow.checkout.protocol.v0.models.ping_request_form'] = PropTypes.exact({
25148
25178
  placeholder: PropTypes.string,
25149
25179
  });
25150
25180
 
25151
- T['io.flow.export.v0.models.csv_price_book_item_export_row'] = PropTypes.exact({
25152
- price_book_key: PropTypes.string.isRequired,
25153
- price_book_item_key: PropTypes.string.isRequired,
25154
- item_number: PropTypes.string.isRequired,
25155
- sku: PropTypes.string.isRequired,
25156
- item_name: PropTypes.string.isRequired,
25157
- amount: PropTypes.number.isRequired,
25158
- item_attributes: PropTypes.objectOf(PropTypes.string),
25159
- starts_at: PropTypes.string.isRequired,
25160
- ends_at: PropTypes.string,
25161
- });
25162
-
25163
25181
  T['io.flow.export.v0.models.landed_cost_item'] = PropTypes.exact({
25164
25182
  number: PropTypes.string.isRequired,
25165
25183
  origin: PropTypes.string.isRequired,