@poweredbysous/storefront-all-sdk 4.8.0 → 4.9.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 +329 -0
- package/dist/index.d.ts +329 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -520,6 +520,63 @@ interface paths {
|
|
|
520
520
|
patch?: never;
|
|
521
521
|
trace?: never;
|
|
522
522
|
};
|
|
523
|
+
"/api/v1/admin/printing/jobs/": {
|
|
524
|
+
parameters: {
|
|
525
|
+
query?: never;
|
|
526
|
+
header?: never;
|
|
527
|
+
path?: never;
|
|
528
|
+
cookie?: never;
|
|
529
|
+
};
|
|
530
|
+
/** @description The latest print job per printer for an order: did it print? */
|
|
531
|
+
get: operations["admin_printing_order_jobs"];
|
|
532
|
+
put?: never;
|
|
533
|
+
post?: never;
|
|
534
|
+
delete?: never;
|
|
535
|
+
options?: never;
|
|
536
|
+
head?: never;
|
|
537
|
+
patch?: never;
|
|
538
|
+
trace?: never;
|
|
539
|
+
};
|
|
540
|
+
"/api/v1/admin/printing/print-order/": {
|
|
541
|
+
parameters: {
|
|
542
|
+
query?: never;
|
|
543
|
+
header?: never;
|
|
544
|
+
path?: never;
|
|
545
|
+
cookie?: never;
|
|
546
|
+
};
|
|
547
|
+
get?: never;
|
|
548
|
+
put?: never;
|
|
549
|
+
/**
|
|
550
|
+
* @description Print an order again on the store's cloud printers.
|
|
551
|
+
*
|
|
552
|
+
* 202 with the jobs created (or, for a repeated ``request_id``, the jobs the
|
|
553
|
+
* first request created). 409 when the store has no enabled printer for the
|
|
554
|
+
* order's kitchen, so the portal can fall back to printing locally.
|
|
555
|
+
*/
|
|
556
|
+
post: operations["admin_printing_print_order"];
|
|
557
|
+
delete?: never;
|
|
558
|
+
options?: never;
|
|
559
|
+
head?: never;
|
|
560
|
+
patch?: never;
|
|
561
|
+
trace?: never;
|
|
562
|
+
};
|
|
563
|
+
"/api/v1/admin/printing/stores/{store_public_id}/devices/": {
|
|
564
|
+
parameters: {
|
|
565
|
+
query?: never;
|
|
566
|
+
header?: never;
|
|
567
|
+
path?: never;
|
|
568
|
+
cookie?: never;
|
|
569
|
+
};
|
|
570
|
+
/** @description The store's enabled cloud printers. An empty list: no cloud printing. */
|
|
571
|
+
get: operations["admin_printing_store_devices"];
|
|
572
|
+
put?: never;
|
|
573
|
+
post?: never;
|
|
574
|
+
delete?: never;
|
|
575
|
+
options?: never;
|
|
576
|
+
head?: never;
|
|
577
|
+
patch?: never;
|
|
578
|
+
trace?: never;
|
|
579
|
+
};
|
|
523
580
|
"/api/v1/admin/products/": {
|
|
524
581
|
parameters: {
|
|
525
582
|
query?: never;
|
|
@@ -9003,6 +9060,23 @@ interface components {
|
|
|
9003
9060
|
/** Format: date-time */
|
|
9004
9061
|
readonly updated_at: string;
|
|
9005
9062
|
};
|
|
9063
|
+
/**
|
|
9064
|
+
* @description A merchant pressed Print on an order in the merchant portal.
|
|
9065
|
+
*
|
|
9066
|
+
* ``order_id`` is the storefront Order PK and ``store_id`` the storefront
|
|
9067
|
+
* ``Store.id``, as merchant-portal-backend records them on its order
|
|
9068
|
+
* (``external_id``, ``metadata.store_id``). The store must be the merchant's
|
|
9069
|
+
* and must own the order. ``request_id`` is generated per click: a retry
|
|
9070
|
+
* with the same id prints nothing new. Who asked is read from the login
|
|
9071
|
+
* token, not from the body.
|
|
9072
|
+
*/
|
|
9073
|
+
MerchantPrintOrderRequest: {
|
|
9074
|
+
/** Format: uuid */
|
|
9075
|
+
order_id: string;
|
|
9076
|
+
store_id: number;
|
|
9077
|
+
/** Format: uuid */
|
|
9078
|
+
request_id: string;
|
|
9079
|
+
};
|
|
9006
9080
|
/**
|
|
9007
9081
|
* @description The merchant pastes the restaurant id Mergeport gave them.
|
|
9008
9082
|
*
|
|
@@ -14217,6 +14291,261 @@ interface operations {
|
|
|
14217
14291
|
};
|
|
14218
14292
|
};
|
|
14219
14293
|
};
|
|
14294
|
+
admin_printing_order_jobs: {
|
|
14295
|
+
parameters: {
|
|
14296
|
+
query: {
|
|
14297
|
+
order_id: string;
|
|
14298
|
+
store_id: number;
|
|
14299
|
+
};
|
|
14300
|
+
header?: {
|
|
14301
|
+
/** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
|
|
14302
|
+
"X-Sous-Company-Id"?: number;
|
|
14303
|
+
};
|
|
14304
|
+
path?: never;
|
|
14305
|
+
cookie?: never;
|
|
14306
|
+
};
|
|
14307
|
+
requestBody?: never;
|
|
14308
|
+
responses: {
|
|
14309
|
+
200: {
|
|
14310
|
+
headers: {
|
|
14311
|
+
[name: string]: unknown;
|
|
14312
|
+
};
|
|
14313
|
+
content: {
|
|
14314
|
+
"application/json": components["schemas"]["PrintJobsResponse"];
|
|
14315
|
+
};
|
|
14316
|
+
};
|
|
14317
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14318
|
+
400: {
|
|
14319
|
+
headers: {
|
|
14320
|
+
[name: string]: unknown;
|
|
14321
|
+
};
|
|
14322
|
+
content: {
|
|
14323
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14324
|
+
};
|
|
14325
|
+
};
|
|
14326
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14327
|
+
401: {
|
|
14328
|
+
headers: {
|
|
14329
|
+
[name: string]: unknown;
|
|
14330
|
+
};
|
|
14331
|
+
content: {
|
|
14332
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14333
|
+
};
|
|
14334
|
+
};
|
|
14335
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14336
|
+
403: {
|
|
14337
|
+
headers: {
|
|
14338
|
+
[name: string]: unknown;
|
|
14339
|
+
};
|
|
14340
|
+
content: {
|
|
14341
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14342
|
+
};
|
|
14343
|
+
};
|
|
14344
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14345
|
+
404: {
|
|
14346
|
+
headers: {
|
|
14347
|
+
[name: string]: unknown;
|
|
14348
|
+
};
|
|
14349
|
+
content: {
|
|
14350
|
+
"application/json": {
|
|
14351
|
+
[key: string]: unknown;
|
|
14352
|
+
};
|
|
14353
|
+
};
|
|
14354
|
+
};
|
|
14355
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14356
|
+
429: {
|
|
14357
|
+
headers: {
|
|
14358
|
+
[name: string]: unknown;
|
|
14359
|
+
};
|
|
14360
|
+
content: {
|
|
14361
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14362
|
+
};
|
|
14363
|
+
};
|
|
14364
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14365
|
+
500: {
|
|
14366
|
+
headers: {
|
|
14367
|
+
[name: string]: unknown;
|
|
14368
|
+
};
|
|
14369
|
+
content: {
|
|
14370
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14371
|
+
};
|
|
14372
|
+
};
|
|
14373
|
+
};
|
|
14374
|
+
};
|
|
14375
|
+
admin_printing_print_order: {
|
|
14376
|
+
parameters: {
|
|
14377
|
+
query?: never;
|
|
14378
|
+
header?: {
|
|
14379
|
+
/** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
|
|
14380
|
+
"X-Sous-Company-Id"?: number;
|
|
14381
|
+
};
|
|
14382
|
+
path?: never;
|
|
14383
|
+
cookie?: never;
|
|
14384
|
+
};
|
|
14385
|
+
requestBody: {
|
|
14386
|
+
content: {
|
|
14387
|
+
"application/json": components["schemas"]["MerchantPrintOrderRequest"];
|
|
14388
|
+
"application/x-www-form-urlencoded": components["schemas"]["MerchantPrintOrderRequest"];
|
|
14389
|
+
"multipart/form-data": components["schemas"]["MerchantPrintOrderRequest"];
|
|
14390
|
+
};
|
|
14391
|
+
};
|
|
14392
|
+
responses: {
|
|
14393
|
+
202: {
|
|
14394
|
+
headers: {
|
|
14395
|
+
[name: string]: unknown;
|
|
14396
|
+
};
|
|
14397
|
+
content: {
|
|
14398
|
+
"application/json": components["schemas"]["PrintJobsResponse"];
|
|
14399
|
+
};
|
|
14400
|
+
};
|
|
14401
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14402
|
+
400: {
|
|
14403
|
+
headers: {
|
|
14404
|
+
[name: string]: unknown;
|
|
14405
|
+
};
|
|
14406
|
+
content: {
|
|
14407
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14408
|
+
};
|
|
14409
|
+
};
|
|
14410
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14411
|
+
401: {
|
|
14412
|
+
headers: {
|
|
14413
|
+
[name: string]: unknown;
|
|
14414
|
+
};
|
|
14415
|
+
content: {
|
|
14416
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14417
|
+
};
|
|
14418
|
+
};
|
|
14419
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14420
|
+
403: {
|
|
14421
|
+
headers: {
|
|
14422
|
+
[name: string]: unknown;
|
|
14423
|
+
};
|
|
14424
|
+
content: {
|
|
14425
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14426
|
+
};
|
|
14427
|
+
};
|
|
14428
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14429
|
+
404: {
|
|
14430
|
+
headers: {
|
|
14431
|
+
[name: string]: unknown;
|
|
14432
|
+
};
|
|
14433
|
+
content: {
|
|
14434
|
+
"application/json": {
|
|
14435
|
+
[key: string]: unknown;
|
|
14436
|
+
};
|
|
14437
|
+
};
|
|
14438
|
+
};
|
|
14439
|
+
409: {
|
|
14440
|
+
headers: {
|
|
14441
|
+
[name: string]: unknown;
|
|
14442
|
+
};
|
|
14443
|
+
content: {
|
|
14444
|
+
"application/json": {
|
|
14445
|
+
[key: string]: unknown;
|
|
14446
|
+
};
|
|
14447
|
+
};
|
|
14448
|
+
};
|
|
14449
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14450
|
+
429: {
|
|
14451
|
+
headers: {
|
|
14452
|
+
[name: string]: unknown;
|
|
14453
|
+
};
|
|
14454
|
+
content: {
|
|
14455
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14456
|
+
};
|
|
14457
|
+
};
|
|
14458
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14459
|
+
500: {
|
|
14460
|
+
headers: {
|
|
14461
|
+
[name: string]: unknown;
|
|
14462
|
+
};
|
|
14463
|
+
content: {
|
|
14464
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14465
|
+
};
|
|
14466
|
+
};
|
|
14467
|
+
};
|
|
14468
|
+
};
|
|
14469
|
+
admin_printing_store_devices: {
|
|
14470
|
+
parameters: {
|
|
14471
|
+
query?: never;
|
|
14472
|
+
header?: {
|
|
14473
|
+
/** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
|
|
14474
|
+
"X-Sous-Company-Id"?: number;
|
|
14475
|
+
};
|
|
14476
|
+
path: {
|
|
14477
|
+
store_public_id: string;
|
|
14478
|
+
};
|
|
14479
|
+
cookie?: never;
|
|
14480
|
+
};
|
|
14481
|
+
requestBody?: never;
|
|
14482
|
+
responses: {
|
|
14483
|
+
200: {
|
|
14484
|
+
headers: {
|
|
14485
|
+
[name: string]: unknown;
|
|
14486
|
+
};
|
|
14487
|
+
content: {
|
|
14488
|
+
"application/json": components["schemas"]["PrintDevicesResponse"];
|
|
14489
|
+
};
|
|
14490
|
+
};
|
|
14491
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14492
|
+
400: {
|
|
14493
|
+
headers: {
|
|
14494
|
+
[name: string]: unknown;
|
|
14495
|
+
};
|
|
14496
|
+
content: {
|
|
14497
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14498
|
+
};
|
|
14499
|
+
};
|
|
14500
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14501
|
+
401: {
|
|
14502
|
+
headers: {
|
|
14503
|
+
[name: string]: unknown;
|
|
14504
|
+
};
|
|
14505
|
+
content: {
|
|
14506
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14507
|
+
};
|
|
14508
|
+
};
|
|
14509
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14510
|
+
403: {
|
|
14511
|
+
headers: {
|
|
14512
|
+
[name: string]: unknown;
|
|
14513
|
+
};
|
|
14514
|
+
content: {
|
|
14515
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14516
|
+
};
|
|
14517
|
+
};
|
|
14518
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14519
|
+
404: {
|
|
14520
|
+
headers: {
|
|
14521
|
+
[name: string]: unknown;
|
|
14522
|
+
};
|
|
14523
|
+
content: {
|
|
14524
|
+
"application/json": {
|
|
14525
|
+
[key: string]: unknown;
|
|
14526
|
+
};
|
|
14527
|
+
};
|
|
14528
|
+
};
|
|
14529
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14530
|
+
429: {
|
|
14531
|
+
headers: {
|
|
14532
|
+
[name: string]: unknown;
|
|
14533
|
+
};
|
|
14534
|
+
content: {
|
|
14535
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14536
|
+
};
|
|
14537
|
+
};
|
|
14538
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14539
|
+
500: {
|
|
14540
|
+
headers: {
|
|
14541
|
+
[name: string]: unknown;
|
|
14542
|
+
};
|
|
14543
|
+
content: {
|
|
14544
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14545
|
+
};
|
|
14546
|
+
};
|
|
14547
|
+
};
|
|
14548
|
+
};
|
|
14220
14549
|
admin_products_list: {
|
|
14221
14550
|
parameters: {
|
|
14222
14551
|
query?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -520,6 +520,63 @@ interface paths {
|
|
|
520
520
|
patch?: never;
|
|
521
521
|
trace?: never;
|
|
522
522
|
};
|
|
523
|
+
"/api/v1/admin/printing/jobs/": {
|
|
524
|
+
parameters: {
|
|
525
|
+
query?: never;
|
|
526
|
+
header?: never;
|
|
527
|
+
path?: never;
|
|
528
|
+
cookie?: never;
|
|
529
|
+
};
|
|
530
|
+
/** @description The latest print job per printer for an order: did it print? */
|
|
531
|
+
get: operations["admin_printing_order_jobs"];
|
|
532
|
+
put?: never;
|
|
533
|
+
post?: never;
|
|
534
|
+
delete?: never;
|
|
535
|
+
options?: never;
|
|
536
|
+
head?: never;
|
|
537
|
+
patch?: never;
|
|
538
|
+
trace?: never;
|
|
539
|
+
};
|
|
540
|
+
"/api/v1/admin/printing/print-order/": {
|
|
541
|
+
parameters: {
|
|
542
|
+
query?: never;
|
|
543
|
+
header?: never;
|
|
544
|
+
path?: never;
|
|
545
|
+
cookie?: never;
|
|
546
|
+
};
|
|
547
|
+
get?: never;
|
|
548
|
+
put?: never;
|
|
549
|
+
/**
|
|
550
|
+
* @description Print an order again on the store's cloud printers.
|
|
551
|
+
*
|
|
552
|
+
* 202 with the jobs created (or, for a repeated ``request_id``, the jobs the
|
|
553
|
+
* first request created). 409 when the store has no enabled printer for the
|
|
554
|
+
* order's kitchen, so the portal can fall back to printing locally.
|
|
555
|
+
*/
|
|
556
|
+
post: operations["admin_printing_print_order"];
|
|
557
|
+
delete?: never;
|
|
558
|
+
options?: never;
|
|
559
|
+
head?: never;
|
|
560
|
+
patch?: never;
|
|
561
|
+
trace?: never;
|
|
562
|
+
};
|
|
563
|
+
"/api/v1/admin/printing/stores/{store_public_id}/devices/": {
|
|
564
|
+
parameters: {
|
|
565
|
+
query?: never;
|
|
566
|
+
header?: never;
|
|
567
|
+
path?: never;
|
|
568
|
+
cookie?: never;
|
|
569
|
+
};
|
|
570
|
+
/** @description The store's enabled cloud printers. An empty list: no cloud printing. */
|
|
571
|
+
get: operations["admin_printing_store_devices"];
|
|
572
|
+
put?: never;
|
|
573
|
+
post?: never;
|
|
574
|
+
delete?: never;
|
|
575
|
+
options?: never;
|
|
576
|
+
head?: never;
|
|
577
|
+
patch?: never;
|
|
578
|
+
trace?: never;
|
|
579
|
+
};
|
|
523
580
|
"/api/v1/admin/products/": {
|
|
524
581
|
parameters: {
|
|
525
582
|
query?: never;
|
|
@@ -9003,6 +9060,23 @@ interface components {
|
|
|
9003
9060
|
/** Format: date-time */
|
|
9004
9061
|
readonly updated_at: string;
|
|
9005
9062
|
};
|
|
9063
|
+
/**
|
|
9064
|
+
* @description A merchant pressed Print on an order in the merchant portal.
|
|
9065
|
+
*
|
|
9066
|
+
* ``order_id`` is the storefront Order PK and ``store_id`` the storefront
|
|
9067
|
+
* ``Store.id``, as merchant-portal-backend records them on its order
|
|
9068
|
+
* (``external_id``, ``metadata.store_id``). The store must be the merchant's
|
|
9069
|
+
* and must own the order. ``request_id`` is generated per click: a retry
|
|
9070
|
+
* with the same id prints nothing new. Who asked is read from the login
|
|
9071
|
+
* token, not from the body.
|
|
9072
|
+
*/
|
|
9073
|
+
MerchantPrintOrderRequest: {
|
|
9074
|
+
/** Format: uuid */
|
|
9075
|
+
order_id: string;
|
|
9076
|
+
store_id: number;
|
|
9077
|
+
/** Format: uuid */
|
|
9078
|
+
request_id: string;
|
|
9079
|
+
};
|
|
9006
9080
|
/**
|
|
9007
9081
|
* @description The merchant pastes the restaurant id Mergeport gave them.
|
|
9008
9082
|
*
|
|
@@ -14217,6 +14291,261 @@ interface operations {
|
|
|
14217
14291
|
};
|
|
14218
14292
|
};
|
|
14219
14293
|
};
|
|
14294
|
+
admin_printing_order_jobs: {
|
|
14295
|
+
parameters: {
|
|
14296
|
+
query: {
|
|
14297
|
+
order_id: string;
|
|
14298
|
+
store_id: number;
|
|
14299
|
+
};
|
|
14300
|
+
header?: {
|
|
14301
|
+
/** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
|
|
14302
|
+
"X-Sous-Company-Id"?: number;
|
|
14303
|
+
};
|
|
14304
|
+
path?: never;
|
|
14305
|
+
cookie?: never;
|
|
14306
|
+
};
|
|
14307
|
+
requestBody?: never;
|
|
14308
|
+
responses: {
|
|
14309
|
+
200: {
|
|
14310
|
+
headers: {
|
|
14311
|
+
[name: string]: unknown;
|
|
14312
|
+
};
|
|
14313
|
+
content: {
|
|
14314
|
+
"application/json": components["schemas"]["PrintJobsResponse"];
|
|
14315
|
+
};
|
|
14316
|
+
};
|
|
14317
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14318
|
+
400: {
|
|
14319
|
+
headers: {
|
|
14320
|
+
[name: string]: unknown;
|
|
14321
|
+
};
|
|
14322
|
+
content: {
|
|
14323
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14324
|
+
};
|
|
14325
|
+
};
|
|
14326
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14327
|
+
401: {
|
|
14328
|
+
headers: {
|
|
14329
|
+
[name: string]: unknown;
|
|
14330
|
+
};
|
|
14331
|
+
content: {
|
|
14332
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14333
|
+
};
|
|
14334
|
+
};
|
|
14335
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14336
|
+
403: {
|
|
14337
|
+
headers: {
|
|
14338
|
+
[name: string]: unknown;
|
|
14339
|
+
};
|
|
14340
|
+
content: {
|
|
14341
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14342
|
+
};
|
|
14343
|
+
};
|
|
14344
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14345
|
+
404: {
|
|
14346
|
+
headers: {
|
|
14347
|
+
[name: string]: unknown;
|
|
14348
|
+
};
|
|
14349
|
+
content: {
|
|
14350
|
+
"application/json": {
|
|
14351
|
+
[key: string]: unknown;
|
|
14352
|
+
};
|
|
14353
|
+
};
|
|
14354
|
+
};
|
|
14355
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14356
|
+
429: {
|
|
14357
|
+
headers: {
|
|
14358
|
+
[name: string]: unknown;
|
|
14359
|
+
};
|
|
14360
|
+
content: {
|
|
14361
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14362
|
+
};
|
|
14363
|
+
};
|
|
14364
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14365
|
+
500: {
|
|
14366
|
+
headers: {
|
|
14367
|
+
[name: string]: unknown;
|
|
14368
|
+
};
|
|
14369
|
+
content: {
|
|
14370
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14371
|
+
};
|
|
14372
|
+
};
|
|
14373
|
+
};
|
|
14374
|
+
};
|
|
14375
|
+
admin_printing_print_order: {
|
|
14376
|
+
parameters: {
|
|
14377
|
+
query?: never;
|
|
14378
|
+
header?: {
|
|
14379
|
+
/** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
|
|
14380
|
+
"X-Sous-Company-Id"?: number;
|
|
14381
|
+
};
|
|
14382
|
+
path?: never;
|
|
14383
|
+
cookie?: never;
|
|
14384
|
+
};
|
|
14385
|
+
requestBody: {
|
|
14386
|
+
content: {
|
|
14387
|
+
"application/json": components["schemas"]["MerchantPrintOrderRequest"];
|
|
14388
|
+
"application/x-www-form-urlencoded": components["schemas"]["MerchantPrintOrderRequest"];
|
|
14389
|
+
"multipart/form-data": components["schemas"]["MerchantPrintOrderRequest"];
|
|
14390
|
+
};
|
|
14391
|
+
};
|
|
14392
|
+
responses: {
|
|
14393
|
+
202: {
|
|
14394
|
+
headers: {
|
|
14395
|
+
[name: string]: unknown;
|
|
14396
|
+
};
|
|
14397
|
+
content: {
|
|
14398
|
+
"application/json": components["schemas"]["PrintJobsResponse"];
|
|
14399
|
+
};
|
|
14400
|
+
};
|
|
14401
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14402
|
+
400: {
|
|
14403
|
+
headers: {
|
|
14404
|
+
[name: string]: unknown;
|
|
14405
|
+
};
|
|
14406
|
+
content: {
|
|
14407
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14408
|
+
};
|
|
14409
|
+
};
|
|
14410
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14411
|
+
401: {
|
|
14412
|
+
headers: {
|
|
14413
|
+
[name: string]: unknown;
|
|
14414
|
+
};
|
|
14415
|
+
content: {
|
|
14416
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14417
|
+
};
|
|
14418
|
+
};
|
|
14419
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14420
|
+
403: {
|
|
14421
|
+
headers: {
|
|
14422
|
+
[name: string]: unknown;
|
|
14423
|
+
};
|
|
14424
|
+
content: {
|
|
14425
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14426
|
+
};
|
|
14427
|
+
};
|
|
14428
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14429
|
+
404: {
|
|
14430
|
+
headers: {
|
|
14431
|
+
[name: string]: unknown;
|
|
14432
|
+
};
|
|
14433
|
+
content: {
|
|
14434
|
+
"application/json": {
|
|
14435
|
+
[key: string]: unknown;
|
|
14436
|
+
};
|
|
14437
|
+
};
|
|
14438
|
+
};
|
|
14439
|
+
409: {
|
|
14440
|
+
headers: {
|
|
14441
|
+
[name: string]: unknown;
|
|
14442
|
+
};
|
|
14443
|
+
content: {
|
|
14444
|
+
"application/json": {
|
|
14445
|
+
[key: string]: unknown;
|
|
14446
|
+
};
|
|
14447
|
+
};
|
|
14448
|
+
};
|
|
14449
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14450
|
+
429: {
|
|
14451
|
+
headers: {
|
|
14452
|
+
[name: string]: unknown;
|
|
14453
|
+
};
|
|
14454
|
+
content: {
|
|
14455
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14456
|
+
};
|
|
14457
|
+
};
|
|
14458
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14459
|
+
500: {
|
|
14460
|
+
headers: {
|
|
14461
|
+
[name: string]: unknown;
|
|
14462
|
+
};
|
|
14463
|
+
content: {
|
|
14464
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14465
|
+
};
|
|
14466
|
+
};
|
|
14467
|
+
};
|
|
14468
|
+
};
|
|
14469
|
+
admin_printing_store_devices: {
|
|
14470
|
+
parameters: {
|
|
14471
|
+
query?: never;
|
|
14472
|
+
header?: {
|
|
14473
|
+
/** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
|
|
14474
|
+
"X-Sous-Company-Id"?: number;
|
|
14475
|
+
};
|
|
14476
|
+
path: {
|
|
14477
|
+
store_public_id: string;
|
|
14478
|
+
};
|
|
14479
|
+
cookie?: never;
|
|
14480
|
+
};
|
|
14481
|
+
requestBody?: never;
|
|
14482
|
+
responses: {
|
|
14483
|
+
200: {
|
|
14484
|
+
headers: {
|
|
14485
|
+
[name: string]: unknown;
|
|
14486
|
+
};
|
|
14487
|
+
content: {
|
|
14488
|
+
"application/json": components["schemas"]["PrintDevicesResponse"];
|
|
14489
|
+
};
|
|
14490
|
+
};
|
|
14491
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14492
|
+
400: {
|
|
14493
|
+
headers: {
|
|
14494
|
+
[name: string]: unknown;
|
|
14495
|
+
};
|
|
14496
|
+
content: {
|
|
14497
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14498
|
+
};
|
|
14499
|
+
};
|
|
14500
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14501
|
+
401: {
|
|
14502
|
+
headers: {
|
|
14503
|
+
[name: string]: unknown;
|
|
14504
|
+
};
|
|
14505
|
+
content: {
|
|
14506
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14507
|
+
};
|
|
14508
|
+
};
|
|
14509
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14510
|
+
403: {
|
|
14511
|
+
headers: {
|
|
14512
|
+
[name: string]: unknown;
|
|
14513
|
+
};
|
|
14514
|
+
content: {
|
|
14515
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14516
|
+
};
|
|
14517
|
+
};
|
|
14518
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14519
|
+
404: {
|
|
14520
|
+
headers: {
|
|
14521
|
+
[name: string]: unknown;
|
|
14522
|
+
};
|
|
14523
|
+
content: {
|
|
14524
|
+
"application/json": {
|
|
14525
|
+
[key: string]: unknown;
|
|
14526
|
+
};
|
|
14527
|
+
};
|
|
14528
|
+
};
|
|
14529
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14530
|
+
429: {
|
|
14531
|
+
headers: {
|
|
14532
|
+
[name: string]: unknown;
|
|
14533
|
+
};
|
|
14534
|
+
content: {
|
|
14535
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14536
|
+
};
|
|
14537
|
+
};
|
|
14538
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
14539
|
+
500: {
|
|
14540
|
+
headers: {
|
|
14541
|
+
[name: string]: unknown;
|
|
14542
|
+
};
|
|
14543
|
+
content: {
|
|
14544
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
14545
|
+
};
|
|
14546
|
+
};
|
|
14547
|
+
};
|
|
14548
|
+
};
|
|
14220
14549
|
admin_products_list: {
|
|
14221
14550
|
parameters: {
|
|
14222
14551
|
query?: {
|