@poweredbysous/storefront-all-sdk 4.18.0 → 4.20.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/dist/index.d.cts CHANGED
@@ -598,7 +598,10 @@ interface paths {
598
598
  */
599
599
  get: operations["admin_printing_store_devices"];
600
600
  put?: never;
601
- /** @description Bind a printer in Sunmi for this store and save it (backoffice only). */
601
+ /**
602
+ * @description Bind a printer with its provider for this store and save it
603
+ * (backoffice only).
604
+ */
602
605
  post: operations["admin_printing_add_store_device"];
603
606
  delete?: never;
604
607
  options?: never;
@@ -623,6 +626,84 @@ interface paths {
623
626
  patch: operations["admin_printing_update_store_device"];
624
627
  trace?: never;
625
628
  };
629
+ "/api/v1/admin/printing/stores/{store_public_id}/devices/{device_id}/regenerate-secret/": {
630
+ parameters: {
631
+ query?: never;
632
+ header?: never;
633
+ path?: never;
634
+ cookie?: never;
635
+ };
636
+ get?: never;
637
+ put?: never;
638
+ /** @description A new polling URL for an Epson printer; the old one stops at once. */
639
+ post: operations["admin_printing_regenerate_store_device_url"];
640
+ delete?: never;
641
+ options?: never;
642
+ head?: never;
643
+ patch?: never;
644
+ trace?: never;
645
+ };
646
+ "/api/v1/admin/printing/stores/{store_public_id}/devices/{device_id}/remove/": {
647
+ parameters: {
648
+ query?: never;
649
+ header?: never;
650
+ path?: never;
651
+ cookie?: never;
652
+ };
653
+ get?: never;
654
+ put?: never;
655
+ /** @description Remove a printer for good: it stops printing, its history stays. */
656
+ post: operations["admin_printing_remove_store_device"];
657
+ delete?: never;
658
+ options?: never;
659
+ head?: never;
660
+ patch?: never;
661
+ trace?: never;
662
+ };
663
+ "/api/v1/admin/printing/stores/{store_public_id}/devices/{device_id}/setup/": {
664
+ parameters: {
665
+ query?: never;
666
+ header?: never;
667
+ path?: never;
668
+ cookie?: never;
669
+ };
670
+ /**
671
+ * @description An Epson printer's Web Config values, and whether it has polled yet.
672
+ *
673
+ * The portal's setup card polls this while it is open: ``last_seen_at``
674
+ * turns "Waiting for the printer" into "Connected". 404 for a Sunmi printer:
675
+ * it has nothing to set up.
676
+ */
677
+ get: operations["admin_printing_store_device_setup"];
678
+ put?: never;
679
+ post?: never;
680
+ delete?: never;
681
+ options?: never;
682
+ head?: never;
683
+ patch?: never;
684
+ trace?: never;
685
+ };
686
+ "/api/v1/admin/printing/stores/{store_public_id}/devices/{device_id}/test-print/": {
687
+ parameters: {
688
+ query?: never;
689
+ header?: never;
690
+ path?: never;
691
+ cookie?: never;
692
+ };
693
+ get?: never;
694
+ put?: never;
695
+ /**
696
+ * @description Print one Test print slip, with no order, on this printer.
697
+ *
698
+ * 202 with the job; a repeated ``request_id`` returns the first job.
699
+ */
700
+ post: operations["admin_printing_test_print_store_device"];
701
+ delete?: never;
702
+ options?: never;
703
+ head?: never;
704
+ patch?: never;
705
+ trace?: never;
706
+ };
626
707
  "/api/v1/admin/products/": {
627
708
  parameters: {
628
709
  query?: never;
@@ -8605,6 +8686,10 @@ interface components {
8605
8686
  * @description Storefront CustomerProfile.id of the logged-in customer, so the order can attribute Zeemijlen. Omitted for guest checkouts.
8606
8687
  */
8607
8688
  customer_profile_id?: string | null;
8689
+ /** @description PostHog distinct_id. Dropped unless `attribution.consent` is `granted`. Stored on the checkout for the server PostHog capture; never forwarded to the order. */
8690
+ posthog_distinct_id?: string;
8691
+ /** @description PostHog $session_id. Dropped unless `attribution.consent` is `granted`. Stored on the checkout for the server PostHog capture; never forwarded to the order. */
8692
+ posthog_session_id?: string;
8608
8693
  };
8609
8694
  CreateEdit: {
8610
8695
  /** @default */
@@ -9073,6 +9158,25 @@ interface components {
9073
9158
  eligible_promotions: components["schemas"]["EligiblePromotionItem"][];
9074
9159
  best_promotion_id: number | null;
9075
9160
  };
9161
+ /** @description What to type into an Epson printer's Web Config (Server Direct Print). */
9162
+ EpsonSetup: {
9163
+ provider: components["schemas"]["ProviderEnum"];
9164
+ /** @description Web Config "ID": the serial from the printer's label. */
9165
+ printer_id: string;
9166
+ /** @description Web Config "URL". Secret: whoever has it can read the store's slips. */
9167
+ poll_url: string;
9168
+ /** @description Web Config "Interval". */
9169
+ interval_seconds: number;
9170
+ /** @description Web Config "Server Authentication": true Enable, false Disable. */
9171
+ server_authentication: boolean;
9172
+ /**
9173
+ * Format: date-time
9174
+ * @description The printer's last poll. Null: it has not polled this URL yet ("Waiting for the printer").
9175
+ */
9176
+ last_seen_at: string | null;
9177
+ /** @description Polled within three polling intervals, as the printer list's `online`. False after a first poll: it has stopped polling. */
9178
+ online: boolean;
9179
+ };
9076
9180
  EventBatch: {
9077
9181
  events: components["schemas"]["EventInput"][];
9078
9182
  };
@@ -9658,7 +9762,7 @@ interface components {
9658
9762
  party_sizes: {
9659
9763
  [key: string]: number;
9660
9764
  };
9661
- /** @description Date (YYYY-MM-DD) to how many matching products can be delivered that day. The `date` parameter never narrows these counts. */
9765
+ /** @description Date (YYYY-MM-DD) to how many matching products can be delivered that day. Counted without the `date` parameter; every other facet is counted with it. */
9662
9766
  servable_dates: {
9663
9767
  [key: string]: number;
9664
9768
  };
@@ -9962,6 +10066,12 @@ interface components {
9962
10066
  token: string;
9963
10067
  user: components["schemas"]["UserMe"];
9964
10068
  };
10069
+ /**
10070
+ * @description * `menubox` - menubox
10071
+ * * `shop` - shop
10072
+ * @enum {string}
10073
+ */
10074
+ OfferingEnum: "menubox" | "shop";
9965
10075
  /** @description Render-ready open/closed badge — see ``availability.get_open_status``. */
9966
10076
  OpenStatus: {
9967
10077
  open: boolean;
@@ -11106,6 +11216,7 @@ interface components {
11106
11216
  analytics?: unknown;
11107
11217
  labels?: unknown;
11108
11218
  frame_ancestors?: unknown;
11219
+ setup?: unknown;
11109
11220
  multi_store?: boolean;
11110
11221
  brand_slug?: string;
11111
11222
  default_store?: string;
@@ -11179,6 +11290,7 @@ interface components {
11179
11290
  PriceSyncModeEnum: "report" | "write";
11180
11291
  PrintDevice: {
11181
11292
  id: number;
11293
+ provider: components["schemas"]["ProviderEnum"];
11182
11294
  name: string;
11183
11295
  /** @description The printer's serial number (Sunmi: the MSN on its label). */
11184
11296
  device_identifier: string;
@@ -11193,16 +11305,24 @@ interface components {
11193
11305
  alert_state: components["schemas"]["AlertStateEnum"];
11194
11306
  /** Format: date-time */
11195
11307
  last_seen_at: string | null;
11196
- /** @description The last online check run by Sous staff: true online, false offline, null never checked. Not live. */
11308
+ /** @description Sunmi: the last online check run by Sous staff, true online, false offline, null never checked; not live. Epson: live, true when the printer polled within three polling intervals. */
11197
11309
  online: boolean | null;
11198
11310
  /**
11199
11311
  * Format: date-time
11200
- * @description When that check ran.
11312
+ * @description When the staff check ran. An Epson printer's live state comes from `last_seen_at` instead.
11201
11313
  */
11202
11314
  online_checked_at: string | null;
11203
11315
  };
11204
11316
  /** @description A backoffice user adds a printer to the store in the URL. */
11205
11317
  PrintDeviceCreateRequest: {
11318
+ /**
11319
+ * @description The printer's make. Sunmi is bound with Sunmi; an Epson printer gets its own polling URL (see the device's setup).
11320
+ *
11321
+ * * `sunmi` - Sunmi
11322
+ * * `epson` - Epson
11323
+ * @default sunmi
11324
+ */
11325
+ provider: components["schemas"]["ProviderEnum"];
11206
11326
  /** @description Serial from the printer's label, e.g. N439259A11700. */
11207
11327
  device_identifier: string;
11208
11328
  /** @description e.g. "Kitchen" */
@@ -11549,6 +11669,7 @@ interface components {
11549
11669
  /** Format: int64 */
11550
11670
  store_id: number;
11551
11671
  readonly product_type: components["schemas"]["ProductType"];
11672
+ readonly offering: (components["schemas"]["OfferingEnum"] | components["schemas"]["NullEnum"]) | null;
11552
11673
  /** Format: decimal */
11553
11674
  price: string;
11554
11675
  /** Format: decimal */
@@ -11794,6 +11915,49 @@ interface components {
11794
11915
  * @enum {string}
11795
11916
  */
11796
11917
  PromotionTypeEnum: "buy_x_get_y" | "bogo";
11918
+ /**
11919
+ * @description * `sunmi` - Sunmi
11920
+ * * `epson` - Epson
11921
+ * @enum {string}
11922
+ */
11923
+ ProviderEnum: "sunmi" | "epson";
11924
+ /** @description The onboarding block the storefront reads: no portal-only ``setup``. */
11925
+ PublicStoreOnboarding: {
11926
+ slug: string;
11927
+ name?: string;
11928
+ tagline?: string;
11929
+ description?: string;
11930
+ logo_text?: string;
11931
+ theme?: unknown;
11932
+ layout?: string;
11933
+ languages?: unknown;
11934
+ default_language?: string;
11935
+ currency?: string;
11936
+ country?: string;
11937
+ timezone?: string;
11938
+ contact?: unknown;
11939
+ hours?: unknown;
11940
+ social?: unknown;
11941
+ seo?: unknown;
11942
+ fulfilment?: unknown;
11943
+ cuisine?: string;
11944
+ price_range?: string;
11945
+ product_placeholder?: string;
11946
+ analytics?: unknown;
11947
+ labels?: unknown;
11948
+ frame_ancestors?: unknown;
11949
+ multi_store?: boolean;
11950
+ brand_slug?: string;
11951
+ default_store?: string;
11952
+ readonly status: components["schemas"]["StoreOnboardingStatusEnum"];
11953
+ /** Format: date-time */
11954
+ readonly published_at: string | null;
11955
+ /** Format: date-time */
11956
+ readonly updated_at: string;
11957
+ readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
11958
+ readonly uber_direct_supported_countries: string[];
11959
+ readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
11960
+ };
11797
11961
  /** @description Serializer for the purchased gift card detail view. */
11798
11962
  PurchasedGiftCardDetail: {
11799
11963
  readonly id: number;
@@ -12342,7 +12506,7 @@ interface components {
12342
12506
  [key: string]: unknown;
12343
12507
  } | null;
12344
12508
  readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
12345
- readonly onboarding: components["schemas"]["StoreOnboarding"] | null;
12509
+ readonly onboarding: components["schemas"]["PublicStoreOnboarding"] | null;
12346
12510
  /**
12347
12511
  * @description False while the merchant has temporarily paused new orders.
12348
12512
  *
@@ -12384,6 +12548,8 @@ interface components {
12384
12548
  StoreDeliveryMethodStates: {
12385
12549
  store_public_id: string;
12386
12550
  methods: components["schemas"]["DeliveryMethodState"][];
12551
+ /** @description Method ids (as in ``method``) the merchant chose in the unpublished onboarding draft that the company has no availability record for yet. Nothing is enabled until publish; a screen shows these as pending, not as on or off. */
12552
+ pending_methods: string[];
12387
12553
  };
12388
12554
  StoreMeAddress: {
12389
12555
  address_1: string;
@@ -12434,6 +12600,7 @@ interface components {
12434
12600
  analytics?: unknown;
12435
12601
  labels?: unknown;
12436
12602
  frame_ancestors?: unknown;
12603
+ setup?: unknown;
12437
12604
  multi_store?: boolean;
12438
12605
  brand_slug?: string;
12439
12606
  default_store?: string;
@@ -12482,6 +12649,7 @@ interface components {
12482
12649
  analytics?: unknown;
12483
12650
  labels?: unknown;
12484
12651
  frame_ancestors?: unknown;
12652
+ setup?: unknown;
12485
12653
  multi_store?: boolean;
12486
12654
  brand_slug?: string;
12487
12655
  default_store?: string;
@@ -12617,6 +12785,14 @@ interface components {
12617
12785
  /** Format: date-time */
12618
12786
  updated_at: string;
12619
12787
  };
12788
+ /** @description ``request_id`` is generated per click: a retry prints nothing new. */
12789
+ TestPrintRequest: {
12790
+ /** Format: uuid */
12791
+ request_id: string;
12792
+ };
12793
+ TestPrintResponse: {
12794
+ job: components["schemas"]["PrintJob"];
12795
+ };
12620
12796
  /**
12621
12797
  * @description * `info` - Info
12622
12798
  * * `success` - Success
@@ -12676,11 +12852,12 @@ interface components {
12676
12852
  readonly created_at: string;
12677
12853
  };
12678
12854
  /**
12679
- * @description * `auto` - auto
12680
- * * `manual` - manual
12855
+ * @description * `auto` - Automatic (order arrived)
12856
+ * * `manual` - Manual (merchant portal)
12857
+ * * `test` - Test print (merchant portal)
12681
12858
  * @enum {string}
12682
12859
  */
12683
- TriggerEnum: "auto" | "manual";
12860
+ TriggerEnum: "auto" | "manual" | "test";
12684
12861
  /**
12685
12862
  * @description * `authorization_request` - Authorization Request
12686
12863
  * * `authorization_success` - Authorization Success
@@ -15824,6 +16001,354 @@ interface operations {
15824
16001
  };
15825
16002
  };
15826
16003
  };
16004
+ admin_printing_regenerate_store_device_url: {
16005
+ parameters: {
16006
+ query?: never;
16007
+ header?: {
16008
+ /** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
16009
+ "X-Sous-Company-Id"?: number;
16010
+ };
16011
+ path: {
16012
+ device_id: number;
16013
+ store_public_id: string;
16014
+ };
16015
+ cookie?: never;
16016
+ };
16017
+ requestBody?: never;
16018
+ responses: {
16019
+ 200: {
16020
+ headers: {
16021
+ [name: string]: unknown;
16022
+ };
16023
+ content: {
16024
+ "application/json": components["schemas"]["EpsonSetup"];
16025
+ };
16026
+ };
16027
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
16028
+ 400: {
16029
+ headers: {
16030
+ [name: string]: unknown;
16031
+ };
16032
+ content: {
16033
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16034
+ };
16035
+ };
16036
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
16037
+ 401: {
16038
+ headers: {
16039
+ [name: string]: unknown;
16040
+ };
16041
+ content: {
16042
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16043
+ };
16044
+ };
16045
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
16046
+ 403: {
16047
+ headers: {
16048
+ [name: string]: unknown;
16049
+ };
16050
+ content: {
16051
+ "application/json": {
16052
+ [key: string]: unknown;
16053
+ };
16054
+ };
16055
+ };
16056
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
16057
+ 404: {
16058
+ headers: {
16059
+ [name: string]: unknown;
16060
+ };
16061
+ content: {
16062
+ "application/json": {
16063
+ [key: string]: unknown;
16064
+ };
16065
+ };
16066
+ };
16067
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
16068
+ 429: {
16069
+ headers: {
16070
+ [name: string]: unknown;
16071
+ };
16072
+ content: {
16073
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16074
+ };
16075
+ };
16076
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
16077
+ 500: {
16078
+ headers: {
16079
+ [name: string]: unknown;
16080
+ };
16081
+ content: {
16082
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16083
+ };
16084
+ };
16085
+ 503: {
16086
+ headers: {
16087
+ [name: string]: unknown;
16088
+ };
16089
+ content: {
16090
+ "application/json": {
16091
+ [key: string]: unknown;
16092
+ };
16093
+ };
16094
+ };
16095
+ };
16096
+ };
16097
+ admin_printing_remove_store_device: {
16098
+ parameters: {
16099
+ query?: never;
16100
+ header?: {
16101
+ /** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
16102
+ "X-Sous-Company-Id"?: number;
16103
+ };
16104
+ path: {
16105
+ device_id: number;
16106
+ store_public_id: string;
16107
+ };
16108
+ cookie?: never;
16109
+ };
16110
+ requestBody?: never;
16111
+ responses: {
16112
+ 200: {
16113
+ headers: {
16114
+ [name: string]: unknown;
16115
+ };
16116
+ content: {
16117
+ "application/json": components["schemas"]["PrintDevice"];
16118
+ };
16119
+ };
16120
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
16121
+ 400: {
16122
+ headers: {
16123
+ [name: string]: unknown;
16124
+ };
16125
+ content: {
16126
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16127
+ };
16128
+ };
16129
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
16130
+ 401: {
16131
+ headers: {
16132
+ [name: string]: unknown;
16133
+ };
16134
+ content: {
16135
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16136
+ };
16137
+ };
16138
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
16139
+ 403: {
16140
+ headers: {
16141
+ [name: string]: unknown;
16142
+ };
16143
+ content: {
16144
+ "application/json": {
16145
+ [key: string]: unknown;
16146
+ };
16147
+ };
16148
+ };
16149
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
16150
+ 404: {
16151
+ headers: {
16152
+ [name: string]: unknown;
16153
+ };
16154
+ content: {
16155
+ "application/json": {
16156
+ [key: string]: unknown;
16157
+ };
16158
+ };
16159
+ };
16160
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
16161
+ 429: {
16162
+ headers: {
16163
+ [name: string]: unknown;
16164
+ };
16165
+ content: {
16166
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16167
+ };
16168
+ };
16169
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
16170
+ 500: {
16171
+ headers: {
16172
+ [name: string]: unknown;
16173
+ };
16174
+ content: {
16175
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16176
+ };
16177
+ };
16178
+ };
16179
+ };
16180
+ admin_printing_store_device_setup: {
16181
+ parameters: {
16182
+ query?: never;
16183
+ header?: {
16184
+ /** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
16185
+ "X-Sous-Company-Id"?: number;
16186
+ };
16187
+ path: {
16188
+ device_id: number;
16189
+ store_public_id: string;
16190
+ };
16191
+ cookie?: never;
16192
+ };
16193
+ requestBody?: never;
16194
+ responses: {
16195
+ 200: {
16196
+ headers: {
16197
+ [name: string]: unknown;
16198
+ };
16199
+ content: {
16200
+ "application/json": components["schemas"]["EpsonSetup"];
16201
+ };
16202
+ };
16203
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
16204
+ 400: {
16205
+ headers: {
16206
+ [name: string]: unknown;
16207
+ };
16208
+ content: {
16209
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16210
+ };
16211
+ };
16212
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
16213
+ 401: {
16214
+ headers: {
16215
+ [name: string]: unknown;
16216
+ };
16217
+ content: {
16218
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16219
+ };
16220
+ };
16221
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
16222
+ 403: {
16223
+ headers: {
16224
+ [name: string]: unknown;
16225
+ };
16226
+ content: {
16227
+ "application/json": {
16228
+ [key: string]: unknown;
16229
+ };
16230
+ };
16231
+ };
16232
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
16233
+ 404: {
16234
+ headers: {
16235
+ [name: string]: unknown;
16236
+ };
16237
+ content: {
16238
+ "application/json": {
16239
+ [key: string]: unknown;
16240
+ };
16241
+ };
16242
+ };
16243
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
16244
+ 429: {
16245
+ headers: {
16246
+ [name: string]: unknown;
16247
+ };
16248
+ content: {
16249
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16250
+ };
16251
+ };
16252
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
16253
+ 500: {
16254
+ headers: {
16255
+ [name: string]: unknown;
16256
+ };
16257
+ content: {
16258
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16259
+ };
16260
+ };
16261
+ };
16262
+ };
16263
+ admin_printing_test_print_store_device: {
16264
+ parameters: {
16265
+ query?: never;
16266
+ header?: {
16267
+ /** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
16268
+ "X-Sous-Company-Id"?: number;
16269
+ };
16270
+ path: {
16271
+ device_id: number;
16272
+ store_public_id: string;
16273
+ };
16274
+ cookie?: never;
16275
+ };
16276
+ requestBody: {
16277
+ content: {
16278
+ "application/json": components["schemas"]["TestPrintRequest"];
16279
+ "application/x-www-form-urlencoded": components["schemas"]["TestPrintRequest"];
16280
+ "multipart/form-data": components["schemas"]["TestPrintRequest"];
16281
+ };
16282
+ };
16283
+ responses: {
16284
+ 202: {
16285
+ headers: {
16286
+ [name: string]: unknown;
16287
+ };
16288
+ content: {
16289
+ "application/json": components["schemas"]["TestPrintResponse"];
16290
+ };
16291
+ };
16292
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
16293
+ 400: {
16294
+ headers: {
16295
+ [name: string]: unknown;
16296
+ };
16297
+ content: {
16298
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16299
+ };
16300
+ };
16301
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
16302
+ 401: {
16303
+ headers: {
16304
+ [name: string]: unknown;
16305
+ };
16306
+ content: {
16307
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16308
+ };
16309
+ };
16310
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
16311
+ 403: {
16312
+ headers: {
16313
+ [name: string]: unknown;
16314
+ };
16315
+ content: {
16316
+ "application/json": {
16317
+ [key: string]: unknown;
16318
+ };
16319
+ };
16320
+ };
16321
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
16322
+ 404: {
16323
+ headers: {
16324
+ [name: string]: unknown;
16325
+ };
16326
+ content: {
16327
+ "application/json": {
16328
+ [key: string]: unknown;
16329
+ };
16330
+ };
16331
+ };
16332
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
16333
+ 429: {
16334
+ headers: {
16335
+ [name: string]: unknown;
16336
+ };
16337
+ content: {
16338
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16339
+ };
16340
+ };
16341
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
16342
+ 500: {
16343
+ headers: {
16344
+ [name: string]: unknown;
16345
+ };
16346
+ content: {
16347
+ "application/json": components["schemas"]["APIErrorEnvelope"];
16348
+ };
16349
+ };
16350
+ };
16351
+ };
15827
16352
  admin_products_list: {
15828
16353
  parameters: {
15829
16354
  query?: {
@@ -29273,7 +29798,7 @@ interface operations {
29273
29798
  /** @description Only products created within this many days. */
29274
29799
  created_within_days?: number;
29275
29800
  cuisine_tags?: string[];
29276
- /** @description The delivery date the reader has chosen (YYYY-MM-DD). A hint, not a filter: products that cannot be delivered that day are still listed and counted, and each result's `servable_dates` says whether it can. Add-to-cart is the authority. */
29801
+ /** @description The delivery date the reader has chosen (YYYY-MM-DD). Only products that can be delivered that day are listed and counted. `facets.servable_dates` is still counted without it, so a calendar can offer the other days. Add-to-cart is the authority. */
29277
29802
  date?: string;
29278
29803
  fulfillment_types?: ("delivery" | "pickup" | "dinein")[];
29279
29804
  /** @description Menu type slugs, for example `vegan` or `meat-fish`. */
@@ -29481,7 +30006,7 @@ interface operations {
29481
30006
  /** @description Only products created within this many days. */
29482
30007
  created_within_days?: number;
29483
30008
  cuisine_tags?: string[];
29484
- /** @description The delivery date the reader has chosen (YYYY-MM-DD). A hint, not a filter: products that cannot be delivered that day are still listed and counted, and each result's `servable_dates` says whether it can. Add-to-cart is the authority. */
30009
+ /** @description The delivery date the reader has chosen (YYYY-MM-DD). Only products that can be delivered that day are listed and counted. `facets.servable_dates` is still counted without it, so a calendar can offer the other days. Add-to-cart is the authority. */
29485
30010
  date?: string;
29486
30011
  fulfillment_types?: ("delivery" | "pickup" | "dinein")[];
29487
30012
  /** @description Menu type slugs, for example `vegan` or `meat-fish`. */