@bigbinary/neeto-playwright-commons 1.22.34 → 1.22.35

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/index.d.ts CHANGED
@@ -1886,15 +1886,18 @@ type GooglePageParams = {
1886
1886
  neetoPlaywrightUtilities: CustomCommands;
1887
1887
  integration: string;
1888
1888
  integrationRouteIndex?: string;
1889
+ appName?: string;
1889
1890
  };
1890
1891
  declare class GooglePage extends IntegrationBase {
1891
1892
  totp: TOTP;
1892
1893
  t: TFunction;
1894
+ appName: string;
1893
1895
  constructor({
1894
1896
  page,
1895
1897
  neetoPlaywrightUtilities,
1896
1898
  integration,
1897
- integrationRouteIndex
1899
+ integrationRouteIndex,
1900
+ appName
1898
1901
  }: GooglePageParams);
1899
1902
  waitForGoogleAuthURL: () => Promise<void>;
1900
1903
  /**
@@ -1908,7 +1911,7 @@ declare class GooglePage extends IntegrationBase {
1908
1911
  * await googlePage.connectGoogleAccount("neetoForm");
1909
1912
  * @endexample
1910
1913
  */
1911
- connectGoogleAccount: (appName: string) => Promise<void>;
1914
+ connectGoogleAccount: (appName?: string) => Promise<void>;
1912
1915
  /**
1913
1916
  *
1914
1917
  * Selects the Google account to be used during the integration. If a verification code is required (e.g., for 2FA), it enters the TOTP code.
@@ -1920,7 +1923,7 @@ declare class GooglePage extends IntegrationBase {
1920
1923
  * await googlePage.selectGoogleAccount("neetoForm");
1921
1924
  * @endexample
1922
1925
  */
1923
- selectGoogleAccount: (appName: string) => Promise<void>;
1926
+ selectGoogleAccount: (appName?: string) => Promise<void>;
1924
1927
  /**
1925
1928
  *
1926
1929
  * Automates the login process to a Google account, filling in the email, password, and handling 2FA (Two-Factor Authentication) via TOTP.
@@ -1973,6 +1976,16 @@ declare class GooglePage extends IntegrationBase {
1973
1976
  allowPermissions
1974
1977
  }?: Partial<StagingConsentFlowParams>) => Promise<void>;
1975
1978
  private handleNotVerifiedPage;
1979
+ /**
1980
+ *
1981
+ * Revokes permissions for the Google integration by navigating to Google's connections page and removing the application connection. This method handles the complete flow of disconnecting the app from Google's side.
1982
+ *
1983
+ * @example
1984
+ *
1985
+ * await googlePage.revokePermissions();
1986
+ * @endexample
1987
+ */
1988
+ revokePermissions: () => Promise<void>;
1976
1989
  }
1977
1990
  type AsyncNoArgsFunction = () => Promise<void>;
1978
1991
  type RedirectUrl = string | RegExp | ((url: URL) => boolean);
@@ -4424,6 +4437,7 @@ declare const THIRD_PARTY_ROUTES: {
4424
4437
  signin: string;
4425
4438
  password: string;
4426
4439
  totpChallenge: string;
4440
+ connections: string;
4427
4441
  challengeSelection: string;
4428
4442
  myAccount: string;
4429
4443
  chooseAccount: string;
@@ -4681,6 +4695,7 @@ declare const GOOGLE_LOGIN_TEXTS: {
4681
4695
  connectYourGoogleAccount: string;
4682
4696
  signInWithGoogle: string;
4683
4697
  signInHeading: (appName: string) => RegExp;
4698
+ stagingAppName: (appName: string) => string;
4684
4699
  continue: string;
4685
4700
  selectAll: string;
4686
4701
  appNotVerified: string;