Skip to content

Commit

Permalink
updated AUTH Recaptcha Init
Browse files Browse the repository at this point in the history
  • Loading branch information
KostiantynFandeliuk committed Dec 10, 2024
1 parent e2d306c commit e698004
Show file tree
Hide file tree
Showing 61 changed files with 216 additions and 83 deletions.
4 changes: 3 additions & 1 deletion scripts/__dropins__/storefront-auth/api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const CONFIRM_EMAIL = "\n mutation CONFIRM_EMAIL($email: String!, $confirmation_key: String!) {\n confirmEmail(input: {\n email: $email,\n confirmation_key: $confirmation_key\n }) {\n customer {\n email\n }\n }\n }\n";
export declare const CONFIRM_EMAIL = "\n mutation CONFIRM_EMAIL($email: String!, $confirmation_key: String!) {\n confirmEmail(\n input: { email: $email, confirmation_key: $confirmation_key }\n ) {\n customer {\n email\n }\n }\n }\n";
//# sourceMappingURL=confirmEmail.graphql.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CreateCustomerDataResponse, Customer } from '../../types';
import { Customer } from '../../types';
import { CustomerModel } from '../../data/models';

export declare const createCustomer: (forms: Customer, apiVersion2: boolean) => Promise<CreateCustomerDataResponse>;
export declare const createCustomer: (forms: Customer, apiVersion2: boolean) => Promise<CustomerModel>;
//# sourceMappingURL=createCustomer.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const CREATE_CUSTOMER = "\n mutation CREATE_CUSTOMER($input: CustomerInput!) {\n createCustomer(input: $input) {\n customer {\n firstname\n lastname\n email\n is_subscribed\n }\n }\n }\n";
export declare const CREATE_CUSTOMER: string;
//# sourceMappingURL=createCustomer.graphql.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const CREATE_CUSTOMER_V2 = "\n mutation CREATE_CUSTOMER_V2($input: CustomerCreateInput!) {\n createCustomerV2(input: $input) {\n customer {\n firstname\n lastname\n email\n is_subscribed\n }\n }\n }\n";
export declare const CREATE_CUSTOMER_V2: string;
//# sourceMappingURL=createCustomerV2.graphql.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const CREATE_CUSTOMER_ADDRESS = "\n mutation CREATE_CUSTOMER_ADDRESS($input: CustomerAddressInput!) {\n createCustomerAddress(input:$input) {\n firstname\n }\n }\n";
export declare const CREATE_CUSTOMER_ADDRESS = "\n mutation CREATE_CUSTOMER_ADDRESS($input: CustomerAddressInput!) {\n createCustomerAddress(input: $input) {\n firstname\n }\n }\n";
//# sourceMappingURL=createCustomerAddress.graphql.d.ts.map
2 changes: 2 additions & 0 deletions scripts/__dropins__/storefront-auth/api/fragments.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { CUSTOMER_INFORMATION_FRAGMENT } from './graphql/CustomerFragment.graphql';
//# sourceMappingURL=fragments.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CustomerDataModel } from '../../data/models';
import { CustomerModel } from '../../data/models';

export declare const getCustomerData: (user_token: string) => Promise<CustomerDataModel>;
export declare const getCustomerData: (user_token: string) => Promise<CustomerModel>;
//# sourceMappingURL=getCustomerData.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const GET_CUSTOMER_DATA = "\n query GET_CUSTOMER_DATA {\n customer {\n firstname\n lastname\n email\n }\n }\n";
export declare const GET_CUSTOMER_DATA: string;
//# sourceMappingURL=getCustomerData.graphql.d.ts.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export declare const CUSTOMER_INFORMATION_FRAGMENT = "\n fragment CUSTOMER_INFORMATION_FRAGMENT on Customer {\n __typename\n firstname\n lastname\n email\n is_subscribed\n }\n";
//# sourceMappingURL=CustomerFragment.graphql.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { Initializer } from '@dropins/tools/types/elsie/src/lib';
import { Initializer, Model } from '@dropins/tools/types/elsie/src/lib';
import { Lang } from '@dropins/tools/types/elsie/src/i18n';
import { CustomerModel } from '../../data/models';

type ConfigProps = {
langDefinitions?: Lang;
authHeaderConfig: {
header: string;
tokenPrefix: string;
};
models?: {
CustomerModel?: Model<CustomerModel>;
};
};
export declare const initialize: Initializer<ConfigProps>;
export declare const config: import('@dropins/tools/types/elsie/src/lib').Config<ConfigProps>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const RESEND_CONFIRMATION_EMAIL = "\nmutation RESEND_CONFIRMATION_EMAIL($email: String!) {\n resendConfirmationEmail(email: $email)\n}";
export declare const RESEND_CONFIRMATION_EMAIL = "\n mutation RESEND_CONFIRMATION_EMAIL($email: String!) {\n resendConfirmationEmail(email: $email)\n }\n";
//# sourceMappingURL=resendConfirmationEmail.graphql.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const RESET_PASSWORD = "\n mutation RESET_PASSWORD($email: String!, $resetPasswordToken: String!, $newPassword: String!){\n resetPassword(email: $email,resetPasswordToken: $resetPasswordToken,newPassword: $newPassword)\n }\n";
export declare const RESET_PASSWORD = "\n mutation RESET_PASSWORD(\n $email: String!\n $resetPasswordToken: String!\n $newPassword: String!\n ) {\n resetPassword(\n email: $email\n resetPasswordToken: $resetPasswordToken\n newPassword: $newPassword\n )\n }\n";
//# sourceMappingURL=resetPassword.graphql.d.ts.map
3 changes: 3 additions & 0 deletions scripts/__dropins__/storefront-auth/chunks/Button2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e698004

Please sign in to comment.