@zenky/storefront-api 0.0.28 → 0.0.30
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.ts +14 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,11 @@ export interface PhoneRequest {
|
|
|
82
82
|
number: string;
|
|
83
83
|
country: string;
|
|
84
84
|
}
|
|
85
|
+
export interface RecaptchaRequest {
|
|
86
|
+
recaptcha?: {
|
|
87
|
+
token: string;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
85
90
|
export interface DeliveryAddress {
|
|
86
91
|
id: string;
|
|
87
92
|
resolver: AddressesProvider;
|
|
@@ -440,8 +445,9 @@ export interface City {
|
|
|
440
445
|
name: string | null;
|
|
441
446
|
timezone: string;
|
|
442
447
|
coordinates: GeoLocation | null;
|
|
443
|
-
stocks
|
|
444
|
-
delivery_zones
|
|
448
|
+
stocks?: Stock[];
|
|
449
|
+
delivery_zones?: DeliveryZone[];
|
|
450
|
+
phones?: Phone[];
|
|
445
451
|
}
|
|
446
452
|
export interface StoreSettings {
|
|
447
453
|
country: string;
|
|
@@ -536,13 +542,13 @@ export interface Feedback {
|
|
|
536
542
|
comment: string | null;
|
|
537
543
|
created_at: string;
|
|
538
544
|
}
|
|
539
|
-
export interface FeedbackRequest {
|
|
545
|
+
export interface FeedbackRequest extends RecaptchaRequest {
|
|
540
546
|
name?: string;
|
|
541
547
|
email?: string;
|
|
542
548
|
phone?: PhoneRequest;
|
|
543
549
|
comment?: string;
|
|
544
550
|
}
|
|
545
|
-
export interface CallbackRequest {
|
|
551
|
+
export interface CallbackRequest extends RecaptchaRequest {
|
|
546
552
|
phone: PhoneRequest;
|
|
547
553
|
}
|
|
548
554
|
export declare class FeedbackResource extends AbstractResource {
|
|
@@ -885,7 +891,7 @@ export interface AbstractRegistrationRequest {
|
|
|
885
891
|
gender?: Gender;
|
|
886
892
|
birth_date?: string;
|
|
887
893
|
}
|
|
888
|
-
export interface RegistrationRequest extends AbstractRegistrationRequest {
|
|
894
|
+
export interface RegistrationRequest extends AbstractRegistrationRequest, RecaptchaRequest {
|
|
889
895
|
referrer_code?: string;
|
|
890
896
|
referrer_id?: string;
|
|
891
897
|
}
|
|
@@ -900,10 +906,10 @@ export interface AuthConfirmationStatus {
|
|
|
900
906
|
export interface AuthResult {
|
|
901
907
|
token: string;
|
|
902
908
|
}
|
|
903
|
-
export interface ResendAuthConfirmationRequest {
|
|
909
|
+
export interface ResendAuthConfirmationRequest extends RecaptchaRequest {
|
|
904
910
|
phone: PhoneRequest;
|
|
905
911
|
}
|
|
906
|
-
export interface DispatchPasswordResetRequest {
|
|
912
|
+
export interface DispatchPasswordResetRequest extends RecaptchaRequest {
|
|
907
913
|
phone: PhoneRequest;
|
|
908
914
|
}
|
|
909
915
|
export interface ResetPasswordRequest {
|
|
@@ -1237,7 +1243,7 @@ export interface OrderCheckoutTotal {
|
|
|
1237
1243
|
cashback: number | null;
|
|
1238
1244
|
payments: OrderCheckoutTotalPayment[];
|
|
1239
1245
|
}
|
|
1240
|
-
export interface OrderCheckoutRequest {
|
|
1246
|
+
export interface OrderCheckoutRequest extends RecaptchaRequest {
|
|
1241
1247
|
notes?: string;
|
|
1242
1248
|
persons_count?: string | number;
|
|
1243
1249
|
}
|