@poweredbysous/storefront-admin-sdk 4.4.0 → 4.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/dist/index.d.cts +267 -2
- package/dist/index.d.ts +267 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -547,16 +547,38 @@ interface paths {
|
|
|
547
547
|
path?: never;
|
|
548
548
|
cookie?: never;
|
|
549
549
|
};
|
|
550
|
-
/**
|
|
550
|
+
/**
|
|
551
|
+
* @description The store's enabled cloud printers (an empty list: no cloud printing).
|
|
552
|
+
*
|
|
553
|
+
* Backoffice can add one.
|
|
554
|
+
*/
|
|
551
555
|
get: operations["admin_printing_store_devices"];
|
|
552
556
|
put?: never;
|
|
553
|
-
|
|
557
|
+
/** @description Bind a printer in Sunmi for this store and save it (backoffice only). */
|
|
558
|
+
post: operations["admin_printing_add_store_device"];
|
|
554
559
|
delete?: never;
|
|
555
560
|
options?: never;
|
|
556
561
|
head?: never;
|
|
557
562
|
patch?: never;
|
|
558
563
|
trace?: never;
|
|
559
564
|
};
|
|
565
|
+
"/api/v1/admin/printing/stores/{store_public_id}/devices/{device_id}/": {
|
|
566
|
+
parameters: {
|
|
567
|
+
query?: never;
|
|
568
|
+
header?: never;
|
|
569
|
+
path?: never;
|
|
570
|
+
cookie?: never;
|
|
571
|
+
};
|
|
572
|
+
get?: never;
|
|
573
|
+
put?: never;
|
|
574
|
+
post?: never;
|
|
575
|
+
delete?: never;
|
|
576
|
+
options?: never;
|
|
577
|
+
head?: never;
|
|
578
|
+
/** @description One printer of the store: change its tickets per order (backoffice only). */
|
|
579
|
+
patch: operations["admin_printing_update_store_device"];
|
|
580
|
+
trace?: never;
|
|
581
|
+
};
|
|
560
582
|
"/api/v1/admin/products/": {
|
|
561
583
|
parameters: {
|
|
562
584
|
query?: never;
|
|
@@ -5170,6 +5192,9 @@ interface components {
|
|
|
5170
5192
|
dismiss_duration?: string | null;
|
|
5171
5193
|
targeting?: unknown;
|
|
5172
5194
|
};
|
|
5195
|
+
PatchedPrintDeviceUpdateRequest: {
|
|
5196
|
+
copies?: number;
|
|
5197
|
+
};
|
|
5173
5198
|
PatchedProductChannelListing: {
|
|
5174
5199
|
readonly id?: number;
|
|
5175
5200
|
readonly product_id?: number;
|
|
@@ -5312,6 +5337,10 @@ interface components {
|
|
|
5312
5337
|
PrintDevice: {
|
|
5313
5338
|
id: number;
|
|
5314
5339
|
name: string;
|
|
5340
|
+
/** @description The printer's serial number (Sunmi: the MSN on its label). */
|
|
5341
|
+
device_identifier: string;
|
|
5342
|
+
/** @description Tickets per automatic print. A manual print is always one. */
|
|
5343
|
+
copies: number;
|
|
5315
5344
|
/**
|
|
5316
5345
|
* @description `alerting`: the printer recently failed to print and the merchant was emailed. Cleared by its next successful print.
|
|
5317
5346
|
*
|
|
@@ -5321,6 +5350,25 @@ interface components {
|
|
|
5321
5350
|
alert_state: components["schemas"]["AlertStateEnum"];
|
|
5322
5351
|
/** Format: date-time */
|
|
5323
5352
|
last_seen_at: string | null;
|
|
5353
|
+
/** @description The last online check run by Sous staff: true online, false offline, null never checked. Not live. */
|
|
5354
|
+
online: boolean | null;
|
|
5355
|
+
/**
|
|
5356
|
+
* Format: date-time
|
|
5357
|
+
* @description When that check ran.
|
|
5358
|
+
*/
|
|
5359
|
+
online_checked_at: string | null;
|
|
5360
|
+
};
|
|
5361
|
+
/** @description A backoffice user adds a printer to the store in the URL. */
|
|
5362
|
+
PrintDeviceCreateRequest: {
|
|
5363
|
+
/** @description Serial from the printer's label, e.g. N439259A11700. */
|
|
5364
|
+
device_identifier: string;
|
|
5365
|
+
/** @description e.g. "Kitchen" */
|
|
5366
|
+
name: string;
|
|
5367
|
+
/**
|
|
5368
|
+
* @description Tickets per automatic print.
|
|
5369
|
+
* @default 1
|
|
5370
|
+
*/
|
|
5371
|
+
copies: number;
|
|
5324
5372
|
};
|
|
5325
5373
|
PrintDevicesResponse: {
|
|
5326
5374
|
devices: components["schemas"]["PrintDevice"][];
|
|
@@ -8885,6 +8933,223 @@ interface operations {
|
|
|
8885
8933
|
};
|
|
8886
8934
|
};
|
|
8887
8935
|
};
|
|
8936
|
+
admin_printing_add_store_device: {
|
|
8937
|
+
parameters: {
|
|
8938
|
+
query?: never;
|
|
8939
|
+
header?: {
|
|
8940
|
+
/** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
|
|
8941
|
+
"X-Sous-Company-Id"?: number;
|
|
8942
|
+
};
|
|
8943
|
+
path: {
|
|
8944
|
+
store_public_id: string;
|
|
8945
|
+
};
|
|
8946
|
+
cookie?: never;
|
|
8947
|
+
};
|
|
8948
|
+
requestBody: {
|
|
8949
|
+
content: {
|
|
8950
|
+
"application/json": components["schemas"]["PrintDeviceCreateRequest"];
|
|
8951
|
+
"application/x-www-form-urlencoded": components["schemas"]["PrintDeviceCreateRequest"];
|
|
8952
|
+
"multipart/form-data": components["schemas"]["PrintDeviceCreateRequest"];
|
|
8953
|
+
};
|
|
8954
|
+
};
|
|
8955
|
+
responses: {
|
|
8956
|
+
201: {
|
|
8957
|
+
headers: {
|
|
8958
|
+
[name: string]: unknown;
|
|
8959
|
+
};
|
|
8960
|
+
content: {
|
|
8961
|
+
"application/json": components["schemas"]["PrintDevice"];
|
|
8962
|
+
};
|
|
8963
|
+
};
|
|
8964
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
8965
|
+
400: {
|
|
8966
|
+
headers: {
|
|
8967
|
+
[name: string]: unknown;
|
|
8968
|
+
};
|
|
8969
|
+
content: {
|
|
8970
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
8971
|
+
};
|
|
8972
|
+
};
|
|
8973
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
8974
|
+
401: {
|
|
8975
|
+
headers: {
|
|
8976
|
+
[name: string]: unknown;
|
|
8977
|
+
};
|
|
8978
|
+
content: {
|
|
8979
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
8980
|
+
};
|
|
8981
|
+
};
|
|
8982
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
8983
|
+
403: {
|
|
8984
|
+
headers: {
|
|
8985
|
+
[name: string]: unknown;
|
|
8986
|
+
};
|
|
8987
|
+
content: {
|
|
8988
|
+
"application/json": {
|
|
8989
|
+
[key: string]: unknown;
|
|
8990
|
+
};
|
|
8991
|
+
};
|
|
8992
|
+
};
|
|
8993
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
8994
|
+
404: {
|
|
8995
|
+
headers: {
|
|
8996
|
+
[name: string]: unknown;
|
|
8997
|
+
};
|
|
8998
|
+
content: {
|
|
8999
|
+
"application/json": {
|
|
9000
|
+
[key: string]: unknown;
|
|
9001
|
+
};
|
|
9002
|
+
};
|
|
9003
|
+
};
|
|
9004
|
+
409: {
|
|
9005
|
+
headers: {
|
|
9006
|
+
[name: string]: unknown;
|
|
9007
|
+
};
|
|
9008
|
+
content: {
|
|
9009
|
+
"application/json": {
|
|
9010
|
+
[key: string]: unknown;
|
|
9011
|
+
};
|
|
9012
|
+
};
|
|
9013
|
+
};
|
|
9014
|
+
422: {
|
|
9015
|
+
headers: {
|
|
9016
|
+
[name: string]: unknown;
|
|
9017
|
+
};
|
|
9018
|
+
content: {
|
|
9019
|
+
"application/json": {
|
|
9020
|
+
[key: string]: unknown;
|
|
9021
|
+
};
|
|
9022
|
+
};
|
|
9023
|
+
};
|
|
9024
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9025
|
+
429: {
|
|
9026
|
+
headers: {
|
|
9027
|
+
[name: string]: unknown;
|
|
9028
|
+
};
|
|
9029
|
+
content: {
|
|
9030
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9031
|
+
};
|
|
9032
|
+
};
|
|
9033
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9034
|
+
500: {
|
|
9035
|
+
headers: {
|
|
9036
|
+
[name: string]: unknown;
|
|
9037
|
+
};
|
|
9038
|
+
content: {
|
|
9039
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9040
|
+
};
|
|
9041
|
+
};
|
|
9042
|
+
502: {
|
|
9043
|
+
headers: {
|
|
9044
|
+
[name: string]: unknown;
|
|
9045
|
+
};
|
|
9046
|
+
content: {
|
|
9047
|
+
"application/json": {
|
|
9048
|
+
[key: string]: unknown;
|
|
9049
|
+
};
|
|
9050
|
+
};
|
|
9051
|
+
};
|
|
9052
|
+
503: {
|
|
9053
|
+
headers: {
|
|
9054
|
+
[name: string]: unknown;
|
|
9055
|
+
};
|
|
9056
|
+
content: {
|
|
9057
|
+
"application/json": {
|
|
9058
|
+
[key: string]: unknown;
|
|
9059
|
+
};
|
|
9060
|
+
};
|
|
9061
|
+
};
|
|
9062
|
+
};
|
|
9063
|
+
};
|
|
9064
|
+
admin_printing_update_store_device: {
|
|
9065
|
+
parameters: {
|
|
9066
|
+
query?: never;
|
|
9067
|
+
header?: {
|
|
9068
|
+
/** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
|
|
9069
|
+
"X-Sous-Company-Id"?: number;
|
|
9070
|
+
};
|
|
9071
|
+
path: {
|
|
9072
|
+
device_id: number;
|
|
9073
|
+
store_public_id: string;
|
|
9074
|
+
};
|
|
9075
|
+
cookie?: never;
|
|
9076
|
+
};
|
|
9077
|
+
requestBody?: {
|
|
9078
|
+
content: {
|
|
9079
|
+
"application/json": components["schemas"]["PatchedPrintDeviceUpdateRequest"];
|
|
9080
|
+
"application/x-www-form-urlencoded": components["schemas"]["PatchedPrintDeviceUpdateRequest"];
|
|
9081
|
+
"multipart/form-data": components["schemas"]["PatchedPrintDeviceUpdateRequest"];
|
|
9082
|
+
};
|
|
9083
|
+
};
|
|
9084
|
+
responses: {
|
|
9085
|
+
200: {
|
|
9086
|
+
headers: {
|
|
9087
|
+
[name: string]: unknown;
|
|
9088
|
+
};
|
|
9089
|
+
content: {
|
|
9090
|
+
"application/json": components["schemas"]["PrintDevice"];
|
|
9091
|
+
};
|
|
9092
|
+
};
|
|
9093
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9094
|
+
400: {
|
|
9095
|
+
headers: {
|
|
9096
|
+
[name: string]: unknown;
|
|
9097
|
+
};
|
|
9098
|
+
content: {
|
|
9099
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9100
|
+
};
|
|
9101
|
+
};
|
|
9102
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9103
|
+
401: {
|
|
9104
|
+
headers: {
|
|
9105
|
+
[name: string]: unknown;
|
|
9106
|
+
};
|
|
9107
|
+
content: {
|
|
9108
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9109
|
+
};
|
|
9110
|
+
};
|
|
9111
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9112
|
+
403: {
|
|
9113
|
+
headers: {
|
|
9114
|
+
[name: string]: unknown;
|
|
9115
|
+
};
|
|
9116
|
+
content: {
|
|
9117
|
+
"application/json": {
|
|
9118
|
+
[key: string]: unknown;
|
|
9119
|
+
};
|
|
9120
|
+
};
|
|
9121
|
+
};
|
|
9122
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9123
|
+
404: {
|
|
9124
|
+
headers: {
|
|
9125
|
+
[name: string]: unknown;
|
|
9126
|
+
};
|
|
9127
|
+
content: {
|
|
9128
|
+
"application/json": {
|
|
9129
|
+
[key: string]: unknown;
|
|
9130
|
+
};
|
|
9131
|
+
};
|
|
9132
|
+
};
|
|
9133
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9134
|
+
429: {
|
|
9135
|
+
headers: {
|
|
9136
|
+
[name: string]: unknown;
|
|
9137
|
+
};
|
|
9138
|
+
content: {
|
|
9139
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9140
|
+
};
|
|
9141
|
+
};
|
|
9142
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9143
|
+
500: {
|
|
9144
|
+
headers: {
|
|
9145
|
+
[name: string]: unknown;
|
|
9146
|
+
};
|
|
9147
|
+
content: {
|
|
9148
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9149
|
+
};
|
|
9150
|
+
};
|
|
9151
|
+
};
|
|
9152
|
+
};
|
|
8888
9153
|
admin_products_list: {
|
|
8889
9154
|
parameters: {
|
|
8890
9155
|
query?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -547,16 +547,38 @@ interface paths {
|
|
|
547
547
|
path?: never;
|
|
548
548
|
cookie?: never;
|
|
549
549
|
};
|
|
550
|
-
/**
|
|
550
|
+
/**
|
|
551
|
+
* @description The store's enabled cloud printers (an empty list: no cloud printing).
|
|
552
|
+
*
|
|
553
|
+
* Backoffice can add one.
|
|
554
|
+
*/
|
|
551
555
|
get: operations["admin_printing_store_devices"];
|
|
552
556
|
put?: never;
|
|
553
|
-
|
|
557
|
+
/** @description Bind a printer in Sunmi for this store and save it (backoffice only). */
|
|
558
|
+
post: operations["admin_printing_add_store_device"];
|
|
554
559
|
delete?: never;
|
|
555
560
|
options?: never;
|
|
556
561
|
head?: never;
|
|
557
562
|
patch?: never;
|
|
558
563
|
trace?: never;
|
|
559
564
|
};
|
|
565
|
+
"/api/v1/admin/printing/stores/{store_public_id}/devices/{device_id}/": {
|
|
566
|
+
parameters: {
|
|
567
|
+
query?: never;
|
|
568
|
+
header?: never;
|
|
569
|
+
path?: never;
|
|
570
|
+
cookie?: never;
|
|
571
|
+
};
|
|
572
|
+
get?: never;
|
|
573
|
+
put?: never;
|
|
574
|
+
post?: never;
|
|
575
|
+
delete?: never;
|
|
576
|
+
options?: never;
|
|
577
|
+
head?: never;
|
|
578
|
+
/** @description One printer of the store: change its tickets per order (backoffice only). */
|
|
579
|
+
patch: operations["admin_printing_update_store_device"];
|
|
580
|
+
trace?: never;
|
|
581
|
+
};
|
|
560
582
|
"/api/v1/admin/products/": {
|
|
561
583
|
parameters: {
|
|
562
584
|
query?: never;
|
|
@@ -5170,6 +5192,9 @@ interface components {
|
|
|
5170
5192
|
dismiss_duration?: string | null;
|
|
5171
5193
|
targeting?: unknown;
|
|
5172
5194
|
};
|
|
5195
|
+
PatchedPrintDeviceUpdateRequest: {
|
|
5196
|
+
copies?: number;
|
|
5197
|
+
};
|
|
5173
5198
|
PatchedProductChannelListing: {
|
|
5174
5199
|
readonly id?: number;
|
|
5175
5200
|
readonly product_id?: number;
|
|
@@ -5312,6 +5337,10 @@ interface components {
|
|
|
5312
5337
|
PrintDevice: {
|
|
5313
5338
|
id: number;
|
|
5314
5339
|
name: string;
|
|
5340
|
+
/** @description The printer's serial number (Sunmi: the MSN on its label). */
|
|
5341
|
+
device_identifier: string;
|
|
5342
|
+
/** @description Tickets per automatic print. A manual print is always one. */
|
|
5343
|
+
copies: number;
|
|
5315
5344
|
/**
|
|
5316
5345
|
* @description `alerting`: the printer recently failed to print and the merchant was emailed. Cleared by its next successful print.
|
|
5317
5346
|
*
|
|
@@ -5321,6 +5350,25 @@ interface components {
|
|
|
5321
5350
|
alert_state: components["schemas"]["AlertStateEnum"];
|
|
5322
5351
|
/** Format: date-time */
|
|
5323
5352
|
last_seen_at: string | null;
|
|
5353
|
+
/** @description The last online check run by Sous staff: true online, false offline, null never checked. Not live. */
|
|
5354
|
+
online: boolean | null;
|
|
5355
|
+
/**
|
|
5356
|
+
* Format: date-time
|
|
5357
|
+
* @description When that check ran.
|
|
5358
|
+
*/
|
|
5359
|
+
online_checked_at: string | null;
|
|
5360
|
+
};
|
|
5361
|
+
/** @description A backoffice user adds a printer to the store in the URL. */
|
|
5362
|
+
PrintDeviceCreateRequest: {
|
|
5363
|
+
/** @description Serial from the printer's label, e.g. N439259A11700. */
|
|
5364
|
+
device_identifier: string;
|
|
5365
|
+
/** @description e.g. "Kitchen" */
|
|
5366
|
+
name: string;
|
|
5367
|
+
/**
|
|
5368
|
+
* @description Tickets per automatic print.
|
|
5369
|
+
* @default 1
|
|
5370
|
+
*/
|
|
5371
|
+
copies: number;
|
|
5324
5372
|
};
|
|
5325
5373
|
PrintDevicesResponse: {
|
|
5326
5374
|
devices: components["schemas"]["PrintDevice"][];
|
|
@@ -8885,6 +8933,223 @@ interface operations {
|
|
|
8885
8933
|
};
|
|
8886
8934
|
};
|
|
8887
8935
|
};
|
|
8936
|
+
admin_printing_add_store_device: {
|
|
8937
|
+
parameters: {
|
|
8938
|
+
query?: never;
|
|
8939
|
+
header?: {
|
|
8940
|
+
/** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
|
|
8941
|
+
"X-Sous-Company-Id"?: number;
|
|
8942
|
+
};
|
|
8943
|
+
path: {
|
|
8944
|
+
store_public_id: string;
|
|
8945
|
+
};
|
|
8946
|
+
cookie?: never;
|
|
8947
|
+
};
|
|
8948
|
+
requestBody: {
|
|
8949
|
+
content: {
|
|
8950
|
+
"application/json": components["schemas"]["PrintDeviceCreateRequest"];
|
|
8951
|
+
"application/x-www-form-urlencoded": components["schemas"]["PrintDeviceCreateRequest"];
|
|
8952
|
+
"multipart/form-data": components["schemas"]["PrintDeviceCreateRequest"];
|
|
8953
|
+
};
|
|
8954
|
+
};
|
|
8955
|
+
responses: {
|
|
8956
|
+
201: {
|
|
8957
|
+
headers: {
|
|
8958
|
+
[name: string]: unknown;
|
|
8959
|
+
};
|
|
8960
|
+
content: {
|
|
8961
|
+
"application/json": components["schemas"]["PrintDevice"];
|
|
8962
|
+
};
|
|
8963
|
+
};
|
|
8964
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
8965
|
+
400: {
|
|
8966
|
+
headers: {
|
|
8967
|
+
[name: string]: unknown;
|
|
8968
|
+
};
|
|
8969
|
+
content: {
|
|
8970
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
8971
|
+
};
|
|
8972
|
+
};
|
|
8973
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
8974
|
+
401: {
|
|
8975
|
+
headers: {
|
|
8976
|
+
[name: string]: unknown;
|
|
8977
|
+
};
|
|
8978
|
+
content: {
|
|
8979
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
8980
|
+
};
|
|
8981
|
+
};
|
|
8982
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
8983
|
+
403: {
|
|
8984
|
+
headers: {
|
|
8985
|
+
[name: string]: unknown;
|
|
8986
|
+
};
|
|
8987
|
+
content: {
|
|
8988
|
+
"application/json": {
|
|
8989
|
+
[key: string]: unknown;
|
|
8990
|
+
};
|
|
8991
|
+
};
|
|
8992
|
+
};
|
|
8993
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
8994
|
+
404: {
|
|
8995
|
+
headers: {
|
|
8996
|
+
[name: string]: unknown;
|
|
8997
|
+
};
|
|
8998
|
+
content: {
|
|
8999
|
+
"application/json": {
|
|
9000
|
+
[key: string]: unknown;
|
|
9001
|
+
};
|
|
9002
|
+
};
|
|
9003
|
+
};
|
|
9004
|
+
409: {
|
|
9005
|
+
headers: {
|
|
9006
|
+
[name: string]: unknown;
|
|
9007
|
+
};
|
|
9008
|
+
content: {
|
|
9009
|
+
"application/json": {
|
|
9010
|
+
[key: string]: unknown;
|
|
9011
|
+
};
|
|
9012
|
+
};
|
|
9013
|
+
};
|
|
9014
|
+
422: {
|
|
9015
|
+
headers: {
|
|
9016
|
+
[name: string]: unknown;
|
|
9017
|
+
};
|
|
9018
|
+
content: {
|
|
9019
|
+
"application/json": {
|
|
9020
|
+
[key: string]: unknown;
|
|
9021
|
+
};
|
|
9022
|
+
};
|
|
9023
|
+
};
|
|
9024
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9025
|
+
429: {
|
|
9026
|
+
headers: {
|
|
9027
|
+
[name: string]: unknown;
|
|
9028
|
+
};
|
|
9029
|
+
content: {
|
|
9030
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9031
|
+
};
|
|
9032
|
+
};
|
|
9033
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9034
|
+
500: {
|
|
9035
|
+
headers: {
|
|
9036
|
+
[name: string]: unknown;
|
|
9037
|
+
};
|
|
9038
|
+
content: {
|
|
9039
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9040
|
+
};
|
|
9041
|
+
};
|
|
9042
|
+
502: {
|
|
9043
|
+
headers: {
|
|
9044
|
+
[name: string]: unknown;
|
|
9045
|
+
};
|
|
9046
|
+
content: {
|
|
9047
|
+
"application/json": {
|
|
9048
|
+
[key: string]: unknown;
|
|
9049
|
+
};
|
|
9050
|
+
};
|
|
9051
|
+
};
|
|
9052
|
+
503: {
|
|
9053
|
+
headers: {
|
|
9054
|
+
[name: string]: unknown;
|
|
9055
|
+
};
|
|
9056
|
+
content: {
|
|
9057
|
+
"application/json": {
|
|
9058
|
+
[key: string]: unknown;
|
|
9059
|
+
};
|
|
9060
|
+
};
|
|
9061
|
+
};
|
|
9062
|
+
};
|
|
9063
|
+
};
|
|
9064
|
+
admin_printing_update_store_device: {
|
|
9065
|
+
parameters: {
|
|
9066
|
+
query?: never;
|
|
9067
|
+
header?: {
|
|
9068
|
+
/** @description Company the request acts on. Ignored for merchant tokens (scoped to their own company); required for admin tokens to select a company. */
|
|
9069
|
+
"X-Sous-Company-Id"?: number;
|
|
9070
|
+
};
|
|
9071
|
+
path: {
|
|
9072
|
+
device_id: number;
|
|
9073
|
+
store_public_id: string;
|
|
9074
|
+
};
|
|
9075
|
+
cookie?: never;
|
|
9076
|
+
};
|
|
9077
|
+
requestBody?: {
|
|
9078
|
+
content: {
|
|
9079
|
+
"application/json": components["schemas"]["PatchedPrintDeviceUpdateRequest"];
|
|
9080
|
+
"application/x-www-form-urlencoded": components["schemas"]["PatchedPrintDeviceUpdateRequest"];
|
|
9081
|
+
"multipart/form-data": components["schemas"]["PatchedPrintDeviceUpdateRequest"];
|
|
9082
|
+
};
|
|
9083
|
+
};
|
|
9084
|
+
responses: {
|
|
9085
|
+
200: {
|
|
9086
|
+
headers: {
|
|
9087
|
+
[name: string]: unknown;
|
|
9088
|
+
};
|
|
9089
|
+
content: {
|
|
9090
|
+
"application/json": components["schemas"]["PrintDevice"];
|
|
9091
|
+
};
|
|
9092
|
+
};
|
|
9093
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9094
|
+
400: {
|
|
9095
|
+
headers: {
|
|
9096
|
+
[name: string]: unknown;
|
|
9097
|
+
};
|
|
9098
|
+
content: {
|
|
9099
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9100
|
+
};
|
|
9101
|
+
};
|
|
9102
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9103
|
+
401: {
|
|
9104
|
+
headers: {
|
|
9105
|
+
[name: string]: unknown;
|
|
9106
|
+
};
|
|
9107
|
+
content: {
|
|
9108
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9109
|
+
};
|
|
9110
|
+
};
|
|
9111
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9112
|
+
403: {
|
|
9113
|
+
headers: {
|
|
9114
|
+
[name: string]: unknown;
|
|
9115
|
+
};
|
|
9116
|
+
content: {
|
|
9117
|
+
"application/json": {
|
|
9118
|
+
[key: string]: unknown;
|
|
9119
|
+
};
|
|
9120
|
+
};
|
|
9121
|
+
};
|
|
9122
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9123
|
+
404: {
|
|
9124
|
+
headers: {
|
|
9125
|
+
[name: string]: unknown;
|
|
9126
|
+
};
|
|
9127
|
+
content: {
|
|
9128
|
+
"application/json": {
|
|
9129
|
+
[key: string]: unknown;
|
|
9130
|
+
};
|
|
9131
|
+
};
|
|
9132
|
+
};
|
|
9133
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9134
|
+
429: {
|
|
9135
|
+
headers: {
|
|
9136
|
+
[name: string]: unknown;
|
|
9137
|
+
};
|
|
9138
|
+
content: {
|
|
9139
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9140
|
+
};
|
|
9141
|
+
};
|
|
9142
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
9143
|
+
500: {
|
|
9144
|
+
headers: {
|
|
9145
|
+
[name: string]: unknown;
|
|
9146
|
+
};
|
|
9147
|
+
content: {
|
|
9148
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
9149
|
+
};
|
|
9150
|
+
};
|
|
9151
|
+
};
|
|
9152
|
+
};
|
|
8888
9153
|
admin_products_list: {
|
|
8889
9154
|
parameters: {
|
|
8890
9155
|
query?: {
|