@poweredbysous/storefront-admin-sdk 4.5.0 → 4.6.1
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 +128 -2
- package/dist/index.d.ts +128 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2876,6 +2876,28 @@ interface paths {
|
|
|
2876
2876
|
patch?: never;
|
|
2877
2877
|
trace?: never;
|
|
2878
2878
|
};
|
|
2879
|
+
"/api/v1/products/{id}/orderable-dates/": {
|
|
2880
|
+
parameters: {
|
|
2881
|
+
query?: never;
|
|
2882
|
+
header?: never;
|
|
2883
|
+
path?: never;
|
|
2884
|
+
cookie?: never;
|
|
2885
|
+
};
|
|
2886
|
+
/**
|
|
2887
|
+
* @description The dates this product can be ordered for, within the location's
|
|
2888
|
+
* pre-order horizon, as the cart's ``fulfilment-dates`` lists them for
|
|
2889
|
+
* a basket holding only this product's line, so the storefront can tell
|
|
2890
|
+
* a customer when a product it hides for their date is available.
|
|
2891
|
+
*/
|
|
2892
|
+
get: operations["products_orderable_dates_retrieve"];
|
|
2893
|
+
put?: never;
|
|
2894
|
+
post?: never;
|
|
2895
|
+
delete?: never;
|
|
2896
|
+
options?: never;
|
|
2897
|
+
head?: never;
|
|
2898
|
+
patch?: never;
|
|
2899
|
+
trace?: never;
|
|
2900
|
+
};
|
|
2879
2901
|
"/api/v1/products/{id}/suggestions/": {
|
|
2880
2902
|
parameters: {
|
|
2881
2903
|
query?: never;
|
|
@@ -4423,6 +4445,8 @@ interface components {
|
|
|
4423
4445
|
/** @description Whether any of the company's stores ships nationwide. */
|
|
4424
4446
|
is_enabled: boolean;
|
|
4425
4447
|
};
|
|
4448
|
+
/** @enum {unknown} */
|
|
4449
|
+
NullEnum: null;
|
|
4426
4450
|
/** @description Render-ready open/closed badge — see ``availability.get_open_status``. */
|
|
4427
4451
|
OpenStatus: {
|
|
4428
4452
|
open: boolean;
|
|
@@ -4503,7 +4527,8 @@ interface components {
|
|
|
4503
4527
|
order_number: string;
|
|
4504
4528
|
/** Format: int64 */
|
|
4505
4529
|
store_id: number;
|
|
4506
|
-
|
|
4530
|
+
/** @default draft */
|
|
4531
|
+
status: components["schemas"]["OrderEditStatusEnum"];
|
|
4507
4532
|
edited_by: components["schemas"]["EditedByEnum"];
|
|
4508
4533
|
/** Format: int64 */
|
|
4509
4534
|
editor_id?: number | null;
|
|
@@ -4574,7 +4599,8 @@ interface components {
|
|
|
4574
4599
|
order_number: string;
|
|
4575
4600
|
/** Format: int64 */
|
|
4576
4601
|
store_id: number;
|
|
4577
|
-
|
|
4602
|
+
/** @default draft */
|
|
4603
|
+
status: components["schemas"]["OrderEditStatusEnum"];
|
|
4578
4604
|
edited_by: components["schemas"]["EditedByEnum"];
|
|
4579
4605
|
reason?: string;
|
|
4580
4606
|
/** Format: decimal */
|
|
@@ -5585,6 +5611,19 @@ interface components {
|
|
|
5585
5611
|
/** Format: date-time */
|
|
5586
5612
|
readonly updated_at: string;
|
|
5587
5613
|
};
|
|
5614
|
+
/**
|
|
5615
|
+
* @description The dates one product can be ordered for, within the location's
|
|
5616
|
+
* pre-order horizon (``ProductViewSet.orderable_dates``).
|
|
5617
|
+
*/
|
|
5618
|
+
ProductFulfilmentDates: {
|
|
5619
|
+
dates: string[];
|
|
5620
|
+
reason: (components["schemas"]["ProductFulfilmentDatesReasonEnum"] | components["schemas"]["NullEnum"]) | null;
|
|
5621
|
+
};
|
|
5622
|
+
/**
|
|
5623
|
+
* @description * `no_dates` - no_dates
|
|
5624
|
+
* @enum {string}
|
|
5625
|
+
*/
|
|
5626
|
+
ProductFulfilmentDatesReasonEnum: "no_dates";
|
|
5588
5627
|
ProductImage: {
|
|
5589
5628
|
readonly id: number;
|
|
5590
5629
|
/** Format: uri */
|
|
@@ -20184,6 +20223,8 @@ interface operations {
|
|
|
20184
20223
|
query?: {
|
|
20185
20224
|
/** @description Delivery destination country as ISO 3166-1 alpha-2 (e.g. NL, BE), used with latitude and longitude. A nationwide carrier that declares per-country service areas only offers its products once the country is known. Case-insensitive; any other value is treated as no country. */
|
|
20186
20225
|
country?: string;
|
|
20226
|
+
/** @description The pickup or delivery date the customer has chosen (YYYY-MM-DD). Lists only the products that can be ordered today for that date by their own dates: weekly days, included and excluded dates, and order-until. Whether the store is open that day is the time-slots endpoint's answer, not this filter's. An unreadable value is ignored. */
|
|
20227
|
+
handover_date?: string;
|
|
20187
20228
|
/** @description Sort order for products. Use '-popularity' for most popular first. */
|
|
20188
20229
|
ordering?: "-popularity" | "-position" | "position";
|
|
20189
20230
|
/** @description A page number within the paginated result set. */
|
|
@@ -20420,6 +20461,91 @@ interface operations {
|
|
|
20420
20461
|
};
|
|
20421
20462
|
};
|
|
20422
20463
|
};
|
|
20464
|
+
products_orderable_dates_retrieve: {
|
|
20465
|
+
parameters: {
|
|
20466
|
+
query: {
|
|
20467
|
+
/** @description For type=delivery: the customer's delivery types in order of preference, comma-separated (local_delivery, nationwide_delivery). The product's schedule follows the first of them it offers, the type its cart line would get; without one it follows the delivery types the product offers. */
|
|
20468
|
+
fulfillment_types?: string;
|
|
20469
|
+
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. */
|
|
20470
|
+
location?: number;
|
|
20471
|
+
/** @description Fulfilment type the dates are for. */
|
|
20472
|
+
type: "delivery" | "pickup";
|
|
20473
|
+
/** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
|
|
20474
|
+
lang?: string;
|
|
20475
|
+
};
|
|
20476
|
+
header?: never;
|
|
20477
|
+
path: {
|
|
20478
|
+
/** @description A unique integer value identifying this product. */
|
|
20479
|
+
id: number;
|
|
20480
|
+
};
|
|
20481
|
+
cookie?: never;
|
|
20482
|
+
};
|
|
20483
|
+
requestBody?: never;
|
|
20484
|
+
responses: {
|
|
20485
|
+
200: {
|
|
20486
|
+
headers: {
|
|
20487
|
+
[name: string]: unknown;
|
|
20488
|
+
};
|
|
20489
|
+
content: {
|
|
20490
|
+
"application/json": components["schemas"]["ProductFulfilmentDates"];
|
|
20491
|
+
};
|
|
20492
|
+
};
|
|
20493
|
+
/** @description Possible error codes: `VALIDATION_ERROR`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20494
|
+
400: {
|
|
20495
|
+
headers: {
|
|
20496
|
+
[name: string]: unknown;
|
|
20497
|
+
};
|
|
20498
|
+
content: {
|
|
20499
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20500
|
+
};
|
|
20501
|
+
};
|
|
20502
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20503
|
+
401: {
|
|
20504
|
+
headers: {
|
|
20505
|
+
[name: string]: unknown;
|
|
20506
|
+
};
|
|
20507
|
+
content: {
|
|
20508
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20509
|
+
};
|
|
20510
|
+
};
|
|
20511
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20512
|
+
403: {
|
|
20513
|
+
headers: {
|
|
20514
|
+
[name: string]: unknown;
|
|
20515
|
+
};
|
|
20516
|
+
content: {
|
|
20517
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20518
|
+
};
|
|
20519
|
+
};
|
|
20520
|
+
/** @description Possible error codes: `NOT_FOUND`, `LOCATION_NOT_FOUND`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOCATION_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20521
|
+
404: {
|
|
20522
|
+
headers: {
|
|
20523
|
+
[name: string]: unknown;
|
|
20524
|
+
};
|
|
20525
|
+
content: {
|
|
20526
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20527
|
+
};
|
|
20528
|
+
};
|
|
20529
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20530
|
+
429: {
|
|
20531
|
+
headers: {
|
|
20532
|
+
[name: string]: unknown;
|
|
20533
|
+
};
|
|
20534
|
+
content: {
|
|
20535
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20536
|
+
};
|
|
20537
|
+
};
|
|
20538
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20539
|
+
500: {
|
|
20540
|
+
headers: {
|
|
20541
|
+
[name: string]: unknown;
|
|
20542
|
+
};
|
|
20543
|
+
content: {
|
|
20544
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20545
|
+
};
|
|
20546
|
+
};
|
|
20547
|
+
};
|
|
20548
|
+
};
|
|
20423
20549
|
products_suggestions_list: {
|
|
20424
20550
|
parameters: {
|
|
20425
20551
|
query?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2876,6 +2876,28 @@ interface paths {
|
|
|
2876
2876
|
patch?: never;
|
|
2877
2877
|
trace?: never;
|
|
2878
2878
|
};
|
|
2879
|
+
"/api/v1/products/{id}/orderable-dates/": {
|
|
2880
|
+
parameters: {
|
|
2881
|
+
query?: never;
|
|
2882
|
+
header?: never;
|
|
2883
|
+
path?: never;
|
|
2884
|
+
cookie?: never;
|
|
2885
|
+
};
|
|
2886
|
+
/**
|
|
2887
|
+
* @description The dates this product can be ordered for, within the location's
|
|
2888
|
+
* pre-order horizon, as the cart's ``fulfilment-dates`` lists them for
|
|
2889
|
+
* a basket holding only this product's line, so the storefront can tell
|
|
2890
|
+
* a customer when a product it hides for their date is available.
|
|
2891
|
+
*/
|
|
2892
|
+
get: operations["products_orderable_dates_retrieve"];
|
|
2893
|
+
put?: never;
|
|
2894
|
+
post?: never;
|
|
2895
|
+
delete?: never;
|
|
2896
|
+
options?: never;
|
|
2897
|
+
head?: never;
|
|
2898
|
+
patch?: never;
|
|
2899
|
+
trace?: never;
|
|
2900
|
+
};
|
|
2879
2901
|
"/api/v1/products/{id}/suggestions/": {
|
|
2880
2902
|
parameters: {
|
|
2881
2903
|
query?: never;
|
|
@@ -4423,6 +4445,8 @@ interface components {
|
|
|
4423
4445
|
/** @description Whether any of the company's stores ships nationwide. */
|
|
4424
4446
|
is_enabled: boolean;
|
|
4425
4447
|
};
|
|
4448
|
+
/** @enum {unknown} */
|
|
4449
|
+
NullEnum: null;
|
|
4426
4450
|
/** @description Render-ready open/closed badge — see ``availability.get_open_status``. */
|
|
4427
4451
|
OpenStatus: {
|
|
4428
4452
|
open: boolean;
|
|
@@ -4503,7 +4527,8 @@ interface components {
|
|
|
4503
4527
|
order_number: string;
|
|
4504
4528
|
/** Format: int64 */
|
|
4505
4529
|
store_id: number;
|
|
4506
|
-
|
|
4530
|
+
/** @default draft */
|
|
4531
|
+
status: components["schemas"]["OrderEditStatusEnum"];
|
|
4507
4532
|
edited_by: components["schemas"]["EditedByEnum"];
|
|
4508
4533
|
/** Format: int64 */
|
|
4509
4534
|
editor_id?: number | null;
|
|
@@ -4574,7 +4599,8 @@ interface components {
|
|
|
4574
4599
|
order_number: string;
|
|
4575
4600
|
/** Format: int64 */
|
|
4576
4601
|
store_id: number;
|
|
4577
|
-
|
|
4602
|
+
/** @default draft */
|
|
4603
|
+
status: components["schemas"]["OrderEditStatusEnum"];
|
|
4578
4604
|
edited_by: components["schemas"]["EditedByEnum"];
|
|
4579
4605
|
reason?: string;
|
|
4580
4606
|
/** Format: decimal */
|
|
@@ -5585,6 +5611,19 @@ interface components {
|
|
|
5585
5611
|
/** Format: date-time */
|
|
5586
5612
|
readonly updated_at: string;
|
|
5587
5613
|
};
|
|
5614
|
+
/**
|
|
5615
|
+
* @description The dates one product can be ordered for, within the location's
|
|
5616
|
+
* pre-order horizon (``ProductViewSet.orderable_dates``).
|
|
5617
|
+
*/
|
|
5618
|
+
ProductFulfilmentDates: {
|
|
5619
|
+
dates: string[];
|
|
5620
|
+
reason: (components["schemas"]["ProductFulfilmentDatesReasonEnum"] | components["schemas"]["NullEnum"]) | null;
|
|
5621
|
+
};
|
|
5622
|
+
/**
|
|
5623
|
+
* @description * `no_dates` - no_dates
|
|
5624
|
+
* @enum {string}
|
|
5625
|
+
*/
|
|
5626
|
+
ProductFulfilmentDatesReasonEnum: "no_dates";
|
|
5588
5627
|
ProductImage: {
|
|
5589
5628
|
readonly id: number;
|
|
5590
5629
|
/** Format: uri */
|
|
@@ -20184,6 +20223,8 @@ interface operations {
|
|
|
20184
20223
|
query?: {
|
|
20185
20224
|
/** @description Delivery destination country as ISO 3166-1 alpha-2 (e.g. NL, BE), used with latitude and longitude. A nationwide carrier that declares per-country service areas only offers its products once the country is known. Case-insensitive; any other value is treated as no country. */
|
|
20186
20225
|
country?: string;
|
|
20226
|
+
/** @description The pickup or delivery date the customer has chosen (YYYY-MM-DD). Lists only the products that can be ordered today for that date by their own dates: weekly days, included and excluded dates, and order-until. Whether the store is open that day is the time-slots endpoint's answer, not this filter's. An unreadable value is ignored. */
|
|
20227
|
+
handover_date?: string;
|
|
20187
20228
|
/** @description Sort order for products. Use '-popularity' for most popular first. */
|
|
20188
20229
|
ordering?: "-popularity" | "-position" | "position";
|
|
20189
20230
|
/** @description A page number within the paginated result set. */
|
|
@@ -20420,6 +20461,91 @@ interface operations {
|
|
|
20420
20461
|
};
|
|
20421
20462
|
};
|
|
20422
20463
|
};
|
|
20464
|
+
products_orderable_dates_retrieve: {
|
|
20465
|
+
parameters: {
|
|
20466
|
+
query: {
|
|
20467
|
+
/** @description For type=delivery: the customer's delivery types in order of preference, comma-separated (local_delivery, nationwide_delivery). The product's schedule follows the first of them it offers, the type its cart line would get; without one it follows the delivery types the product offers. */
|
|
20468
|
+
fulfillment_types?: string;
|
|
20469
|
+
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. */
|
|
20470
|
+
location?: number;
|
|
20471
|
+
/** @description Fulfilment type the dates are for. */
|
|
20472
|
+
type: "delivery" | "pickup";
|
|
20473
|
+
/** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
|
|
20474
|
+
lang?: string;
|
|
20475
|
+
};
|
|
20476
|
+
header?: never;
|
|
20477
|
+
path: {
|
|
20478
|
+
/** @description A unique integer value identifying this product. */
|
|
20479
|
+
id: number;
|
|
20480
|
+
};
|
|
20481
|
+
cookie?: never;
|
|
20482
|
+
};
|
|
20483
|
+
requestBody?: never;
|
|
20484
|
+
responses: {
|
|
20485
|
+
200: {
|
|
20486
|
+
headers: {
|
|
20487
|
+
[name: string]: unknown;
|
|
20488
|
+
};
|
|
20489
|
+
content: {
|
|
20490
|
+
"application/json": components["schemas"]["ProductFulfilmentDates"];
|
|
20491
|
+
};
|
|
20492
|
+
};
|
|
20493
|
+
/** @description Possible error codes: `VALIDATION_ERROR`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20494
|
+
400: {
|
|
20495
|
+
headers: {
|
|
20496
|
+
[name: string]: unknown;
|
|
20497
|
+
};
|
|
20498
|
+
content: {
|
|
20499
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20500
|
+
};
|
|
20501
|
+
};
|
|
20502
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20503
|
+
401: {
|
|
20504
|
+
headers: {
|
|
20505
|
+
[name: string]: unknown;
|
|
20506
|
+
};
|
|
20507
|
+
content: {
|
|
20508
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20509
|
+
};
|
|
20510
|
+
};
|
|
20511
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20512
|
+
403: {
|
|
20513
|
+
headers: {
|
|
20514
|
+
[name: string]: unknown;
|
|
20515
|
+
};
|
|
20516
|
+
content: {
|
|
20517
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20518
|
+
};
|
|
20519
|
+
};
|
|
20520
|
+
/** @description Possible error codes: `NOT_FOUND`, `LOCATION_NOT_FOUND`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOCATION_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20521
|
+
404: {
|
|
20522
|
+
headers: {
|
|
20523
|
+
[name: string]: unknown;
|
|
20524
|
+
};
|
|
20525
|
+
content: {
|
|
20526
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20527
|
+
};
|
|
20528
|
+
};
|
|
20529
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20530
|
+
429: {
|
|
20531
|
+
headers: {
|
|
20532
|
+
[name: string]: unknown;
|
|
20533
|
+
};
|
|
20534
|
+
content: {
|
|
20535
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20536
|
+
};
|
|
20537
|
+
};
|
|
20538
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20539
|
+
500: {
|
|
20540
|
+
headers: {
|
|
20541
|
+
[name: string]: unknown;
|
|
20542
|
+
};
|
|
20543
|
+
content: {
|
|
20544
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20545
|
+
};
|
|
20546
|
+
};
|
|
20547
|
+
};
|
|
20548
|
+
};
|
|
20423
20549
|
products_suggestions_list: {
|
|
20424
20550
|
parameters: {
|
|
20425
20551
|
query?: {
|