@keetanetwork/anchor 0.0.49 → 0.0.51
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/lib/resolver.d.ts +1 -0
- package/lib/resolver.d.ts.map +1 -1
- package/lib/resolver.js +52 -37
- package/lib/resolver.js.map +1 -1
- package/npm-shrinkwrap.json +8 -8
- package/package.json +2 -2
- package/services/asset-movement/client.d.ts.map +1 -1
- package/services/asset-movement/client.js +8 -6
- package/services/asset-movement/client.js.map +1 -1
- package/services/asset-movement/common.d.ts +9 -5
- package/services/asset-movement/common.d.ts.map +1 -1
- package/services/asset-movement/common.js +18113 -9853
- package/services/asset-movement/common.js.map +1 -1
- package/services/asset-movement/lib/data/addresses/bank-account/bcr-pay.d.ts +4 -0
- package/services/asset-movement/lib/data/addresses/bank-account/bcr-pay.d.ts.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/bcr-pay.js +36 -0
- package/services/asset-movement/lib/data/addresses/bank-account/bcr-pay.js.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/duit-now.d.ts +4 -0
- package/services/asset-movement/lib/data/addresses/bank-account/duit-now.d.ts.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/duit-now.js +35 -0
- package/services/asset-movement/lib/data/addresses/bank-account/duit-now.js.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/hk-fps.d.ts +4 -0
- package/services/asset-movement/lib/data/addresses/bank-account/hk-fps.d.ts.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/hk-fps.js +36 -0
- package/services/asset-movement/lib/data/addresses/bank-account/hk-fps.js.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/index.generated.d.ts +10 -0
- package/services/asset-movement/lib/data/addresses/bank-account/index.generated.d.ts.map +1 -1
- package/services/asset-movement/lib/data/addresses/bank-account/index.generated.js +10 -0
- package/services/asset-movement/lib/data/addresses/bank-account/index.generated.js.map +1 -1
- package/services/asset-movement/lib/data/addresses/bank-account/pay-now.d.ts +4 -0
- package/services/asset-movement/lib/data/addresses/bank-account/pay-now.d.ts.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/pay-now.js +36 -0
- package/services/asset-movement/lib/data/addresses/bank-account/pay-now.js.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/pix.d.ts.map +1 -1
- package/services/asset-movement/lib/data/addresses/bank-account/pix.js +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/pix.js.map +1 -1
- package/services/asset-movement/lib/data/addresses/bank-account/upi.d.ts +4 -0
- package/services/asset-movement/lib/data/addresses/bank-account/upi.d.ts.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/upi.js +37 -0
- package/services/asset-movement/lib/data/addresses/bank-account/upi.js.map +1 -0
- package/services/asset-movement/lib/data/addresses/types.generated.d.ts +458 -2
- package/services/asset-movement/lib/data/addresses/types.generated.d.ts.map +1 -1
- package/services/asset-movement/lib/data/addresses/types.generated.js +508 -0
- package/services/asset-movement/lib/data/addresses/types.generated.js.map +1 -1
- package/services/asset-movement/lib/location.generated.js +3 -3
- package/services/fx/common.d.ts +1 -1
- package/services/fx/common.d.ts.map +1 -1
- package/services/fx/common.js +16 -16
- package/services/fx/common.js.map +1 -1
- package/services/fx/server.d.ts.map +1 -1
- package/services/fx/server.js +13 -17
- package/services/fx/server.js.map +1 -1
- package/services/notification/common.generated.js +34 -34
- package/services/storage/client.d.ts +38 -0
- package/services/storage/client.d.ts.map +1 -1
- package/services/storage/client.js +87 -13
- package/services/storage/client.js.map +1 -1
- package/services/storage/clients/contacts.d.ts +2 -2
- package/services/storage/clients/contacts.d.ts.map +1 -1
- package/services/storage/clients/contacts.generated.js +1216 -406
- package/services/storage/clients/contacts.generated.js.map +1 -1
- package/services/storage/clients/contacts.js +27 -9
- package/services/storage/clients/contacts.js.map +1 -1
- package/services/storage/clients/icon.d.ts +2 -2
- package/services/storage/clients/icon.d.ts.map +1 -1
- package/services/storage/clients/icon.js +11 -2
- package/services/storage/clients/icon.js.map +1 -1
- package/services/storage/common.d.ts +38 -1
- package/services/storage/common.d.ts.map +1 -1
- package/services/storage/common.generated.d.ts +2 -1
- package/services/storage/common.generated.d.ts.map +1 -1
- package/services/storage/common.generated.js +67 -0
- package/services/storage/common.generated.js.map +1 -1
- package/services/storage/common.js +8 -0
- package/services/storage/common.js.map +1 -1
- package/services/storage/server.d.ts.map +1 -1
- package/services/storage/server.js +70 -27
- package/services/storage/server.js.map +1 -1
- package/services/storage/test-utils.d.ts +1 -0
- package/services/storage/test-utils.d.ts.map +1 -1
- package/services/storage/test-utils.js +15 -0
- package/services/storage/test-utils.js.map +1 -1
- package/services/username/common.generated.js +23 -23
|
@@ -1,17 +1,27 @@
|
|
|
1
|
+
import bcr_pay from "./bcr-pay.js";
|
|
1
2
|
import card from "./card.js";
|
|
2
3
|
import clabe from "./clabe.js";
|
|
4
|
+
import duit_now from "./duit-now.js";
|
|
3
5
|
import fps from "./fps.js";
|
|
6
|
+
import hk_fps from "./hk-fps.js";
|
|
4
7
|
import iban_swift from "./iban-swift.js";
|
|
5
8
|
import interac from "./interac.js";
|
|
9
|
+
import pay_now from "./pay-now.js";
|
|
6
10
|
import pix from "./pix.js";
|
|
11
|
+
import upi from "./upi.js";
|
|
7
12
|
import us from "./us.js";
|
|
8
13
|
export declare const definitions: {
|
|
14
|
+
'bcr-pay': typeof bcr_pay;
|
|
9
15
|
'card': typeof card;
|
|
10
16
|
'clabe': typeof clabe;
|
|
17
|
+
'duit-now': typeof duit_now;
|
|
11
18
|
'fps': typeof fps;
|
|
19
|
+
'hk-fps': typeof hk_fps;
|
|
12
20
|
'iban-swift': typeof iban_swift;
|
|
13
21
|
'interac': typeof interac;
|
|
22
|
+
'pay-now': typeof pay_now;
|
|
14
23
|
'pix': typeof pix;
|
|
24
|
+
'upi': typeof upi;
|
|
15
25
|
'us': typeof us;
|
|
16
26
|
};
|
|
17
27
|
//# sourceMappingURL=index.generated.d.ts.map
|
|
@@ -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,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,eAAO,MAAM,WAAW,EAAE;IACzB,MAAM,EAAE,OAAO,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,KAAK,CAAC;IACtB,KAAK,EAAE,OAAO,GAAG,CAAC;IAClB,YAAY,EAAE,OAAO,UAAU,CAAC;IAChC,SAAS,EAAE,OAAO,OAAO,CAAC;IAC1B,KAAK,EAAE,OAAO,GAAG,CAAC;IAClB,IAAI,EAAE,OAAO,EAAE,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,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,18 +1,28 @@
|
|
|
1
1
|
// Auto-generated snippet derived from generate-index.sh
|
|
2
|
+
import bcr_pay from "./bcr-pay.js";
|
|
2
3
|
import card from "./card.js";
|
|
3
4
|
import clabe from "./clabe.js";
|
|
5
|
+
import duit_now from "./duit-now.js";
|
|
4
6
|
import fps from "./fps.js";
|
|
7
|
+
import hk_fps from "./hk-fps.js";
|
|
5
8
|
import iban_swift from "./iban-swift.js";
|
|
6
9
|
import interac from "./interac.js";
|
|
10
|
+
import pay_now from "./pay-now.js";
|
|
7
11
|
import pix from "./pix.js";
|
|
12
|
+
import upi from "./upi.js";
|
|
8
13
|
import us from "./us.js";
|
|
9
14
|
export const definitions = {
|
|
15
|
+
'bcr-pay': bcr_pay,
|
|
10
16
|
'card': card,
|
|
11
17
|
'clabe': clabe,
|
|
18
|
+
'duit-now': duit_now,
|
|
12
19
|
'fps': fps,
|
|
20
|
+
'hk-fps': hk_fps,
|
|
13
21
|
'iban-swift': iban_swift,
|
|
14
22
|
'interac': interac,
|
|
23
|
+
'pay-now': pay_now,
|
|
15
24
|
'pix': pix,
|
|
25
|
+
'upi': upi,
|
|
16
26
|
'us': us
|
|
17
27
|
};
|
|
18
28
|
//# sourceMappingURL=index.generated.js.map
|
|
@@ -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,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,MAAM,CAAC,MAAM,WAAW,
|
|
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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pay-now.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/pay-now.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAMnF,QAAA,MAAM,YAAY,EAAE,oBA+BnB,CAAA;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { sharedSchemaReferences } from '../../types.js';
|
|
2
|
+
const sharedProperties = {
|
|
3
|
+
payNowKeyType: { type: 'string', enum: ['mobile', 'uen', 'nric'] }
|
|
4
|
+
};
|
|
5
|
+
const payNowSchema = {
|
|
6
|
+
type: 'bank-account',
|
|
7
|
+
includeFields: {
|
|
8
|
+
accountOwner: true
|
|
9
|
+
},
|
|
10
|
+
additionalProperties: {
|
|
11
|
+
resolved: {
|
|
12
|
+
type: 'object',
|
|
13
|
+
properties: {
|
|
14
|
+
...sharedProperties,
|
|
15
|
+
payNowKey: { type: 'string' },
|
|
16
|
+
accountAddress: sharedSchemaReferences.PhysicalAddress
|
|
17
|
+
},
|
|
18
|
+
required: []
|
|
19
|
+
},
|
|
20
|
+
obfuscated: {
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties: {
|
|
23
|
+
...sharedProperties,
|
|
24
|
+
payNowKeyEnding: { type: 'string' },
|
|
25
|
+
accountAddress: {
|
|
26
|
+
oneOf: [
|
|
27
|
+
{ type: 'string' },
|
|
28
|
+
sharedSchemaReferences.PhysicalAddress
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export default payNowSchema;
|
|
36
|
+
//# sourceMappingURL=pay-now.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pay-now.js","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/pay-now.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAA6B,MAAM,gBAAgB,CAAC;AAEnF,MAAM,gBAAgB,GAAG;IACxB,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAE,EAAE;CAC/B,CAAC;AAEvC,MAAM,YAAY,GAAyB;IAC1C,IAAI,EAAE,cAAc;IAEpB,aAAa,EAAE;QACd,YAAY,EAAE,IAAI;KAClB;IAED,oBAAoB,EAAE;QACrB,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,GAAG,gBAAgB;gBACnB,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC7B,cAAc,EAAE,sBAAsB,CAAC,eAAe;aACtD;YACD,QAAQ,EAAE,EAAE;SACZ;QACD,UAAU,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,GAAG,gBAAgB;gBACnB,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACnC,cAAc,EAAE;oBACf,KAAK,EAAE;wBACN,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAClB,sBAAsB,CAAC,eAAe;qBACtC;iBACD;aACD;SACD;KACD;CACD,CAAA;AAED,eAAe,YAAY,CAAC","sourcesContent":["import type { ObjectSchema } from '../../json-schema.js';\nimport { sharedSchemaReferences, type AccountAddressSchema } from '../../types.js';\n\nconst sharedProperties = {\n\tpayNowKeyType: { type: 'string', enum: [ 'mobile', 'uen', 'nric' ] }\n} satisfies ObjectSchema['properties'];\n\nconst payNowSchema: AccountAddressSchema = {\n\ttype: 'bank-account',\n\n\tincludeFields: {\n\t\taccountOwner: true\n\t},\n\n\tadditionalProperties: {\n\t\tresolved: {\n\t\t\ttype: 'object',\n\t\t\tproperties: {\n\t\t\t\t...sharedProperties,\n\t\t\t\tpayNowKey: { type: 'string' },\n\t\t\t\taccountAddress: sharedSchemaReferences.PhysicalAddress\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\t...sharedProperties,\n\t\t\t\tpayNowKeyEnding: { type: 'string' },\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 payNowSchema;\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,
|
|
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"}
|
|
@@ -11,6 +11,7 @@ const pixSchema = {
|
|
|
11
11
|
type: "object",
|
|
12
12
|
properties: {
|
|
13
13
|
brCode: { type: "string" },
|
|
14
|
+
pixKeyType: { type: "string", enum: ['random', 'email', 'phone'] },
|
|
14
15
|
pixKey: { type: "string" },
|
|
15
16
|
accountAddress: sharedSchemaReferences.PhysicalAddress,
|
|
16
17
|
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,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\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":"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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upi.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/upi.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,QAAA,MAAM,SAAS,EAAE,oBAmChB,CAAA;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { sharedSchemaReferences } from '../../types.js';
|
|
2
|
+
const upiSchema = {
|
|
3
|
+
type: 'bank-account',
|
|
4
|
+
includeFields: {
|
|
5
|
+
phoneNumber: true,
|
|
6
|
+
accountOwner: true
|
|
7
|
+
},
|
|
8
|
+
additionalProperties: {
|
|
9
|
+
resolved: {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
upiKey: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
maxLength: 62,
|
|
15
|
+
minLength: 5,
|
|
16
|
+
pattern: '^[a-zA-Z0-9._]{2,40}@[a-zA-Z0-9]{2,20}$'
|
|
17
|
+
},
|
|
18
|
+
accountAddress: sharedSchemaReferences.PhysicalAddress
|
|
19
|
+
},
|
|
20
|
+
required: ['upiKey']
|
|
21
|
+
},
|
|
22
|
+
obfuscated: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
properties: {
|
|
25
|
+
upiKeyEnding: { type: 'string' },
|
|
26
|
+
accountAddress: {
|
|
27
|
+
oneOf: [
|
|
28
|
+
{ type: 'string' },
|
|
29
|
+
sharedSchemaReferences.PhysicalAddress
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export default upiSchema;
|
|
37
|
+
//# sourceMappingURL=upi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upi.js","sourceRoot":"","sources":["../../../../../../../src/services/asset-movement/lib/data/addresses/bank-account/upi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAA6B,MAAM,gBAAgB,CAAC;AAEnF,MAAM,SAAS,GAAyB;IACvC,IAAI,EAAE,cAAc;IAEpB,aAAa,EAAE;QACd,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,IAAI;KAClB;IAED,oBAAoB,EAAE;QACrB,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,MAAM,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,SAAS,EAAE,EAAE;oBACb,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,yCAAyC;iBAClD;gBACD,cAAc,EAAE,sBAAsB,CAAC,eAAe;aACtD;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACpB;QACD,UAAU,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACX,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAChC,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 upiSchema: AccountAddressSchema = {\n\ttype: 'bank-account',\n\n\tincludeFields: {\n\t\tphoneNumber: true,\n\t\taccountOwner: true\n\t},\n\n\tadditionalProperties: {\n\t\tresolved: {\n\t\t\ttype: 'object',\n\t\t\tproperties: {\n\t\t\t\tupiKey: {\n\t\t\t\t\ttype: 'string',\n\t\t\t\t\tmaxLength: 62,\n\t\t\t\t\tminLength: 5,\n\t\t\t\t\tpattern: '^[a-zA-Z0-9._]{2,40}@[a-zA-Z0-9]{2,20}$'\n\t\t\t\t},\n\t\t\t\taccountAddress: sharedSchemaReferences.PhysicalAddress\n\t\t\t},\n\t\t\trequired: ['upiKey']\n\t\t},\n\t\tobfuscated: {\n\t\t\ttype: 'object',\n\t\t\tproperties: {\n\t\t\t\tupiKeyEnding: { type: 'string' },\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 upiSchema;\n"]}
|