@authenty/authapi-types 1.0.27 → 1.0.28
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/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -761,7 +761,7 @@ export declare namespace AuthApi {
|
|
|
761
761
|
};
|
|
762
762
|
checkHealth(): Promise<boolean>;
|
|
763
763
|
users: {
|
|
764
|
-
list: () => Promise<responses.ApiResponse<responses.users.GET>>;
|
|
764
|
+
list: (search?: string, page?: number, itemsPerPage?: number, includeDeleted?: boolean) => Promise<responses.ApiResponse<responses.users.GET>>;
|
|
765
765
|
get: (userId: number, includePurchases?: boolean) => Promise<responses.ApiResponse<responses.user.$userId.GET>>;
|
|
766
766
|
update: (userId: number, userData: Partial<objects.LocalUser>) => Promise<responses.ApiResponse<objects.LocalUser>>;
|
|
767
767
|
updateConfig: (obj: {
|
package/dist/index.js
CHANGED
|
@@ -138,8 +138,8 @@ var AuthApi;
|
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
this.users = {
|
|
141
|
-
list: async () => {
|
|
142
|
-
return await this.request('GET', 'users', {});
|
|
141
|
+
list: async (search = '', page = 1, itemsPerPage = 50, includeDeleted = false) => {
|
|
142
|
+
return await this.request('GET', 'users', { search, page, itemsPerPage, includeDeleted });
|
|
143
143
|
},
|
|
144
144
|
get: async (userId, includePurchases = true) => {
|
|
145
145
|
return await this.request('GET', `user/${userId}?includePurchases=${includePurchases}`, {});
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -982,8 +982,8 @@ export namespace AuthApi {
|
|
|
982
982
|
}
|
|
983
983
|
|
|
984
984
|
public users = {
|
|
985
|
-
list: async () => {
|
|
986
|
-
return await this.request<responses.users.GET>('GET', 'users', {});
|
|
985
|
+
list: async (search:string='', page:number=1, itemsPerPage:number=50, includeDeleted:boolean=false) => {
|
|
986
|
+
return await this.request<responses.users.GET>('GET', 'users', {search,page,itemsPerPage,includeDeleted});
|
|
987
987
|
},
|
|
988
988
|
get: async (userId: number, includePurchases: boolean = true) => {
|
|
989
989
|
return await this.request<responses.user.$userId.GET>('GET', `user/${userId}?includePurchases=${includePurchases}`, {});
|