@parra/parra-js-sdk 0.3.232 → 0.3.234
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 +18 -2
- package/dist/ParraAPI.js +25 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -488,6 +488,7 @@ export interface TenantUser {
|
|
|
488
488
|
last_login_at?: string | null;
|
|
489
489
|
has_password: boolean;
|
|
490
490
|
properties: object;
|
|
491
|
+
metadata: object;
|
|
491
492
|
identities?: Array<Identity> | null;
|
|
492
493
|
}
|
|
493
494
|
export interface UserInfoResponse {
|
|
@@ -2108,7 +2109,8 @@ export declare enum DashboardChecklistItemType {
|
|
|
2108
2109
|
connectAppStoreConnect = "connect_app_store_connect",
|
|
2109
2110
|
setupExternalDomain = "setup_external_domain",
|
|
2110
2111
|
setupEmail = "setup_email",
|
|
2111
|
-
setupSms = "setup_sms"
|
|
2112
|
+
setupSms = "setup_sms",
|
|
2113
|
+
generateProject = "generate_project"
|
|
2112
2114
|
}
|
|
2113
2115
|
export declare enum DashboardChecklistItemStatus {
|
|
2114
2116
|
pending = "pending",
|
|
@@ -2126,6 +2128,7 @@ export interface DashboardChecklistItem {
|
|
|
2126
2128
|
type: DashboardChecklistItemType;
|
|
2127
2129
|
status: DashboardChecklistItemStatus;
|
|
2128
2130
|
external_domain_id?: string | null;
|
|
2131
|
+
application_id?: string | null;
|
|
2129
2132
|
}
|
|
2130
2133
|
export interface CreateApplicationRequestBody {
|
|
2131
2134
|
context?: string | null;
|
|
@@ -2387,6 +2390,9 @@ export interface CreateSendgridConnectedAppConnectionRequestBody {
|
|
|
2387
2390
|
export interface CreateSlackConnectedAppConnectionRequestBody {
|
|
2388
2391
|
code: string;
|
|
2389
2392
|
}
|
|
2393
|
+
export interface CreateYoutubeConnectedAppConnectionRequestBody {
|
|
2394
|
+
code: string;
|
|
2395
|
+
}
|
|
2390
2396
|
export interface CreateTwilioConnectedAppConnectionRequestBody {
|
|
2391
2397
|
account_sid: string;
|
|
2392
2398
|
auth_token: string;
|
|
@@ -2397,7 +2403,7 @@ export interface CreateXConnectedAppConnectionRequestBody {
|
|
|
2397
2403
|
code: string;
|
|
2398
2404
|
code_verifier: string;
|
|
2399
2405
|
}
|
|
2400
|
-
export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
|
|
2406
|
+
export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateYoutubeConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
|
|
2401
2407
|
export declare enum IntegrationType {
|
|
2402
2408
|
parraFeedbackFormBoard = "parra-feedback-form-board",
|
|
2403
2409
|
slackFeedbackForm = "slack-feedback-form",
|
|
@@ -2515,6 +2521,11 @@ export interface UpdateTenantUserRequestBody {
|
|
|
2515
2521
|
last_name?: string | null;
|
|
2516
2522
|
properties?: object | null;
|
|
2517
2523
|
}
|
|
2524
|
+
export interface UserProperties {
|
|
2525
|
+
}
|
|
2526
|
+
export interface UpdateUserPropertyValueRequestBody {
|
|
2527
|
+
value: number | string | number | boolean;
|
|
2528
|
+
}
|
|
2518
2529
|
export interface CreateTenantUserRequestBody {
|
|
2519
2530
|
identity?: string | null;
|
|
2520
2531
|
name?: string | null;
|
|
@@ -3220,6 +3231,11 @@ declare class ParraAPI {
|
|
|
3220
3231
|
}, options?: Options) => Promise<TenantUser>;
|
|
3221
3232
|
updateUserForTenantById: (tenant_id: string, user_id: string, body?: UpdateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
|
|
3222
3233
|
deleteUserForTenantById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
|
|
3234
|
+
getPropertiesForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<UserProperties>;
|
|
3235
|
+
updatePropertiesForTenantUser: (tenant_id: string, user_id: string, body?: UserProperties, options?: Options) => Promise<UserProperties>;
|
|
3236
|
+
deletePropertiesForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<UserProperties>;
|
|
3237
|
+
updatePropertyForTenantUser: (tenant_id: string, user_id: string, user_property_key: string, body: UpdateUserPropertyValueRequestBody, options?: Options) => Promise<UserProperties>;
|
|
3238
|
+
deletePropertyForTenantUser: (tenant_id: string, user_id: string, user_property_key: string, options?: Options) => Promise<UserProperties>;
|
|
3223
3239
|
updateAvatarForTenantUserById: (tenant_id: string, user_id: string, body: ImageAssetStub, options?: Options) => Promise<Response>;
|
|
3224
3240
|
deleteAvatarForTenantUserById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
|
|
3225
3241
|
createUserForTenantById: (tenant_id: string, body?: CreateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -253,6 +253,7 @@ var DashboardChecklistItemType;
|
|
|
253
253
|
DashboardChecklistItemType["setupExternalDomain"] = "setup_external_domain";
|
|
254
254
|
DashboardChecklistItemType["setupEmail"] = "setup_email";
|
|
255
255
|
DashboardChecklistItemType["setupSms"] = "setup_sms";
|
|
256
|
+
DashboardChecklistItemType["generateProject"] = "generate_project";
|
|
256
257
|
})(DashboardChecklistItemType || (exports.DashboardChecklistItemType = DashboardChecklistItemType = {}));
|
|
257
258
|
var DashboardChecklistItemStatus;
|
|
258
259
|
(function (DashboardChecklistItemStatus) {
|
|
@@ -1167,6 +1168,30 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1167
1168
|
if (options === void 0) { options = {}; }
|
|
1168
1169
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), __assign({ method: "delete" }, options));
|
|
1169
1170
|
};
|
|
1171
|
+
this.getPropertiesForTenantUser = function (tenant_id, user_id, options) {
|
|
1172
|
+
if (options === void 0) { options = {}; }
|
|
1173
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "get" }, options));
|
|
1174
|
+
};
|
|
1175
|
+
this.updatePropertiesForTenantUser = function (tenant_id, user_id, body, options) {
|
|
1176
|
+
if (options === void 0) { options = {}; }
|
|
1177
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "put", body: JSON.stringify(body), headers: {
|
|
1178
|
+
"content-type": "application/json",
|
|
1179
|
+
} }, options));
|
|
1180
|
+
};
|
|
1181
|
+
this.deletePropertiesForTenantUser = function (tenant_id, user_id, options) {
|
|
1182
|
+
if (options === void 0) { options = {}; }
|
|
1183
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "delete" }, options));
|
|
1184
|
+
};
|
|
1185
|
+
this.updatePropertyForTenantUser = function (tenant_id, user_id, user_property_key, body, options) {
|
|
1186
|
+
if (options === void 0) { options = {}; }
|
|
1187
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties/").concat(user_property_key), __assign({ method: "put", body: JSON.stringify(body), headers: {
|
|
1188
|
+
"content-type": "application/json",
|
|
1189
|
+
} }, options));
|
|
1190
|
+
};
|
|
1191
|
+
this.deletePropertyForTenantUser = function (tenant_id, user_id, user_property_key, options) {
|
|
1192
|
+
if (options === void 0) { options = {}; }
|
|
1193
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties/").concat(user_property_key), __assign({ method: "delete" }, options));
|
|
1194
|
+
};
|
|
1170
1195
|
this.updateAvatarForTenantUserById = function (tenant_id, user_id, body, options) {
|
|
1171
1196
|
if (options === void 0) { options = {}; }
|
|
1172
1197
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/avatar"), __assign({ method: "put", body: JSON.stringify(body), headers: {
|