@parra/parra-js-sdk 0.3.109 → 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 +26 -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>;
|
|
@@ -1392,6 +1406,10 @@ export interface CreateApplicationRequestBody {
|
|
|
1392
1406
|
description?: string | null;
|
|
1393
1407
|
is_new_project: boolean;
|
|
1394
1408
|
type: ApplicationType;
|
|
1409
|
+
ios_bundle_id?: string | null;
|
|
1410
|
+
}
|
|
1411
|
+
export interface ApplicationIosConfig {
|
|
1412
|
+
bundle_id: string;
|
|
1395
1413
|
}
|
|
1396
1414
|
export interface Application {
|
|
1397
1415
|
id: string;
|
|
@@ -1404,6 +1422,7 @@ export interface Application {
|
|
|
1404
1422
|
type: ApplicationType;
|
|
1405
1423
|
tenant_id: string;
|
|
1406
1424
|
icon?: ImageAssetStub | null;
|
|
1425
|
+
ios?: ApplicationIosConfig | null;
|
|
1407
1426
|
}
|
|
1408
1427
|
export interface ApplicationCollectionResponse {
|
|
1409
1428
|
page: number;
|
|
@@ -1416,6 +1435,7 @@ export interface UpdateApplicationRequestBody {
|
|
|
1416
1435
|
name?: string;
|
|
1417
1436
|
description?: string | null;
|
|
1418
1437
|
is_new_project?: boolean;
|
|
1438
|
+
ios_bundle_id?: string | null;
|
|
1419
1439
|
icon?: ImageAssetStub | null;
|
|
1420
1440
|
}
|
|
1421
1441
|
export interface TenantOnboarding {
|
|
@@ -1679,7 +1699,7 @@ export interface TeamMember {
|
|
|
1679
1699
|
avatar?: ImageAssetStub;
|
|
1680
1700
|
}
|
|
1681
1701
|
export interface UpdateTenantUserRequestBody {
|
|
1682
|
-
identity?: string;
|
|
1702
|
+
identity?: string | null;
|
|
1683
1703
|
name?: string | null;
|
|
1684
1704
|
properties?: object | null;
|
|
1685
1705
|
}
|
|
@@ -1987,7 +2007,9 @@ declare class ParraAPI {
|
|
|
1987
2007
|
createInvitationForTenantById: (tenant_id: string, body: TenantInvitationRequestBody) => Promise<TenantInvitation>;
|
|
1988
2008
|
getTeamMembersForTenantById: (tenant_id: string) => Promise<Array<TeamMember>>;
|
|
1989
2009
|
deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
|
|
1990
|
-
getUserForTenantById: (tenant_id: string, user_id: string
|
|
2010
|
+
getUserForTenantById: (tenant_id: string, user_id: string, query?: {
|
|
2011
|
+
include?: string;
|
|
2012
|
+
}) => Promise<TenantUser>;
|
|
1991
2013
|
updateUserForTenantById: (tenant_id: string, user_id: string, body?: UpdateTenantUserRequestBody) => Promise<TenantUser>;
|
|
1992
2014
|
deleteUserForTenantById: (tenant_id: string, user_id: string) => Promise<Response>;
|
|
1993
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) {
|