@yuno-payments/dashboard-api-mfe 0.36.5 → 0.36.15

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.
Files changed (46) hide show
  1. package/build/cjs/index.js +7 -7
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/types/api/api.d.ts +7 -4
  4. package/build/cjs/types/msw/handlers/insights.d.ts +1 -0
  5. package/build/cjs/types/msw/handlers/payments.d.ts +1 -0
  6. package/build/cjs/types/msw/mocks/payments/payments.mock.d.ts +92 -0
  7. package/build/cjs/types/msw/mocks/payments/transaction-details.mock.d.ts +579 -0
  8. package/build/cjs/types/mutations/ai/ai.mutation.d.ts +2 -1
  9. package/build/cjs/types/queries/data-report/data-report.query.d.ts +1 -1
  10. package/build/cjs/types/queries/feature-flags/index.d.ts +1 -2
  11. package/build/cjs/types/queries/index.d.ts +1 -0
  12. package/build/cjs/types/queries/translation/index.d.ts +1 -0
  13. package/build/cjs/types/queries/translation/translation.query.d.ts +5 -0
  14. package/build/cjs/types/queries/users/users.query.d.ts +1 -0
  15. package/build/cjs/types/types/ai/ai.d.ts +24 -0
  16. package/build/cjs/types/types/ai/index.d.ts +1 -0
  17. package/build/cjs/types/types/index.d.ts +2 -0
  18. package/build/cjs/types/types/payment/payment.d.ts +3 -1
  19. package/build/cjs/types/types/translation/index.d.ts +1 -0
  20. package/build/cjs/types/types/translation/translation.d.ts +8 -0
  21. package/build/cjs/types/types/user/user.d.ts +3 -0
  22. package/build/esm/index.js +7 -7
  23. package/build/esm/index.js.map +1 -1
  24. package/build/esm/types/api/api.d.ts +7 -4
  25. package/build/esm/types/msw/handlers/insights.d.ts +1 -0
  26. package/build/esm/types/msw/handlers/payments.d.ts +1 -0
  27. package/build/esm/types/msw/mocks/payments/payments.mock.d.ts +92 -0
  28. package/build/esm/types/msw/mocks/payments/transaction-details.mock.d.ts +579 -0
  29. package/build/esm/types/mutations/ai/ai.mutation.d.ts +2 -1
  30. package/build/esm/types/queries/data-report/data-report.query.d.ts +1 -1
  31. package/build/esm/types/queries/feature-flags/index.d.ts +1 -2
  32. package/build/esm/types/queries/index.d.ts +1 -0
  33. package/build/esm/types/queries/translation/index.d.ts +1 -0
  34. package/build/esm/types/queries/translation/translation.query.d.ts +5 -0
  35. package/build/esm/types/queries/users/users.query.d.ts +1 -0
  36. package/build/esm/types/types/ai/ai.d.ts +24 -0
  37. package/build/esm/types/types/ai/index.d.ts +1 -0
  38. package/build/esm/types/types/index.d.ts +2 -0
  39. package/build/esm/types/types/payment/payment.d.ts +3 -1
  40. package/build/esm/types/types/translation/index.d.ts +1 -0
  41. package/build/esm/types/types/translation/translation.d.ts +8 -0
  42. package/build/esm/types/types/user/user.d.ts +3 -0
  43. package/build/index.d.ts +53 -8
  44. package/package.json +1 -1
  45. /package/build/cjs/types/msw/{handlers.d.ts → handlers/index.d.ts} +0 -0
  46. /package/build/esm/types/msw/{handlers.d.ts → handlers/index.d.ts} +0 -0
@@ -0,0 +1,579 @@
1
+ export declare const paymentWithTestCredentialsMock: {
2
+ test_credential: boolean;
3
+ id: number;
4
+ code: string;
5
+ order_id: string;
6
+ customer_code: string;
7
+ organization_customer_external_id: string;
8
+ checkout_session: string;
9
+ status: string;
10
+ amount_value: number;
11
+ currency_code: string;
12
+ description: string;
13
+ created_at: string;
14
+ updated_at: string;
15
+ organization_code: string;
16
+ account_code: string;
17
+ country: string;
18
+ is_sdk_action_required: boolean;
19
+ idempotency_key: string;
20
+ sub_status: string;
21
+ workflow: string;
22
+ callback_url: string;
23
+ platform: string;
24
+ routing_flow_code: string;
25
+ captured: number;
26
+ refunded: number;
27
+ account_integration_code: null;
28
+ metadata: string;
29
+ chargeback: number;
30
+ in_dispute: number;
31
+ checkout_url: null;
32
+ payment_link_code: string;
33
+ trace_id: string;
34
+ version: null;
35
+ merchant_reference: string;
36
+ api_version: string;
37
+ has_fraud_screening: boolean;
38
+ routing_metadata: string;
39
+ sdk_abandoned_reason: null;
40
+ subscription_code: null;
41
+ subscription_payment_code: null;
42
+ routing_condition_id: number;
43
+ routing_condition_name: null;
44
+ routing_condition_description: null;
45
+ currency_conversion_currency_code: null;
46
+ currency_conversion_amount_value: null;
47
+ currency_conversion_rate: null;
48
+ currency_conversion_code: null;
49
+ provider_currency_conversion_id: null;
50
+ has_multiple_payment_methods: boolean;
51
+ request_origin: null;
52
+ request_header_origin: string;
53
+ subscription_billing_cycle: null;
54
+ subscription_retry_count: null;
55
+ smart_routing: boolean;
56
+ monitors: null;
57
+ airline_passenger: never[];
58
+ airline_leg: never[];
59
+ airline_ticket: never[];
60
+ airline_ticket_issue: never[];
61
+ customer_payer: {
62
+ id: number;
63
+ email: string;
64
+ gender: string;
65
+ last_name: string;
66
+ created_at: string;
67
+ first_name: string;
68
+ ip_address: string;
69
+ payment_id: number;
70
+ updated_at: string;
71
+ nationality: string;
72
+ phone_number: string;
73
+ customer_code: string;
74
+ date_of_birth: string;
75
+ document_type: string;
76
+ document_number: string;
77
+ device_fingerprint: null;
78
+ phone_country_code: string;
79
+ device_fingerprints: string;
80
+ geolocation_latitude: null;
81
+ browser_info_language: string;
82
+ geolocation_longitude: null;
83
+ third_party_session_id: null;
84
+ browser_info_user_agent: string;
85
+ payment_method_payer_id: null;
86
+ browser_info_color_depth: string;
87
+ browser_info_java_enabled: string;
88
+ browser_info_screen_width: string;
89
+ browser_info_accept_header: string;
90
+ browser_info_screen_height: string;
91
+ browser_info_accept_browser: string;
92
+ browser_info_accept_content: string;
93
+ merchant_customer_created_at: null;
94
+ browser_info_javascript_enabled: string;
95
+ organization_customer_external_id: string;
96
+ browser_info_browser_time_difference: string;
97
+ }[];
98
+ payment_order: {
99
+ id: number;
100
+ created_at: string;
101
+ fee_amount: null;
102
+ payment_id: number;
103
+ tip_amount: null;
104
+ updated_at: string;
105
+ sales_channel: null;
106
+ shipping_amount: number;
107
+ fulfillment_mongo_id: null;
108
+ }[];
109
+ order_item: {
110
+ id: number;
111
+ name: string;
112
+ brand: string;
113
+ id_item: string;
114
+ category: string;
115
+ quantity: number;
116
+ sku_code: string;
117
+ created_at: string;
118
+ updated_at: string;
119
+ unit_amount: number;
120
+ payment_order_id: number;
121
+ manufacture_part_number: string;
122
+ }[];
123
+ customer_payer_address: ({
124
+ id: number;
125
+ type: string;
126
+ created_at: string;
127
+ updated_at: string;
128
+ address_city: string;
129
+ address_state: string;
130
+ address_line_1: string;
131
+ address_line_2: string;
132
+ address_country: string;
133
+ address_zip_code: string;
134
+ customer_payer_id: number;
135
+ address_neighborhood: null;
136
+ } | {
137
+ id: number;
138
+ type: string;
139
+ created_at: string;
140
+ updated_at: string;
141
+ address_city: string;
142
+ address_state: string;
143
+ address_line_1: string;
144
+ address_line_2: null;
145
+ address_country: string;
146
+ address_zip_code: string;
147
+ customer_payer_id: number;
148
+ address_neighborhood: null;
149
+ })[];
150
+ payment_tax: never[];
151
+ payment_order_tax: never[];
152
+ payment_order_shipping: never[];
153
+ payment_airline: never[];
154
+ payment_seller_details: {};
155
+ };
156
+ export declare const paymentWithoutTestCredentialsMock: {
157
+ test_credential: boolean;
158
+ id: number;
159
+ code: string;
160
+ order_id: string;
161
+ customer_code: string;
162
+ organization_customer_external_id: string;
163
+ checkout_session: string;
164
+ status: string;
165
+ amount_value: number;
166
+ currency_code: string;
167
+ description: string;
168
+ created_at: string;
169
+ updated_at: string;
170
+ organization_code: string;
171
+ account_code: string;
172
+ country: string;
173
+ is_sdk_action_required: boolean;
174
+ idempotency_key: string;
175
+ sub_status: string;
176
+ workflow: string;
177
+ callback_url: string;
178
+ platform: string;
179
+ routing_flow_code: string;
180
+ captured: number;
181
+ refunded: number;
182
+ account_integration_code: null;
183
+ metadata: string;
184
+ chargeback: number;
185
+ in_dispute: number;
186
+ checkout_url: null;
187
+ payment_link_code: string;
188
+ trace_id: string;
189
+ version: null;
190
+ merchant_reference: string;
191
+ api_version: string;
192
+ has_fraud_screening: boolean;
193
+ routing_metadata: string;
194
+ sdk_abandoned_reason: null;
195
+ subscription_code: null;
196
+ subscription_payment_code: null;
197
+ routing_condition_id: number;
198
+ routing_condition_name: null;
199
+ routing_condition_description: null;
200
+ currency_conversion_currency_code: null;
201
+ currency_conversion_amount_value: null;
202
+ currency_conversion_rate: null;
203
+ currency_conversion_code: null;
204
+ provider_currency_conversion_id: null;
205
+ has_multiple_payment_methods: boolean;
206
+ request_origin: null;
207
+ request_header_origin: string;
208
+ subscription_billing_cycle: null;
209
+ subscription_retry_count: null;
210
+ smart_routing: boolean;
211
+ monitors: null;
212
+ airline_passenger: never[];
213
+ airline_leg: never[];
214
+ airline_ticket: never[];
215
+ airline_ticket_issue: never[];
216
+ customer_payer: {
217
+ id: number;
218
+ email: string;
219
+ gender: string;
220
+ last_name: string;
221
+ created_at: string;
222
+ first_name: string;
223
+ ip_address: string;
224
+ payment_id: number;
225
+ updated_at: string;
226
+ nationality: string;
227
+ phone_number: string;
228
+ customer_code: string;
229
+ date_of_birth: string;
230
+ document_type: string;
231
+ document_number: string;
232
+ device_fingerprint: null;
233
+ phone_country_code: string;
234
+ device_fingerprints: string;
235
+ geolocation_latitude: null;
236
+ browser_info_language: string;
237
+ geolocation_longitude: null;
238
+ third_party_session_id: null;
239
+ browser_info_user_agent: string;
240
+ payment_method_payer_id: null;
241
+ browser_info_color_depth: string;
242
+ browser_info_java_enabled: string;
243
+ browser_info_screen_width: string;
244
+ browser_info_accept_header: string;
245
+ browser_info_screen_height: string;
246
+ browser_info_accept_browser: string;
247
+ browser_info_accept_content: string;
248
+ merchant_customer_created_at: null;
249
+ browser_info_javascript_enabled: string;
250
+ organization_customer_external_id: string;
251
+ browser_info_browser_time_difference: string;
252
+ }[];
253
+ payment_order: {
254
+ id: number;
255
+ created_at: string;
256
+ fee_amount: null;
257
+ payment_id: number;
258
+ tip_amount: null;
259
+ updated_at: string;
260
+ sales_channel: null;
261
+ shipping_amount: number;
262
+ fulfillment_mongo_id: null;
263
+ }[];
264
+ order_item: {
265
+ id: number;
266
+ name: string;
267
+ brand: string;
268
+ id_item: string;
269
+ category: string;
270
+ quantity: number;
271
+ sku_code: string;
272
+ created_at: string;
273
+ updated_at: string;
274
+ unit_amount: number;
275
+ payment_order_id: number;
276
+ manufacture_part_number: string;
277
+ }[];
278
+ customer_payer_address: ({
279
+ id: number;
280
+ type: string;
281
+ created_at: string;
282
+ updated_at: string;
283
+ address_city: string;
284
+ address_state: string;
285
+ address_line_1: string;
286
+ address_line_2: string;
287
+ address_country: string;
288
+ address_zip_code: string;
289
+ customer_payer_id: number;
290
+ address_neighborhood: null;
291
+ } | {
292
+ id: number;
293
+ type: string;
294
+ created_at: string;
295
+ updated_at: string;
296
+ address_city: string;
297
+ address_state: string;
298
+ address_line_1: string;
299
+ address_line_2: null;
300
+ address_country: string;
301
+ address_zip_code: string;
302
+ customer_payer_id: number;
303
+ address_neighborhood: null;
304
+ })[];
305
+ payment_tax: never[];
306
+ payment_order_tax: never[];
307
+ payment_order_shipping: never[];
308
+ payment_airline: never[];
309
+ payment_seller_details: {};
310
+ };
311
+ export declare const paymentUndefinedTestCredentialsMock: {
312
+ id: number;
313
+ code: string;
314
+ order_id: string;
315
+ customer_code: string;
316
+ organization_customer_external_id: string;
317
+ checkout_session: string;
318
+ status: string;
319
+ amount_value: number;
320
+ currency_code: string;
321
+ description: string;
322
+ created_at: string;
323
+ updated_at: string;
324
+ organization_code: string;
325
+ account_code: string;
326
+ country: string;
327
+ is_sdk_action_required: boolean;
328
+ idempotency_key: string;
329
+ sub_status: string;
330
+ workflow: string;
331
+ callback_url: string;
332
+ platform: null;
333
+ routing_flow_code: string;
334
+ captured: number;
335
+ refunded: number;
336
+ account_integration_code: null;
337
+ metadata: string;
338
+ chargeback: number;
339
+ in_dispute: number;
340
+ checkout_url: null;
341
+ payment_link_code: string;
342
+ trace_id: string;
343
+ version: null;
344
+ merchant_reference: string;
345
+ api_version: string;
346
+ has_fraud_screening: boolean;
347
+ routing_metadata: string;
348
+ sdk_abandoned_reason: null;
349
+ subscription_code: null;
350
+ subscription_payment_code: null;
351
+ routing_condition_id: number;
352
+ routing_condition_name: null;
353
+ routing_condition_description: null;
354
+ currency_conversion_currency_code: null;
355
+ currency_conversion_amount_value: null;
356
+ currency_conversion_rate: null;
357
+ currency_conversion_code: null;
358
+ provider_currency_conversion_id: null;
359
+ has_multiple_payment_methods: boolean;
360
+ request_origin: null;
361
+ request_header_origin: string;
362
+ subscription_billing_cycle: null;
363
+ subscription_retry_count: null;
364
+ smart_routing: boolean;
365
+ monitors: null;
366
+ airline_passenger: never[];
367
+ airline_leg: never[];
368
+ airline_ticket: never[];
369
+ airline_ticket_issue: never[];
370
+ customer_payer: {
371
+ id: number;
372
+ email: string;
373
+ gender: string;
374
+ last_name: string;
375
+ created_at: string;
376
+ first_name: string;
377
+ ip_address: string;
378
+ payment_id: number;
379
+ updated_at: string;
380
+ nationality: string;
381
+ phone_number: string;
382
+ customer_code: string;
383
+ date_of_birth: string;
384
+ document_type: string;
385
+ document_number: string;
386
+ device_fingerprint: string;
387
+ phone_country_code: string;
388
+ device_fingerprints: string;
389
+ geolocation_latitude: null;
390
+ browser_info_language: string;
391
+ geolocation_longitude: null;
392
+ third_party_session_id: null;
393
+ browser_info_user_agent: string;
394
+ payment_method_payer_id: null;
395
+ browser_info_color_depth: string;
396
+ browser_info_java_enabled: null;
397
+ browser_info_screen_width: string;
398
+ browser_info_accept_header: string;
399
+ browser_info_screen_height: string;
400
+ browser_info_accept_browser: null;
401
+ browser_info_accept_content: null;
402
+ merchant_customer_created_at: null;
403
+ browser_info_javascript_enabled: string;
404
+ organization_customer_external_id: string;
405
+ browser_info_browser_time_difference: null;
406
+ }[];
407
+ payment_order: {
408
+ id: number;
409
+ created_at: string;
410
+ fee_amount: number;
411
+ payment_id: number;
412
+ tip_amount: null;
413
+ updated_at: string;
414
+ sales_channel: null;
415
+ shipping_amount: number;
416
+ fulfillment_mongo_id: null;
417
+ }[];
418
+ order_item: {
419
+ id: number;
420
+ name: string;
421
+ brand: string;
422
+ id_item: string;
423
+ category: string;
424
+ quantity: number;
425
+ sku_code: string;
426
+ created_at: string;
427
+ updated_at: string;
428
+ unit_amount: number;
429
+ payment_order_id: number;
430
+ manufacture_part_number: string;
431
+ }[];
432
+ customer_payer_address: {
433
+ id: number;
434
+ type: string;
435
+ created_at: string;
436
+ updated_at: string;
437
+ address_city: string;
438
+ address_state: string;
439
+ address_line_1: string;
440
+ address_line_2: string;
441
+ address_country: string;
442
+ address_zip_code: string;
443
+ customer_payer_id: number;
444
+ address_neighborhood: null;
445
+ }[];
446
+ payment_tax: never[];
447
+ payment_order_tax: never[];
448
+ payment_order_shipping: never[];
449
+ payment_airline: never[];
450
+ payment_seller_details: {};
451
+ };
452
+ export declare const paymentHistoryMock: ({
453
+ created_at: string;
454
+ amount_value: number;
455
+ currency_code: string;
456
+ transaction_type: string;
457
+ status_history: string;
458
+ provider_id: string;
459
+ code: string;
460
+ category: string;
461
+ merchant_reference: string;
462
+ description: null;
463
+ title_description: string;
464
+ light_text: string;
465
+ show_amount: boolean;
466
+ show_provider: boolean;
467
+ provider_status: null;
468
+ sub_status_history: null;
469
+ provider_response_code: null;
470
+ provider_raw_response: null;
471
+ parent_payment_method_type: null;
472
+ wallet_title_description: string;
473
+ } | {
474
+ created_at: string;
475
+ amount_value: number;
476
+ currency_code: string;
477
+ transaction_type: string;
478
+ status_history: string;
479
+ provider_id: string;
480
+ code: string;
481
+ category: string;
482
+ merchant_reference: string;
483
+ description: string;
484
+ title_description: string;
485
+ light_text: null;
486
+ show_amount: boolean;
487
+ show_provider: boolean;
488
+ provider_status: null;
489
+ sub_status_history: null;
490
+ provider_response_code: null;
491
+ provider_raw_response: null;
492
+ parent_payment_method_type: null;
493
+ wallet_title_description: string;
494
+ })[];
495
+ export declare const paymentDetailsMock: {
496
+ content: {
497
+ test_credential: boolean;
498
+ id: string;
499
+ code: string;
500
+ type: string;
501
+ transaction_data_type: string;
502
+ vault_on_success: string;
503
+ parent_id: string;
504
+ payment_id: number;
505
+ customer_payment_method_code: string;
506
+ status: string;
507
+ category: string;
508
+ amount: number;
509
+ created_at: string;
510
+ updated_at: string;
511
+ payment_method: {
512
+ vaulted_token: string;
513
+ type: string;
514
+ vault_on_success: boolean;
515
+ token: string;
516
+ payment_method_detail: {
517
+ card: {
518
+ verify: string;
519
+ capture: string;
520
+ installments: string;
521
+ first_installments_deferral: string;
522
+ installments_type: null;
523
+ installments_amount: null;
524
+ soft_descriptor: null;
525
+ authorization_code: null;
526
+ retrieval_reference_number: null;
527
+ card_data: {
528
+ holder_name: string;
529
+ iin: string;
530
+ ifd: string;
531
+ expiration_month: string;
532
+ expiration_year: string;
533
+ number_lenght: string;
534
+ security_code_lenght: string;
535
+ brand: string;
536
+ issuer_name: string;
537
+ issuer_code: null;
538
+ category: string;
539
+ type: string;
540
+ installments: string;
541
+ };
542
+ };
543
+ bnpl: null;
544
+ bank_transfer: null;
545
+ wallet: null;
546
+ payment_link: null;
547
+ ticket: null;
548
+ };
549
+ };
550
+ response_code: string;
551
+ response_message: string;
552
+ merchant_reference: string;
553
+ provider_data: {
554
+ id: string;
555
+ transaction_id: string;
556
+ account_id: string;
557
+ sub_status: string;
558
+ status: string;
559
+ status_detail: string;
560
+ raw_response: {
561
+ value: string;
562
+ };
563
+ response_message: string;
564
+ raw_notification: string;
565
+ action_data: string;
566
+ };
567
+ reason: null;
568
+ description: string;
569
+ one_time_token: string;
570
+ require_action_type: string;
571
+ parent_provider: string;
572
+ account_integration_code: string;
573
+ technical_reverse_provider_transaction_id: string;
574
+ technical_reverse_transaction_type: string;
575
+ technical_reverse_status: string;
576
+ stand_alone: null;
577
+ fraud_screening: null;
578
+ }[];
579
+ };
@@ -1,5 +1,5 @@
1
1
  import { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
2
- import { SmartRouting } from '../../types';
2
+ import { AI, SmartRouting } from '../../types';
3
3
  import { AxiosError } from 'axios';
4
4
  interface CreateAIsResponse {
5
5
  code: string;
@@ -24,4 +24,5 @@ export interface ErrorRoutingAIResponse {
24
24
  };
25
25
  }
26
26
  export declare function useAICreateWorkflow(organizationCode: string, options?: Omit<UseMutationOptions<CreateAIsResponse, AxiosError<ErrorRoutingAIResponse>, SmartRouting.PayloadAIWorkflowCreate, unknown> | undefined, 'mutationKey' | 'mutationFn'>): UseMutationResult<CreateAIsResponse, AxiosError<ErrorRoutingAIResponse>, SmartRouting.PayloadAIWorkflowCreate>;
27
+ export declare function useGenerateFeedback(options?: Omit<UseMutationOptions<any, AxiosError<ErrorRoutingAIResponse>, AI.AIGenerate, unknown> | undefined, 'mutationKey' | 'mutationFn'>): UseMutationResult<any, AxiosError<ErrorRoutingAIResponse>, AI.AIGenerate>;
27
28
  export {};
@@ -3,7 +3,7 @@ import { DataReport } from '../../types';
3
3
  export declare function useGetSmartRoutingDataReport(params: {
4
4
  [a: string]: number;
5
5
  }): UseQueryResult<any, unknown>;
6
- export declare function useInsightsConversionRateMetricsV2(params: DataReport.InsightMetricParams, path: string): UseQueryResult<any, unknown>;
6
+ export declare function useInsightsConversionRateMetricsV2(params: DataReport.InsightMetricParams, path: string, enabled?: boolean): UseQueryResult<any, unknown>;
7
7
  export declare function useViewMoreMetrics(params: DataReport.InsightMetricParams, type: any): UseQueryResult<any, unknown>;
8
8
  export declare function useInsightsFallbackMetrics(params: DataReport.InsightMetricParams): UseQueryResult<any, unknown>;
9
9
  export declare function useInsightsVolumeMetrics(account_codes: string, params: DataReport.InsightMetricParams, enabled?: boolean): UseQueryResult<any, unknown>;
@@ -1,9 +1,8 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { FeatureFlags } from '../../types/feature-flags/intex';
3
3
  export interface FeatureFlagsResult {
4
- result: boolean;
4
+ [key: string]: boolean;
5
5
  }
6
6
  export declare function useFeatureFlags(data: FeatureFlags.Request): UseQueryResult<FeatureFlagsResult, unknown>;
7
- export declare const ALL_FEATURE_FLAGS: string[];
8
7
  export declare function useAllFeatureFlags(body: FeatureFlags.RequestAll): UseQueryResult<FeatureFlagsResult, unknown>;
9
8
  export declare function useCachedFeatureFlag(name: string): UseQueryResult<FeatureFlagsResult>;
@@ -24,3 +24,4 @@ export * from './velocity-rules';
24
24
  export * from './mfa';
25
25
  export * from './saml-config';
26
26
  export * from './chartgpt';
27
+ export * from './translation';
@@ -0,0 +1 @@
1
+ export * from './translation.query';
@@ -0,0 +1,5 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { AxiosError } from 'axios';
3
+ import { Translation } from '../../types';
4
+ export declare function useGetLanguages(): UseQueryResult<Translation.Languages, AxiosError>;
5
+ export declare function useGetTranslations(): UseQueryResult<Translation.Translations, AxiosError>;
@@ -6,3 +6,4 @@ export declare function useGetPermissions(organizationCode: any, accountCode: an
6
6
  export declare function useEmailVerification(email: string): UseQueryResult<User.UserResponseEmailVerification | string, unknown>;
7
7
  export declare function useGetLoginMethods(): UseQueryResult<unknown, unknown>;
8
8
  export declare function useGetImpersonationUsers(): UseQueryResult<User.ImpersonationUser[], AxiosError>;
9
+ export declare function useGetImpersonationEnabled(): UseQueryResult<User.ImpersonationEnabledResponse, AxiosError>;
@@ -0,0 +1,24 @@
1
+ import { SmartRouting } from '../smart-routing';
2
+ export declare namespace AI {
3
+ /**
4
+ * @description Payload for AI generation feedback
5
+ * @example
6
+ * {
7
+ * code: '123', // code of the workflow, not the version code
8
+ * generated_json: [{
9
+ * type: 'condition',
10
+ * value: '123'
11
+ * }],
12
+ * status: 'ACCEPTED' | 'REJECTED' | 'FRONT_FAILED'
13
+ */
14
+ type AIGenerate = {
15
+ code: string;
16
+ generated_json: SmartRouting.ConditionItem[];
17
+ status: AIGenerateStatus;
18
+ };
19
+ enum AIGenerateStatus {
20
+ ACCEPTED = "ACCEPTED",
21
+ REFUSED = "REJECTED",
22
+ FRONT_FAILED = "FRONT_FAILED"
23
+ }
24
+ }
@@ -0,0 +1 @@
1
+ export * from './ai';
@@ -26,3 +26,5 @@ export * from './payment-links';
26
26
  export * from './saml-config';
27
27
  export * from './s3-client';
28
28
  export * from './mfa';
29
+ export * from './translation';
30
+ export * from './ai';
@@ -93,6 +93,7 @@ export declare namespace Payment {
93
93
  payment_method: PaymentMethod;
94
94
  customer_payer: CustomerPayer;
95
95
  order: Order;
96
+ test_credential: boolean;
96
97
  }
97
98
  interface PaymentV2 {
98
99
  organization_code: string;
@@ -118,6 +119,7 @@ export declare namespace Payment {
118
119
  trace_id: string;
119
120
  subscription_code: string;
120
121
  merchant_reference: string;
122
+ test_credential: boolean;
121
123
  }
122
124
  interface TransactionPayment {
123
125
  code: string;
@@ -138,7 +140,7 @@ export declare namespace Payment {
138
140
  three_ds_electronic_commerce_indicator?: string;
139
141
  three_ds_transaction_id?: string;
140
142
  }
141
- interface PaymentItem extends Pick<Payment, 'code' | 'description' | 'country' | 'status' | 'amount' | 'created_at' | 'updated_at'> {
143
+ interface PaymentItem extends Pick<Payment, 'code' | 'description' | 'country' | 'status' | 'amount' | 'created_at' | 'updated_at' | 'test_credential'> {
142
144
  idempotency_key: string;
143
145
  organization_code: string;
144
146
  order_id: string;
@@ -0,0 +1 @@
1
+ export * from './translation';