@parra/parra-js-sdk 0.2.43 → 0.2.44

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.
@@ -419,6 +419,9 @@ export interface UserCollectionResponse {
419
419
  export interface CheckAuthorizationRequestBody {
420
420
  scope: string;
421
421
  }
422
+ export interface AuthToken {
423
+ access_token: boolean;
424
+ }
422
425
  export interface CheckAuthorization {
423
426
  allowed: boolean;
424
427
  }
@@ -481,5 +484,6 @@ declare class ParraAPI {
481
484
  getUserByProviderAndProviderUserId: (provider: string, provider_user_id: string) => Promise<UserResponse>;
482
485
  checkAuthorization: (body?: CheckAuthorizationRequestBody | undefined) => Promise<CheckAuthorization>;
483
486
  getUserInfo: () => Promise<UserInfoResponse>;
487
+ getParraAuthToken: () => Promise<AuthToken>;
484
488
  }
485
489
  export default ParraAPI;
package/dist/ParraAPI.js CHANGED
@@ -273,6 +273,11 @@ var ParraAPI = /** @class */ (function () {
273
273
  method: "get",
274
274
  });
275
275
  };
276
+ this.getParraAuthToken = function () {
277
+ return _this.http.execute(_this.options.baseUrl + "/v1/parra/auth/token", {
278
+ method: "post",
279
+ });
280
+ };
276
281
  }
277
282
  return ParraAPI;
278
283
  }());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.43",
3
+ "version": "0.2.44",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",