@whiplashmerch/whiplash-api-client 3.2.43 → 3.2.45
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/client.esm.js +37 -1
- package/dist/client.esm.js.map +1 -1
- package/dist/utils/user.d.ts +8 -0
- package/package.json +1 -1
package/dist/utils/user.d.ts
CHANGED
|
@@ -18,3 +18,11 @@ export interface SetUserWarehouseParams {
|
|
|
18
18
|
}
|
|
19
19
|
export declare const setUserWarehouse: (client: HttpClient, { userId, warehouseId }: SetUserWarehouseParams, params?: RequestParams) => Promise<void>;
|
|
20
20
|
export declare const unsetUserWarehouse: (client: HttpClient, userId: number, params?: RequestParams) => Promise<void>;
|
|
21
|
+
export declare function isUserInternal(user: ApiV21EntitiesUser): boolean;
|
|
22
|
+
export declare function isUserManagerOrStaff(user: ApiV21EntitiesUser): boolean;
|
|
23
|
+
export declare function isUserPartner(user: ApiV21EntitiesUser): boolean;
|
|
24
|
+
export declare function isUserAdmin(user: ApiV21EntitiesUser): boolean;
|
|
25
|
+
export declare function isUserStaff(user: ApiV21EntitiesUser): boolean;
|
|
26
|
+
export declare function isUserManager(user: ApiV21EntitiesUser): boolean;
|
|
27
|
+
export declare function isUserCustomer(user: ApiV21EntitiesUser): boolean;
|
|
28
|
+
export declare function isUserInternalOrPartner(user: ApiV21EntitiesUser): boolean;
|