@flowio/api-internal-prop-types 9.4.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.4.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": "8b4a9585c061f8fe0336c6128174b5cdd34a710f"
33
+ "gitHead": "b074b7431789c52c4c75cd7719de08bb338ee973"
34
34
  }
@@ -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 {
@@ -403,6 +403,11 @@ 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_account_reference'] = PropTypes.exact({
407
+ organization: PropTypes.string.isRequired,
408
+ key: PropTypes.string.isRequired,
409
+ });
410
+
406
411
  T['io.flow.payment.v0.enums.payment_error_code'] = PropTypes.oneOf([
407
412
  'duplicate',
408
413
  'invalid_amount',
@@ -2220,27 +2225,6 @@ T['io.flow.price.v0.enums.price_detail_component_key'] = PropTypes.oneOf([
2220
2225
  'duty_percent_sales_margin',
2221
2226
  ]);
2222
2227
 
2223
- T['io.flow.price.v0.models.price_book_item_schedule'] = PropTypes.exact({
2224
- starts_at: PropTypes.string.isRequired,
2225
- ends_at: PropTypes.string,
2226
- });
2227
-
2228
- T['io.flow.price.v0.models.price_book_item_query_form'] = PropTypes.exact({
2229
- price_book_key: PropTypes.string.isRequired,
2230
- item_query: PropTypes.string.isRequired,
2231
- amount: PropTypes.number.isRequired,
2232
- schedule: T['io.flow.price.v0.models.price_book_item_schedule'],
2233
- item_attributes: PropTypes.objectOf(PropTypes.string),
2234
- });
2235
-
2236
- T['io.flow.price.v0.models.price_book_item_form'] = PropTypes.exact({
2237
- price_book_key: PropTypes.string.isRequired,
2238
- item_number: PropTypes.string.isRequired,
2239
- amount: PropTypes.number.isRequired,
2240
- schedule: T['io.flow.price.v0.models.price_book_item_schedule'],
2241
- item_attributes: PropTypes.objectOf(PropTypes.string),
2242
- });
2243
-
2244
2228
  T['io.flow.common.v0.enums.price_book_status'] = PropTypes.oneOf(['draft', 'published', 'archived']);
2245
2229
 
2246
2230
  T['io.flow.price.v0.models.price_detail_component'] = PropTypes.exact({
@@ -6865,6 +6849,10 @@ T['io.flow.return.v0.models.return_order_reference'] = PropTypes.exact({
6865
6849
 
6866
6850
  T['io.flow.export.v0.enums.item_identifier'] = PropTypes.oneOf(['item_number', 'sku']);
6867
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
+
6868
6856
  T['io.flow.common.v0.models.included_levies'] = PropTypes.exact({
6869
6857
  key: T['io.flow.common.v0.enums.included_levy_key'].isRequired,
6870
6858
  label: PropTypes.string.isRequired,
@@ -7010,6 +6998,47 @@ T['io.flow.import.v0.models.import'] = PropTypes.exact({
7010
6998
  deliveries: PropTypes.arrayOf(T['io.flow.export.v0.unions.export_delivery']).isRequired,
7011
6999
  });
7012
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
+
7013
7042
  T['io.flow.checkout.protocol.v0.models.checkout_get_request_form'] = PropTypes.exact({
7014
7043
  discriminator: PropTypes.oneOf(['checkout_get_request_form']).isRequired,
7015
7044
  checkout_id: PropTypes.string.isRequired,
@@ -10205,14 +10234,14 @@ T['io.flow.payment.v0.models.payment_processor_account'] = PropTypes.exact({
10205
10234
  organization: PropTypes.string.isRequired,
10206
10235
  key: PropTypes.string.isRequired,
10207
10236
  identifier: T['io.flow.payment.v0.models.payment_processor_identifier'].isRequired,
10208
- parent_account: PropTypes.any,
10237
+ parent_account: T['io.flow.payment.v0.models.payment_processor_account_reference'],
10209
10238
  });
10210
10239
 
10211
10240
  T['io.flow.payment.v0.models.payment_processor'] = PropTypes.exact({
10212
10241
  discriminator: PropTypes.oneOf(['payment_processor']).isRequired,
10213
10242
  processor: PropTypes.string.isRequired,
10214
10243
  operation_identifier: T['io.flow.payment.v0.models.payment_processor_identifier'],
10215
- account: PropTypes.any,
10244
+ account: T['io.flow.payment.v0.models.payment_processor_account'],
10216
10245
  });
10217
10246
 
10218
10247
  T['io.flow.payment.v0.unions.expandable_payment_processor'] = PropTypes.oneOfType([
@@ -25149,18 +25178,6 @@ T['io.flow.checkout.protocol.v0.models.ping_request_form'] = PropTypes.exact({
25149
25178
  placeholder: PropTypes.string,
25150
25179
  });
25151
25180
 
25152
- T['io.flow.export.v0.models.csv_price_book_item_export_row'] = PropTypes.exact({
25153
- price_book_key: PropTypes.string.isRequired,
25154
- price_book_item_key: PropTypes.string.isRequired,
25155
- item_number: PropTypes.string.isRequired,
25156
- sku: PropTypes.string.isRequired,
25157
- item_name: PropTypes.string.isRequired,
25158
- amount: PropTypes.number.isRequired,
25159
- item_attributes: PropTypes.objectOf(PropTypes.string),
25160
- starts_at: PropTypes.string.isRequired,
25161
- ends_at: PropTypes.string,
25162
- });
25163
-
25164
25181
  T['io.flow.export.v0.models.landed_cost_item'] = PropTypes.exact({
25165
25182
  number: PropTypes.string.isRequired,
25166
25183
  origin: PropTypes.string.isRequired,