diff --git a/dist/utils/HavenoUtils.d.ts b/dist/utils/HavenoUtils.d.ts index 8e4c440b..bd4b6bc6 100644 --- a/dist/utils/HavenoUtils.d.ts +++ b/dist/utils/HavenoUtils.d.ts @@ -99,6 +99,14 @@ export default class HavenoUtils { * @return {string} the stringified form */ static formToString(form: PaymentAccountForm): string; + /** + * Determine if a form has a field. + * + * @param {PaymentAccountForm} form - form to check + * @param {PaymentAccountFormField.FieldId} fieldId - id of the field to check for + * @return {boolean} true if the form has the field, false otherwise + */ + static hasFormField(form: PaymentAccountForm, fieldId: PaymentAccountFormField.FieldId): boolean; /** * Get a form field value. * @@ -110,10 +118,10 @@ export default class HavenoUtils { /** * Set a form field value. * + * @param {PaymentAccountForm} form - form to get the field from * @param {PaymentAccountFormField.FieldId} fieldId - id of the field to set the value of * @param {string} value - field value to set - * @param {PaymentAccountForm} form - form to get the field from * @return {string} the form field value */ - static setFormValue(fieldId: PaymentAccountFormField.FieldId, value: string, form: PaymentAccountForm): void; + static setFormValue(form: PaymentAccountForm, fieldId: PaymentAccountFormField.FieldId, value: string): void; } diff --git a/dist/utils/HavenoUtils.js b/dist/utils/HavenoUtils.js index f9dc6ff3..a7a7dd36 100644 --- a/dist/utils/HavenoUtils.js +++ b/dist/utils/HavenoUtils.js @@ -168,6 +168,20 @@ class HavenoUtils { } return str.trim(); } + /** + * Determine if a form has a field. + * + * @param {PaymentAccountForm} form - form to check + * @param {PaymentAccountFormField.FieldId} fieldId - id of the field to check for + * @return {boolean} true if the form has the field, false otherwise + */ + static hasFormField(form, fieldId) { + for (const field of form.getFieldsList()) { + if (field.getId() === fieldId) + return true; + } + return false; + } /** * Get a form field value. * @@ -186,12 +200,12 @@ class HavenoUtils { /** * Set a form field value. * + * @param {PaymentAccountForm} form - form to get the field from * @param {PaymentAccountFormField.FieldId} fieldId - id of the field to set the value of * @param {string} value - field value to set - * @param {PaymentAccountForm} form - form to get the field from * @return {string} the form field value */ - static setFormValue(fieldId, value, form) { + static setFormValue(form, fieldId, value) { for (const field of form.getFieldsList()) { if (field.getId() === fieldId) { field.setValue(value); diff --git a/dist/utils/HavenoUtils.js.map b/dist/utils/HavenoUtils.js.map index 0daecabf..ab97e99b 100644 --- a/dist/utils/HavenoUtils.js.map +++ b/dist/utils/HavenoUtils.js.map @@ -1 +1 @@ -{"version":3,"file":"HavenoUtils.js","sourceRoot":"","sources":["../../src/utils/HavenoUtils.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,sDAA8B;AAC9B,6CAAgF;AAEhF;;GAEG;AACH,MAAqB,WAAW;IAO9B;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAa;QACpC,IAAA,gBAAM,EAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,mCAAmC,CAAC,CAAC;QAC9F,WAAW,CAAC,QAAQ,GAAG,KAAK,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,WAAW;QAChB,OAAO,WAAW,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,GAAG,CAAC,KAAa,EAAE,GAAW;QACnC,IAAA,gBAAM,EAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,mCAAmC,CAAC,CAAC;QAC9F,IAAI,WAAW,CAAC,QAAQ,IAAI,KAAK,EAAE;YACjC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YACvB,MAAM,yBAAyB,GAAG,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,GAAG,WAAW,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;YACxH,WAAW,CAAC,aAAa,GAAG,GAAG,CAAC;YAChC,iBAAO,CAAC,GAAG,CAA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,cAAc,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,KAAK,EAAE;YACrD,OAAO,GAAG,CAAC;SACd;KACJ;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index ecd4677a..be43e9e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "haveno-ts", - "version": "0.0.17", + "version": "0.0.18", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "haveno-ts", - "version": "0.0.17", + "version": "0.0.18", "license": "Apache-2.0", "dependencies": { "@types/node": "^18.14.2", diff --git a/package.json b/package.json index aeb78f29..6219876c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "haveno-ts", - "version": "0.0.17", + "version": "0.0.18", "description": "Haveno TypeScript interface", "main": "dist/index.js", "types": "dist/index.d.ts",