diff --git a/apps/dmt_object/src/dmt_object_id.erl b/apps/dmt_object/src/dmt_object_id.erl index 49d1ab9..709f620 100644 --- a/apps/dmt_object/src/dmt_object_id.erl +++ b/apps/dmt_object/src/dmt_object_id.erl @@ -29,7 +29,8 @@ party_config | shop_config | wallet_config - | partner. + | partner + | external_party_routes. -type numerical_ref() :: dmsl_domain_thrift:'CategoryRef'() @@ -54,7 +55,8 @@ dmsl_domain_thrift:'PartyConfigRef'() | dmsl_domain_thrift:'ShopConfigRef'() | dmsl_domain_thrift:'WalletConfigRef'() - | dmsl_domain_thrift:'PartnerRef'(). + | dmsl_domain_thrift:'PartnerRef'() + | dmsl_domain_thrift:'ExternalPartyRoutesRef'(). -export_type([numerical_object_type/0, uuid_object_type/0, numerical_ref/0, uuid_ref/0]). @@ -107,5 +109,7 @@ get_uuid_object_id(wallet_config, ID) -> #domain_WalletConfigRef{id = ID}; get_uuid_object_id(partner, ID) -> #domain_PartnerRef{id = ID}; +get_uuid_object_id(external_party_routes, ID) -> + #domain_ExternalPartyRoutesRef{id = ID}; get_uuid_object_id(Type, _ID) -> throw({not_supported, Type}). diff --git a/migrations/1786536402-add_external_party_routes.sql b/migrations/1786536402-add_external_party_routes.sql new file mode 100644 index 0000000..9b594c9 --- /dev/null +++ b/migrations/1786536402-add_external_party_routes.sql @@ -0,0 +1,4 @@ +-- migrations/1786536402-add_external_party_routes.sql + +INSERT INTO entity_type (name, has_sequence) VALUES +('external_party_routes', FALSE); diff --git a/rebar.config b/rebar.config index 70b3fa7..e36f03b 100644 --- a/rebar.config +++ b/rebar.config @@ -44,7 +44,7 @@ {cowboy_access_log, {git, "https://github.com/valitydev/cowboy_access_log.git", {branch, "master"}}}, {woody_user_identity, {git, "https://github.com/valitydev/woody_erlang_user_identity.git", {tag, "v1.1.0"}}}, {woody, {git, "https://github.com/valitydev/woody_erlang.git", {tag, "v1.1.0"}}}, - {damsel, {git, "https://github.com/valitydev/damsel.git", {tag, "v2.2.39"}}}, + {damsel, {git, "https://github.com/valitydev/damsel.git", {tag, "v2.2.43"}}}, %% Libraries for postgres interaction {epg_connector, {git, "https://github.com/valitydev/epg_connector.git", {tag, "v0.0.2"}}}, diff --git a/rebar.lock b/rebar.lock index a8bdb4a..f29604e 100644 --- a/rebar.lock +++ b/rebar.lock @@ -31,7 +31,7 @@ {<<"ctx">>,{pkg,<<"ctx">>,<<"0.6.0">>},2}, {<<"damsel">>, {git,"https://github.com/valitydev/damsel.git", - {ref,"25e75a53bbdc2cdbda7da266d05ae626fa3fa69b"}}, + {ref,"7280b62355269b2bd41f277ae43cbc44e7b54d65"}}, 0}, {<<"epg_connector">>, {git,"https://github.com/valitydev/epg_connector.git",