@poweredbysous/storefront-admin-sdk 4.5.0 → 4.6.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 +124 -0
- package/dist/index.d.ts +124 -0
- 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;
|
|
@@ -5585,6 +5609,19 @@ interface components {
|
|
|
5585
5609
|
/** Format: date-time */
|
|
5586
5610
|
readonly updated_at: string;
|
|
5587
5611
|
};
|
|
5612
|
+
/**
|
|
5613
|
+
* @description The dates one product can be ordered for, within the location's
|
|
5614
|
+
* pre-order horizon (``ProductViewSet.orderable_dates``).
|
|
5615
|
+
*/
|
|
5616
|
+
ProductFulfilmentDates: {
|
|
5617
|
+
dates: string[];
|
|
5618
|
+
reason: (components["schemas"]["ProductFulfilmentDatesReasonEnum"] | components["schemas"]["NullEnum"]) | null;
|
|
5619
|
+
};
|
|
5620
|
+
/**
|
|
5621
|
+
* @description * `no_dates` - no_dates
|
|
5622
|
+
* @enum {string}
|
|
5623
|
+
*/
|
|
5624
|
+
ProductFulfilmentDatesReasonEnum: "no_dates";
|
|
5588
5625
|
ProductImage: {
|
|
5589
5626
|
readonly id: number;
|
|
5590
5627
|
/** Format: uri */
|
|
@@ -20184,6 +20221,8 @@ interface operations {
|
|
|
20184
20221
|
query?: {
|
|
20185
20222
|
/** @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
20223
|
country?: string;
|
|
20224
|
+
/** @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. */
|
|
20225
|
+
handover_date?: string;
|
|
20187
20226
|
/** @description Sort order for products. Use '-popularity' for most popular first. */
|
|
20188
20227
|
ordering?: "-popularity" | "-position" | "position";
|
|
20189
20228
|
/** @description A page number within the paginated result set. */
|
|
@@ -20420,6 +20459,91 @@ interface operations {
|
|
|
20420
20459
|
};
|
|
20421
20460
|
};
|
|
20422
20461
|
};
|
|
20462
|
+
products_orderable_dates_retrieve: {
|
|
20463
|
+
parameters: {
|
|
20464
|
+
query: {
|
|
20465
|
+
/** @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. */
|
|
20466
|
+
fulfillment_types?: string;
|
|
20467
|
+
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. */
|
|
20468
|
+
location?: number;
|
|
20469
|
+
/** @description Fulfilment type the dates are for. */
|
|
20470
|
+
type: "delivery" | "pickup";
|
|
20471
|
+
/** @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`. */
|
|
20472
|
+
lang?: string;
|
|
20473
|
+
};
|
|
20474
|
+
header?: never;
|
|
20475
|
+
path: {
|
|
20476
|
+
/** @description A unique integer value identifying this product. */
|
|
20477
|
+
id: number;
|
|
20478
|
+
};
|
|
20479
|
+
cookie?: never;
|
|
20480
|
+
};
|
|
20481
|
+
requestBody?: never;
|
|
20482
|
+
responses: {
|
|
20483
|
+
200: {
|
|
20484
|
+
headers: {
|
|
20485
|
+
[name: string]: unknown;
|
|
20486
|
+
};
|
|
20487
|
+
content: {
|
|
20488
|
+
"application/json": components["schemas"]["ProductFulfilmentDates"];
|
|
20489
|
+
};
|
|
20490
|
+
};
|
|
20491
|
+
/** @description Possible error codes: `VALIDATION_ERROR`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20492
|
+
400: {
|
|
20493
|
+
headers: {
|
|
20494
|
+
[name: string]: unknown;
|
|
20495
|
+
};
|
|
20496
|
+
content: {
|
|
20497
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20498
|
+
};
|
|
20499
|
+
};
|
|
20500
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20501
|
+
401: {
|
|
20502
|
+
headers: {
|
|
20503
|
+
[name: string]: unknown;
|
|
20504
|
+
};
|
|
20505
|
+
content: {
|
|
20506
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20507
|
+
};
|
|
20508
|
+
};
|
|
20509
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20510
|
+
403: {
|
|
20511
|
+
headers: {
|
|
20512
|
+
[name: string]: unknown;
|
|
20513
|
+
};
|
|
20514
|
+
content: {
|
|
20515
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20516
|
+
};
|
|
20517
|
+
};
|
|
20518
|
+
/** @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. */
|
|
20519
|
+
404: {
|
|
20520
|
+
headers: {
|
|
20521
|
+
[name: string]: unknown;
|
|
20522
|
+
};
|
|
20523
|
+
content: {
|
|
20524
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20525
|
+
};
|
|
20526
|
+
};
|
|
20527
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20528
|
+
429: {
|
|
20529
|
+
headers: {
|
|
20530
|
+
[name: string]: unknown;
|
|
20531
|
+
};
|
|
20532
|
+
content: {
|
|
20533
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20534
|
+
};
|
|
20535
|
+
};
|
|
20536
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20537
|
+
500: {
|
|
20538
|
+
headers: {
|
|
20539
|
+
[name: string]: unknown;
|
|
20540
|
+
};
|
|
20541
|
+
content: {
|
|
20542
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20543
|
+
};
|
|
20544
|
+
};
|
|
20545
|
+
};
|
|
20546
|
+
};
|
|
20423
20547
|
products_suggestions_list: {
|
|
20424
20548
|
parameters: {
|
|
20425
20549
|
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;
|
|
@@ -5585,6 +5609,19 @@ interface components {
|
|
|
5585
5609
|
/** Format: date-time */
|
|
5586
5610
|
readonly updated_at: string;
|
|
5587
5611
|
};
|
|
5612
|
+
/**
|
|
5613
|
+
* @description The dates one product can be ordered for, within the location's
|
|
5614
|
+
* pre-order horizon (``ProductViewSet.orderable_dates``).
|
|
5615
|
+
*/
|
|
5616
|
+
ProductFulfilmentDates: {
|
|
5617
|
+
dates: string[];
|
|
5618
|
+
reason: (components["schemas"]["ProductFulfilmentDatesReasonEnum"] | components["schemas"]["NullEnum"]) | null;
|
|
5619
|
+
};
|
|
5620
|
+
/**
|
|
5621
|
+
* @description * `no_dates` - no_dates
|
|
5622
|
+
* @enum {string}
|
|
5623
|
+
*/
|
|
5624
|
+
ProductFulfilmentDatesReasonEnum: "no_dates";
|
|
5588
5625
|
ProductImage: {
|
|
5589
5626
|
readonly id: number;
|
|
5590
5627
|
/** Format: uri */
|
|
@@ -20184,6 +20221,8 @@ interface operations {
|
|
|
20184
20221
|
query?: {
|
|
20185
20222
|
/** @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
20223
|
country?: string;
|
|
20224
|
+
/** @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. */
|
|
20225
|
+
handover_date?: string;
|
|
20187
20226
|
/** @description Sort order for products. Use '-popularity' for most popular first. */
|
|
20188
20227
|
ordering?: "-popularity" | "-position" | "position";
|
|
20189
20228
|
/** @description A page number within the paginated result set. */
|
|
@@ -20420,6 +20459,91 @@ interface operations {
|
|
|
20420
20459
|
};
|
|
20421
20460
|
};
|
|
20422
20461
|
};
|
|
20462
|
+
products_orderable_dates_retrieve: {
|
|
20463
|
+
parameters: {
|
|
20464
|
+
query: {
|
|
20465
|
+
/** @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. */
|
|
20466
|
+
fulfillment_types?: string;
|
|
20467
|
+
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. */
|
|
20468
|
+
location?: number;
|
|
20469
|
+
/** @description Fulfilment type the dates are for. */
|
|
20470
|
+
type: "delivery" | "pickup";
|
|
20471
|
+
/** @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`. */
|
|
20472
|
+
lang?: string;
|
|
20473
|
+
};
|
|
20474
|
+
header?: never;
|
|
20475
|
+
path: {
|
|
20476
|
+
/** @description A unique integer value identifying this product. */
|
|
20477
|
+
id: number;
|
|
20478
|
+
};
|
|
20479
|
+
cookie?: never;
|
|
20480
|
+
};
|
|
20481
|
+
requestBody?: never;
|
|
20482
|
+
responses: {
|
|
20483
|
+
200: {
|
|
20484
|
+
headers: {
|
|
20485
|
+
[name: string]: unknown;
|
|
20486
|
+
};
|
|
20487
|
+
content: {
|
|
20488
|
+
"application/json": components["schemas"]["ProductFulfilmentDates"];
|
|
20489
|
+
};
|
|
20490
|
+
};
|
|
20491
|
+
/** @description Possible error codes: `VALIDATION_ERROR`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20492
|
+
400: {
|
|
20493
|
+
headers: {
|
|
20494
|
+
[name: string]: unknown;
|
|
20495
|
+
};
|
|
20496
|
+
content: {
|
|
20497
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20498
|
+
};
|
|
20499
|
+
};
|
|
20500
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20501
|
+
401: {
|
|
20502
|
+
headers: {
|
|
20503
|
+
[name: string]: unknown;
|
|
20504
|
+
};
|
|
20505
|
+
content: {
|
|
20506
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20507
|
+
};
|
|
20508
|
+
};
|
|
20509
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20510
|
+
403: {
|
|
20511
|
+
headers: {
|
|
20512
|
+
[name: string]: unknown;
|
|
20513
|
+
};
|
|
20514
|
+
content: {
|
|
20515
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20516
|
+
};
|
|
20517
|
+
};
|
|
20518
|
+
/** @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. */
|
|
20519
|
+
404: {
|
|
20520
|
+
headers: {
|
|
20521
|
+
[name: string]: unknown;
|
|
20522
|
+
};
|
|
20523
|
+
content: {
|
|
20524
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20525
|
+
};
|
|
20526
|
+
};
|
|
20527
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20528
|
+
429: {
|
|
20529
|
+
headers: {
|
|
20530
|
+
[name: string]: unknown;
|
|
20531
|
+
};
|
|
20532
|
+
content: {
|
|
20533
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20534
|
+
};
|
|
20535
|
+
};
|
|
20536
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
20537
|
+
500: {
|
|
20538
|
+
headers: {
|
|
20539
|
+
[name: string]: unknown;
|
|
20540
|
+
};
|
|
20541
|
+
content: {
|
|
20542
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
20543
|
+
};
|
|
20544
|
+
};
|
|
20545
|
+
};
|
|
20546
|
+
};
|
|
20423
20547
|
products_suggestions_list: {
|
|
20424
20548
|
parameters: {
|
|
20425
20549
|
query?: {
|