@pax2pay/client 0.3.111 → 0.3.112

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,6 +1,9 @@
1
+ import { isly } from "isly";
1
2
  export interface SecurityConfig {
2
3
  enforce2fa?: boolean;
4
+ passwordExpirationDays?: number;
3
5
  }
4
6
  export declare namespace SecurityConfig {
5
- function is(value: SecurityConfig | any): value is SecurityConfig;
7
+ const type: isly.object.ExtendableType<SecurityConfig>;
8
+ const is: isly.Type.IsFunction<SecurityConfig>;
6
9
  }
@@ -1,8 +1,10 @@
1
+ import { isly } from "isly";
1
2
  export var SecurityConfig;
2
3
  (function (SecurityConfig) {
3
- function is(value) {
4
- return typeof value == "object" && (typeof value.enforce2fa == "boolean" || value.enforce2fa == undefined);
5
- }
6
- SecurityConfig.is = is;
4
+ SecurityConfig.type = isly.object({
5
+ enforce2fa: isly.boolean().optional(),
6
+ passwordExpirationDays: isly.number().optional(),
7
+ });
8
+ SecurityConfig.is = SecurityConfig.type.is;
7
9
  })(SecurityConfig || (SecurityConfig = {}));
8
10
  //# sourceMappingURL=SecurityConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SecurityConfig.js","sourceRoot":"../","sources":["model/SecurityConfig.ts"],"names":[],"mappings":"AAGA,MAAM,KAAW,cAAc,CAI9B;AAJD,WAAiB,cAAc;IAC9B,SAAgB,EAAE,CAAC,KAA2B;QAC7C,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,CAAC,OAAO,KAAK,CAAC,UAAU,IAAI,SAAS,IAAI,KAAK,CAAC,UAAU,IAAI,SAAS,CAAC,CAAA;IAC3G,CAAC;IAFe,iBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,cAAc,KAAd,cAAc,QAI9B"}
1
+ {"version":3,"file":"SecurityConfig.js","sourceRoot":"../","sources":["model/SecurityConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,cAAc,CAM9B;AAND,WAAiB,cAAc;IACjB,mBAAI,GAAG,IAAI,CAAC,MAAM,CAAiB;QAC/C,UAAU,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QACrC,sBAAsB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAChD,CAAC,CAAA;IACW,iBAAE,GAAG,eAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EANgB,cAAc,KAAd,cAAc,QAM9B"}
@@ -1,8 +1,13 @@
1
+ import { isly } from "isly"
2
+
1
3
  export interface SecurityConfig {
2
4
  enforce2fa?: boolean
5
+ passwordExpirationDays?: number
3
6
  }
4
7
  export namespace SecurityConfig {
5
- export function is(value: SecurityConfig | any): value is SecurityConfig {
6
- return typeof value == "object" && (typeof value.enforce2fa == "boolean" || value.enforce2fa == undefined)
7
- }
8
+ export const type = isly.object<SecurityConfig>({
9
+ enforce2fa: isly.boolean().optional(),
10
+ passwordExpirationDays: isly.number().optional(),
11
+ })
12
+ export const is = type.is
8
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.3.111",
3
+ "version": "0.3.112",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",