@zenky/storefront-api 0.0.28 → 0.0.29
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 +11 -6
- 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;
|
|
@@ -536,13 +541,13 @@ export interface Feedback {
|
|
|
536
541
|
comment: string | null;
|
|
537
542
|
created_at: string;
|
|
538
543
|
}
|
|
539
|
-
export interface FeedbackRequest {
|
|
544
|
+
export interface FeedbackRequest extends RecaptchaRequest {
|
|
540
545
|
name?: string;
|
|
541
546
|
email?: string;
|
|
542
547
|
phone?: PhoneRequest;
|
|
543
548
|
comment?: string;
|
|
544
549
|
}
|
|
545
|
-
export interface CallbackRequest {
|
|
550
|
+
export interface CallbackRequest extends RecaptchaRequest {
|
|
546
551
|
phone: PhoneRequest;
|
|
547
552
|
}
|
|
548
553
|
export declare class FeedbackResource extends AbstractResource {
|
|
@@ -885,7 +890,7 @@ export interface AbstractRegistrationRequest {
|
|
|
885
890
|
gender?: Gender;
|
|
886
891
|
birth_date?: string;
|
|
887
892
|
}
|
|
888
|
-
export interface RegistrationRequest extends AbstractRegistrationRequest {
|
|
893
|
+
export interface RegistrationRequest extends AbstractRegistrationRequest, RecaptchaRequest {
|
|
889
894
|
referrer_code?: string;
|
|
890
895
|
referrer_id?: string;
|
|
891
896
|
}
|
|
@@ -900,10 +905,10 @@ export interface AuthConfirmationStatus {
|
|
|
900
905
|
export interface AuthResult {
|
|
901
906
|
token: string;
|
|
902
907
|
}
|
|
903
|
-
export interface ResendAuthConfirmationRequest {
|
|
908
|
+
export interface ResendAuthConfirmationRequest extends RecaptchaRequest {
|
|
904
909
|
phone: PhoneRequest;
|
|
905
910
|
}
|
|
906
|
-
export interface DispatchPasswordResetRequest {
|
|
911
|
+
export interface DispatchPasswordResetRequest extends RecaptchaRequest {
|
|
907
912
|
phone: PhoneRequest;
|
|
908
913
|
}
|
|
909
914
|
export interface ResetPasswordRequest {
|
|
@@ -1237,7 +1242,7 @@ export interface OrderCheckoutTotal {
|
|
|
1237
1242
|
cashback: number | null;
|
|
1238
1243
|
payments: OrderCheckoutTotalPayment[];
|
|
1239
1244
|
}
|
|
1240
|
-
export interface OrderCheckoutRequest {
|
|
1245
|
+
export interface OrderCheckoutRequest extends RecaptchaRequest {
|
|
1241
1246
|
notes?: string;
|
|
1242
1247
|
persons_count?: string | number;
|
|
1243
1248
|
}
|