@or-sdk/event-manager 0.11.0 → 0.14.0

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.
@@ -35,6 +35,9 @@ var EventManager = (function (_super) {
35
35
  EventManager.prototype.makeRequest = function (params) {
36
36
  return this.callApi(params);
37
37
  };
38
+ EventManager.prototype.parseError = function (e) {
39
+ return e;
40
+ };
38
41
  return EventManager;
39
42
  }(base_1.Base));
40
43
  exports.EventManager = EventManager;
@@ -1 +1 @@
1
- {"version":3,"file":"EventManager.js","sourceRoot":"","sources":["../../src/EventManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAkD;AAElD,yCAA0C;AAS1C;IAAkC,gCAAI;IAOpC,sBAAY,MAA0B;QAAtC,iBAUC;QATS,IAAA,KAAK,GAAgE,MAAM,MAAtE,EAAE,YAAY,GAAkD,MAAM,aAAxD,EAAE,gBAAgB,GAAgC,MAAM,iBAAtC,EAAE,yBAAyB,GAAK,MAAM,0BAAX,CAAY;QAEpF,QAAA,kBAAM;YACJ,KAAK,OAAA;YACL,YAAY,cAAA;YACZ,gBAAgB,EAAE,gBAAgB,IAAI,KAAK;YAC3C,yBAAyB,EAAE,yBAAyB,IAAI,KAAK;YAC7D,UAAU,EAAE,uBAAW;SACxB,CAAC,SAAC;;IACL,CAAC;IAEM,kCAAW,GAAlB,UAAsB,MAAoB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IACH,mBAAC;AAAD,CAAC,AAtBD,CAAkC,WAAI,GAsBrC;AAtBY,oCAAY"}
1
+ {"version":3,"file":"EventManager.js","sourceRoot":"","sources":["../../src/EventManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAA8D;AAE9D,yCAA0C;AAS1C;IAAkC,gCAAI;IAOpC,sBAAY,MAA0B;QAAtC,iBAUC;QATS,IAAA,KAAK,GAAgE,MAAM,MAAtE,EAAE,YAAY,GAAkD,MAAM,aAAxD,EAAE,gBAAgB,GAAgC,MAAM,iBAAtC,EAAE,yBAAyB,GAAK,MAAM,0BAAX,CAAY;QAEpF,QAAA,kBAAM;YACJ,KAAK,OAAA;YACL,YAAY,cAAA;YACZ,gBAAgB,EAAE,gBAAgB,IAAI,KAAK;YAC3C,yBAAyB,EAAE,yBAAyB,IAAI,KAAK;YAC7D,UAAU,EAAE,uBAAW;SACxB,CAAC,SAAC;;IACL,CAAC;IAEM,kCAAW,GAAlB,UAAsB,MAAoB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IAED,iCAAU,GAAV,UAAW,CAAa;QACtB,OAAO,CAAC,CAAC;IACX,CAAC;IACH,mBAAC;AAAD,CAAC,AA1BD,CAAkC,WAAI,GA0BrC;AA1BY,oCAAY"}
@@ -14,5 +14,8 @@ export class EventManager extends Base {
14
14
  makeRequest(params) {
15
15
  return this.callApi(params);
16
16
  }
17
+ parseError(e) {
18
+ return e;
19
+ }
17
20
  }
18
21
  //# sourceMappingURL=EventManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventManager.js","sourceRoot":"","sources":["../../src/EventManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgB,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS1C,MAAM,OAAO,YAAa,SAAQ,IAAI;IAOpC,YAAY,MAA0B;QACpC,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,GAAG,MAAM,CAAC;QAEpF,KAAK,CAAC;YACJ,KAAK;YACL,YAAY;YACZ,gBAAgB,EAAE,gBAAgB,IAAI,KAAK;YAC3C,yBAAyB,EAAE,yBAAyB,IAAI,KAAK;YAC7D,UAAU,EAAE,WAAW;SACxB,CAAC,CAAC;IACL,CAAC;IAEM,WAAW,CAAI,MAAoB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;CACF"}
1
+ {"version":3,"file":"EventManager.js","sourceRoot":"","sources":["../../src/EventManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAA4B,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS1C,MAAM,OAAO,YAAa,SAAQ,IAAI;IAOpC,YAAY,MAA0B;QACpC,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,GAAG,MAAM,CAAC;QAEpF,KAAK,CAAC;YACJ,KAAK;YACL,YAAY;YACZ,gBAAgB,EAAE,gBAAgB,IAAI,KAAK;YAC3C,yBAAyB,EAAE,yBAAyB,IAAI,KAAK;YAC7D,UAAU,EAAE,WAAW;SACxB,CAAC,CAAC;IACL,CAAC;IAEM,WAAW,CAAI,MAAoB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IAED,UAAU,CAAC,CAAa;QACtB,OAAO,CAAC,CAAC;IACX,CAAC;CACF"}
@@ -1,6 +1,7 @@
1
- import { Base, CalApiParams } from '@or-sdk/base';
1
+ import { Base, CalApiParams, AxiosError } from '@or-sdk/base';
2
2
  import { EventManagerConfig } from './types';
3
3
  export declare class EventManager extends Base {
4
4
  constructor(params: EventManagerConfig);
5
5
  makeRequest<T>(params: CalApiParams): Promise<T>;
6
+ parseError(e: AxiosError): Error;
6
7
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.11.0",
2
+ "version": "0.14.0",
3
3
  "name": "@or-sdk/event-manager",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
@@ -23,7 +23,7 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@or-sdk/base": "^0.11.0"
26
+ "@or-sdk/base": "^0.14.0"
27
27
  },
28
- "gitHead": "69c6cabbf681fe0fb9616058d58e89b0526e8f77"
28
+ "gitHead": "5a9977bbaa2aabe4461155b78bf59ac68c698668"
29
29
  }
@@ -1,4 +1,4 @@
1
- import { Base, CalApiParams } from '@or-sdk/base';
1
+ import { Base, CalApiParams, AxiosError } from '@or-sdk/base';
2
2
  import { EventManagerConfig } from './types';
3
3
  import { SERVICE_KEY } from './constants';
4
4
 
@@ -31,4 +31,8 @@ export class EventManager extends Base {
31
31
  public makeRequest<T>(params: CalApiParams): Promise<T> {
32
32
  return this.callApi(params);
33
33
  }
34
+
35
+ parseError(e: AxiosError): Error {
36
+ return e;
37
+ }
34
38
  }