@parra/parra-js-sdk 0.3.127 → 0.3.129

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.
@@ -2282,7 +2282,7 @@ declare class ParraAPI {
2282
2282
  deletePolicyDocumentByIdForTenantById: (tenant_id: string, policy_document_id: string, options?: Options) => Promise<Response>;
2283
2283
  getPolicyDocumentVersionForTenantById: (tenant_id: string, policy_document_id: string, policy_document_version_id: string, options?: Options) => Promise<PolicyDocumentVersion>;
2284
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>;
2285
+ publishPolicyDocumentVersionForTenantById: (tenant_id: string, policy_document_id: string, policy_document_version_id: string, body?: UpdatePolicyDocumentVersionRequestBody, options?: Options) => Promise<PolicyDocumentVersion>;
2286
2286
  getUserById: (user_id: string, options?: Options) => Promise<UserResponse>;
2287
2287
  updateUserById: (user_id: string, body: UpdateUserRequestBody, options?: Options) => Promise<UserResponse>;
2288
2288
  deleteUserById: (user_id: string, options?: Options) => Promise<Response>;
package/dist/ParraAPI.js CHANGED
@@ -987,9 +987,11 @@ var ParraAPI = /** @class */ (function () {
987
987
  "content-type": "application/json",
988
988
  } }, options));
989
989
  };
990
- this.publishPolicyDocumentVersionForTenantById = function (tenant_id, policy_document_id, policy_document_version_id, options) {
990
+ this.publishPolicyDocumentVersionForTenantById = function (tenant_id, policy_document_id, policy_document_version_id, body, options) {
991
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));
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", body: JSON.stringify(body), headers: {
993
+ "content-type": "application/json",
994
+ } }, options));
993
995
  };
994
996
  this.getUserById = function (user_id, options) {
995
997
  if (options === void 0) { options = {}; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.127",
3
+ "version": "0.3.129",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",