Skip to content

Commit c502ddf

Browse files
committed
fix: regression in getter method namings
1 parent c336aa6 commit c502ddf

10 files changed

Lines changed: 30 additions & 42 deletions

CHANGELOG.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1+
## 2.0.0 (2024-11-25)
12

3+
### Breaking Changes
24

3-
## 2.0.0 (2024-11-25)
5+
* Sub entity method names are changed to be more user friendly and descriptive.
6+
List of changed methods:
47

5-
* refactor: upgrade toolset ([0c4ed1a](https://github.com/PlusAuth/plusauth-rest-js/commit/0c4ed1a))
6-
* chore: release ([1679bc7](https://github.com/PlusAuth/plusauth-rest-js/commit/1679bc7))
7-
* chore: update dependencies ([8f92a8a](https://github.com/PlusAuth/plusauth-rest-js/commit/8f92a8a))
8-
* chore: update dependencies ([cb5841c](https://github.com/PlusAuth/plusauth-rest-js/commit/cb5841c))
9-
* chore: update dependencies ([768c904](https://github.com/PlusAuth/plusauth-rest-js/commit/768c904))
10-
* chore: update dependencies ([2a8222e](https://github.com/PlusAuth/plusauth-rest-js/commit/2a8222e))
11-
* chore: update dependencies ([5394c3e](https://github.com/PlusAuth/plusauth-rest-js/commit/5394c3e))
12-
* chore: update dependencies ([3251a46](https://github.com/PlusAuth/plusauth-rest-js/commit/3251a46))
13-
* chore: update dependencies ([937bee6](https://github.com/PlusAuth/plusauth-rest-js/commit/937bee6))
14-
* chore: update dependencies ([f972172](https://github.com/PlusAuth/plusauth-rest-js/commit/f972172))
15-
* chore: update dependencies ([9f17d5b](https://github.com/PlusAuth/plusauth-rest-js/commit/9f17d5b))
16-
* chore: update deps ([0cbfa58](https://github.com/PlusAuth/plusauth-rest-js/commit/0cbfa58))
17-
* chore: update eslint rules ([4778127](https://github.com/PlusAuth/plusauth-rest-js/commit/4778127))
18-
* chore: update version ([375593d](https://github.com/PlusAuth/plusauth-rest-js/commit/375593d))
19-
* feat!: subscription support (wip) ([be83398](https://github.com/PlusAuth/plusauth-rest-js/commit/be83398))

dist/plusauth-rest-js.cjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ var ResourceService = class extends HttpService {
449449
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
450450
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
451451
*/
452-
async listPermissions(resourceId, queryParams) {
452+
async getPermissions(resourceId, queryParams) {
453453
return await this.http.get(`/resources/${resourceId}/permissions/${encodedQueryString(queryParams)}`);
454454
}
455455
/**
@@ -615,7 +615,7 @@ var RoleService = class extends HttpService {
615615
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
616616
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
617617
*/
618-
async listPermissions(roleId, queryParams) {
618+
async getPermissions(roleId, queryParams) {
619619
return await this.http.get(`/roles/${roleId}/permissions${encodedQueryString(queryParams)}`);
620620
}
621621
/**
@@ -687,7 +687,7 @@ var RoleGroupService = class extends HttpService {
687687
/**
688688
* @param roleGroupId Role Group identifier
689689
*/
690-
async listRoles(roleGroupId) {
690+
async getRoles(roleGroupId) {
691691
return await this.http.get(`/role-groups/${roleGroupId}/roles`);
692692
}
693693
/**
@@ -893,7 +893,7 @@ var UserService = class extends HttpService {
893893
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
894894
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
895895
*/
896-
async listPermissions(userId, queryParams) {
896+
async getPermissions(userId, queryParams) {
897897
return await this.http.get(`/users/${userId}/permissions/${encodedQueryString(queryParams)}`);
898898
}
899899
/**
@@ -919,7 +919,7 @@ var UserService = class extends HttpService {
919919
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
920920
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
921921
*/
922-
async listRoles(userId, queryParams) {
922+
async getRoles(userId, queryParams) {
923923
return await this.http.get(`/users/${userId}/roles/${encodedQueryString(queryParams)}`);
924924
}
925925
/**
@@ -945,7 +945,7 @@ var UserService = class extends HttpService {
945945
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
946946
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
947947
*/
948-
async listRoleGroups(userId, queryParams) {
948+
async getRoleGroups(userId, queryParams) {
949949
return await this.http.get(`/users/${userId}/role-groups/${encodedQueryString(queryParams)}`);
950950
}
951951
/**

dist/plusauth-rest-js.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6147,7 +6147,7 @@ declare class ResourceService extends HttpService {
61476147
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
61486148
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
61496149
*/
6150-
listPermissions(resourceId: string, queryParams?: {
6150+
getPermissions(resourceId: string, queryParams?: {
61516151
limit?: number;
61526152
offset?: number;
61536153
q?: string;
@@ -6321,7 +6321,7 @@ declare class RoleGroupService extends HttpService {
63216321
/**
63226322
* @param roleGroupId Role Group identifier
63236323
*/
6324-
listRoles(roleGroupId: string): Promise<Record<string, any>>;
6324+
getRoles(roleGroupId: string): Promise<Record<string, any>>;
63256325
/**
63266326
* @param roleGroupId Role Group identifier
63276327
* @param roleIdList List of role ID's to be assigned to the role group
@@ -6392,7 +6392,7 @@ declare class RoleService extends HttpService {
63926392
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
63936393
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
63946394
*/
6395-
listPermissions(roleId: string, queryParams?: {
6395+
getPermissions(roleId: string, queryParams?: {
63966396
limit?: number;
63976397
offset?: number;
63986398
q?: string;
@@ -13034,7 +13034,7 @@ declare class UserService extends HttpService {
1303413034
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
1303513035
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
1303613036
*/
13037-
listPermissions(userId: string, queryParams?: {
13037+
getPermissions(userId: string, queryParams?: {
1303813038
limit?: number;
1303913039
offset?: number;
1304013040
q?: string;
@@ -13060,7 +13060,7 @@ declare class UserService extends HttpService {
1306013060
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
1306113061
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
1306213062
*/
13063-
listRoles(userId: string, queryParams?: {
13063+
getRoles(userId: string, queryParams?: {
1306413064
limit?: number;
1306513065
offset?: number;
1306613066
q?: string;
@@ -13086,7 +13086,7 @@ declare class UserService extends HttpService {
1308613086
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
1308713087
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
1308813088
*/
13089-
listRoleGroups(userId: string, queryParams?: {
13089+
getRoleGroups(userId: string, queryParams?: {
1309013090
limit?: number;
1309113091
offset?: number;
1309213092
q?: string;

dist/plusauth-rest-js.global.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plusauth-rest-js.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ var ResourceService = class extends HttpService {
411411
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
412412
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
413413
*/
414-
async listPermissions(resourceId, queryParams) {
414+
async getPermissions(resourceId, queryParams) {
415415
return await this.http.get(`/resources/${resourceId}/permissions/${encodedQueryString(queryParams)}`);
416416
}
417417
/**
@@ -577,7 +577,7 @@ var RoleService = class extends HttpService {
577577
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
578578
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
579579
*/
580-
async listPermissions(roleId, queryParams) {
580+
async getPermissions(roleId, queryParams) {
581581
return await this.http.get(`/roles/${roleId}/permissions${encodedQueryString(queryParams)}`);
582582
}
583583
/**
@@ -649,7 +649,7 @@ var RoleGroupService = class extends HttpService {
649649
/**
650650
* @param roleGroupId Role Group identifier
651651
*/
652-
async listRoles(roleGroupId) {
652+
async getRoles(roleGroupId) {
653653
return await this.http.get(`/role-groups/${roleGroupId}/roles`);
654654
}
655655
/**
@@ -855,7 +855,7 @@ var UserService = class extends HttpService {
855855
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
856856
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
857857
*/
858-
async listPermissions(userId, queryParams) {
858+
async getPermissions(userId, queryParams) {
859859
return await this.http.get(`/users/${userId}/permissions/${encodedQueryString(queryParams)}`);
860860
}
861861
/**
@@ -881,7 +881,7 @@ var UserService = class extends HttpService {
881881
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
882882
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
883883
*/
884-
async listRoles(userId, queryParams) {
884+
async getRoles(userId, queryParams) {
885885
return await this.http.get(`/users/${userId}/roles/${encodedQueryString(queryParams)}`);
886886
}
887887
/**
@@ -907,7 +907,7 @@ var UserService = class extends HttpService {
907907
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
908908
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
909909
*/
910-
async listRoleGroups(userId, queryParams) {
910+
async getRoleGroups(userId, queryParams) {
911911
return await this.http.get(`/users/${userId}/role-groups/${encodedQueryString(queryParams)}`);
912912
}
913913
/**

src/api/resources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class ResourceService extends HttpService {
1616
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
1717
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
1818
*/
19-
async listPermissions(
19+
async getPermissions(
2020
resourceId: string,
2121
queryParams?: {
2222
limit?: number

src/api/roleGroups.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class RoleGroupService extends HttpService {
5555
/**
5656
* @param roleGroupId Role Group identifier
5757
*/
58-
async listRoles(roleGroupId: string): Promise<Record<string, any>> {
58+
async getRoles(roleGroupId: string): Promise<Record<string, any>> {
5959
return await this.http.get(`/role-groups/${roleGroupId}/roles`)
6060
}
6161

src/api/roles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class RoleService extends HttpService {
6161
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
6262
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
6363
*/
64-
async listPermissions(
64+
async getPermissions(
6565
roleId: string,
6666
queryParams?: {
6767
limit?: number

src/api/tickets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class TicketService extends HttpService {
1818
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
1919
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
2020
*/
21-
async listVerifyEmail(queryParams?: {
21+
async getVerifyEmail(queryParams?: {
2222
limit?: number
2323
offset?: number
2424
q?: string

src/api/users.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class UserService extends HttpService {
8888
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
8989
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
9090
*/
91-
async listPermissions(
91+
async getPermissions(
9292
userId: string,
9393
queryParams?: {
9494
limit?: number
@@ -126,7 +126,7 @@ export class UserService extends HttpService {
126126
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
127127
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
128128
*/
129-
async listRoles(
129+
async getRoles(
130130
userId: string,
131131
queryParams?: {
132132
limit?: number
@@ -164,7 +164,7 @@ export class UserService extends HttpService {
164164
* @param queryParams.sort_by Properties that should be ordered by, with their ordering type. To define order type append it to the field with dot. You can pass this parameter multiple times or you can include all values separated by commas.
165165
* @param queryParams.fields Include only defined fields. You can pass this parameter multiple times or you can include all values separated by commas.
166166
*/
167-
async listRoleGroups(
167+
async getRoleGroups(
168168
userId: string,
169169
queryParams?: {
170170
limit?: number

0 commit comments

Comments
 (0)