@pax2pay/client 0.9.6 → 0.9.7

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.
@@ -2,7 +2,7 @@ import { isly } from "isly";
2
2
  export var EmailReportFileDestination;
3
3
  (function (EmailReportFileDestination) {
4
4
  EmailReportFileDestination.type = isly.object({
5
- to: isly.string(/\S+@\S+\.\S+/).array({ criteria: "minLength", value: 1 }),
5
+ to: isly.string(/\S+@\S+\.\S+/).array(),
6
6
  subject: isly.string().optional(),
7
7
  body: isly.string().optional(),
8
8
  });
@@ -1 +1 @@
1
- {"version":3,"file":"EmailReportFileDestination.js","sourceRoot":"../","sources":["model/EmailReportFileDestination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,KAAW,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IAC7B,+BAAI,GAAG,IAAI,CAAC,MAAM,CAA6B;QAC3D,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QAC1E,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9B,CAAC,CAAA;IACW,6BAAE,GAAG,2BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAPgB,0BAA0B,KAA1B,0BAA0B,QAO1C"}
1
+ {"version":3,"file":"EmailReportFileDestination.js","sourceRoot":"../","sources":["model/EmailReportFileDestination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,KAAW,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IAC7B,+BAAI,GAAG,IAAI,CAAC,MAAM,CAA6B;QAC3D,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE;QACvC,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9B,CAAC,CAAA;IACW,6BAAE,GAAG,2BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAPgB,0BAA0B,KAA1B,0BAA0B,QAO1C"}
@@ -2,7 +2,7 @@ import { isly } from "isly";
2
2
  export var SftpReportFileDestination;
3
3
  (function (SftpReportFileDestination) {
4
4
  SftpReportFileDestination.type = isly.object({
5
- host: isly.string(),
5
+ host: isly.string(/^[\w-]+\.[\w.-]+$/),
6
6
  user: isly.string(),
7
7
  port: isly.number("integer").optional(),
8
8
  password: isly.string().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"SftpReportFileDestination.js","sourceRoot":"../","sources":["model/SftpReportFileDestination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAW3B,MAAM,KAAW,yBAAyB,CAWzC;AAXD,WAAiB,yBAAyB;IAC5B,8BAAI,GAAG,IAAI,CAAC,MAAM,CAA4B;QAC1D,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;QACvC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACpC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;KACnB,CAAC,CAAA;IACW,4BAAE,GAAG,0BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAXgB,yBAAyB,KAAzB,yBAAyB,QAWzC"}
1
+ {"version":3,"file":"SftpReportFileDestination.js","sourceRoot":"../","sources":["model/SftpReportFileDestination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAW3B,MAAM,KAAW,yBAAyB,CAWzC;AAXD,WAAiB,yBAAyB;IAC5B,8BAAI,GAAG,IAAI,CAAC,MAAM,CAA4B;QAC1D,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC;QACtC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;QACvC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACpC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;KACnB,CAAC,CAAA;IACW,4BAAE,GAAG,0BAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAXgB,yBAAyB,KAAzB,yBAAyB,QAWzC"}
@@ -7,7 +7,7 @@ export interface EmailReportFileDestination {
7
7
  }
8
8
  export namespace EmailReportFileDestination {
9
9
  export const type = isly.object<EmailReportFileDestination>({
10
- to: isly.string(/\S+@\S+\.\S+/).array({ criteria: "minLength", value: 1 }),
10
+ to: isly.string(/\S+@\S+\.\S+/).array(),
11
11
  subject: isly.string().optional(),
12
12
  body: isly.string().optional(),
13
13
  })
@@ -11,7 +11,7 @@ export interface SftpReportFileDestination {
11
11
  }
12
12
  export namespace SftpReportFileDestination {
13
13
  export const type = isly.object<SftpReportFileDestination>({
14
- host: isly.string(),
14
+ host: isly.string(/^[\w-]+\.[\w.-]+$/),
15
15
  user: isly.string(),
16
16
  port: isly.number("integer").optional(),
17
17
  password: isly.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",