@parra/parra-js-sdk 0.3.126 → 0.3.128
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 +8 -0
- package/dist/ParraAPI.js +14 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1942,6 +1942,11 @@ export interface PolicyDocumentCollectionResponse {
|
|
|
1942
1942
|
total_count: number;
|
|
1943
1943
|
data: Array<PolicyDocumentCollectionStub>;
|
|
1944
1944
|
}
|
|
1945
|
+
export interface UpdatePolicyDocumentVersionRequestBody {
|
|
1946
|
+
title?: string | null;
|
|
1947
|
+
version?: string | null;
|
|
1948
|
+
content?: string | null;
|
|
1949
|
+
}
|
|
1945
1950
|
export interface UpdateUserRequestBody {
|
|
1946
1951
|
first_name: string;
|
|
1947
1952
|
last_name: string;
|
|
@@ -2275,6 +2280,9 @@ declare class ParraAPI {
|
|
|
2275
2280
|
getPolicyDocumentByIdForTenantById: (tenant_id: string, policy_document_id: string, options?: Options) => Promise<PolicyDocument>;
|
|
2276
2281
|
updatePolicyDocumentByIdForTenantById: (tenant_id: string, policy_document_id: string, body?: UpdatePolicyDocumentRequestBody, options?: Options) => Promise<PolicyDocument>;
|
|
2277
2282
|
deletePolicyDocumentByIdForTenantById: (tenant_id: string, policy_document_id: string, options?: Options) => Promise<Response>;
|
|
2283
|
+
getPolicyDocumentVersionForTenantById: (tenant_id: string, policy_document_id: string, policy_document_version_id: string, options?: Options) => Promise<PolicyDocumentVersion>;
|
|
2284
|
+
updatePolicyDocumentVersionForTenantById: (tenant_id: string, policy_document_id: string, policy_document_version_id: string, body?: UpdatePolicyDocumentVersionRequestBody, options?: Options) => Promise<PolicyDocumentVersion>;
|
|
2285
|
+
publishPolicyDocumentVersionForTenantById: (tenant_id: string, policy_document_id: string, policy_document_version_id: string, options?: Options) => Promise<PolicyDocumentVersion>;
|
|
2278
2286
|
getUserById: (user_id: string, options?: Options) => Promise<UserResponse>;
|
|
2279
2287
|
updateUserById: (user_id: string, body: UpdateUserRequestBody, options?: Options) => Promise<UserResponse>;
|
|
2280
2288
|
deleteUserById: (user_id: string, options?: Options) => Promise<Response>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -977,6 +977,20 @@ var ParraAPI = /** @class */ (function () {
|
|
|
977
977
|
if (options === void 0) { options = {}; }
|
|
978
978
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id), __assign({ method: "delete" }, options));
|
|
979
979
|
};
|
|
980
|
+
this.getPolicyDocumentVersionForTenantById = function (tenant_id, policy_document_id, policy_document_version_id, options) {
|
|
981
|
+
if (options === void 0) { options = {}; }
|
|
982
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id, "/versions/").concat(policy_document_version_id), __assign({ method: "get" }, options));
|
|
983
|
+
};
|
|
984
|
+
this.updatePolicyDocumentVersionForTenantById = function (tenant_id, policy_document_id, policy_document_version_id, body, options) {
|
|
985
|
+
if (options === void 0) { options = {}; }
|
|
986
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id, "/versions/").concat(policy_document_version_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
|
|
987
|
+
"content-type": "application/json",
|
|
988
|
+
} }, options));
|
|
989
|
+
};
|
|
990
|
+
this.publishPolicyDocumentVersionForTenantById = function (tenant_id, policy_document_id, policy_document_version_id, options) {
|
|
991
|
+
if (options === void 0) { options = {}; }
|
|
992
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id, "/versions/").concat(policy_document_version_id, "/publish"), __assign({ method: "post" }, options));
|
|
993
|
+
};
|
|
980
994
|
this.getUserById = function (user_id, options) {
|
|
981
995
|
if (options === void 0) { options = {}; }
|
|
982
996
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), __assign({ method: "get" }, options));
|