sysone-api-mapper 1.0.4 → 1.0.6
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/config/dist/index.js +1 -1
- package/index.js +2 -1
- package/package.json +4 -6
- package/src/mapper/mapper.js +2 -1
- package/src/server.js +0 -1
package/config/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{apiCall:()=>v,axiosInstance:()=>o,endpoints:()=>d});const r=require("axios"),o=e.n(r)().create({});var i;function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function n(e,t,r){return(t=function(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T="PARTY_MODULE",_="INTERMEDIARY_MODULE",s="COMMERCIAL_STRUCTURE_MODULE",a="POLICY_MODULE",l="GET",c="POST",u="PUT",d=(n(n(n(n(n(n(n(n(n(n(i={GET_ACTIVITIES:"GET_ACTIVITIES",GET_PRACTICES:"GET_PRACTICES",SEARCH_INDIVIDUALS:"SEARCH_INDIVIDUALS",CREATE_INDIVIDUAL:"CREATE_INDIVIDUAL",GET_IDENTIFICATION_TYPES:"GET_IDENTIFICATION_TYPES",GET_RELATIONS:"GET_RELATIONS",GET_NOTES:"GET_NOTES",GET_FILES:"GET_FILES",GET_SECTORS:"GET_SECTORS",GET_FISCAL_CATEGORIES:"GET_FISCAL_CATEGORIES",GET_MAIL_TYPES:"GET_MAIL_TYPES",GET_PHONE_TYPES:"GET_PHONE_TYPES",UPDATE_NOTES:"UPDATE_NOTES",UPDATE_FILES:"UPDATE_FILES",ADD_RELATION_WITH_EXISTING_PARTY:"ADD_RELATION_WITH_EXISTING_PARTY",GET_RELATIONS_BY_PARTY_CODE:"GET_RELATIONS_BY_PARTY_CODE",REMOVE_RELATION:"REMOVE_RELATION",GET_FILE:"GET_FILE",GET_ORGANIZATION_TYPES:"GET_ORGANIZATION_TYPES",SEARCH_ORGANIZATION:"SEARCH_ORGANIZATION",CREATE_ORGANIZATION:"CREATE_ORGANIZATION",GET_ORGANIZATION_BY_CODE:"GET_ORGANIZATION_BY_CODE",UPDATE_ORGANIZATION:"UPDATE_ORGANIZATION",ADD_RELATION_WITH_NEW_ORGANIZATION:"ADD_RELATION_WITH_NEW_ORGANIZATION",GET_PERSON_BY_CODE:"GET_PERSON_BY_CODE",GET_GENDERS:"GET_GENDERS",GET_MARITAL_STATUSES:"GET_MARITAL_STATUSES",GET_WORKER_TYPES:"GET_WORKER_TYPES",GET_ECONOMIC_CLASSES:"GET_ECONOMIC_CLASSES",SEARCH_PERSON:"SEARCH_PERSON",UPDATE_PERSON:"UPDATE_PERSON",GET_RELATION_TYPES:"GET_RELATION_TYPES",ADD_RELATION_WITH_NEW_PERSON:"ADD_RELATION_WITH_NEW_PERSON",GET_POLICY_PROCESSES:"GET_POLICY_PROCESSES",GET_COUNTRIES:"GET_COUNTRIES",GET_COUNTRY_BY_CODE:"GET_COUNTRY_BY_CODE",GET_PROVINCES:"GET_PROVINCES",GET_CITIES:"GET_CITIES",GET_POSTAL_CODES:"GET_POSTAL_CODES",GET_ADDRESSES_BY_PARTY_CODE:"GET_ADDRESSES_BY_PARTY_CODE",GET_ADDRESS_TYPES:"GET_ADDRESS_TYPES",GET_PAYMENT_METHODS_BY_PARTY_CODE:"GET_PAYMENT_METHODS_BY_PARTY_CODE",GET_CREDIT_CARD_TYPES:"GET_CREDIT_CARD_TYPES",GET_CARD_PROVIDERS:"GET_CARD_PROVIDERS",UPDATE_PAYMENTS:"UPDATE_PAYMENTS",GET_BANKS:"GET_BANKS",GET_CURRENCIES:"GET_CURRENCIES",GET_BANK_ACCOUNT_TYPES:"GET_BANK_ACCOUNT_TYPES",GET_BANK_BRANCHES:"GET_BANK_BRANCHES",GET_PERSON_INTERMEDIARY_BY_CODE:"GET_PERSON_INTERMEDIARY_BY_CODE",GET_ORGANIZATION_INTERMEDIARY_BY_CODE:"GET_ORGANIZATION_INTERMEDIARY_BY_CODE",GET_INTERMEDIARIES_GROUPS:"GET_INTERMEDIARIES_GROUPS",GET_INTERMEDIARIES_ROLES:"GET_INTERMEDIARIES_ROLES",GET_INTERMEDIARY_STRUCTURES:"GET_INTERMEDIARY_STRUCTURES",SEARCH_INTERMEDIARIES:"SEARCH_INTERMEDIARIES",SEARCH_ACCOUNT_OFFICERS:"SEARCH_ACCOUNT_OFFICERS",GET_INTERMEDIARIES_STATES:"GET_INTERMEDIARIES_STATES",GET_INTERMEDIARIES_TYPES:"GET_INTERMEDIARIES_TYPES",CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY:"CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY",CREATE_INTERMEDIARY_WITH_WITH_PERSON:"CREATE_INTERMEDIARY_WITH_WITH_PERSON",CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION:"CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION",UPDATE_INTERMEDIARY:"UPDATE_INTERMEDIARY",CREATE_COMMERCIAL_STRUCTURE:"CREATE_COMMERCIAL_STRUCTURE",GET_COMMERCIAL_STRUCTURE_STATUSES:"GET_COMMERCIAL_STRUCTURE_STATUSES",SEARCH_COMMERCIAL_STRUCTURE:"SEARCH_COMMERCIAL_STRUCTURE",GET_COMMERCIAL_STRUCTURES_BY_CODE:"GET_COMMERCIAL_STRUCTURES_BY_CODE",UPDATE_COMMERCIAL_STRUCTURE:"UPDATE_COMMERCIAL_STRUCTURE",UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES:"UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES",GET_POLICY_SECTIONS:"GET_POLICY_SECTIONS",GET_POLICY_SUBSECTIONS:"GET_POLICY_SUBSECTIONS"},"GET_POLICY_PROCESSES","GET_POLICY_PROCESSES"),"GET_POLICY_PRODUCTS","GET_POLICY_PRODUCTS"),"GET_VALIDITY_TYPES","GET_VALIDITY_TYPES"),"GET_POLICY_CARACTERS","GET_POLICY_CARACTERS"),"GET_POLICY_TYPE_OF_DOCUMENTATION","GET_POLICY_TYPE_OF_DOCUMENTATION"),"GET_PAYMENT_FREQUENCIES","GET_PAYMENT_FREQUENCIES"),"GET_ASSOCIATE_TERMS_CONDITION","GET_ASSOCIATE_TERMS_CONDITION"),"GET_ASSOCIATE_EXPENSES","GET_ASSOCIATE_EXPENSES"),"GET_ASSOCIATE_COVERAGE","GET_ASSOCIATE_COVERAGE"),"GET_COVERAGES","GET_COVERAGES"),n(n(n(n(n(n(n(n(n(n(i,"GET_EXPENSEVALUES","GET_EXPENSEVALUES"),"GET_MORTALITY_TABLE","GET_MORTALITY_TABLE"),"CREATE_POLICY_STEP1","CREATE_POLICY_STEP1"),"CREATE_POLICY_STEP2","CREATE_POLICY_STEP2"),"CREATE_POLICY_STEP3","CREATE_POLICY_STEP3"),"CREATE_POLICY_STEP4","CREATE_POLICY_STEP4"),"CREATE_POLICY_STEP5","CREATE_POLICY_STEP5"),"CREATE_POLICY_STEP6","CREATE_POLICY_STEP6"),"CREATE_POLICY_STEP7","CREATE_POLICY_STEP7"),"CREATE_POLICY_STEP8","CREATE_POLICY_STEP8"),n(n(n(n(n(n(n(n(n(n(i,"CREATE_POLICY_STEP9","CREATE_POLICY_STEP9"),"CREATE_POLICY_STEP10","CREATE_POLICY_STEP10"),"CREATE_POLICY_STEP11","CREATE_POLICY_STEP11"),"GET_STEP1_DATA","GET_STEP1_DATA"),"GET_STEP2_DATA","GET_STEP2_DATA"),"GET_STEP3_DATA","GET_STEP3_DATA"),"GET_STEP4_DATA","GET_STEP4_DATA"),"GET_STEP5_DATA","GET_STEP5_DATA"),"GET_STEP6_DATA","GET_STEP6_DATA"),"GET_STEP7_DATA","GET_STEP7_DATA"),n(n(n(n(n(n(n(n(n(n(i,"GET_STEP9_DATA","GET_STEP9_DATA"),"GET_STEP11_DATA","GET_STEP11_DATA"),"GET_STEP11_FILE","GET_STEP11_FILE"),"UPDATE_POLICY_STEP1","UPDATE_POLICY_STEP1"),"GET_ISURED_PERSONS","GET_ISURED_PERSONS"),"UPDATE_PARTY","UPDATE_PARTY"),"GET_POLICY_DETAILS","GET_POLICY_DETAILS"),"UPDATE_PAYMENTS","UPDATE_PAYMENTS"),"CREATE_POLICY_RISK","CREATE_POLICY_RISK"),"ACTIVATE_POLICY","ACTIVATE_POLICY"),n(n(n(n(n(n(n(n(n(n(i,"COMPLETE_POLICY","COMPLETE_POLICY"),"SET_POLICY_BUILDING","SET_POLICY_BUILDING"),"SEARCH_POLICIES","SEARCH_POLICIES"),"SEARCH_POLICY_GENERAL_CONDITIONS","SEARCH_POLICY_GENERAL_CONDITIONS"),"GET_ASSURED_LIST","GET_ASSURED_LIST"),"GET_ADHERENTS","GET_ADHERENTS"),"GET_ADHERENTS_BY_OWNER","GET_ADHERENTS_BY_OWNER"),"GET_OWNERS","GET_OWNERS"),"GET_POLICY_ROLES","GET_POLICY_ROLES"),"CREATE_PRODUCT","CREATE_PRODUCT")),m=[{endpoint:d.SEARCH_INDIVIDUALS,serviceName:"individuals",url:"party/v1/individuals",method:l,module:T},{endpoint:d.CREATE_INDIVIDUAL,serviceName:"individuals",url:"party/v1/individuals",method:c,module:T},{endpoint:d.GET_ACTIVITIES,serviceName:"activities",url:"party/v1/activities/{0}",method:l,module:T},{endpoint:d.GET_PRACTICES,serviceName:"practices",url:"party/v1/practices/{0}",method:l,module:T},{endpoint:d.GET_SECTORS,serviceName:"sectors",url:"party/v1/sectors",method:l,module:T},{endpoint:d.GET_FISCAL_CATEGORIES,serviceName:"fiscal-categories",url:"party/v1/fiscal-categories?party-type-code={0}&country-code={1}",method:l,module:T},{endpoint:d.GET_MAIL_TYPES,serviceName:"mail-types",url:"party/v1/mail-types",method:l,module:T},{endpoint:d.GET_PHONE_TYPES,serviceName:"phone-types",url:"party/v1/phone-types",method:l,module:T},{endpoint:d.GET_IDENTIFICATION_TYPES,serviceName:"identification-types",url:"party/v1/identification-types?party-type-code={0}&country-code={1}",method:l,module:T},{endpoint:d.GET_RELATIONS,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:l,module:T},{endpoint:d.GET_NOTES,serviceName:"parties/notes",url:"party/v1/parties/{0}/notes",method:l,module:T},{endpoint:d.GET_FILES,serviceName:"parties/files",url:"party/v1/parties/{0}/files",method:l,module:T},{endpoint:d.UPDATE_NOTES,serviceName:"parties/notes",url:"party/v1/parties/{0}/notes",method:u,module:T},{endpoint:d.UPDATE_FILES,serviceName:"parties/files",url:"party/v1/parties/{0}/files",method:u,module:T},{endpoint:d.ADD_RELATION_WITH_EXISTING_PARTY,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:u,module:T},{endpoint:d.GET_RELATIONS_BY_PARTY_CODE,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:l,module:T},{endpoint:d.REMOVE_RELATION,serviceName:"parties/relations/disable",url:"party/v1/parties/{0}/relations/disable",method:u,module:T},{endpoint:d.GET_FILE,serviceName:"parties/file",url:"party/v1/parties/{0}/file/{1}",method:l,module:T},{endpoint:d.SEARCH_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations",method:l,module:T},{endpoint:d.GET_ORGANIZATION_TYPES,serviceName:"organisation-types",url:"party/v1/organisation-types",method:l,module:T},{endpoint:d.CREATE_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations",method:c,module:T},{endpoint:d.UPDATE_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations/{0}",method:u,module:T},{endpoint:d.GET_ORGANIZATION_BY_CODE,serviceName:"organisations",url:"party/v1/organisations/{0}",method:l,module:T},{endpoint:d.ADD_RELATION_WITH_NEW_ORGANIZATION,serviceName:"organisations/relations",url:"party/v1/organisations/{0}/relations",method:u,module:T},{endpoint:d.UPDATE_PERSON,serviceName:"individuals",url:"party/v1/individuals/{0}",method:u,module:T},{endpoint:d.SEARCH_PERSON,serviceName:"individuals",url:"party/v1/individuals",method:l,module:T},{endpoint:d.GET_PERSON_BY_CODE,serviceName:"individuals",url:"party/v1/individuals/{0}",method:l,module:T},{endpoint:d.GET_GENDERS,serviceName:"genders",url:"party/v1/genders",method:l,module:T},{endpoint:d.GET_MARITAL_STATUSES,serviceName:"marital-statuses",url:"party/v1/marital-statuses",method:l,module:T},{endpoint:d.GET_WORKER_TYPES,serviceName:"worker-types",url:"party/v1/worker-types",method:l,module:T},{endpoint:d.GET_ECONOMIC_CLASSES,serviceName:"economic-classes",url:"party/v1/economic-classes",method:l,module:T},{endpoint:d.GET_RELATION_TYPES,serviceName:"relation-types",url:"party/v1/relation-types/{0}",method:l,module:T},{endpoint:d.ADD_RELATION_WITH_NEW_PERSON,serviceName:"individuals/relations",url:"party/v1/individuals/{0}/relations",method:u,module:T},{endpoint:d.GET_POLICY_PROCESSES,serviceName:"policy-statuses",url:"policy/v1/policy-statuses",method:l,module:T},{endpoint:d.GET_COUNTRIES,serviceName:"countries",url:"location/v1/countries",method:l,module:T},{endpoint:d.GET_COUNTRY_BY_CODE,serviceName:"countries",url:"location/v1/countries/{0}",method:l,module:T},{endpoint:d.GET_PROVINCES,serviceName:"countries/provinces",url:"location/v1/countries/{0}/provinces",method:l,module:T},{endpoint:d.GET_CITIES,serviceName:"provinces/cities",url:"location/v1/provinces/{0}/cities",method:l,module:T},{endpoint:d.GET_POSTAL_CODES,serviceName:"cities/postal-codes",url:"location/v1/cities/{0}/postal-codes",method:l,module:T},{endpoint:d.GET_ADDRESSES_BY_PARTY_CODE,serviceName:"party/addresses",url:"location/v1/party/{0}/addresses",method:l,module:T},{endpoint:d.GET_ADDRESS_TYPES,serviceName:"address-types",url:"location/v1/address-types",method:l,module:T},{endpoint:d.GET_PAYMENT_METHODS_BY_PARTY_CODE,serviceName:"parties/payment-methods",url:"party/v1/parties/{0}/payment-methods",method:l,module:T},{endpoint:d.GET_CREDIT_CARD_TYPES,serviceName:"credit-card-types",url:"finance/v1/credit-card-types",method:l,module:T},{endpoint:d.GET_CARD_PROVIDERS,serviceName:"card-providers",url:"finance/v1/card-providers",method:l,module:T},{endpoint:d.UPDATE_PAYMENTS,serviceName:"parties/payment-methods",url:"party/v1/parties/{0}/payment-methods",method:u,module:T},{endpoint:d.GET_BANKS,serviceName:"banks",url:"finance/v1/banks",method:l,module:T},{endpoint:d.GET_CURRENCIES,serviceName:"currencies",url:"finance/v1/currencies",method:l,module:T},{endpoint:d.GET_BANK_ACCOUNT_TYPES,serviceName:"bank-account-types",url:"finance/v1/bank-account-types",method:l,module:T},{endpoint:d.GET_BANK_BRANCHES,serviceName:"banks/branches",url:"finance/v1/banks/{0}/branches",method:l,module:T},{endpoint:d.SEARCH_INTERMEDIARIES,serviceName:"intermediary",url:"intermediary/v1/intermediary",method:l,module:_},{endpoint:d.GET_PERSON_INTERMEDIARY_BY_CODE,serviceName:"intermediary-individual",url:"intermediary/v1/intermediary-individual/{0}",method:l,module:_},{endpoint:d.GET_ORGANIZATION_INTERMEDIARY_BY_CODE,serviceName:"intermediary-organisation",url:"intermediary/v1/intermediary-organisation/{0}",method:l,module:_},{endpoint:d.GET_INTERMEDIARIES_GROUPS,serviceName:"intermediary-groups",url:"intermediary/v1/intermediary-groups",method:l,module:_},{endpoint:d.GET_INTERMEDIARIES_ROLES,serviceName:"intermediary-roles",url:"intermediary/v1/intermediary-roles",method:l,module:_},{endpoint:d.GET_INTERMEDIARY_STRUCTURES,serviceName:"intermediary-structures",url:"intermediary/v1/intermediary/{0}/commercial-structures",method:l,module:_},{endpoint:d.GET_INTERMEDIARIES_STATES,serviceName:"commercial-structure-statuses",url:"intermediary/v1/commercial-structure-statuses",method:l,module:_},{endpoint:d.GET_INTERMEDIARIES_TYPES,serviceName:"intermediary-types",url:"intermediary/v1/intermediary-types",method:l,module:_},{endpoint:d.CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY,serviceName:"intermediary-party-association",url:"intermediary/v1/intermediary-party-association",method:c,module:_},{endpoint:d.CREATE_INTERMEDIARY_WITH_WITH_PERSON,serviceName:"intermediary-individual",url:"intermediary/v1/intermediary-individual",method:c,module:_},{endpoint:d.CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION,serviceName:"intermediary-organisation",url:"intermediary/v1/intermediary-organisation",method:c,module:_},{endpoint:d.UPDATE_INTERMEDIARY,serviceName:"intermediary",url:"intermediary/v1/intermediary/{0}",method:u,module:_},{endpoint:d.SEARCH_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures",method:l,module:s},{endpoint:d.CREATE_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures",method:c,module:s},{endpoint:d.GET_COMMERCIAL_STRUCTURE_STATUSES,serviceName:"commercial-structure-statuses",url:"intermediary/v1/commercial-structure-statuses",method:l,module:s},{endpoint:d.GET_COMMERCIAL_STRUCTURES_BY_CODE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures/{0}",method:l,module:s},{endpoint:d.UPDATE_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures/{0}",method:u,module:s},{endpoint:d.UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES,serviceName:"commercial-structures/intermediaries",url:"intermediary/v1/commercial-structures/{0}/intermediaries",method:u,module:s},{endpoint:d.SEARCH_POLICIES,serviceName:"policies",url:"policy/v1/policies",method:l,module:a},{endpoint:d.GET_POLICY_SECTIONS,serviceName:"sections",url:"product/v1/sections",method:l,module:a},{endpoint:d.GET_POLICY_SUBSECTIONS,serviceName:"sections/subsections",url:"product/v1/sections/{0}/subsections",method:l,module:a},{endpoint:d.GET_POLICY_PROCESSES,serviceName:"policy-statuses",url:"policy/v1/policy-statuses",method:l,module:a},{endpoint:d.GET_POLICY_PRODUCTS,serviceName:"subsections/products",url:"product/v1/subsections/{0}/products",method:l,module:a},{endpoint:d.GET_VALIDITY_TYPES,serviceName:"policy-validities",url:"policy/v1/policy-validities",method:l,module:a},{endpoint:d.GET_POLICY_CARACTERS,serviceName:"wording-types",url:"product/v1/wording-types",method:l,module:a},{endpoint:d.SEARCH_POLICY_GENERAL_CONDITIONS,serviceName:"wordings",url:"/product/v1/products/{0}/wordings",method:l,module:a},{endpoint:d.GET_POLICY_TYPE_OF_DOCUMENTATION,serviceName:"file-types",url:"policy/v1/file-types",method:l,module:a},{endpoint:d.GET_PAYMENT_FREQUENCIES,serviceName:"payment-frequencies",url:"policy/v1/payment-frequencies",method:l,module:a},{endpoint:d.GET_ASSOCIATE_TERMS_CONDITION,serviceName:"terms",url:"policy/v1/policies/{0}/terms",method:l,module:a},{endpoint:d.GET_ASSOCIATE_EXPENSES,serviceName:"expenses",url:"policy/v1/policies/{0}/expenses",method:l,module:a},{endpoint:d.GET_ASSOCIATE_COVERAGE,serviceName:"coverages",url:"policy-life/v1/policies/{0}/coverages",method:l,module:a},{endpoint:d.GET_COVERAGES,serviceName:"coverages",url:"product/v1/products/{0}/coverages",method:l,module:a},{endpoint:d.GET_EXPENSEVALUES,serviceName:"expenses",url:"/product/v1/products/{0}/expenses",method:l,module:a},{endpoint:d.GET_MORTALITY_TABLE,serviceName:"mortality-tables",url:"policy-life/v1/mortality-tables",method:l,module:a},{endpoint:d.CREATE_POLICY_STEP1,serviceName:"policies",url:"policy/v1/policies",method:c,module:a},{endpoint:d.CREATE_POLICY_STEP2,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:u,module:a},{endpoint:d.CREATE_POLICY_STEP3,serviceName:"policies/collections",url:"policy/v1/policies/{0}/collections",method:u,module:a},{endpoint:d.CREATE_POLICY_STEP4,serviceName:"policies/commercial-structures",url:"policy/v1/policies/{0}/commercial-structures",method:u,module:a},{endpoint:d.CREATE_POLICY_STEP5,serviceName:"policies/products",url:"policy-life/v1/policies/{0}/products",method:u,module:a},{endpoint:d.CREATE_POLICY_STEP6,serviceName:"policies/coverages",url:"policy-life/v1/policies/{0}/coverages",method:u,module:a},{endpoint:d.CREATE_POLICY_STEP7,serviceName:"policies/insurables",url:"policy-life/v1/policies/{0}/insurables",method:u,module:a},{endpoint:d.CREATE_POLICY_STEP8,serviceName:"policies/expenses",url:"policy/v1/policies/{0}/expenses",method:u,module:a},{endpoint:d.CREATE_POLICY_STEP9,serviceName:"policies/wordings",url:"policy/v1/policies/{0}/wordings",method:u,module:a},{endpoint:d.CREATE_POLICY_STEP10,serviceName:"policies/terms",url:"policy/v1/policies/{0}/terms",method:u,module:a},{endpoint:d.CREATE_POLICY_STEP11,serviceName:"policies/documentation",url:"policy/v1/policies/{0}/documentation",method:u,module:a},{endpoint:d.GET_STEP1_DATA,serviceName:"policies",url:"policy/v1/policies/{0}",method:l,module:a},{endpoint:d.GET_STEP2_DATA,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:l,module:a},{endpoint:d.GET_STEP3_DATA,serviceName:"policies/collections",url:"policy/v1/policies/{0}/collections",method:l,module:a},{endpoint:d.GET_STEP4_DATA,serviceName:"policies/commercial-structures",url:"policy/v1/policies/{0}/commercial-structures",method:l,module:a},{endpoint:d.GET_STEP5_DATA,serviceName:"policies/products",url:"policy/v1/policies/{0}/products",method:l,module:a},{endpoint:d.GET_STEP6_DATA,serviceName:"policies/coverages",url:"policy-life/v1/policies/{0}/coverages",method:l,module:a},{endpoint:d.GET_STEP7_DATA,serviceName:"policies/insurables",url:"policy-life/v1/policies/{0}/insurables",method:l,module:a},{endpoint:d.GET_STEP9_DATA,serviceName:"policies/wordings",url:"policy/v1/policies/{0}/wordings",method:l,module:a},{endpoint:d.GET_STEP11_DATA,serviceName:"policies/documentation",url:"policy/v1/policies/{0}/documentation",method:l,module:a},{endpoint:d.GET_STEP11_FILE,serviceName:"policies/file",url:"policy/v1/policies/{0}/file/{1}",method:l,module:a},{endpoint:d.UPDATE_POLICY_STEP1,serviceName:"policies",url:"policy/v1/policies/{0}",method:u,module:a},{endpoint:d.GET_ISURED_PERSONS,serviceName:"insurables",url:"policy-life/v1/products/{0}/insurables",method:l,module:a},{endpoint:d.UPDATE_PARTY,serviceName:"parties",url:"policy/v1/parties/{0}",method:u,module:a},{endpoint:d.GET_POLICY_DETAILS,serviceName:"policies/details",url:"policy-life/v1/policies/{0}/details",method:l,module:a},{endpoint:d.UPDATE_PAYMENTS,serviceName:"policies/collections",url:"policy/v1/policies/collections",method:u,module:a},{endpoint:d.CREATE_POLICY_RISK,serviceName:"policies",url:"policy-life/v1/policies/{0}/insureds",method:c,module:a},{endpoint:d.ACTIVATE_POLICY,serviceName:"policies/activate",url:"policy-life/v1/policies/{0}/activate",method:u,module:a},{endpoint:d.COMPLETE_POLICY,serviceName:"policies/complete",url:"/policy-life/v1/policies/{0}/complete",method:u,module:a},{endpoint:d.SET_POLICY_BUILDING,serviceName:"policies/build",url:"policy-life/v1/policies/{0}/build",method:u,module:a},{endpoint:d.GET_POLICY_ROLES,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:l,module:a},{endpoint:d.GET_ASSURED_LIST,serviceName:"insureds",url:"policy-life/v1/policies/{0}/insureds",method:l,module:a},{endpoint:d.GET_ADHERENTS,serviceName:"adherents",url:"policy-life/v1/adherents/{0}",method:l,module:a},{endpoint:d.GET_OWNERS,serviceName:"owners",url:"policy-life/v1/owners/{0}",method:l,module:a},{endpoint:d.GET_ADHERENTS_BY_OWNER,serviceName:"owners/adherents",url:"policy-life/v1/owners/{0}/adherents",method:l,module:a},{endpoint:d.SEARCH_ACCOUNT_OFFICERS,serviceName:"account-officers",url:"intermediary/v1/account-officers",method:l,module:_},{endpoint:d.CREATE_PRODUCT,serviceName:"configurator-product-creation",url:"policy-life/v1/products",method:c,module:"CONFIGURATOR_MODULE"}];function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function A(){A=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},E="function"==typeof Symbol?Symbol:{},n=E.iterator||"@@iterator",T=E.asyncIterator||"@@asyncIterator",_=E.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function a(e,t,r,o){var E=t&&t.prototype instanceof I?t:I,n=Object.create(E.prototype),T=new Y(o||[]);return i(n,"_invoke",{value:G(e,r,T)}),n}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=a;var c="suspendedStart",u="suspendedYield",d="executing",m="completed",S={};function I(){}function R(){}function v(){}var C={};s(C,n,(function(){return this}));var N=Object.getPrototypeOf,O=N&&N(N(U([])));O&&O!==r&&o.call(O,n)&&(C=O);var P=v.prototype=I.prototype=Object.create(C);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function h(e,t){function r(i,E,n,T){var _=l(e[i],e,E);if("throw"!==_.type){var s=_.arg,a=s.value;return a&&"object"==p(a)&&o.call(a,"__await")?t.resolve(a.__await).then((function(e){r("next",e,n,T)}),(function(e){r("throw",e,n,T)})):t.resolve(a).then((function(e){s.value=e,n(s)}),(function(e){return r("throw",e,n,T)}))}T(_.arg)}var E;i(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,i){r(e,o,t,i)}))}return E=E?E.then(i,i):i()}})}function G(t,r,o){var i=c;return function(E,n){if(i===d)throw Error("Generator is already running");if(i===m){if("throw"===E)throw n;return{value:e,done:!0}}for(o.method=E,o.arg=n;;){var T=o.delegate;if(T){var _=f(T,o);if(_){if(_===S)continue;return _}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===c)throw i=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=d;var s=l(t,r,o);if("normal"===s.type){if(i=o.done?m:u,s.arg===S)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(i=m,o.method="throw",o.arg=s.arg)}}}function f(t,r){var o=r.method,i=t.iterator[o];if(i===e)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=e,f(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),S;var E=l(i,t.iterator,r.arg);if("throw"===E.type)return r.method="throw",r.arg=E.arg,r.delegate=null,S;var n=E.arg;return n?n.done?(r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,S):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,S)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Y(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function U(t){if(t||""===t){var r=t[n];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,E=function r(){for(;++i<t.length;)if(o.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return E.next=E}}throw new TypeError(p(t)+" is not iterable")}return R.prototype=v,i(P,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:R,configurable:!0}),R.displayName=s(v,_,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===R||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,_,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},y(h.prototype),s(h.prototype,T,(function(){return this})),t.AsyncIterator=h,t.async=function(e,r,o,i,E){void 0===E&&(E=Promise);var n=new h(a(e,r,o,i),E);return t.isGeneratorFunction(r)?n:n.next().then((function(e){return e.done?e.value:n.next()}))},y(P),s(P,_,"Generator"),s(P,n,(function(){return this})),s(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=U,Y.prototype={constructor:Y,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(o,i){return T.type="throw",T.arg=t,r.next=o,i&&(r.method="next",r.arg=e),!!i}for(var E=this.tryEntries.length-1;E>=0;--E){var n=this.tryEntries[E],T=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var _=o.call(n,"catchLoc"),s=o.call(n,"finallyLoc");if(_&&s){if(this.prev<n.catchLoc)return i(n.catchLoc,!0);if(this.prev<n.finallyLoc)return i(n.finallyLoc)}else if(_){if(this.prev<n.catchLoc)return i(n.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return i(n.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var E=i;break}}E&&("break"===e||"continue"===e)&&E.tryLoc<=t&&t<=E.finallyLoc&&(E=null);var n=E?E.completion:{};return n.type=e,n.arg=t,E?(this.method="next",this.next=E.finallyLoc,S):this.complete(n)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),S},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),S}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var i=o.arg;L(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:U(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),S}},t}function S(e,t,r,o,i,E,n){try{var T=e[E](n),_=T.value}catch(e){return void r(e)}T.done?t(_):Promise.resolve(_).then(o,i)}var I=function(e,t){try{var o={title:"",errors:[]};if(t instanceof r.AxiosError){var i,E,n=t.response,T=n.status,_=null===(i=JSON.parse(localStorage.getItem("modules_info")).find((function(t){return t.code===e.module})))||void 0===i||null===(i=i.services)||void 0===i||null===(i=i.find((function(t){return t.name.toUpperCase()===e.serviceName.toUpperCase()&&t.httpMethod.toUpperCase()===e.method.toUpperCase()})))||void 0===i?void 0:i.errors.find((function(e){return e.httpStatus===T}));o.title=(null==_?void 0:_.content)||n.data.message;var s=null===(E=n.data.errorMessages)||void 0===E?void 0:E.map((function(e){var t,r=null==_||null===(t=_.subErrors)||void 0===t?void 0:t.find((function(t){return t.errorType===e.fieldError&&t.fieldName===e.fieldName}));return(null==r?void 0:r.content)||(null==e?void 0:e.error)}));o.errors=s||[]}else o.title=t.message}catch(t){throw console.error(t),t}},R=function(e,t){return t?e.replace(/{(\d+)}/g,(function(e,r){return t[r]?t[r]:e})):e},v=function(){var e,t=(e=A().mark((function e(t,r){var i,E,n,T,_=arguments;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=_.length>2&&void 0!==_[2]?_[2]:null,E=m.find((function(e){return e.endpoint===t})),e.prev=2,E){e.next=5;break}throw new Error("Service does not exists");case 5:n=R(E.url,r),e.t0=E.method,e.next=e.t0===l?9:e.t0===c?13:e.t0===u?17:"DELETE"===e.t0?21:25;break;case 9:return e.next=11,o.get(n,{params:i});case 11:case 15:case 19:case 23:return T=e.sent,e.abrupt("return",T.data);case 13:return e.next=15,o.post(n,i);case 17:return e.next=19,o.put(n,i);case 21:return e.next=23,o.delete(n,i);case 25:throw T=null,new Error("Request error: Method not allowed. Only use GET, POST, PUT, DELETE");case 27:e.next=33;break;case 29:throw e.prev=29,e.t1=e.catch(2),I(E,e.t1),e.t1;case 33:case"end":return e.stop()}}),e,null,[[2,29]])})),function(){var t=this,r=arguments;return new Promise((function(o,i){var E=e.apply(t,r);function n(e){S(E,o,i,n,T,"next",e)}function T(e){S(E,o,i,n,T,"throw",e)}n(void 0)}))});return function(e,r){return t.apply(this,arguments)}}();module.exports=t})();
|
|
2
|
+
(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{apiCall:()=>y,apiMapper:()=>G,axiosInstance:()=>o,endpoints:()=>_});const r=require("axios"),o=e.n(r)().create({});var n;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,r){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c="PARTY_MODULE",E="INTERMEDIARY_MODULE",u="COMMERCIAL_STRUCTURE_MODULE",s="POLICY_MODULE",l="GET",T="POST",d="PUT",_=(a(a(a(a(a(a(a(a(a(a(n={GET_ACTIVITIES:"GET_ACTIVITIES",GET_PRACTICES:"GET_PRACTICES",SEARCH_INDIVIDUALS:"SEARCH_INDIVIDUALS",CREATE_INDIVIDUAL:"CREATE_INDIVIDUAL",GET_IDENTIFICATION_TYPES:"GET_IDENTIFICATION_TYPES",GET_RELATIONS:"GET_RELATIONS",GET_NOTES:"GET_NOTES",GET_FILES:"GET_FILES",GET_SECTORS:"GET_SECTORS",GET_FISCAL_CATEGORIES:"GET_FISCAL_CATEGORIES",GET_MAIL_TYPES:"GET_MAIL_TYPES",GET_PHONE_TYPES:"GET_PHONE_TYPES",UPDATE_NOTES:"UPDATE_NOTES",UPDATE_FILES:"UPDATE_FILES",ADD_RELATION_WITH_EXISTING_PARTY:"ADD_RELATION_WITH_EXISTING_PARTY",GET_RELATIONS_BY_PARTY_CODE:"GET_RELATIONS_BY_PARTY_CODE",REMOVE_RELATION:"REMOVE_RELATION",GET_FILE:"GET_FILE",GET_ORGANIZATION_TYPES:"GET_ORGANIZATION_TYPES",SEARCH_ORGANIZATION:"SEARCH_ORGANIZATION",CREATE_ORGANIZATION:"CREATE_ORGANIZATION",GET_ORGANIZATION_BY_CODE:"GET_ORGANIZATION_BY_CODE",UPDATE_ORGANIZATION:"UPDATE_ORGANIZATION",ADD_RELATION_WITH_NEW_ORGANIZATION:"ADD_RELATION_WITH_NEW_ORGANIZATION",GET_PERSON_BY_CODE:"GET_PERSON_BY_CODE",GET_GENDERS:"GET_GENDERS",GET_MARITAL_STATUSES:"GET_MARITAL_STATUSES",GET_WORKER_TYPES:"GET_WORKER_TYPES",GET_ECONOMIC_CLASSES:"GET_ECONOMIC_CLASSES",SEARCH_PERSON:"SEARCH_PERSON",UPDATE_PERSON:"UPDATE_PERSON",GET_RELATION_TYPES:"GET_RELATION_TYPES",ADD_RELATION_WITH_NEW_PERSON:"ADD_RELATION_WITH_NEW_PERSON",GET_POLICY_PROCESSES:"GET_POLICY_PROCESSES",GET_COUNTRIES:"GET_COUNTRIES",GET_COUNTRY_BY_CODE:"GET_COUNTRY_BY_CODE",GET_PROVINCES:"GET_PROVINCES",GET_CITIES:"GET_CITIES",GET_POSTAL_CODES:"GET_POSTAL_CODES",GET_ADDRESSES_BY_PARTY_CODE:"GET_ADDRESSES_BY_PARTY_CODE",GET_ADDRESS_TYPES:"GET_ADDRESS_TYPES",GET_PAYMENT_METHODS_BY_PARTY_CODE:"GET_PAYMENT_METHODS_BY_PARTY_CODE",GET_CREDIT_CARD_TYPES:"GET_CREDIT_CARD_TYPES",GET_CARD_PROVIDERS:"GET_CARD_PROVIDERS",UPDATE_PAYMENTS:"UPDATE_PAYMENTS",GET_BANKS:"GET_BANKS",GET_CURRENCIES:"GET_CURRENCIES",GET_BANK_ACCOUNT_TYPES:"GET_BANK_ACCOUNT_TYPES",GET_BANK_BRANCHES:"GET_BANK_BRANCHES",GET_PERSON_INTERMEDIARY_BY_CODE:"GET_PERSON_INTERMEDIARY_BY_CODE",GET_ORGANIZATION_INTERMEDIARY_BY_CODE:"GET_ORGANIZATION_INTERMEDIARY_BY_CODE",GET_INTERMEDIARIES_GROUPS:"GET_INTERMEDIARIES_GROUPS",GET_INTERMEDIARIES_ROLES:"GET_INTERMEDIARIES_ROLES",GET_INTERMEDIARY_STRUCTURES:"GET_INTERMEDIARY_STRUCTURES",SEARCH_INTERMEDIARIES:"SEARCH_INTERMEDIARIES",SEARCH_ACCOUNT_OFFICERS:"SEARCH_ACCOUNT_OFFICERS",GET_INTERMEDIARIES_STATES:"GET_INTERMEDIARIES_STATES",GET_INTERMEDIARIES_TYPES:"GET_INTERMEDIARIES_TYPES",CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY:"CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY",CREATE_INTERMEDIARY_WITH_WITH_PERSON:"CREATE_INTERMEDIARY_WITH_WITH_PERSON",CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION:"CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION",UPDATE_INTERMEDIARY:"UPDATE_INTERMEDIARY",CREATE_COMMERCIAL_STRUCTURE:"CREATE_COMMERCIAL_STRUCTURE",GET_COMMERCIAL_STRUCTURE_STATUSES:"GET_COMMERCIAL_STRUCTURE_STATUSES",SEARCH_COMMERCIAL_STRUCTURE:"SEARCH_COMMERCIAL_STRUCTURE",GET_COMMERCIAL_STRUCTURES_BY_CODE:"GET_COMMERCIAL_STRUCTURES_BY_CODE",UPDATE_COMMERCIAL_STRUCTURE:"UPDATE_COMMERCIAL_STRUCTURE",UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES:"UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES",GET_POLICY_SECTIONS:"GET_POLICY_SECTIONS",GET_POLICY_SUBSECTIONS:"GET_POLICY_SUBSECTIONS"},"GET_POLICY_PROCESSES","GET_POLICY_PROCESSES"),"GET_POLICY_PRODUCTS","GET_POLICY_PRODUCTS"),"GET_VALIDITY_TYPES","GET_VALIDITY_TYPES"),"GET_POLICY_CARACTERS","GET_POLICY_CARACTERS"),"GET_POLICY_TYPE_OF_DOCUMENTATION","GET_POLICY_TYPE_OF_DOCUMENTATION"),"GET_PAYMENT_FREQUENCIES","GET_PAYMENT_FREQUENCIES"),"GET_ASSOCIATE_TERMS_CONDITION","GET_ASSOCIATE_TERMS_CONDITION"),"GET_ASSOCIATE_EXPENSES","GET_ASSOCIATE_EXPENSES"),"GET_ASSOCIATE_COVERAGE","GET_ASSOCIATE_COVERAGE"),"GET_COVERAGES","GET_COVERAGES"),a(a(a(a(a(a(a(a(a(a(n,"GET_EXPENSEVALUES","GET_EXPENSEVALUES"),"GET_MORTALITY_TABLE","GET_MORTALITY_TABLE"),"CREATE_POLICY_STEP1","CREATE_POLICY_STEP1"),"CREATE_POLICY_STEP2","CREATE_POLICY_STEP2"),"CREATE_POLICY_STEP3","CREATE_POLICY_STEP3"),"CREATE_POLICY_STEP4","CREATE_POLICY_STEP4"),"CREATE_POLICY_STEP5","CREATE_POLICY_STEP5"),"CREATE_POLICY_STEP6","CREATE_POLICY_STEP6"),"CREATE_POLICY_STEP7","CREATE_POLICY_STEP7"),"CREATE_POLICY_STEP8","CREATE_POLICY_STEP8"),a(a(a(a(a(a(a(a(a(a(n,"CREATE_POLICY_STEP9","CREATE_POLICY_STEP9"),"CREATE_POLICY_STEP10","CREATE_POLICY_STEP10"),"CREATE_POLICY_STEP11","CREATE_POLICY_STEP11"),"GET_STEP1_DATA","GET_STEP1_DATA"),"GET_STEP2_DATA","GET_STEP2_DATA"),"GET_STEP3_DATA","GET_STEP3_DATA"),"GET_STEP4_DATA","GET_STEP4_DATA"),"GET_STEP5_DATA","GET_STEP5_DATA"),"GET_STEP6_DATA","GET_STEP6_DATA"),"GET_STEP7_DATA","GET_STEP7_DATA"),a(a(a(a(a(a(a(a(a(a(n,"GET_STEP9_DATA","GET_STEP9_DATA"),"GET_STEP11_DATA","GET_STEP11_DATA"),"GET_STEP11_FILE","GET_STEP11_FILE"),"UPDATE_POLICY_STEP1","UPDATE_POLICY_STEP1"),"GET_ISURED_PERSONS","GET_ISURED_PERSONS"),"UPDATE_PARTY","UPDATE_PARTY"),"GET_POLICY_DETAILS","GET_POLICY_DETAILS"),"UPDATE_PAYMENTS","UPDATE_PAYMENTS"),"CREATE_POLICY_RISK","CREATE_POLICY_RISK"),"ACTIVATE_POLICY","ACTIVATE_POLICY"),a(a(a(a(a(a(a(a(a(a(n,"COMPLETE_POLICY","COMPLETE_POLICY"),"SET_POLICY_BUILDING","SET_POLICY_BUILDING"),"SEARCH_POLICIES","SEARCH_POLICIES"),"SEARCH_POLICY_GENERAL_CONDITIONS","SEARCH_POLICY_GENERAL_CONDITIONS"),"GET_ASSURED_LIST","GET_ASSURED_LIST"),"GET_ADHERENTS","GET_ADHERENTS"),"GET_ADHERENTS_BY_OWNER","GET_ADHERENTS_BY_OWNER"),"GET_OWNERS","GET_OWNERS"),"GET_POLICY_ROLES","GET_POLICY_ROLES"),"CREATE_PRODUCT","CREATE_PRODUCT")),p=[{endpoint:_.SEARCH_INDIVIDUALS,serviceName:"individuals",url:"party/v1/individuals",method:l,module:c},{endpoint:_.CREATE_INDIVIDUAL,serviceName:"individuals",url:"party/v1/individuals",method:T,module:c},{endpoint:_.GET_ACTIVITIES,serviceName:"activities",url:"party/v1/activities/{0}",method:l,module:c},{endpoint:_.GET_PRACTICES,serviceName:"practices",url:"party/v1/practices/{0}",method:l,module:c},{endpoint:_.GET_SECTORS,serviceName:"sectors",url:"party/v1/sectors",method:l,module:c},{endpoint:_.GET_FISCAL_CATEGORIES,serviceName:"fiscal-categories",url:"party/v1/fiscal-categories?party-type-code={0}&country-code={1}",method:l,module:c},{endpoint:_.GET_MAIL_TYPES,serviceName:"mail-types",url:"party/v1/mail-types",method:l,module:c},{endpoint:_.GET_PHONE_TYPES,serviceName:"phone-types",url:"party/v1/phone-types",method:l,module:c},{endpoint:_.GET_IDENTIFICATION_TYPES,serviceName:"identification-types",url:"party/v1/identification-types?party-type-code={0}&country-code={1}",method:l,module:c},{endpoint:_.GET_RELATIONS,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:l,module:c},{endpoint:_.GET_NOTES,serviceName:"parties/notes",url:"party/v1/parties/{0}/notes",method:l,module:c},{endpoint:_.GET_FILES,serviceName:"parties/files",url:"party/v1/parties/{0}/files",method:l,module:c},{endpoint:_.UPDATE_NOTES,serviceName:"parties/notes",url:"party/v1/parties/{0}/notes",method:d,module:c},{endpoint:_.UPDATE_FILES,serviceName:"parties/files",url:"party/v1/parties/{0}/files",method:d,module:c},{endpoint:_.ADD_RELATION_WITH_EXISTING_PARTY,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:d,module:c},{endpoint:_.GET_RELATIONS_BY_PARTY_CODE,serviceName:"parties/relations",url:"party/v1/parties/{0}/relations",method:l,module:c},{endpoint:_.REMOVE_RELATION,serviceName:"parties/relations/disable",url:"party/v1/parties/{0}/relations/disable",method:d,module:c},{endpoint:_.GET_FILE,serviceName:"parties/file",url:"party/v1/parties/{0}/file/{1}",method:l,module:c},{endpoint:_.SEARCH_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations",method:l,module:c},{endpoint:_.GET_ORGANIZATION_TYPES,serviceName:"organisation-types",url:"party/v1/organisation-types",method:l,module:c},{endpoint:_.CREATE_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations",method:T,module:c},{endpoint:_.UPDATE_ORGANIZATION,serviceName:"organisations",url:"party/v1/organisations/{0}",method:d,module:c},{endpoint:_.GET_ORGANIZATION_BY_CODE,serviceName:"organisations",url:"party/v1/organisations/{0}",method:l,module:c},{endpoint:_.ADD_RELATION_WITH_NEW_ORGANIZATION,serviceName:"organisations/relations",url:"party/v1/organisations/{0}/relations",method:d,module:c},{endpoint:_.UPDATE_PERSON,serviceName:"individuals",url:"party/v1/individuals/{0}",method:d,module:c},{endpoint:_.SEARCH_PERSON,serviceName:"individuals",url:"party/v1/individuals",method:l,module:c},{endpoint:_.GET_PERSON_BY_CODE,serviceName:"individuals",url:"party/v1/individuals/{0}",method:l,module:c},{endpoint:_.GET_GENDERS,serviceName:"genders",url:"party/v1/genders",method:l,module:c},{endpoint:_.GET_MARITAL_STATUSES,serviceName:"marital-statuses",url:"party/v1/marital-statuses",method:l,module:c},{endpoint:_.GET_WORKER_TYPES,serviceName:"worker-types",url:"party/v1/worker-types",method:l,module:c},{endpoint:_.GET_ECONOMIC_CLASSES,serviceName:"economic-classes",url:"party/v1/economic-classes",method:l,module:c},{endpoint:_.GET_RELATION_TYPES,serviceName:"relation-types",url:"party/v1/relation-types/{0}",method:l,module:c},{endpoint:_.ADD_RELATION_WITH_NEW_PERSON,serviceName:"individuals/relations",url:"party/v1/individuals/{0}/relations",method:d,module:c},{endpoint:_.GET_POLICY_PROCESSES,serviceName:"policy-statuses",url:"policy/v1/policy-statuses",method:l,module:c},{endpoint:_.GET_COUNTRIES,serviceName:"countries",url:"location/v1/countries",method:l,module:c},{endpoint:_.GET_COUNTRY_BY_CODE,serviceName:"countries",url:"location/v1/countries/{0}",method:l,module:c},{endpoint:_.GET_PROVINCES,serviceName:"countries/provinces",url:"location/v1/countries/{0}/provinces",method:l,module:c},{endpoint:_.GET_CITIES,serviceName:"provinces/cities",url:"location/v1/provinces/{0}/cities",method:l,module:c},{endpoint:_.GET_POSTAL_CODES,serviceName:"cities/postal-codes",url:"location/v1/cities/{0}/postal-codes",method:l,module:c},{endpoint:_.GET_ADDRESSES_BY_PARTY_CODE,serviceName:"party/addresses",url:"location/v1/party/{0}/addresses",method:l,module:c},{endpoint:_.GET_ADDRESS_TYPES,serviceName:"address-types",url:"location/v1/address-types",method:l,module:c},{endpoint:_.GET_PAYMENT_METHODS_BY_PARTY_CODE,serviceName:"parties/payment-methods",url:"party/v1/parties/{0}/payment-methods",method:l,module:c},{endpoint:_.GET_CREDIT_CARD_TYPES,serviceName:"credit-card-types",url:"finance/v1/credit-card-types",method:l,module:c},{endpoint:_.GET_CARD_PROVIDERS,serviceName:"card-providers",url:"finance/v1/card-providers",method:l,module:c},{endpoint:_.UPDATE_PAYMENTS,serviceName:"parties/payment-methods",url:"party/v1/parties/{0}/payment-methods",method:d,module:c},{endpoint:_.GET_BANKS,serviceName:"banks",url:"finance/v1/banks",method:l,module:c},{endpoint:_.GET_CURRENCIES,serviceName:"currencies",url:"finance/v1/currencies",method:l,module:c},{endpoint:_.GET_BANK_ACCOUNT_TYPES,serviceName:"bank-account-types",url:"finance/v1/bank-account-types",method:l,module:c},{endpoint:_.GET_BANK_BRANCHES,serviceName:"banks/branches",url:"finance/v1/banks/{0}/branches",method:l,module:c},{endpoint:_.SEARCH_INTERMEDIARIES,serviceName:"intermediary",url:"intermediary/v1/intermediary",method:l,module:E},{endpoint:_.GET_PERSON_INTERMEDIARY_BY_CODE,serviceName:"intermediary-individual",url:"intermediary/v1/intermediary-individual/{0}",method:l,module:E},{endpoint:_.GET_ORGANIZATION_INTERMEDIARY_BY_CODE,serviceName:"intermediary-organisation",url:"intermediary/v1/intermediary-organisation/{0}",method:l,module:E},{endpoint:_.GET_INTERMEDIARIES_GROUPS,serviceName:"intermediary-groups",url:"intermediary/v1/intermediary-groups",method:l,module:E},{endpoint:_.GET_INTERMEDIARIES_ROLES,serviceName:"intermediary-roles",url:"intermediary/v1/intermediary-roles",method:l,module:E},{endpoint:_.GET_INTERMEDIARY_STRUCTURES,serviceName:"intermediary-structures",url:"intermediary/v1/intermediary/{0}/commercial-structures",method:l,module:E},{endpoint:_.GET_INTERMEDIARIES_STATES,serviceName:"commercial-structure-statuses",url:"intermediary/v1/commercial-structure-statuses",method:l,module:E},{endpoint:_.GET_INTERMEDIARIES_TYPES,serviceName:"intermediary-types",url:"intermediary/v1/intermediary-types",method:l,module:E},{endpoint:_.CREATE_INTERMEDIARY_ASSOCIATED_WITH_PARTY,serviceName:"intermediary-party-association",url:"intermediary/v1/intermediary-party-association",method:T,module:E},{endpoint:_.CREATE_INTERMEDIARY_WITH_WITH_PERSON,serviceName:"intermediary-individual",url:"intermediary/v1/intermediary-individual",method:T,module:E},{endpoint:_.CREATE_INTERMEDIARY_WITH_WITH_ORGANIZATION,serviceName:"intermediary-organisation",url:"intermediary/v1/intermediary-organisation",method:T,module:E},{endpoint:_.UPDATE_INTERMEDIARY,serviceName:"intermediary",url:"intermediary/v1/intermediary/{0}",method:d,module:E},{endpoint:_.SEARCH_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures",method:l,module:u},{endpoint:_.CREATE_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures",method:T,module:u},{endpoint:_.GET_COMMERCIAL_STRUCTURE_STATUSES,serviceName:"commercial-structure-statuses",url:"intermediary/v1/commercial-structure-statuses",method:l,module:u},{endpoint:_.GET_COMMERCIAL_STRUCTURES_BY_CODE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures/{0}",method:l,module:u},{endpoint:_.UPDATE_COMMERCIAL_STRUCTURE,serviceName:"commercial-structures",url:"intermediary/v1/commercial-structures/{0}",method:d,module:u},{endpoint:_.UPDATE_COMMERCIAL_STRUCTURE_INTERMEDIARIES,serviceName:"commercial-structures/intermediaries",url:"intermediary/v1/commercial-structures/{0}/intermediaries",method:d,module:u},{endpoint:_.SEARCH_POLICIES,serviceName:"policies",url:"policy/v1/policies",method:l,module:s},{endpoint:_.GET_POLICY_SECTIONS,serviceName:"sections",url:"product/v1/sections",method:l,module:s},{endpoint:_.GET_POLICY_SUBSECTIONS,serviceName:"sections/subsections",url:"product/v1/sections/{0}/subsections",method:l,module:s},{endpoint:_.GET_POLICY_PROCESSES,serviceName:"policy-statuses",url:"policy/v1/policy-statuses",method:l,module:s},{endpoint:_.GET_POLICY_PRODUCTS,serviceName:"subsections/products",url:"product/v1/subsections/{0}/products",method:l,module:s},{endpoint:_.GET_VALIDITY_TYPES,serviceName:"policy-validities",url:"policy/v1/policy-validities",method:l,module:s},{endpoint:_.GET_POLICY_CARACTERS,serviceName:"wording-types",url:"product/v1/wording-types",method:l,module:s},{endpoint:_.SEARCH_POLICY_GENERAL_CONDITIONS,serviceName:"wordings",url:"/product/v1/products/{0}/wordings",method:l,module:s},{endpoint:_.GET_POLICY_TYPE_OF_DOCUMENTATION,serviceName:"file-types",url:"policy/v1/file-types",method:l,module:s},{endpoint:_.GET_PAYMENT_FREQUENCIES,serviceName:"payment-frequencies",url:"policy/v1/payment-frequencies",method:l,module:s},{endpoint:_.GET_ASSOCIATE_TERMS_CONDITION,serviceName:"terms",url:"policy/v1/policies/{0}/terms",method:l,module:s},{endpoint:_.GET_ASSOCIATE_EXPENSES,serviceName:"expenses",url:"policy/v1/policies/{0}/expenses",method:l,module:s},{endpoint:_.GET_ASSOCIATE_COVERAGE,serviceName:"coverages",url:"policy-life/v1/policies/{0}/coverages",method:l,module:s},{endpoint:_.GET_COVERAGES,serviceName:"coverages",url:"product/v1/products/{0}/coverages",method:l,module:s},{endpoint:_.GET_EXPENSEVALUES,serviceName:"expenses",url:"/product/v1/products/{0}/expenses",method:l,module:s},{endpoint:_.GET_MORTALITY_TABLE,serviceName:"mortality-tables",url:"policy-life/v1/mortality-tables",method:l,module:s},{endpoint:_.CREATE_POLICY_STEP1,serviceName:"policies",url:"policy/v1/policies",method:T,module:s},{endpoint:_.CREATE_POLICY_STEP2,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:d,module:s},{endpoint:_.CREATE_POLICY_STEP3,serviceName:"policies/collections",url:"policy/v1/policies/{0}/collections",method:d,module:s},{endpoint:_.CREATE_POLICY_STEP4,serviceName:"policies/commercial-structures",url:"policy/v1/policies/{0}/commercial-structures",method:d,module:s},{endpoint:_.CREATE_POLICY_STEP5,serviceName:"policies/products",url:"policy-life/v1/policies/{0}/products",method:d,module:s},{endpoint:_.CREATE_POLICY_STEP6,serviceName:"policies/coverages",url:"policy-life/v1/policies/{0}/coverages",method:d,module:s},{endpoint:_.CREATE_POLICY_STEP7,serviceName:"policies/insurables",url:"policy-life/v1/policies/{0}/insurables",method:d,module:s},{endpoint:_.CREATE_POLICY_STEP8,serviceName:"policies/expenses",url:"policy/v1/policies/{0}/expenses",method:d,module:s},{endpoint:_.CREATE_POLICY_STEP9,serviceName:"policies/wordings",url:"policy/v1/policies/{0}/wordings",method:d,module:s},{endpoint:_.CREATE_POLICY_STEP10,serviceName:"policies/terms",url:"policy/v1/policies/{0}/terms",method:d,module:s},{endpoint:_.CREATE_POLICY_STEP11,serviceName:"policies/documentation",url:"policy/v1/policies/{0}/documentation",method:d,module:s},{endpoint:_.GET_STEP1_DATA,serviceName:"policies",url:"policy/v1/policies/{0}",method:l,module:s},{endpoint:_.GET_STEP2_DATA,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:l,module:s},{endpoint:_.GET_STEP3_DATA,serviceName:"policies/collections",url:"policy/v1/policies/{0}/collections",method:l,module:s},{endpoint:_.GET_STEP4_DATA,serviceName:"policies/commercial-structures",url:"policy/v1/policies/{0}/commercial-structures",method:l,module:s},{endpoint:_.GET_STEP5_DATA,serviceName:"policies/products",url:"policy/v1/policies/{0}/products",method:l,module:s},{endpoint:_.GET_STEP6_DATA,serviceName:"policies/coverages",url:"policy-life/v1/policies/{0}/coverages",method:l,module:s},{endpoint:_.GET_STEP7_DATA,serviceName:"policies/insurables",url:"policy-life/v1/policies/{0}/insurables",method:l,module:s},{endpoint:_.GET_STEP9_DATA,serviceName:"policies/wordings",url:"policy/v1/policies/{0}/wordings",method:l,module:s},{endpoint:_.GET_STEP11_DATA,serviceName:"policies/documentation",url:"policy/v1/policies/{0}/documentation",method:l,module:s},{endpoint:_.GET_STEP11_FILE,serviceName:"policies/file",url:"policy/v1/policies/{0}/file/{1}",method:l,module:s},{endpoint:_.UPDATE_POLICY_STEP1,serviceName:"policies",url:"policy/v1/policies/{0}",method:d,module:s},{endpoint:_.GET_ISURED_PERSONS,serviceName:"insurables",url:"policy-life/v1/products/{0}/insurables",method:l,module:s},{endpoint:_.UPDATE_PARTY,serviceName:"parties",url:"policy/v1/parties/{0}",method:d,module:s},{endpoint:_.GET_POLICY_DETAILS,serviceName:"policies/details",url:"policy-life/v1/policies/{0}/details",method:l,module:s},{endpoint:_.UPDATE_PAYMENTS,serviceName:"policies/collections",url:"policy/v1/policies/collections",method:d,module:s},{endpoint:_.CREATE_POLICY_RISK,serviceName:"policies",url:"policy-life/v1/policies/{0}/insureds",method:T,module:s},{endpoint:_.ACTIVATE_POLICY,serviceName:"policies/activate",url:"policy-life/v1/policies/{0}/activate",method:d,module:s},{endpoint:_.COMPLETE_POLICY,serviceName:"policies/complete",url:"/policy-life/v1/policies/{0}/complete",method:d,module:s},{endpoint:_.SET_POLICY_BUILDING,serviceName:"policies/build",url:"policy-life/v1/policies/{0}/build",method:d,module:s},{endpoint:_.GET_POLICY_ROLES,serviceName:"policies/roles",url:"policy/v1/policies/{0}/roles",method:l,module:s},{endpoint:_.GET_ASSURED_LIST,serviceName:"insureds",url:"policy-life/v1/policies/{0}/insureds",method:l,module:s},{endpoint:_.GET_ADHERENTS,serviceName:"adherents",url:"policy-life/v1/adherents/{0}",method:l,module:s},{endpoint:_.GET_OWNERS,serviceName:"owners",url:"policy-life/v1/owners/{0}",method:l,module:s},{endpoint:_.GET_ADHERENTS_BY_OWNER,serviceName:"owners/adherents",url:"policy-life/v1/owners/{0}/adherents",method:l,module:s},{endpoint:_.SEARCH_ACCOUNT_OFFICERS,serviceName:"account-officers",url:"intermediary/v1/account-officers",method:l,module:E},{endpoint:_.CREATE_PRODUCT,serviceName:"configurator-product-creation",url:"policy-life/v1/products",method:T,module:"CONFIGURATOR_MODULE"}];function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function v(){v=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",E=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),c=new g(o||[]);return n(a,"_invoke",{value:P(e,r,c)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var T="suspendedStart",d="suspendedYield",_="executing",p="completed",h={};function f(){}function S(){}function y(){}var A={};u(A,a,(function(){return this}));var I=Object.getPrototypeOf,R=I&&I(I(Y([])));R&&R!==r&&o.call(R,a)&&(A=R);var O=y.prototype=f.prototype=Object.create(A);function N(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(n,i,a,c){var E=l(e[n],e,i);if("throw"!==E.type){var u=E.arg,s=u.value;return s&&"object"==m(s)&&o.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(E.arg)}var i;n(this,"_invoke",{value:function(e,o){function n(){return new t((function(t,n){r(e,o,t,n)}))}return i=i?i.then(n,n):n()}})}function P(t,r,o){var n=T;return function(i,a){if(n===_)throw Error("Generator is already running");if(n===p){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var c=o.delegate;if(c){var E=G(c,o);if(E){if(E===h)continue;return E}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(n===T)throw n=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n=_;var u=l(t,r,o);if("normal"===u.type){if(n=o.done?p:d,u.arg===h)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(n=p,o.method="throw",o.arg=u.arg)}}}function G(t,r){var o=r.method,n=t.iterator[o];if(n===e)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=e,G(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),h;var i=l(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function g(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function Y(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(m(t)+" is not iterable")}return S.prototype=y,n(O,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:S,configurable:!0}),S.displayName=u(y,E,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,E,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},N(C.prototype),u(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,o,n,i){void 0===i&&(i=Promise);var a=new C(s(e,r,o,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(O),u(O,E,"Generator"),u(O,a,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=Y,g.prototype={constructor:g,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(o,n){return c.type="throw",c.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var E=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(E&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(E){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;D(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:Y(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),h}},t}function h(e,t,r,o,n,i,a){try{var c=e[i](a),E=c.value}catch(e){return void r(e)}c.done?t(E):Promise.resolve(E).then(o,n)}var f=function(e,t){try{var o={title:"",errors:[]};if(t instanceof r.AxiosError){var n,i,a=t.response,c=a.status,E=null===(n=JSON.parse(localStorage.getItem("modules_info")).find((function(t){return t.code===e.module})))||void 0===n||null===(n=n.services)||void 0===n||null===(n=n.find((function(t){return t.name.toUpperCase()===e.serviceName.toUpperCase()&&t.httpMethod.toUpperCase()===e.method.toUpperCase()})))||void 0===n?void 0:n.errors.find((function(e){return e.httpStatus===c}));o.title=(null==E?void 0:E.content)||a.data.message;var u=null===(i=a.data.errorMessages)||void 0===i?void 0:i.map((function(e){var t,r=null==E||null===(t=E.subErrors)||void 0===t?void 0:t.find((function(t){return t.errorType===e.fieldError&&t.fieldName===e.fieldName}));return(null==r?void 0:r.content)||(null==e?void 0:e.error)}));o.errors=u||[]}else o.title=t.message}catch(t){throw console.error(t),t}},S=function(e,t){return t?e.replace(/{(\d+)}/g,(function(e,r){return t[r]?t[r]:e})):e},y=function(){var e,t=(e=v().mark((function e(t,r){var n,i,a,c,E=arguments;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=E.length>2&&void 0!==E[2]?E[2]:null,i=p.find((function(e){return e.endpoint===t})),e.prev=2,i){e.next=5;break}throw new Error("Service does not exists");case 5:a=S(i.url,r),e.t0=i.method,e.next=e.t0===l?9:e.t0===T?13:e.t0===d?17:"DELETE"===e.t0?21:25;break;case 9:return e.next=11,o.get(a,{params:n});case 11:case 15:case 19:case 23:return c=e.sent,e.abrupt("return",c.data);case 13:return e.next=15,o.post(a,n);case 17:return e.next=19,o.put(a,n);case 21:return e.next=23,o.delete(a,n);case 25:throw c=null,new Error("Request error: Method not allowed. Only use GET, POST, PUT, DELETE");case 27:e.next=33;break;case 29:throw e.prev=29,e.t1=e.catch(2),f(i,e.t1),e.t1;case 33:case"end":return e.stop()}}),e,null,[[2,29]])})),function(){var t=this,r=arguments;return new Promise((function(o,n){var i=e.apply(t,r);function a(e){h(i,o,n,a,c,"next",e)}function c(e){h(i,o,n,a,c,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}();function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function I(){I=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",E=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new g(o||[]);return n(a,"_invoke",{value:P(e,r,c)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var T="suspendedStart",d="suspendedYield",_="executing",p="completed",m={};function v(){}function h(){}function f(){}var S={};u(S,a,(function(){return this}));var y=Object.getPrototypeOf,R=y&&y(y(Y([])));R&&R!==r&&o.call(R,a)&&(S=R);var O=f.prototype=v.prototype=Object.create(S);function N(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(n,i,a,c){var E=l(e[n],e,i);if("throw"!==E.type){var u=E.arg,s=u.value;return s&&"object"==A(s)&&o.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(E.arg)}var i;n(this,"_invoke",{value:function(e,o){function n(){return new t((function(t,n){r(e,o,t,n)}))}return i=i?i.then(n,n):n()}})}function P(t,r,o){var n=T;return function(i,a){if(n===_)throw Error("Generator is already running");if(n===p){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var c=o.delegate;if(c){var E=G(c,o);if(E){if(E===m)continue;return E}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(n===T)throw n=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n=_;var u=l(t,r,o);if("normal"===u.type){if(n=o.done?p:d,u.arg===m)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(n=p,o.method="throw",o.arg=u.arg)}}}function G(t,r){var o=r.method,n=t.iterator[o];if(n===e)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=e,G(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=l(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function g(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function Y(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(A(t)+" is not iterable")}return h.prototype=f,n(O,"constructor",{value:f,configurable:!0}),n(f,"constructor",{value:h,configurable:!0}),h.displayName=u(f,E,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,E,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},N(C.prototype),u(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,o,n,i){void 0===i&&(i=Promise);var a=new C(s(e,r,o,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(O),u(O,E,"Generator"),u(O,a,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=Y,g.prototype={constructor:g,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(o,n){return c.type="throw",c.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var E=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(E&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(E){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;D(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:Y(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function R(e,t,r,o,n,i,a){try{var c=e[i](a),E=c.value}catch(e){return void r(e)}c.done?t(E):Promise.resolve(E).then(o,n)}var O=function(){var e,t=(e=I().mark((function e(t){var r;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={total:t.insureds.length,totalActive:null,values:t.insureds.map((function(e){return{code:e.code,number:e.id,firstName:e.firstName||e.name,lastName:e.lastName,type:{code:"T"===e.role.code?"OWNER":"ADHERENT",name:"T"===e.role.code?"Titular":"Adherente"},status:{code:"ACTIVE",name:"Activo"},insuredAmount:e.insuredAmount,inclusionDate:e.entranceDate,exclusionDate:e.cancellationDate,identification:{value:e.identification.number,type:{name:e.identification.type.name,code:e.identification.type.code}}}}))},e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(o,n){var i=e.apply(t,r);function a(e){R(i,o,n,a,c,"next",e)}function c(e){R(i,o,n,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function C(){C=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",E=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new g(o||[]);return n(a,"_invoke",{value:P(e,r,c)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var T="suspendedStart",d="suspendedYield",_="executing",p="completed",m={};function v(){}function h(){}function f(){}var S={};u(S,a,(function(){return this}));var y=Object.getPrototypeOf,A=y&&y(y(Y([])));A&&A!==r&&o.call(A,a)&&(S=A);var I=f.prototype=v.prototype=Object.create(S);function R(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(n,i,a,c){var E=l(e[n],e,i);if("throw"!==E.type){var u=E.arg,s=u.value;return s&&"object"==N(s)&&o.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(E.arg)}var i;n(this,"_invoke",{value:function(e,o){function n(){return new t((function(t,n){r(e,o,t,n)}))}return i=i?i.then(n,n):n()}})}function P(t,r,o){var n=T;return function(i,a){if(n===_)throw Error("Generator is already running");if(n===p){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var c=o.delegate;if(c){var E=G(c,o);if(E){if(E===m)continue;return E}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(n===T)throw n=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n=_;var u=l(t,r,o);if("normal"===u.type){if(n=o.done?p:d,u.arg===m)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(n=p,o.method="throw",o.arg=u.arg)}}}function G(t,r){var o=r.method,n=t.iterator[o];if(n===e)return r.delegate=null,"throw"===o&&t.iterator.return&&(r.method="return",r.arg=e,G(t,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=l(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function g(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function Y(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(N(t)+" is not iterable")}return h.prototype=f,n(I,"constructor",{value:f,configurable:!0}),n(f,"constructor",{value:h,configurable:!0}),h.displayName=u(f,E,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,E,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},R(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,o,n,i){void 0===i&&(i=Promise);var a=new O(s(e,r,o,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},R(I),u(I,E,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var o in t)r.push(o);return r.reverse(),function e(){for(;r.length;){var o=r.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=Y,g.prototype={constructor:g,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(o,n){return c.type="throw",c.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var E=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(E&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(E){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;D(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:Y(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function P(e,t,r,o,n,i,a){try{var c=e[i](a),E=c.value}catch(e){return void r(e)}c.done?t(E):Promise.resolve(E).then(o,n)}var G=function(){var e,t=(e=C().mark((function e(t,r,n){var i,a,c,E,u,s,l=arguments;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=l.length>3&&void 0!==l[3]?l[3]:null,e.prev=1,c=g[t],E=null!==(a=c[r])&&void 0!==a?a:c.default,u=L(E.url,n),e.t0=E.method,e.next=e.t0===D.GET?8:e.t0===D.POST?12:e.t0===D.PUT?16:e.t0===D.DELETE?20:24;break;case 8:return e.next=10,o.get(u,{params:i});case 10:case 14:case 18:case 22:return s=e.sent,e.abrupt("return",E.responseMapper(s.data));case 12:return e.next=14,o.post(u,i);case 16:return e.next=18,o.put(u,i);case 20:return e.next=22,o.delete(u,i);case 24:throw s=null,new Error("Request error: Method not allowed. Only use GET, POST, PUT, DELETE");case 26:e.next=31;break;case 28:throw e.prev=28,e.t1=e.catch(1),e.t1;case 31:case"end":return e.stop()}}),e,null,[[1,28]])})),function(){var t=this,r=arguments;return new Promise((function(o,n){var i=e.apply(t,r);function a(e){P(i,o,n,a,c,"next",e)}function c(e){P(i,o,n,a,c,"throw",e)}a(void 0)}))});return function(e,r,o){return t.apply(this,arguments)}}(),L=function(e,t){return t?e.replace(/{(\d+)}/g,(function(e,r){return t[r]?t[r]:e})):e},D={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE"},g={GET_INSUREDS:{default:{url:"policy-life/v1/policies/{0}/insureds",method:D.GET,requestMapper:null,responseMapper:function(e){return e}},cnp:{url:"policy/v1/policy/{0}/{1}/policy-insured",method:D.GET,requestMapper:null,responseMapper:function(e){O(e)}}}};module.exports=t})();
|
package/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { apiCall } from "./services";
|
|
2
2
|
import { endpoints } from "./servicesData";
|
|
3
3
|
import axiosInstance from "./axiosInstance";
|
|
4
|
+
import { apiMapper } from "./src/mapper/Mapper";
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
export { apiCall, endpoints, axiosInstance };
|
|
9
|
+
export { apiCall, apiMapper, endpoints, axiosInstance };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sysone-api-mapper",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "To make it easy for you to get started with GitLab, here's a list of recommended next steps.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
"@babel/preset-env": "^7.20.2",
|
|
26
26
|
"@babel/preset-react": "^7.18.6",
|
|
27
27
|
"antd": "^4.21.4",
|
|
28
|
-
"babel-loader": "^9.1.2"
|
|
28
|
+
"babel-loader": "^9.1.2",
|
|
29
|
+
"react": "^17.0.2",
|
|
30
|
+
"react-dom": "^17.0.2"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
33
|
"jest": "^29.7.0",
|
|
@@ -35,9 +37,5 @@
|
|
|
35
37
|
"type": "git",
|
|
36
38
|
"url": "git+https://gitlab.sysone.com/sysone-cloud-ready/sales-platform/api-mapper/-/tree/develop?ref_type=heads"
|
|
37
39
|
},
|
|
38
|
-
"peerDependencies": {
|
|
39
|
-
"react": "^18.0.0",
|
|
40
|
-
"react-dom": "^18.0.0"
|
|
41
|
-
},
|
|
42
40
|
"private": false
|
|
43
41
|
}
|
package/src/mapper/mapper.js
CHANGED