@@ -12,7 +12,7 @@ import { metadata$ as scroogeMetadata$ } from '@vality/scrooge-proto';
1212
1313import { DomainMetadataFormExtensionsService } from '~/components/thrift-api-crud' ;
1414import { DomainMetadataViewExtensionsService } from '~/components/thrift-api-crud/domain/domain-thrift-viewer/services/domain-metadata-view-extensions' ;
15- import { Services as WachterServices } from '~/services' ;
15+ import { Service } from '~/services' ;
1616import { ThriftService , createThriftServices } from '~/utils' ;
1717
1818export interface MetadataThriftService extends ThriftService {
@@ -34,15 +34,15 @@ export const services = [
3434 // Domain
3535 {
3636 ...domainData ,
37- name : ' DMT' ,
37+ name : Service . DMT ,
3838 loader : ( ) => import ( '@vality/domain-proto/domain_config_v2' ) . then ( ( m ) => m . Repository ) ,
3939 namespace : 'domain_config_v2' ,
4040 service : 'Repository' ,
4141 public : 'Repository' ,
4242 } ,
4343 {
4444 ...domainData ,
45- name : ' DMTClient' ,
45+ name : Service . DMTClient ,
4646 loader : ( ) =>
4747 import ( '@vality/domain-proto/domain_config_v2' ) . then ( ( m ) => m . RepositoryClient ) ,
4848 namespace : 'domain_config_v2' ,
@@ -51,7 +51,7 @@ export const services = [
5151 } ,
5252 {
5353 ...domainData ,
54- name : ' DMTAuthor' ,
54+ name : Service . DMTAuthor ,
5555 loader : ( ) =>
5656 import ( '@vality/domain-proto/domain_config_v2' ) . then ( ( m ) => m . AuthorManagement ) ,
5757 namespace : 'domain_config_v2' ,
@@ -60,15 +60,15 @@ export const services = [
6060 } ,
6161 {
6262 ...domainData ,
63- name : ' Invoicing' ,
63+ name : Service . Invoicing ,
6464 loader : ( ) => import ( '@vality/domain-proto/payment_processing' ) . then ( ( m ) => m . Invoicing ) ,
6565 namespace : 'payment_processing' ,
6666 service : 'Invoicing' ,
6767 public : 'Invoicing' ,
6868 } ,
6969 {
7070 ...domainData ,
71- name : ' PartyManagement' ,
71+ name : Service . PartyManagement ,
7272 loader : ( ) =>
7373 import ( '@vality/domain-proto/payment_processing' ) . then ( ( m ) => m . PartyManagement ) ,
7474 namespace : 'payment_processing' ,
@@ -77,23 +77,32 @@ export const services = [
7777 } ,
7878 {
7979 ...domainData ,
80- name : ' WebhookManager' ,
80+ name : Service . WebhookManager ,
8181 loader : ( ) => import ( '@vality/domain-proto/webhooker' ) . then ( ( m ) => m . WebhookManager ) ,
8282 namespace : 'webhooker' ,
8383 service : 'WebhookManager' ,
8484 public : 'WebhookManager' ,
8585 } ,
8686 {
8787 ...domainData ,
88- name : ' Accounter' ,
88+ name : Service . Accounter ,
8989 loader : ( ) => import ( '@vality/domain-proto/accounter' ) . then ( ( m ) => m . Accounter ) ,
9090 namespace : 'accounter' ,
9191 service : 'Accounter' ,
9292 public : 'Accounter' ,
9393 } ,
94+ {
95+ ...domainData ,
96+ name : Service . InvoiceTemplating ,
97+ loader : ( ) =>
98+ import ( '@vality/domain-proto/api_extensions' ) . then ( ( m ) => m . InvoiceTemplating ) ,
99+ namespace : 'api_extensions' ,
100+ service : 'InvoiceTemplating' ,
101+ public : 'InvoiceTemplating' ,
102+ } ,
94103 // Repairer
95104 {
96- name : ' RepairManagement' ,
105+ name : Service . RepairManagement ,
97106 loader : ( ) => import ( '@vality/repairer-proto/repairer' ) . then ( ( m ) => m . RepairManagement ) ,
98107 metadata$ : repairerMetadata$ ,
99108 namespace : 'repairer' ,
@@ -102,7 +111,7 @@ export const services = [
102111 } ,
103112 // Scrooge
104113 {
105- name : ' Scrooge' ,
114+ name : Service . Scrooge ,
106115 loader : ( ) => import ( '@vality/scrooge-proto/account_balance' ) . then ( ( m ) => m . AccountService ) ,
107116 metadata$ : scroogeMetadata$ ,
108117 namespace : 'account_balance' ,
@@ -111,7 +120,7 @@ export const services = [
111120 } ,
112121 // Magista
113122 {
114- name : ' MerchantStatistics' ,
123+ name : Service . MerchantStatistics ,
115124 loader : ( ) =>
116125 import ( '@vality/magista-proto/magista' ) . then ( ( m ) => m . MerchantStatisticsService ) ,
117126 metadata$ : magistaMetadata$ ,
@@ -121,7 +130,7 @@ export const services = [
121130 } ,
122131 // Machinegun
123132 {
124- name : ' Automaton' ,
133+ name : Service . Automaton ,
125134 loader : ( ) => import ( '@vality/machinegun-proto/state_processing' ) . then ( ( m ) => m . Automaton ) ,
126135 metadata$ : machinegunMetadata$ ,
127136 namespace : 'state_processing' ,
@@ -130,39 +139,39 @@ export const services = [
130139 } ,
131140 // Fistful
132141 {
133- name : ' DepositManagement' ,
142+ name : Service . DepositManagement ,
134143 loader : ( ) => import ( '@vality/fistful-proto/deposit' ) . then ( ( m ) => m . Management ) ,
135144 metadata$ : fistfulMetadata$ ,
136145 namespace : 'deposit' ,
137146 service : 'Management' ,
138147 public : 'DepositManagement' ,
139148 } ,
140149 {
141- name : ' FistfulStatistics' ,
150+ name : Service . FistfulStatistics ,
142151 loader : ( ) => import ( '@vality/fistful-proto/fistful_stat' ) . then ( ( m ) => m . FistfulStatistics ) ,
143152 metadata$ : fistfulMetadata$ ,
144153 namespace : 'fistful_stat' ,
145154 service : 'FistfulStatistics' ,
146155 public : 'FistfulStatistics' ,
147156 } ,
148157 {
149- name : ' WithdrawalManagement' ,
158+ name : Service . WithdrawalManagement ,
150159 loader : ( ) => import ( '@vality/fistful-proto/withdrawal' ) . then ( ( m ) => m . Management ) ,
151160 metadata$ : fistfulMetadata$ ,
152161 namespace : 'withdrawal' ,
153162 service : 'Management' ,
154163 public : 'WithdrawalManagement' ,
155164 } ,
156165 {
157- name : ' SourceManagement' ,
166+ name : Service . SourceManagement ,
158167 loader : ( ) => import ( '@vality/fistful-proto/source' ) . then ( ( m ) => m . Management ) ,
159168 metadata$ : fistfulMetadata$ ,
160169 namespace : 'source' ,
161170 service : 'Management' ,
162171 public : 'SourceManagement' ,
163172 } ,
164173 {
165- name : WachterServices . WalletsWebhookManager ,
174+ name : Service . WalletsWebhookManager ,
166175 loader : ( ) => import ( '@vality/fistful-proto/webhooker' ) . then ( ( m ) => m . WebhookManager ) ,
167176 metadata$ : fistfulMetadata$ ,
168177 namespace : 'webhooker' ,
@@ -191,4 +200,5 @@ export const {
191200 WebhookManager : ThriftShopWebhooksManagementService ,
192201 WalletsWebhookManager : ThriftWalletWebhooksManagementService ,
193202 Accounter : ThriftAccountManagementService ,
203+ InvoiceTemplating : ThriftInvoiceTemplatingService ,
194204} = injectableServices ;
0 commit comments