@parra/parra-js-sdk 0.3.36 → 0.3.38

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.js CHANGED
@@ -508,7 +508,7 @@ var ParraAPI = /** @class */ (function () {
508
508
  };
509
509
  this.updateTicketById = function (tenant_id, ticket_id, body) {
510
510
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), {
511
- method: "patch",
511
+ method: "put",
512
512
  body: JSON.stringify(body),
513
513
  headers: {
514
514
  "content-type": "application/json",
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { AuthorizationProvider, HTTPInterceptor } from '@parra/http-client';
2
2
  import { default as ParraAPI } from './ParraAPI';
3
- export { HTTPRequestBody, HTTPUrlComponent, HTTPResponse, HTTPHeaders, HTTPQuery, HTTPMethod, HTTPLogger, HTTPOptions, HTTPRequest, HTTPRequestWithoutMethod, HTTPClient, HTTPInterceptor, Authorization, AuthFunctionProvider, AuthPromiseProvider, AuthorizationProvider, AuthInterceptor } from '@parra/http-client';
3
+ import { HTTPLogger } from '@parra/http-client';
4
+ export * from '@parra/http-client';
4
5
  export * from './ParraAPI';
5
6
  export { ParraAPI };
6
7
  export type ParraAPIType = typeof ParraAPI;
@@ -9,5 +10,6 @@ export interface ParraAPIOptions {
9
10
  baseUrl?: string;
10
11
  interceptors?: HTTPInterceptor[];
11
12
  fetch: any;
13
+ logger?: HTTPLogger;
12
14
  }
13
15
  export default function (options: ParraAPIOptions): ParraAPI;
package/dist/index.js CHANGED
@@ -17,13 +17,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.ParraAPI = exports.AuthInterceptor = exports.HTTPClient = void 0;
20
+ exports.ParraAPI = void 0;
21
21
  var http_client_1 = require("@parra/http-client");
22
22
  var ParraAPI_1 = __importDefault(require("./ParraAPI"));
23
23
  Object.defineProperty(exports, "ParraAPI", { enumerable: true, get: function () { return ParraAPI_1.default; } });
24
- var http_client_2 = require("@parra/http-client");
25
- Object.defineProperty(exports, "HTTPClient", { enumerable: true, get: function () { return http_client_2.HTTPClient; } });
26
- Object.defineProperty(exports, "AuthInterceptor", { enumerable: true, get: function () { return http_client_2.AuthInterceptor; } });
24
+ __exportStar(require("@parra/http-client"), exports);
27
25
  __exportStar(require("./ParraAPI"), exports);
28
26
  function default_1(options) {
29
27
  var baseUrl = options.baseUrl || 'https://api.parra.io';
@@ -35,7 +33,7 @@ function default_1(options) {
35
33
  if (options.interceptors) {
36
34
  interceptors.push.apply(interceptors, options.interceptors);
37
35
  }
38
- var http = new http_client_1.HTTPClient({ interceptors: interceptors, fetch: options.fetch });
36
+ var http = new http_client_1.HTTPClient({ interceptors: interceptors, fetch: options.fetch, logger: options.logger });
39
37
  return new ParraAPI_1.default(http, { baseUrl: baseUrl });
40
38
  }
41
39
  exports.default = default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.36",
3
+ "version": "0.3.38",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,6 +23,6 @@
23
23
  "typescript": "^5.2.2"
24
24
  },
25
25
  "dependencies": {
26
- "@parra/http-client": "0.5.4"
26
+ "@parra/http-client": "0.5.5"
27
27
  }
28
28
  }