@parra/parra-js-sdk 0.3.119 → 0.3.120
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 +13 -0
- package/dist/ParraAPI.js +9 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1432,6 +1432,15 @@ export interface UpdateChannelRequestBody {
|
|
|
1432
1432
|
apns?: UpdateApnsChannelRequestBody;
|
|
1433
1433
|
inbox?: UpdateInboxChannelRequestBody;
|
|
1434
1434
|
}
|
|
1435
|
+
export interface SubdomainAvailabilityRequestBody {
|
|
1436
|
+
subdomain: string;
|
|
1437
|
+
}
|
|
1438
|
+
export interface SubdomainAvailabilityResponse {
|
|
1439
|
+
subdomain?: string | null;
|
|
1440
|
+
available: boolean;
|
|
1441
|
+
valid: boolean;
|
|
1442
|
+
message?: string | null;
|
|
1443
|
+
}
|
|
1435
1444
|
export interface TenantUserInfo {
|
|
1436
1445
|
roles: Array<string>;
|
|
1437
1446
|
user: TenantUser;
|
|
@@ -1570,6 +1579,7 @@ export interface TenantMetrics {
|
|
|
1570
1579
|
}
|
|
1571
1580
|
export interface CreateTenantRequestBody {
|
|
1572
1581
|
name: string;
|
|
1582
|
+
subdomain?: string | null;
|
|
1573
1583
|
is_test: boolean;
|
|
1574
1584
|
parent_tenant_id?: string | null;
|
|
1575
1585
|
}
|
|
@@ -1579,6 +1589,7 @@ export interface Tenant {
|
|
|
1579
1589
|
updated_at: string;
|
|
1580
1590
|
deleted_at?: string | null;
|
|
1581
1591
|
name: string;
|
|
1592
|
+
subdomain?: string | null;
|
|
1582
1593
|
is_test: boolean;
|
|
1583
1594
|
parent_tenant_id?: string | null;
|
|
1584
1595
|
onboarding?: TenantOnboarding | null;
|
|
@@ -1841,6 +1852,7 @@ export interface TenantUserCollectionResponse {
|
|
|
1841
1852
|
}
|
|
1842
1853
|
export interface UpdateTenantRequestBody {
|
|
1843
1854
|
name?: string;
|
|
1855
|
+
subdomain?: string | null;
|
|
1844
1856
|
onboarding_skipped?: boolean;
|
|
1845
1857
|
onboarding_goal?: string | null;
|
|
1846
1858
|
application_onboarding_skipped?: boolean;
|
|
@@ -2099,6 +2111,7 @@ declare class ParraAPI {
|
|
|
2099
2111
|
createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body: CreateChannelRequestBody) => Promise<Channel>;
|
|
2100
2112
|
updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body: UpdateChannelRequestBody) => Promise<Channel>;
|
|
2101
2113
|
deleteChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string) => Promise<Response>;
|
|
2114
|
+
checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody) => Promise<SubdomainAvailabilityResponse>;
|
|
2102
2115
|
loginUserForTenant: (tenant_id: string) => Promise<TenantUserInfo>;
|
|
2103
2116
|
getTenantUserInfo: (tenant_id: string) => Promise<TenantUserInfo>;
|
|
2104
2117
|
logoutUserForTenant: (tenant_id: string) => Promise<Response>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -932,6 +932,15 @@ var ParraAPI = /** @class */ (function () {
|
|
|
932
932
|
method: "delete",
|
|
933
933
|
});
|
|
934
934
|
};
|
|
935
|
+
this.checkSubdomainAvailability = function (body) {
|
|
936
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/subdomains/availability"), {
|
|
937
|
+
method: "post",
|
|
938
|
+
body: JSON.stringify(body),
|
|
939
|
+
headers: {
|
|
940
|
+
"content-type": "application/json",
|
|
941
|
+
},
|
|
942
|
+
});
|
|
943
|
+
};
|
|
935
944
|
this.loginUserForTenant = function (tenant_id) {
|
|
936
945
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/login"), {
|
|
937
946
|
method: "post",
|