@fiado/type-kit 1.0.15 → 1.0.17

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.
@@ -1,5 +1,4 @@
1
- import { UpdateKey } from "../enums/UpdateKey";
2
1
  export declare class CardUpdateRequest {
3
- type: UpdateKey;
2
+ type: string;
4
3
  value: string;
5
4
  }
@@ -0,0 +1,15 @@
1
+ import { TypeOfDirectoryId } from "../directory";
2
+ import { Status } from "../directory/enums/Status";
3
+ export interface TokenPayload {
4
+ directoryId: string;
5
+ typeOfDirectoryId: TypeOfDirectoryId;
6
+ sub: string;
7
+ app: string;
8
+ issuer: string;
9
+ scope: string;
10
+ phoneNumber?: string | null;
11
+ status: Status | null;
12
+ id: string;
13
+ profileId?: string | null;
14
+ email?: string | null;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './TokenPayload';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./TokenPayload"), exports);
package/bin/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * as Directory from './directory';
9
9
  export * as ExchangeRate from './exchangeRate';
10
10
  export * as File from './identity';
11
11
  export * as Identity from './provider';
12
+ export * as Header from './header';
package/bin/index.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Identity = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
26
+ exports.Header = exports.Identity = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
27
27
  exports.Account = __importStar(require("./account"));
28
28
  exports.Address = __importStar(require("./address"));
29
29
  exports.App = __importStar(require("./app"));
@@ -35,3 +35,4 @@ exports.Directory = __importStar(require("./directory"));
35
35
  exports.ExchangeRate = __importStar(require("./exchangeRate"));
36
36
  exports.File = __importStar(require("./identity"));
37
37
  exports.Identity = __importStar(require("./provider"));
38
+ exports.Header = __importStar(require("./header"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -8,7 +8,7 @@ import { IsValueValid } from "../validations/CardUpdateKeyConstraint";
8
8
  export class CardUpdateRequest {
9
9
 
10
10
  @IsEnum(UpdateKey)
11
- type: UpdateKey;
11
+ type: string;
12
12
 
13
13
  @IsString()
14
14
  @IsValueValid()
@@ -2,5 +2,5 @@
2
2
 
3
3
  export enum UpdateKey {
4
4
  CHANGE_STATUS = 'CHANGE_STATUS',
5
- CHANGE_PIN = 'CHANGE_PIN',
5
+ CHANGE_PIN = 'CHANGE_PIN'
6
6
  }
@@ -0,0 +1,16 @@
1
+ import { TypeOfDirectoryId } from "../directory";
2
+ import { Status } from "../directory/enums/Status";
3
+
4
+ export interface TokenPayload {
5
+ directoryId: string;
6
+ typeOfDirectoryId: TypeOfDirectoryId;
7
+ sub: string;
8
+ app: string;
9
+ issuer: string;
10
+ scope: string;
11
+ phoneNumber?: string | null;
12
+ status: Status | null;
13
+ id: string;
14
+ profileId?: string | null;
15
+ email?: string | null;
16
+ }
@@ -0,0 +1,3 @@
1
+
2
+
3
+ export * from './TokenPayload'
package/src/index.ts CHANGED
@@ -11,6 +11,7 @@ export * as Directory from './directory';
11
11
  export * as ExchangeRate from './exchangeRate';
12
12
  export * as File from './identity';
13
13
  export * as Identity from './provider';
14
+ export * as Header from './header';
14
15
 
15
16
 
16
17