@trunkrs/common 1.9.91 → 1.9.92

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trunkrs/common",
3
- "version": "1.9.91",
3
+ "version": "1.9.92",
4
4
  "description": "Common standards library for development in Trunkrs",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/Trunkrs/common.git",
@@ -0,0 +1,4 @@
1
+ interface MachineTokenClientBase {
2
+ getMachineToken(): Promise<string>;
3
+ }
4
+ export default MachineTokenClientBase;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=MachineTokenClientBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MachineTokenClientBase.js","sourceRoot":"","sources":["../../../../services/client/MachineTokenClient/MachineTokenClientBase.ts"],"names":[],"mappings":""}
@@ -1,7 +1,8 @@
1
1
  import SecretsClient from '../../aws/SecretsClient';
2
2
  import { Serializer } from '../../../utils/serialization';
3
3
  import OAuthClient from '../OAuthClient';
4
- declare class MachineTokenClient {
4
+ import MachineTokenClientBase from './MachineTokenClientBase';
5
+ declare class MachineTokenClient implements MachineTokenClientBase {
5
6
  protected readonly appClientSecretName: string;
6
7
  protected readonly secretsClient: SecretsClient;
7
8
  protected readonly oAuthClient: OAuthClient;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../services/client/MachineTokenClient/index.ts"],"names":[],"mappings":";;;;;AAOA,8EAAqD;AAErD,MAAM,kBAAkB;IACtB,YACqB,mBAA2B,EAC3B,aAA4B,EAC5B,WAAwB,EACxB,UAAsB;QAHtB,wBAAmB,GAAnB,mBAAmB,CAAQ;QAC3B,kBAAa,GAAb,aAAa,CAAe;QAC5B,gBAAW,GAAX,WAAW,CAAa;QACxB,eAAU,GAAV,UAAU,CAAY;IACxC,CAAC;IAEG,KAAK,CAAC,eAAe;QAC1B,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,cAAc,CAC7D,IAAI,CAAC,mBAAmB,CACzB,CAAA;QACD,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,4BAAkB,EAAE,CAAA;SAC/B;QAED,MAAM,aAAa,GACjB,IAAI,CAAC,UAAU,CAAC,WAAW,CAAY,eAAe,CAAC,CAAA;QAEzD,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAClE,aAAa,CACd,CAAA;QAED,OAAO,WAAW,CAAA;IACpB,CAAC;CACF;AAED,kBAAe,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../services/client/MachineTokenClient/index.ts"],"names":[],"mappings":";;;;;AAOA,8EAAqD;AAGrD,MAAM,kBAAkB;IACtB,YACqB,mBAA2B,EAC3B,aAA4B,EAC5B,WAAwB,EACxB,UAAsB;QAHtB,wBAAmB,GAAnB,mBAAmB,CAAQ;QAC3B,kBAAa,GAAb,aAAa,CAAe;QAC5B,gBAAW,GAAX,WAAW,CAAa;QACxB,eAAU,GAAV,UAAU,CAAY;IACxC,CAAC;IAEG,KAAK,CAAC,eAAe;QAC1B,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,cAAc,CAC7D,IAAI,CAAC,mBAAmB,CACzB,CAAA;QACD,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,4BAAkB,EAAE,CAAA;SAC/B;QAED,MAAM,aAAa,GACjB,IAAI,CAAC,UAAU,CAAC,WAAW,CAAY,eAAe,CAAC,CAAA;QAEzD,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAClE,aAAa,CACd,CAAA;QAED,OAAO,WAAW,CAAA;IACpB,CAAC;CACF;AAED,kBAAe,kBAAkB,CAAA"}