@hiver/connector-admin 4.21.2-authStatusPoll-beta.0 → 4.21.2-authStatusPoll-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-admin",
3
- "version": "4.21.2-authStatusPoll-beta.0",
3
+ "version": "4.21.2-authStatusPoll-beta.1",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/app/connectors/pages/settings/auth/index.tsx"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAO9D,UAAU,YAAY;IACpB,aAAa,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,YAAY,sBAAuB,YAAY,4CA0d3D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/v2/app/connectors/pages/settings/auth/index.tsx"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAsB9D,UAAU,YAAY;IACpB,aAAa,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,YAAY,sBAAuB,YAAY,4CAke3D,CAAC"}
@@ -7,14 +7,16 @@ export type AuthPollStatus = (typeof AUTH_POLL_STATUS)[keyof typeof AUTH_POLL_ST
7
7
  interface AuthSuccessResponse {
8
8
  status: AuthPollStatus;
9
9
  }
10
+ export declare const pollIntervalFor: (elapsedMs: number) => 3000 | 2000 | 1000;
10
11
  export declare const authSuccessQueryKey: (connectorId: string) => readonly ["authSuccessStatus", {
11
12
  readonly connectorId: string;
12
13
  }];
13
- export declare const useAuthSuccessQuery: ({ connectorId, enabled, unknownAsPending, backOff }: {
14
+ export declare const useAuthSuccessQuery: ({ connectorId, enabled, unknownAsPending, backOff, startedAt }: {
14
15
  connectorId: string;
15
16
  enabled: boolean;
16
17
  unknownAsPending?: boolean;
17
18
  backOff?: boolean;
19
+ startedAt?: number;
18
20
  }) => import('@tanstack/react-query').UseQueryResult<AuthSuccessResponse, Error>;
19
21
  export {};
20
22
  //# sourceMappingURL=authSuccessQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authSuccessQuery.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/auth/api/authSuccessQuery.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAEtF,UAAU,mBAAmB;IAC3B,MAAM,EAAE,cAAc,CAAC;CACxB;AAYD,eAAO,MAAM,mBAAmB,gBAAiB,MAAM;;EAAoD,CAAC;AAqC5G,eAAO,MAAM,mBAAmB,wDAK7B;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,+EAyBA,CAAC"}
1
+ {"version":3,"file":"authSuccessQuery.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/auth/api/authSuccessQuery.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAEtF,UAAU,mBAAmB;IAC3B,MAAM,EAAE,cAAc,CAAC;CACxB;AAmBD,eAAO,MAAM,eAAe,cAAe,MAAM,uBACkD,CAAC;AAEpG,eAAO,MAAM,mBAAmB,gBAAiB,MAAM;;EAAoD,CAAC;AAqC5G,eAAO,MAAM,mBAAmB,mEAM7B;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+EAyBA,CAAC"}