@keetanetwork/anchor 0.0.58 → 0.0.60

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.
Files changed (54) hide show
  1. package/lib/chaining.d.ts +3 -3
  2. package/lib/chaining.d.ts.map +1 -1
  3. package/lib/chaining.js.map +1 -1
  4. package/lib/queue/drivers/queue_postgres.d.ts +20 -3
  5. package/lib/queue/drivers/queue_postgres.d.ts.map +1 -1
  6. package/lib/queue/drivers/queue_postgres.js +152 -40
  7. package/lib/queue/drivers/queue_postgres.js.map +1 -1
  8. package/lib/resolver.d.ts +1 -1
  9. package/lib/resolver.d.ts.map +1 -1
  10. package/lib/resolver.js +214 -244
  11. package/lib/resolver.js.map +1 -1
  12. package/npm-shrinkwrap.json +2 -2
  13. package/package.json +1 -1
  14. package/services/asset-movement/client.d.ts +20 -8
  15. package/services/asset-movement/client.d.ts.map +1 -1
  16. package/services/asset-movement/client.js +63 -22
  17. package/services/asset-movement/client.js.map +1 -1
  18. package/services/asset-movement/common.d.ts +33 -12
  19. package/services/asset-movement/common.d.ts.map +1 -1
  20. package/services/asset-movement/common.generated.d.ts +3 -0
  21. package/services/asset-movement/common.generated.d.ts.map +1 -1
  22. package/services/asset-movement/common.generated.js +24320 -7253
  23. package/services/asset-movement/common.generated.js.map +1 -1
  24. package/services/asset-movement/common.js +3 -0
  25. package/services/asset-movement/common.js.map +1 -1
  26. package/services/asset-movement/lib/data/addresses/bank-account/ca.d.ts +4 -0
  27. package/services/asset-movement/lib/data/addresses/bank-account/ca.d.ts.map +1 -0
  28. package/services/asset-movement/lib/data/addresses/bank-account/ca.js +49 -0
  29. package/services/asset-movement/lib/data/addresses/bank-account/ca.js.map +1 -0
  30. package/services/asset-movement/lib/data/addresses/bank-account/index.generated.d.ts +4 -0
  31. package/services/asset-movement/lib/data/addresses/bank-account/index.generated.d.ts.map +1 -1
  32. package/services/asset-movement/lib/data/addresses/bank-account/index.generated.js +4 -0
  33. package/services/asset-movement/lib/data/addresses/bank-account/index.generated.js.map +1 -1
  34. package/services/asset-movement/lib/data/addresses/bank-account/interac.d.ts.map +1 -1
  35. package/services/asset-movement/lib/data/addresses/bank-account/interac.js +9 -20
  36. package/services/asset-movement/lib/data/addresses/bank-account/interac.js.map +1 -1
  37. package/services/asset-movement/lib/data/addresses/bank-account/pix.d.ts.map +1 -1
  38. package/services/asset-movement/lib/data/addresses/bank-account/pix.js +3 -2
  39. package/services/asset-movement/lib/data/addresses/bank-account/pix.js.map +1 -1
  40. package/services/asset-movement/lib/data/addresses/bank-account/uae.d.ts +4 -0
  41. package/services/asset-movement/lib/data/addresses/bank-account/uae.d.ts.map +1 -0
  42. package/services/asset-movement/lib/data/addresses/bank-account/uae.js +45 -0
  43. package/services/asset-movement/lib/data/addresses/bank-account/uae.js.map +1 -0
  44. package/services/asset-movement/lib/data/addresses/types.generated.d.ts +260 -52
  45. package/services/asset-movement/lib/data/addresses/types.generated.d.ts.map +1 -1
  46. package/services/asset-movement/lib/data/addresses/types.generated.js +252 -35
  47. package/services/asset-movement/lib/data/addresses/types.generated.js.map +1 -1
  48. package/services/asset-movement/lib/location.generated.js +3 -3
  49. package/services/asset-movement/server.d.ts +5 -1
  50. package/services/asset-movement/server.d.ts.map +1 -1
  51. package/services/asset-movement/server.js +23 -2
  52. package/services/asset-movement/server.js.map +1 -1
  53. package/services/storage/clients/contacts.generated.js +636 -312
  54. package/services/storage/clients/contacts.generated.js.map +1 -1
@@ -0,0 +1,49 @@
1
+ import { sharedSchemaReferences } from "../../types.js";
2
+ const canadaBankAccountSchema = {
3
+ type: 'bank-account',
4
+ includeFields: {
5
+ accountOwner: true,
6
+ bankName: true,
7
+ accountNumberEnding: true
8
+ },
9
+ additionalProperties: {
10
+ resolved: {
11
+ type: "object",
12
+ properties: {
13
+ bankCode: {
14
+ type: "string",
15
+ description: "Institution Number",
16
+ maxLength: 3,
17
+ minLength: 3,
18
+ pattern: "^\\\\d{3}$"
19
+ },
20
+ bankAccountNumber: {
21
+ type: "string",
22
+ description: "Account Number"
23
+ },
24
+ routingCode: {
25
+ type: "string",
26
+ description: "Transit Code",
27
+ maxLength: 5,
28
+ minLength: 5,
29
+ pattern: "^\\\\d{5}$"
30
+ },
31
+ accountAddress: sharedSchemaReferences.PhysicalAddress
32
+ },
33
+ required: ['routingCode', 'bankCode']
34
+ },
35
+ obfuscated: {
36
+ type: "object",
37
+ properties: {
38
+ accountAddress: {
39
+ oneOf: [
40
+ { type: 'string' },
41
+ sharedSchemaReferences.PhysicalAddress
42
+ ]
43
+ }
44
+ }
45
+ }
46
+ }
47
+ };
48
+ export default canadaBankAccountSchema;
49
+ //# sourceMappingURL=ca.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ca.js","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/ca.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAA6B,MAAM,gBAAgB,CAAC;AAEnF,MAAM,uBAAuB,GAAyB;IACrD,IAAI,EAAE,cAAc;IAEpB,aAAa,EAAE;QACd,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,IAAI;QACd,mBAAmB,EAAE,IAAI;KACzB;IAED,oBAAoB,EAAE;QACrB,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,QAAQ,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,oBAAoB;oBACjC,SAAS,EAAE,CAAC;oBACZ,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,YAAY;iBACrB;gBACD,iBAAiB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,gBAAgB;iBAC7B;gBACD,WAAW,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,cAAc;oBAC3B,SAAS,EAAE,CAAC;oBACZ,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,YAAY;iBACrB;gBACD,cAAc,EAAE,sBAAsB,CAAC,eAAe;aACtD;YACD,QAAQ,EAAE,CAAE,aAAa,EAAE,UAAU,CAAC;SACtC;QACD,UAAU,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,cAAc,EAAE;oBACf,KAAK,EAAE;wBACN,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAClB,sBAAsB,CAAC,eAAe;qBACtC;iBACD;aACD;SACD;KACD;CACD,CAAA;AAED,eAAe,uBAAuB,CAAC","sourcesContent":["import { sharedSchemaReferences, type AccountAddressSchema } from \"../../types.js\";\n\nconst canadaBankAccountSchema: AccountAddressSchema = {\n\ttype: 'bank-account',\n\n\tincludeFields: {\n\t\taccountOwner: true,\n\t\tbankName: true,\n\t\taccountNumberEnding: true\n\t},\n\n\tadditionalProperties: {\n\t\tresolved: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\tbankCode: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tdescription: \"Institution Number\",\n\t\t\t\t\tmaxLength: 3,\n\t\t\t\t\tminLength: 3,\n\t\t\t\t\tpattern: \"^\\\\\\\\d{3}$\"\n\t\t\t\t},\n\t\t\t\tbankAccountNumber: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tdescription: \"Account Number\"\n\t\t\t\t},\n\t\t\t\troutingCode: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tdescription: \"Transit Code\",\n\t\t\t\t\tmaxLength: 5,\n\t\t\t\t\tminLength: 5,\n\t\t\t\t\tpattern: \"^\\\\\\\\d{5}$\"\n\t\t\t\t},\n\t\t\t\taccountAddress: sharedSchemaReferences.PhysicalAddress\n\t\t\t},\n\t\t\trequired: [ 'routingCode', 'bankCode']\n\t\t},\n\t\tobfuscated: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\taccountAddress: {\n\t\t\t\t\toneOf: [\n\t\t\t\t\t\t{ type: 'string' },\n\t\t\t\t\t\tsharedSchemaReferences.PhysicalAddress\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport default canadaBankAccountSchema;\n"]}
@@ -1,4 +1,5 @@
1
1
  import bcr_pay from "./bcr-pay.js";
2
+ import ca from "./ca.js";
2
3
  import card from "./card.js";
3
4
  import clabe from "./clabe.js";
4
5
  import duit_now from "./duit-now.js";
@@ -8,10 +9,12 @@ import iban_swift from "./iban-swift.js";
8
9
  import interac from "./interac.js";
9
10
  import pay_now from "./pay-now.js";
10
11
  import pix from "./pix.js";
12
+ import uae from "./uae.js";
11
13
  import upi from "./upi.js";
12
14
  import us from "./us.js";
13
15
  export declare const definitions: {
14
16
  'bcr-pay': typeof bcr_pay;
17
+ 'ca': typeof ca;
15
18
  'card': typeof card;
16
19
  'clabe': typeof clabe;
17
20
  'duit-now': typeof duit_now;
@@ -21,6 +24,7 @@ export declare const definitions: {
21
24
  'interac': typeof interac;
22
25
  'pay-now': typeof pay_now;
23
26
  'pix': typeof pix;
27
+ 'uae': typeof uae;
24
28
  'upi': typeof upi;
25
29
  'us': typeof us;
26
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.generated.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/index.generated.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,eAAO,MAAM,WAAW,EAAE;IACzB,SAAS,EAAE,OAAO,OAAO,CAAC;IAC1B,MAAM,EAAE,OAAO,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,KAAK,CAAC;IACtB,UAAU,EAAE,OAAO,QAAQ,CAAC;IAC5B,KAAK,EAAE,OAAO,GAAG,CAAC;IAClB,QAAQ,EAAE,OAAO,MAAM,CAAC;IACxB,YAAY,EAAE,OAAO,UAAU,CAAC;IAChC,SAAS,EAAE,OAAO,OAAO,CAAC;IAC1B,SAAS,EAAE,OAAO,OAAO,CAAC;IAC1B,KAAK,EAAE,OAAO,GAAG,CAAC;IAClB,KAAK,EAAE,OAAO,GAAG,CAAC;IAClB,IAAI,EAAE,OAAO,EAAE,CAAC;CAchB,CAAC"}
1
+ {"version":3,"file":"index.generated.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/index.generated.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,eAAO,MAAM,WAAW,EAAE;IACzB,SAAS,EAAE,OAAO,OAAO,CAAC;IAC1B,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,MAAM,EAAE,OAAO,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,KAAK,CAAC;IACtB,UAAU,EAAE,OAAO,QAAQ,CAAC;IAC5B,KAAK,EAAE,OAAO,GAAG,CAAC;IAClB,QAAQ,EAAE,OAAO,MAAM,CAAC;IACxB,YAAY,EAAE,OAAO,UAAU,CAAC;IAChC,SAAS,EAAE,OAAO,OAAO,CAAC;IAC1B,SAAS,EAAE,OAAO,OAAO,CAAC;IAC1B,KAAK,EAAE,OAAO,GAAG,CAAC;IAClB,KAAK,EAAE,OAAO,GAAG,CAAC;IAClB,KAAK,EAAE,OAAO,GAAG,CAAC;IAClB,IAAI,EAAE,OAAO,EAAE,CAAC;CAgBhB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  // Auto-generated snippet derived from generate-index.sh
2
2
  import bcr_pay from "./bcr-pay.js";
3
+ import ca from "./ca.js";
3
4
  import card from "./card.js";
4
5
  import clabe from "./clabe.js";
5
6
  import duit_now from "./duit-now.js";
@@ -9,10 +10,12 @@ import iban_swift from "./iban-swift.js";
9
10
  import interac from "./interac.js";
10
11
  import pay_now from "./pay-now.js";
11
12
  import pix from "./pix.js";
13
+ import uae from "./uae.js";
12
14
  import upi from "./upi.js";
13
15
  import us from "./us.js";
14
16
  export const definitions = {
15
17
  'bcr-pay': bcr_pay,
18
+ 'ca': ca,
16
19
  'card': card,
17
20
  'clabe': clabe,
18
21
  'duit-now': duit_now,
@@ -22,6 +25,7 @@ export const definitions = {
22
25
  'interac': interac,
23
26
  'pay-now': pay_now,
24
27
  'pix': pix,
28
+ 'uae': uae,
25
29
  'upi': upi,
26
30
  'us': us
27
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.generated.js","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/index.generated.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,MAAM,CAAC,MAAM,WAAW,GAapB;IACH,SAAS,EAAE,OAAO;IAClB,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,MAAM;IAChB,YAAY,EAAE,UAAU;IACxB,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,GAAG;IACV,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,EAAE;CACR,CAAC","sourcesContent":["// Auto-generated snippet derived from generate-index.sh\nimport bcr_pay from \"./bcr-pay.js\";\nimport card from \"./card.js\";\nimport clabe from \"./clabe.js\";\nimport duit_now from \"./duit-now.js\";\nimport fps from \"./fps.js\";\nimport hk_fps from \"./hk-fps.js\";\nimport iban_swift from \"./iban-swift.js\";\nimport interac from \"./interac.js\";\nimport pay_now from \"./pay-now.js\";\nimport pix from \"./pix.js\";\nimport upi from \"./upi.js\";\nimport us from \"./us.js\";\nexport const definitions: {\n\t'bcr-pay': typeof bcr_pay;\n\t'card': typeof card;\n\t'clabe': typeof clabe;\n\t'duit-now': typeof duit_now;\n\t'fps': typeof fps;\n\t'hk-fps': typeof hk_fps;\n\t'iban-swift': typeof iban_swift;\n\t'interac': typeof interac;\n\t'pay-now': typeof pay_now;\n\t'pix': typeof pix;\n\t'upi': typeof upi;\n\t'us': typeof us;\n} = {\n\t'bcr-pay': bcr_pay,\n\t'card': card,\n\t'clabe': clabe,\n\t'duit-now': duit_now,\n\t'fps': fps,\n\t'hk-fps': hk_fps,\n\t'iban-swift': iban_swift,\n\t'interac': interac,\n\t'pay-now': pay_now,\n\t'pix': pix,\n\t'upi': upi,\n\t'us': us\n};\n"]}
1
+ {"version":3,"file":"index.generated.js","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/index.generated.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,MAAM,CAAC,MAAM,WAAW,GAepB;IACH,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,MAAM;IAChB,YAAY,EAAE,UAAU;IACxB,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,GAAG;IACV,KAAK,EAAE,GAAG;IACV,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,EAAE;CACR,CAAC","sourcesContent":["// Auto-generated snippet derived from generate-index.sh\nimport bcr_pay from \"./bcr-pay.js\";\nimport ca from \"./ca.js\";\nimport card from \"./card.js\";\nimport clabe from \"./clabe.js\";\nimport duit_now from \"./duit-now.js\";\nimport fps from \"./fps.js\";\nimport hk_fps from \"./hk-fps.js\";\nimport iban_swift from \"./iban-swift.js\";\nimport interac from \"./interac.js\";\nimport pay_now from \"./pay-now.js\";\nimport pix from \"./pix.js\";\nimport uae from \"./uae.js\";\nimport upi from \"./upi.js\";\nimport us from \"./us.js\";\nexport const definitions: {\n\t'bcr-pay': typeof bcr_pay;\n\t'ca': typeof ca;\n\t'card': typeof card;\n\t'clabe': typeof clabe;\n\t'duit-now': typeof duit_now;\n\t'fps': typeof fps;\n\t'hk-fps': typeof hk_fps;\n\t'iban-swift': typeof iban_swift;\n\t'interac': typeof interac;\n\t'pay-now': typeof pay_now;\n\t'pix': typeof pix;\n\t'uae': typeof uae;\n\t'upi': typeof upi;\n\t'us': typeof us;\n} = {\n\t'bcr-pay': bcr_pay,\n\t'ca': ca,\n\t'card': card,\n\t'clabe': clabe,\n\t'duit-now': duit_now,\n\t'fps': fps,\n\t'hk-fps': hk_fps,\n\t'iban-swift': iban_swift,\n\t'interac': interac,\n\t'pay-now': pay_now,\n\t'pix': pix,\n\t'uae': uae,\n\t'upi': upi,\n\t'us': us\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"interac.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/interac.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,QAAA,MAAM,aAAa,EAAE,oBA+CpB,CAAA;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"interac.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/interac.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AASnF,QAAA,MAAM,aAAa,EAAE,oBA+BpB,CAAA;AAED,eAAe,aAAa,CAAC"}
@@ -1,40 +1,29 @@
1
1
  import { sharedSchemaReferences } from "../../types.js";
2
+ const interacDestinationType = { type: "string", enum: ['email', 'phone'] };
3
+ const sharedInteracFields = {
4
+ destinationType: interacDestinationType,
5
+ destinationValue: { type: "string" }
6
+ };
2
7
  const interacSchema = {
3
8
  type: 'bank-account',
4
9
  includeFields: {
5
10
  accountOwner: true,
6
- bankName: true,
11
+ bankName: false,
7
12
  accountNumberEnding: true
8
13
  },
9
14
  additionalProperties: {
10
15
  resolved: {
11
16
  type: "object",
12
17
  properties: {
13
- bankCode: {
14
- type: "string",
15
- description: "Institution Number",
16
- maxLength: 3,
17
- minLength: 3,
18
- pattern: "^\\d{3}$"
19
- },
20
- bankAccountNumber: {
21
- type: "string",
22
- description: "Account Number"
23
- },
24
- routingCode: {
25
- type: "string",
26
- description: "Transit Code",
27
- maxLength: 5,
28
- minLength: 5,
29
- pattern: "^\\d{5}$"
30
- },
18
+ ...sharedInteracFields,
31
19
  accountAddress: sharedSchemaReferences.PhysicalAddress
32
20
  },
33
- required: ['routingCode', 'bankCode']
21
+ required: ['destinationValue']
34
22
  },
35
23
  obfuscated: {
36
24
  type: "object",
37
25
  properties: {
26
+ ...sharedInteracFields,
38
27
  accountAddress: {
39
28
  oneOf: [
40
29
  { type: 'string' },
@@ -1 +1 @@
1
- {"version":3,"file":"interac.js","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/interac.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAA6B,MAAM,gBAAgB,CAAC;AAEnF,MAAM,aAAa,GAAyB;IAC3C,IAAI,EAAE,cAAc;IAEpB,aAAa,EAAE;QACd,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,IAAI;QACd,mBAAmB,EAAE,IAAI;KACzB;IAED,oBAAoB,EAAE;QACrB,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,QAAQ,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,oBAAoB;oBACjC,SAAS,EAAE,CAAC;oBACZ,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,UAAU;iBACnB;gBACD,iBAAiB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,gBAAgB;iBAC7B;gBACD,WAAW,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,cAAc;oBAC3B,SAAS,EAAE,CAAC;oBACZ,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,UAAU;iBACnB;gBACD,cAAc,EAAE,sBAAsB,CAAC,eAAe;aACtD;YACD,QAAQ,EAAE,CAAE,aAAa,EAAE,UAAU,CAAC;SACtC;QACD,UAAU,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,cAAc,EAAE;oBACf,KAAK,EAAE;wBACN,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAClB,sBAAsB,CAAC,eAAe;qBACtC;iBACD;aACD;SACD;KACD;CACD,CAAA;AAED,eAAe,aAAa,CAAC","sourcesContent":["import { sharedSchemaReferences, type AccountAddressSchema } from \"../../types.js\";\n\nconst interacSchema: AccountAddressSchema = {\n\ttype: 'bank-account',\n\n\tincludeFields: {\n\t\taccountOwner: true,\n\t\tbankName: true,\n\t\taccountNumberEnding: true\n\t},\n\n\tadditionalProperties: {\n\t\tresolved: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\tbankCode: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tdescription: \"Institution Number\",\n\t\t\t\t\tmaxLength: 3,\n\t\t\t\t\tminLength: 3,\n\t\t\t\t\tpattern: \"^\\\\d{3}$\"\n\t\t\t\t},\n\t\t\t\tbankAccountNumber: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tdescription: \"Account Number\"\n\t\t\t\t},\n\t\t\t\troutingCode: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tdescription: \"Transit Code\",\n\t\t\t\t\tmaxLength: 5,\n\t\t\t\t\tminLength: 5,\n\t\t\t\t\tpattern: \"^\\\\d{5}$\"\n\t\t\t\t},\n\t\t\t\taccountAddress: sharedSchemaReferences.PhysicalAddress\n\t\t\t},\n\t\t\trequired: [ 'routingCode', 'bankCode']\n\t\t},\n\t\tobfuscated: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\taccountAddress: {\n\t\t\t\t\toneOf: [\n\t\t\t\t\t\t{ type: 'string' },\n\t\t\t\t\t\tsharedSchemaReferences.PhysicalAddress\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport default interacSchema;\n"]}
1
+ {"version":3,"file":"interac.js","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/interac.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAA6B,MAAM,gBAAgB,CAAC;AAEnF,MAAM,sBAAsB,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAE,OAAO,EAAE,OAAO,CAAE,EAAmB,CAAC;AAE/F,MAAM,mBAAmB,GAAG;IAC3B,eAAe,EAAE,sBAAsB;IACvC,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CACA,CAAC;AAEtC,MAAM,aAAa,GAAyB;IAC3C,IAAI,EAAE,cAAc;IAEpB,aAAa,EAAE;QACd,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,IAAI;KACzB;IAED,oBAAoB,EAAE;QACrB,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,GAAG,mBAAmB;gBACtB,cAAc,EAAE,sBAAsB,CAAC,eAAe;aACtD;YACD,QAAQ,EAAE,CAAE,kBAAkB,CAAE;SAChC;QACD,UAAU,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,GAAG,mBAAmB;gBACtB,cAAc,EAAE;oBACf,KAAK,EAAE;wBACN,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAClB,sBAAsB,CAAC,eAAe;qBACtC;iBACD;aACD;SACD;KACD;CACD,CAAA;AAED,eAAe,aAAa,CAAC","sourcesContent":["import type { Schema } from \"../../json-schema.js\";\nimport { sharedSchemaReferences, type AccountAddressSchema } from \"../../types.js\";\n\nconst interacDestinationType = { type: \"string\", enum: [ 'email', 'phone' ] } satisfies Schema;\n\nconst sharedInteracFields = {\n\tdestinationType: interacDestinationType,\n\tdestinationValue: { type: \"string\" }\n} satisfies { [key: string]: Schema };\n\nconst interacSchema: AccountAddressSchema = {\n\ttype: 'bank-account',\n\n\tincludeFields: {\n\t\taccountOwner: true,\n\t\tbankName: false,\n\t\taccountNumberEnding: true\n\t},\n\n\tadditionalProperties: {\n\t\tresolved: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\t...sharedInteracFields,\n\t\t\t\taccountAddress: sharedSchemaReferences.PhysicalAddress\n\t\t\t},\n\t\t\trequired: [ 'destinationValue' ]\n\t\t},\n\t\tobfuscated: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\t...sharedInteracFields,\n\t\t\t\taccountAddress: {\n\t\t\t\t\toneOf: [\n\t\t\t\t\t\t{ type: 'string' },\n\t\t\t\t\t\tsharedSchemaReferences.PhysicalAddress\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport default interacSchema;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pix.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/pix.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,QAAA,MAAM,SAAS,EAAE,oBAwChB,CAAA;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"pix.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/pix.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAInF,QAAA,MAAM,SAAS,EAAE,oBAwChB,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import { sharedSchemaReferences } from "../../types.js";
2
+ const pixKeyType = { type: "string", enum: ['random', 'email', 'phone'] };
2
3
  const pixSchema = {
3
4
  type: 'bank-account',
4
5
  includeFields: {
5
6
  accountOwner: true,
6
- bankName: true,
7
+ bankName: false,
7
8
  accountNumberEnding: true
8
9
  },
9
10
  additionalProperties: {
@@ -11,7 +12,7 @@ const pixSchema = {
11
12
  type: "object",
12
13
  properties: {
13
14
  brCode: { type: "string" },
14
- pixKeyType: { type: "string", enum: ['random', 'email', 'phone'] },
15
+ pixKeyType: pixKeyType,
15
16
  pixKey: { type: "string" },
16
17
  accountAddress: sharedSchemaReferences.PhysicalAddress,
17
18
  document: {
@@ -1 +1 @@
1
- {"version":3,"file":"pix.js","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/pix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAA6B,MAAM,gBAAgB,CAAC;AAEnF,MAAM,SAAS,GAAyB;IACvC,IAAI,EAAE,cAAc;IAEpB,aAAa,EAAE;QACd,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,IAAI;QACd,mBAAmB,EAAE,IAAI;KACzB;IAED,oBAAoB,EAAE;QACrB,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC1B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAE,EAAE;gBACpE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC1B,cAAc,EAAE,sBAAsB,CAAC,eAAe;gBACtD,QAAQ,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACX,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE;wBAC/C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;qBAC1B;oBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;iBACpB;aACD;YACD,QAAQ,EAAE,EAAE;SACZ;QACD,UAAU,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,cAAc,EAAE;oBACf,KAAK,EAAE;wBACN,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAClB,sBAAsB,CAAC,eAAe;qBACtC;iBACD;aACD;SACD;KACD;CACD,CAAA;AAED,eAAe,SAAS,CAAC","sourcesContent":["import { sharedSchemaReferences, type AccountAddressSchema } from \"../../types.js\";\n\nconst pixSchema: AccountAddressSchema = {\n\ttype: 'bank-account',\n\n\tincludeFields: {\n\t\taccountOwner: true,\n\t\tbankName: true,\n\t\taccountNumberEnding: true\n\t},\n\n\tadditionalProperties: {\n\t\tresolved: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\tbrCode: { type: \"string\" },\n\t\t\t\tpixKeyType: { type: \"string\", enum: [ 'random', 'email', 'phone' ] },\n\t\t\t\tpixKey: { type: \"string\" },\n\t\t\t\taccountAddress: sharedSchemaReferences.PhysicalAddress,\n\t\t\t\tdocument: {\n\t\t\t\t\ttype: 'object',\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\ttype: { type: \"string\", enum: ['cpf', 'cnpj'] },\n\t\t\t\t\t\tnumber: { type: \"string\" }\n\t\t\t\t\t},\n\t\t\t\t\trequired: ['number']\n\t\t\t\t}\n\t\t\t},\n\t\t\trequired: []\n\t\t},\n\t\tobfuscated: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\taccountAddress: {\n\t\t\t\t\toneOf: [\n\t\t\t\t\t\t{ type: 'string' },\n\t\t\t\t\t\tsharedSchemaReferences.PhysicalAddress\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport default pixSchema;\n"]}
1
+ {"version":3,"file":"pix.js","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/pix.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAA6B,MAAM,gBAAgB,CAAC;AAEnF,MAAM,UAAU,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAE,EAAmB,CAAC;AAE7F,MAAM,SAAS,GAAyB;IACvC,IAAI,EAAE,cAAc;IAEpB,aAAa,EAAE;QACd,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,IAAI;KACzB;IAED,oBAAoB,EAAE;QACrB,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC1B,UAAU,EAAE,UAAU;gBACtB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC1B,cAAc,EAAE,sBAAsB,CAAC,eAAe;gBACtD,QAAQ,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACX,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE;wBAC/C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;qBAC1B;oBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;iBACpB;aACD;YACD,QAAQ,EAAE,EAAE;SACZ;QACD,UAAU,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,cAAc,EAAE;oBACf,KAAK,EAAE;wBACN,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAClB,sBAAsB,CAAC,eAAe;qBACtC;iBACD;aACD;SACD;KACD;CACD,CAAA;AAED,eAAe,SAAS,CAAC","sourcesContent":["import type { Schema } from \"../../json-schema.js\";\nimport { sharedSchemaReferences, type AccountAddressSchema } from \"../../types.js\";\n\nconst pixKeyType = { type: \"string\", enum: [ 'random', 'email', 'phone' ] } satisfies Schema;\n\nconst pixSchema: AccountAddressSchema = {\n\ttype: 'bank-account',\n\n\tincludeFields: {\n\t\taccountOwner: true,\n\t\tbankName: false,\n\t\taccountNumberEnding: true\n\t},\n\n\tadditionalProperties: {\n\t\tresolved: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\tbrCode: { type: \"string\" },\n\t\t\t\tpixKeyType: pixKeyType,\n\t\t\t\tpixKey: { type: \"string\" },\n\t\t\t\taccountAddress: sharedSchemaReferences.PhysicalAddress,\n\t\t\t\tdocument: {\n\t\t\t\t\ttype: 'object',\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\ttype: { type: \"string\", enum: ['cpf', 'cnpj'] },\n\t\t\t\t\t\tnumber: { type: \"string\" }\n\t\t\t\t\t},\n\t\t\t\t\trequired: ['number']\n\t\t\t\t}\n\t\t\t},\n\t\t\trequired: []\n\t\t},\n\t\tobfuscated: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\taccountAddress: {\n\t\t\t\t\toneOf: [\n\t\t\t\t\t\t{ type: 'string' },\n\t\t\t\t\t\tsharedSchemaReferences.PhysicalAddress\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport default pixSchema;\n"]}
@@ -0,0 +1,4 @@
1
+ import { type AccountAddressSchema } from "../../types.js";
2
+ declare const uaeBankAccountSchema: AccountAddressSchema;
3
+ export default uaeBankAccountSchema;
4
+ //# sourceMappingURL=uae.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uae.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/uae.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,QAAA,MAAM,oBAAoB,EAAE,oBA2C3B,CAAA;AAED,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { sharedSchemaReferences } from "../../types.js";
2
+ const uaeBankAccountSchema = {
3
+ type: 'bank-account',
4
+ includeFields: {
5
+ accountOwner: true,
6
+ bankName: true,
7
+ accountNumberEnding: true
8
+ },
9
+ additionalProperties: {
10
+ resolved: {
11
+ type: "object",
12
+ properties: {
13
+ bankAccountNumber: {
14
+ type: "string",
15
+ description: "IBAN",
16
+ minLength: 23,
17
+ maxLength: 23,
18
+ pattern: "^[a-zA-Z0-9]{23}$"
19
+ },
20
+ swiftCode: {
21
+ type: "string",
22
+ description: "Transit Code",
23
+ maxLength: 11,
24
+ minLength: 8,
25
+ pattern: "^[A-Za-z0-9]{8}$|^[A-Za-z0-9]{11}$"
26
+ },
27
+ accountAddress: sharedSchemaReferences.PhysicalAddress
28
+ },
29
+ required: ['bankAccountNumber', 'swiftCode']
30
+ },
31
+ obfuscated: {
32
+ type: "object",
33
+ properties: {
34
+ accountAddress: {
35
+ oneOf: [
36
+ { type: 'string' },
37
+ sharedSchemaReferences.PhysicalAddress
38
+ ]
39
+ }
40
+ }
41
+ }
42
+ }
43
+ };
44
+ export default uaeBankAccountSchema;
45
+ //# sourceMappingURL=uae.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uae.js","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/uae.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAA6B,MAAM,gBAAgB,CAAC;AAEnF,MAAM,oBAAoB,GAAyB;IAClD,IAAI,EAAE,cAAc;IAEpB,aAAa,EAAE;QACd,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,IAAI;QACd,mBAAmB,EAAE,IAAI;KACzB;IAED,oBAAoB,EAAE;QACrB,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,iBAAiB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,MAAM;oBACnB,SAAS,EAAE,EAAE;oBACb,SAAS,EAAE,EAAE;oBACb,OAAO,EAAE,mBAAmB;iBAC5B;gBACD,SAAS,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,cAAc;oBAC3B,SAAS,EAAE,EAAE;oBACb,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,oCAAoC;iBAC7C;gBACD,cAAc,EAAE,sBAAsB,CAAC,eAAe;aACtD;YACD,QAAQ,EAAE,CAAE,mBAAmB,EAAE,WAAW,CAAE;SAC9C;QACD,UAAU,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,cAAc,EAAE;oBACf,KAAK,EAAE;wBACN,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAClB,sBAAsB,CAAC,eAAe;qBACtC;iBACD;aACD;SACD;KACD;CACD,CAAA;AAED,eAAe,oBAAoB,CAAC","sourcesContent":["import { sharedSchemaReferences, type AccountAddressSchema } from \"../../types.js\";\n\nconst uaeBankAccountSchema: AccountAddressSchema = {\n\ttype: 'bank-account',\n\n\tincludeFields: {\n\t\taccountOwner: true,\n\t\tbankName: true,\n\t\taccountNumberEnding: true\n\t},\n\n\tadditionalProperties: {\n\t\tresolved: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\tbankAccountNumber: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tdescription: \"IBAN\",\n\t\t\t\t\tminLength: 23,\n\t\t\t\t\tmaxLength: 23,\n\t\t\t\t\tpattern: \"^[a-zA-Z0-9]{23}$\"\n\t\t\t\t},\n\t\t\t\tswiftCode: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tdescription: \"Transit Code\",\n\t\t\t\t\tmaxLength: 11,\n\t\t\t\t\tminLength: 8,\n\t\t\t\t\tpattern: \"^[A-Za-z0-9]{8}$|^[A-Za-z0-9]{11}$\"\n\t\t\t\t},\n\t\t\t\taccountAddress: sharedSchemaReferences.PhysicalAddress\n\t\t\t},\n\t\t\trequired: [ 'bankAccountNumber', 'swiftCode' ]\n\t\t},\n\t\tobfuscated: {\n\t\t\ttype: \"object\",\n\t\t\tproperties: {\n\t\t\t\taccountAddress: {\n\t\t\t\t\toneOf: [\n\t\t\t\t\t\t{ type: 'string' },\n\t\t\t\t\t\tsharedSchemaReferences.PhysicalAddress\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport default uaeBankAccountSchema;\n"]}