@parra/parra-js-sdk 0.3.110 → 0.3.111
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/ParraAPI.d.ts +20 -4
- package/dist/ParraAPI.js +2 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -39,6 +39,19 @@ export interface UserResponse {
|
|
|
39
39
|
role_other_description?: string | null;
|
|
40
40
|
avatar?: ImageAssetStub;
|
|
41
41
|
}
|
|
42
|
+
export interface Identity {
|
|
43
|
+
id: string;
|
|
44
|
+
created_at: string;
|
|
45
|
+
updated_at: string;
|
|
46
|
+
deleted_at?: string | null;
|
|
47
|
+
type: string;
|
|
48
|
+
provider?: string | null;
|
|
49
|
+
provider_user_id?: string | null;
|
|
50
|
+
email?: string | null;
|
|
51
|
+
email_verified?: boolean | null;
|
|
52
|
+
phone_number?: string | null;
|
|
53
|
+
phone_number_verified?: boolean | null;
|
|
54
|
+
}
|
|
42
55
|
export interface TenantUserStub {
|
|
43
56
|
id: string;
|
|
44
57
|
created_at: string;
|
|
@@ -56,7 +69,7 @@ export interface TenantUserCollectionStub {
|
|
|
56
69
|
tenant_id: string;
|
|
57
70
|
name?: string | null;
|
|
58
71
|
avatar?: ImageAssetStub;
|
|
59
|
-
identity
|
|
72
|
+
identity?: string | null;
|
|
60
73
|
email?: string | null;
|
|
61
74
|
email_verified?: boolean | null;
|
|
62
75
|
phone_number?: string | null;
|
|
@@ -76,7 +89,7 @@ export interface TenantUser {
|
|
|
76
89
|
tenant_id: string;
|
|
77
90
|
name?: string | null;
|
|
78
91
|
avatar?: ImageAssetStub;
|
|
79
|
-
identity
|
|
92
|
+
identity?: string | null;
|
|
80
93
|
email?: string | null;
|
|
81
94
|
email_verified?: boolean | null;
|
|
82
95
|
phone_number?: string | null;
|
|
@@ -88,6 +101,7 @@ export interface TenantUser {
|
|
|
88
101
|
last_updated_at?: string | null;
|
|
89
102
|
last_seen_at?: string | null;
|
|
90
103
|
properties: object;
|
|
104
|
+
identities?: Array<Identity> | null;
|
|
91
105
|
}
|
|
92
106
|
export interface UserInfoResponse {
|
|
93
107
|
roles?: Array<string>;
|
|
@@ -1685,7 +1699,7 @@ export interface TeamMember {
|
|
|
1685
1699
|
avatar?: ImageAssetStub;
|
|
1686
1700
|
}
|
|
1687
1701
|
export interface UpdateTenantUserRequestBody {
|
|
1688
|
-
identity?: string;
|
|
1702
|
+
identity?: string | null;
|
|
1689
1703
|
name?: string | null;
|
|
1690
1704
|
properties?: object | null;
|
|
1691
1705
|
}
|
|
@@ -1993,7 +2007,9 @@ declare class ParraAPI {
|
|
|
1993
2007
|
createInvitationForTenantById: (tenant_id: string, body: TenantInvitationRequestBody) => Promise<TenantInvitation>;
|
|
1994
2008
|
getTeamMembersForTenantById: (tenant_id: string) => Promise<Array<TeamMember>>;
|
|
1995
2009
|
deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
|
|
1996
|
-
getUserForTenantById: (tenant_id: string, user_id: string
|
|
2010
|
+
getUserForTenantById: (tenant_id: string, user_id: string, query?: {
|
|
2011
|
+
include?: string;
|
|
2012
|
+
}) => Promise<TenantUser>;
|
|
1997
2013
|
updateUserForTenantById: (tenant_id: string, user_id: string, body?: UpdateTenantUserRequestBody) => Promise<TenantUser>;
|
|
1998
2014
|
deleteUserForTenantById: (tenant_id: string, user_id: string) => Promise<Response>;
|
|
1999
2015
|
paginateTenantUsersForTenantById: (tenant_id: string, query?: {
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1057,9 +1057,10 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1057
1057
|
method: "delete",
|
|
1058
1058
|
});
|
|
1059
1059
|
};
|
|
1060
|
-
this.getUserForTenantById = function (tenant_id, user_id) {
|
|
1060
|
+
this.getUserForTenantById = function (tenant_id, user_id, query) {
|
|
1061
1061
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), {
|
|
1062
1062
|
method: "get",
|
|
1063
|
+
query: query,
|
|
1063
1064
|
});
|
|
1064
1065
|
};
|
|
1065
1066
|
this.updateUserForTenantById = function (tenant_id, user_id, body) {
|