@parra/parra-js-sdk 0.3.7 → 0.3.10

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.
@@ -935,7 +935,7 @@ export interface TemplateCollectionResponse {
935
935
  total_count: number;
936
936
  data: Array<Template>;
937
937
  }
938
- export type TemplateResponse = Array<Template>;
938
+ export type TemplateListResponse = Array<Template>;
939
939
  export interface UpdateTemplateTagRequestBody {
940
940
  description?: string | null;
941
941
  }
@@ -1395,6 +1395,7 @@ declare class ParraAPI {
1395
1395
  $expand?: string;
1396
1396
  $search?: string;
1397
1397
  }) => Promise<TemplateCollectionResponse>;
1398
+ cloneTemplateForTenantById: (tenant_id: string, template_id: string) => Promise<Template>;
1398
1399
  createApplicationForTenantById: (tenant_id: string, body?: CreateApplicationRequestBody) => Promise<Application>;
1399
1400
  paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
1400
1401
  getApplicationByIdForTenantById: (tenant_id: string, application_id: string, query?: {
package/dist/ParraAPI.js CHANGED
@@ -553,6 +553,11 @@ var ParraAPI = /** @class */ (function () {
553
553
  query: query,
554
554
  });
555
555
  };
556
+ this.cloneTemplateForTenantById = function (tenant_id, template_id) {
557
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/templates/").concat(template_id, "/clone"), {
558
+ method: "post",
559
+ });
560
+ };
556
561
  this.createApplicationForTenantById = function (tenant_id, body) {
557
562
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
558
563
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.7",
3
+ "version": "0.3.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",