@etsoo/appscript 1.5.80 → 1.5.81
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/lib/cjs/api/AuthApi.d.ts
CHANGED
|
@@ -96,5 +96,5 @@ export declare class AuthApi extends BaseApi {
|
|
|
96
96
|
* @param tokenKey Refresh token key
|
|
97
97
|
* @param payload Payload
|
|
98
98
|
*/
|
|
99
|
-
switchOrg<T extends IUser>(rq: SwitchOrgRQ, payload?: IApiPayload<IActionResult<T>>, tokenKey?: string): Promise<
|
|
99
|
+
switchOrg<T extends IUser>(rq: SwitchOrgRQ, payload?: IApiPayload<IActionResult<T>>, tokenKey?: string): Promise<[IActionResult<T> | undefined, string | null]>;
|
|
100
100
|
}
|
package/lib/mjs/api/AuthApi.d.ts
CHANGED
|
@@ -96,5 +96,5 @@ export declare class AuthApi extends BaseApi {
|
|
|
96
96
|
* @param tokenKey Refresh token key
|
|
97
97
|
* @param payload Payload
|
|
98
98
|
*/
|
|
99
|
-
switchOrg<T extends IUser>(rq: SwitchOrgRQ, payload?: IApiPayload<IActionResult<T>>, tokenKey?: string): Promise<
|
|
99
|
+
switchOrg<T extends IUser>(rq: SwitchOrgRQ, payload?: IApiPayload<IActionResult<T>>, tokenKey?: string): Promise<[IActionResult<T> | undefined, string | null]>;
|
|
100
100
|
}
|
package/package.json
CHANGED
package/src/api/AuthApi.ts
CHANGED
|
@@ -225,7 +225,7 @@ export class AuthApi extends BaseApi {
|
|
|
225
225
|
rq: SwitchOrgRQ,
|
|
226
226
|
payload?: IApiPayload<IActionResult<T>>,
|
|
227
227
|
tokenKey?: string
|
|
228
|
-
) {
|
|
228
|
+
): Promise<[IActionResult<T> | undefined, string | null]> {
|
|
229
229
|
// Default values
|
|
230
230
|
payload ??= {};
|
|
231
231
|
tokenKey ??= AuthApi.HeaderTokenField;
|