@reglow/reglow 0.12.1 → 0.14.0
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/dist/reglow/core/config.js +1 -1
- package/dist/reglow/core/entities.d.ts +200 -0
- package/dist/reglow/core/models.d.ts +30 -0
- package/dist/reglow/core/models.js +19 -0
- package/dist/reglow/core/models.js.map +1 -1
- package/dist/reglow/core/payment.d.ts +90 -0
- package/dist/reglow/core/payment.js +1022 -10
- package/dist/reglow/core/payment.js.map +1 -1
- package/dist/reglow/core/tenant_context.d.ts +45 -0
- package/dist/reglow/core/tenant_context.js +77 -0
- package/dist/reglow/core/tenant_context.js.map +1 -0
- package/dist/reglow/core/tenant_guard.js +17 -5
- package/dist/reglow/core/tenant_guard.js.map +1 -1
- package/dist/reglow/modules/ai/controller.js +129 -0
- package/dist/reglow/modules/ai/controller.js.map +1 -1
- package/dist/reglow/modules/ai_usage/controller.d.ts +8 -0
- package/dist/reglow/modules/ai_usage/controller.js +278 -0
- package/dist/reglow/modules/ai_usage/controller.js.map +1 -0
- package/dist/reglow/modules/ai_usage/model.d.ts +216 -0
- package/dist/reglow/modules/ai_usage/model.js +25 -0
- package/dist/reglow/modules/ai_usage/model.js.map +1 -0
- package/dist/reglow/modules/ai_usage/pricing.d.ts +80 -0
- package/dist/reglow/modules/ai_usage/pricing.js +276 -0
- package/dist/reglow/modules/ai_usage/pricing.js.map +1 -0
- package/dist/reglow/modules/ai_usage/reconcile.d.ts +34 -0
- package/dist/reglow/modules/ai_usage/reconcile.js +179 -0
- package/dist/reglow/modules/ai_usage/reconcile.js.map +1 -0
- package/dist/reglow/modules/ai_usage/recorder.d.ts +14 -0
- package/dist/reglow/modules/ai_usage/recorder.js +227 -0
- package/dist/reglow/modules/ai_usage/recorder.js.map +1 -0
- package/dist/reglow/modules/ai_usage/router.d.ts +10 -0
- package/dist/reglow/modules/ai_usage/router.js +10 -0
- package/dist/reglow/modules/ai_usage/router.js.map +1 -0
- package/dist/reglow/modules/ai_usage/schema.d.ts +152 -0
- package/dist/reglow/modules/ai_usage/schema.js +8 -0
- package/dist/reglow/modules/ai_usage/schema.js.map +1 -0
- package/dist/reglow/modules/ai_usage/service.d.ts +40 -0
- package/dist/reglow/modules/ai_usage/service.js +654 -0
- package/dist/reglow/modules/ai_usage/service.js.map +1 -0
- package/dist/reglow/modules/ai_usage/sync.d.ts +98 -0
- package/dist/reglow/modules/ai_usage/sync.js +954 -0
- package/dist/reglow/modules/ai_usage/sync.js.map +1 -0
- package/dist/reglow/modules/ai_usage/xlsx_io.d.ts +35 -0
- package/dist/reglow/modules/ai_usage/xlsx_io.js +494 -0
- package/dist/reglow/modules/ai_usage/xlsx_io.js.map +1 -0
- package/dist/reglow/modules/billing/controller.d.ts +6 -0
- package/dist/reglow/modules/billing/controller.js +112 -0
- package/dist/reglow/modules/billing/controller.js.map +1 -0
- package/dist/reglow/modules/billing/repository.d.ts +20 -0
- package/dist/reglow/modules/billing/repository.js +101 -0
- package/dist/reglow/modules/billing/repository.js.map +1 -0
- package/dist/reglow/modules/billing/router.d.ts +10 -0
- package/dist/reglow/modules/billing/router.js +8 -0
- package/dist/reglow/modules/billing/router.js.map +1 -0
- package/dist/reglow/modules/billing/schema.d.ts +38 -0
- package/dist/reglow/modules/billing/schema.js +42 -0
- package/dist/reglow/modules/billing/schema.js.map +1 -0
- package/dist/reglow/modules/billing/service.d.ts +22 -0
- package/dist/reglow/modules/billing/service.js +179 -0
- package/dist/reglow/modules/billing/service.js.map +1 -0
- package/dist/reglow/modules/customer_service/controller.js +81 -3
- package/dist/reglow/modules/customer_service/controller.js.map +1 -1
- package/dist/reglow/modules/customer_service/repository.d.ts +9 -1
- package/dist/reglow/modules/customer_service/repository.js +56 -2
- package/dist/reglow/modules/customer_service/repository.js.map +1 -1
- package/dist/reglow/modules/customer_service/schema.d.ts +2 -0
- package/dist/reglow/modules/customer_service/schema.js +8 -0
- package/dist/reglow/modules/customer_service/schema.js.map +1 -1
- package/dist/reglow/modules/customer_service/sdk_template.html +276 -5
- package/dist/reglow/modules/customer_service/service.d.ts +45 -4
- package/dist/reglow/modules/customer_service/service.js +352 -96
- package/dist/reglow/modules/customer_service/service.js.map +1 -1
- package/dist/reglow/modules/customer_service/ws.d.ts +8 -1
- package/dist/reglow/modules/customer_service/ws.js +38 -1
- package/dist/reglow/modules/customer_service/ws.js.map +1 -1
- package/dist/reglow/modules/open_api/auth.d.ts +28 -0
- package/dist/reglow/modules/open_api/auth.js +65 -0
- package/dist/reglow/modules/open_api/auth.js.map +1 -0
- package/dist/reglow/modules/open_api/controller.d.ts +8 -0
- package/dist/reglow/modules/open_api/controller.js +109 -0
- package/dist/reglow/modules/open_api/controller.js.map +1 -0
- package/dist/reglow/modules/open_api/repository.d.ts +20 -0
- package/dist/reglow/modules/open_api/repository.js +111 -0
- package/dist/reglow/modules/open_api/repository.js.map +1 -0
- package/dist/reglow/modules/open_api/router.d.ts +10 -0
- package/dist/reglow/modules/open_api/router.js +8 -0
- package/dist/reglow/modules/open_api/router.js.map +1 -0
- package/dist/reglow/modules/open_api/schema.d.ts +24 -0
- package/dist/reglow/modules/open_api/schema.js +26 -0
- package/dist/reglow/modules/open_api/schema.js.map +1 -0
- package/dist/reglow/modules/open_api/security.d.ts +19 -0
- package/dist/reglow/modules/open_api/security.js +53 -0
- package/dist/reglow/modules/open_api/security.js.map +1 -0
- package/dist/reglow/modules/open_api/service.d.ts +28 -0
- package/dist/reglow/modules/open_api/service.js +158 -0
- package/dist/reglow/modules/open_api/service.js.map +1 -0
- package/dist/reglow/modules/payment/controller.js +29 -1
- package/dist/reglow/modules/payment/controller.js.map +1 -1
- package/dist/reglow/modules/payment/events.d.ts +22 -0
- package/dist/reglow/modules/payment/events.js +60 -0
- package/dist/reglow/modules/payment/events.js.map +1 -0
- package/dist/reglow/modules/payment/schema.d.ts +89 -0
- package/dist/reglow/modules/payment/schema.js +85 -0
- package/dist/reglow/modules/payment/schema.js.map +1 -1
- package/dist/reglow/modules/payment/service.d.ts +90 -2
- package/dist/reglow/modules/payment/service.js +750 -1
- package/dist/reglow/modules/payment/service.js.map +1 -1
- package/dist/reglow/modules/photo/repository.d.ts +4 -0
- package/dist/reglow/modules/photo/repository.js +13 -0
- package/dist/reglow/modules/photo/repository.js.map +1 -1
- package/dist/reglow/modules/photo/service.d.ts +6 -1
- package/dist/reglow/modules/photo/service.js +13 -3
- package/dist/reglow/modules/photo/service.js.map +1 -1
- package/dist/reglow/modules/principal/controller.d.ts +6 -0
- package/dist/reglow/modules/principal/controller.js +158 -0
- package/dist/reglow/modules/principal/controller.js.map +1 -0
- package/dist/reglow/modules/principal/repository.d.ts +20 -0
- package/dist/reglow/modules/principal/repository.js +76 -0
- package/dist/reglow/modules/principal/repository.js.map +1 -0
- package/dist/reglow/modules/principal/router.d.ts +9 -0
- package/dist/reglow/modules/principal/router.js +7 -0
- package/dist/reglow/modules/principal/router.js.map +1 -0
- package/dist/reglow/modules/principal/schema.d.ts +81 -0
- package/dist/reglow/modules/principal/schema.js +85 -0
- package/dist/reglow/modules/principal/schema.js.map +1 -0
- package/dist/reglow/modules/principal/service.d.ts +21 -0
- package/dist/reglow/modules/principal/service.js +193 -0
- package/dist/reglow/modules/principal/service.js.map +1 -0
- package/dist/reglow/modules/principal_member/controller.d.ts +6 -0
- package/dist/reglow/modules/principal_member/controller.js +64 -0
- package/dist/reglow/modules/principal_member/controller.js.map +1 -0
- package/dist/reglow/modules/principal_member/repository.d.ts +13 -0
- package/dist/reglow/modules/principal_member/repository.js +80 -0
- package/dist/reglow/modules/principal_member/repository.js.map +1 -0
- package/dist/reglow/modules/principal_member/router.d.ts +10 -0
- package/dist/reglow/modules/principal_member/router.js +8 -0
- package/dist/reglow/modules/principal_member/router.js.map +1 -0
- package/dist/reglow/modules/principal_member/schema.d.ts +27 -0
- package/dist/reglow/modules/principal_member/schema.js +28 -0
- package/dist/reglow/modules/principal_member/schema.js.map +1 -0
- package/dist/reglow/modules/principal_member/service.d.ts +16 -0
- package/dist/reglow/modules/principal_member/service.js +135 -0
- package/dist/reglow/modules/principal_member/service.js.map +1 -0
- package/dist/reglow/modules/studio/mcp/client.js +2 -2
- package/dist/reglow/modules/tenant/controller.d.ts +6 -0
- package/dist/reglow/modules/tenant/controller.js +99 -0
- package/dist/reglow/modules/tenant/controller.js.map +1 -0
- package/dist/reglow/modules/tenant/repository.d.ts +18 -0
- package/dist/reglow/modules/tenant/repository.js +71 -0
- package/dist/reglow/modules/tenant/repository.js.map +1 -0
- package/dist/reglow/modules/tenant/router.d.ts +9 -0
- package/dist/reglow/modules/tenant/router.js +7 -0
- package/dist/reglow/modules/tenant/router.js.map +1 -0
- package/dist/reglow/modules/tenant/schema.d.ts +33 -0
- package/dist/reglow/modules/tenant/schema.js +42 -0
- package/dist/reglow/modules/tenant/schema.js.map +1 -0
- package/dist/reglow/modules/tenant/service.d.ts +16 -0
- package/dist/reglow/modules/tenant/service.js +75 -0
- package/dist/reglow/modules/tenant/service.js.map +1 -0
- package/dist/reglow/modules/workflow/controller.d.ts +7 -0
- package/dist/reglow/modules/workflow/controller.js +133 -0
- package/dist/reglow/modules/workflow/controller.js.map +1 -0
- package/dist/reglow/modules/workflow/dsl.d.ts +41 -0
- package/dist/reglow/modules/workflow/dsl.js +173 -0
- package/dist/reglow/modules/workflow/dsl.js.map +1 -0
- package/dist/reglow/modules/workflow/model.d.ts +15 -0
- package/dist/reglow/modules/workflow/model.js +16 -0
- package/dist/reglow/modules/workflow/model.js.map +1 -0
- package/dist/reglow/modules/workflow/repository.d.ts +27 -0
- package/dist/reglow/modules/workflow/repository.js +151 -0
- package/dist/reglow/modules/workflow/repository.js.map +1 -0
- package/dist/reglow/modules/workflow/router.d.ts +10 -0
- package/dist/reglow/modules/workflow/router.js +8 -0
- package/dist/reglow/modules/workflow/router.js.map +1 -0
- package/dist/reglow/modules/workflow/schema.d.ts +32 -0
- package/dist/reglow/modules/workflow/schema.js +39 -0
- package/dist/reglow/modules/workflow/schema.js.map +1 -0
- package/dist/reglow/modules/workflow/service.d.ts +65 -0
- package/dist/reglow/modules/workflow/service.js +209 -0
- package/dist/reglow/modules/workflow/service.js.map +1 -0
- package/dist/reglow/scripts/init-data.js +157 -1
- package/dist/reglow/scripts/init-data.js.map +1 -1
- package/dist/reglow/scripts/schema.js +441 -0
- package/dist/reglow/scripts/schema.js.map +1 -1
- package/dist/server.js +3 -0
- package/dist/server.js.map +1 -1
- package/package.json +3 -3
|
@@ -31,7 +31,7 @@ const JWT_SECRET = str(env.JWT_SECRET, "change-me-in-production");
|
|
|
31
31
|
const settings = {
|
|
32
32
|
// Application
|
|
33
33
|
APP_NAME: str(env.APP_NAME, "ReglowAdmin"),
|
|
34
|
-
APP_VERSION: str(env.APP_VERSION, "0.
|
|
34
|
+
APP_VERSION: str(env.APP_VERSION, "0.13.0"),
|
|
35
35
|
APP_ENV: str(env.APP_ENV, "dev"),
|
|
36
36
|
DEBUG: bool(env.DEBUG, false),
|
|
37
37
|
PORT: int(env.PORT, 9520),
|
|
@@ -380,10 +380,75 @@ export interface PaymentOrder extends TimestampFields {
|
|
|
380
380
|
trade_no?: string | null;
|
|
381
381
|
qr_code?: string | null;
|
|
382
382
|
paid_at?: AnyDate;
|
|
383
|
+
refunded_amount_cents?: number;
|
|
384
|
+
split_amount_cents?: number;
|
|
385
|
+
reconcile_checked_at?: AnyDate;
|
|
383
386
|
biz_type?: string | null;
|
|
384
387
|
biz_id?: string | null;
|
|
385
388
|
remark?: string | null;
|
|
386
389
|
}
|
|
390
|
+
export interface PaymentRefund extends TimestampFields {
|
|
391
|
+
id: number;
|
|
392
|
+
refund_no: string;
|
|
393
|
+
payment_order_id: number;
|
|
394
|
+
out_trade_no: string;
|
|
395
|
+
provider: string;
|
|
396
|
+
amount_cents: number;
|
|
397
|
+
total_amount_cents: number;
|
|
398
|
+
reason?: string | null;
|
|
399
|
+
source: string;
|
|
400
|
+
status: string;
|
|
401
|
+
channel_refund_no?: string | null;
|
|
402
|
+
error_msg?: string | null;
|
|
403
|
+
operator_id?: number | null;
|
|
404
|
+
retry_count?: number;
|
|
405
|
+
refunded_at?: AnyDate;
|
|
406
|
+
}
|
|
407
|
+
export interface PaymentSplit extends TimestampFields {
|
|
408
|
+
id: number;
|
|
409
|
+
split_no: string;
|
|
410
|
+
payment_order_id: number;
|
|
411
|
+
out_trade_no: string;
|
|
412
|
+
provider: string;
|
|
413
|
+
transaction_id?: string | null;
|
|
414
|
+
total_amount_cents: number;
|
|
415
|
+
split_amount_cents: number;
|
|
416
|
+
status: string;
|
|
417
|
+
channel_split_no?: string | null;
|
|
418
|
+
error_msg?: string | null;
|
|
419
|
+
source: string;
|
|
420
|
+
operator_id?: number | null;
|
|
421
|
+
remark?: string | null;
|
|
422
|
+
finished_at?: AnyDate;
|
|
423
|
+
}
|
|
424
|
+
export interface PaymentSplitReceiver extends TimestampFields {
|
|
425
|
+
id: number;
|
|
426
|
+
split_id: number;
|
|
427
|
+
receiver_type: string;
|
|
428
|
+
account: string;
|
|
429
|
+
name?: string | null;
|
|
430
|
+
amount_cents: number;
|
|
431
|
+
description?: string | null;
|
|
432
|
+
status: string;
|
|
433
|
+
channel_detail_id?: string | null;
|
|
434
|
+
error_msg?: string | null;
|
|
435
|
+
}
|
|
436
|
+
export interface PaymentSplitReturn extends TimestampFields {
|
|
437
|
+
id: number;
|
|
438
|
+
return_no: string;
|
|
439
|
+
split_id: number;
|
|
440
|
+
payment_order_id: number;
|
|
441
|
+
out_trade_no: string;
|
|
442
|
+
provider: string;
|
|
443
|
+
receiver_type: string;
|
|
444
|
+
receiver_account: string;
|
|
445
|
+
amount_cents: number;
|
|
446
|
+
reason?: string | null;
|
|
447
|
+
status: string;
|
|
448
|
+
channel_return_no?: string | null;
|
|
449
|
+
error_msg?: string | null;
|
|
450
|
+
operator_id?: number | null;
|
|
451
|
+
}
|
|
387
452
|
export interface Region extends TimestampFields {
|
|
388
453
|
id: number;
|
|
389
454
|
name: string;
|
|
@@ -470,6 +535,7 @@ export interface CSAgent extends TimestampFields, SoftDeleteFields {
|
|
|
470
535
|
enabled?: number;
|
|
471
536
|
status?: string | null;
|
|
472
537
|
last_active_at?: AnyDate;
|
|
538
|
+
max_sessions?: number | null;
|
|
473
539
|
}
|
|
474
540
|
export interface CSMessage extends TimestampFields {
|
|
475
541
|
id: number;
|
|
@@ -592,3 +658,137 @@ export interface StudioMcpTool extends TimestampFields {
|
|
|
592
658
|
enabled?: number;
|
|
593
659
|
synced_at?: AnyDate;
|
|
594
660
|
}
|
|
661
|
+
export interface Principal extends TimestampFields, SoftDeleteFields {
|
|
662
|
+
id: number;
|
|
663
|
+
principal_type?: string;
|
|
664
|
+
name: string;
|
|
665
|
+
code: string;
|
|
666
|
+
contact_name?: string | null;
|
|
667
|
+
contact_phone?: string | null;
|
|
668
|
+
contact_email?: string | null;
|
|
669
|
+
cert_type?: string | null;
|
|
670
|
+
cert_status?: string;
|
|
671
|
+
reject_reason?: string | null;
|
|
672
|
+
credit_code?: string | null;
|
|
673
|
+
legal_person?: string | null;
|
|
674
|
+
residence?: string | null;
|
|
675
|
+
business_address?: string | null;
|
|
676
|
+
license_url?: string | null;
|
|
677
|
+
business_permit_urls?: string | null;
|
|
678
|
+
id_card_no?: string | null;
|
|
679
|
+
legal_id_front_url?: string | null;
|
|
680
|
+
legal_id_back_url?: string | null;
|
|
681
|
+
account_name?: string | null;
|
|
682
|
+
settlement_type?: string | null;
|
|
683
|
+
receipt_mode?: string | null;
|
|
684
|
+
bank_name?: string | null;
|
|
685
|
+
bank_branch?: string | null;
|
|
686
|
+
bank_card_no?: string | null;
|
|
687
|
+
bank_card_front_url?: string | null;
|
|
688
|
+
corporate_account_doc_url?: string | null;
|
|
689
|
+
reviewer_id?: number | null;
|
|
690
|
+
reviewed_at?: AnyDate;
|
|
691
|
+
remark?: string | null;
|
|
692
|
+
status?: number;
|
|
693
|
+
}
|
|
694
|
+
export interface PrincipalMember extends TimestampFields, SoftDeleteFields {
|
|
695
|
+
id: number;
|
|
696
|
+
principal_id: number;
|
|
697
|
+
user_id?: number | null;
|
|
698
|
+
employee_id?: number | null;
|
|
699
|
+
member_role?: string;
|
|
700
|
+
status?: string | null;
|
|
701
|
+
invited_by?: number | null;
|
|
702
|
+
joined_at?: AnyDate;
|
|
703
|
+
}
|
|
704
|
+
export interface Tenant extends TimestampFields, SoftDeleteFields {
|
|
705
|
+
id: number;
|
|
706
|
+
name: string;
|
|
707
|
+
code: string;
|
|
708
|
+
principal_id?: number | null;
|
|
709
|
+
package?: string | null;
|
|
710
|
+
status?: number;
|
|
711
|
+
contact_name?: string | null;
|
|
712
|
+
contact_phone?: string | null;
|
|
713
|
+
expire_at?: AnyDate;
|
|
714
|
+
remark?: string | null;
|
|
715
|
+
max_apps?: number;
|
|
716
|
+
}
|
|
717
|
+
export interface BillingPlan extends TimestampFields, SoftDeleteFields {
|
|
718
|
+
id: number;
|
|
719
|
+
code: string;
|
|
720
|
+
name: string;
|
|
721
|
+
plan_type?: string | null;
|
|
722
|
+
price?: number | string | null;
|
|
723
|
+
quota_json?: unknown;
|
|
724
|
+
status?: number;
|
|
725
|
+
remark?: string | null;
|
|
726
|
+
}
|
|
727
|
+
export interface BillingAccount extends TimestampFields, SoftDeleteFields {
|
|
728
|
+
id: number;
|
|
729
|
+
owner_type?: string | null;
|
|
730
|
+
owner_id?: number | null;
|
|
731
|
+
plan_code?: string | null;
|
|
732
|
+
balance?: number | string | null;
|
|
733
|
+
expire_at?: AnyDate;
|
|
734
|
+
}
|
|
735
|
+
export interface BillingUsage extends TimestampFields {
|
|
736
|
+
id: number;
|
|
737
|
+
account_id?: number | null;
|
|
738
|
+
item_type?: string | null;
|
|
739
|
+
model?: string | null;
|
|
740
|
+
tokens?: number;
|
|
741
|
+
quantity?: number;
|
|
742
|
+
remark?: string | null;
|
|
743
|
+
}
|
|
744
|
+
export interface OpenApiApp extends TimestampFields, SoftDeleteFields {
|
|
745
|
+
id: number;
|
|
746
|
+
app_key: string;
|
|
747
|
+
app_secret: string;
|
|
748
|
+
name: string;
|
|
749
|
+
status?: number;
|
|
750
|
+
daily_quota?: number;
|
|
751
|
+
rate_limit?: number;
|
|
752
|
+
expire_at?: AnyDate;
|
|
753
|
+
remark?: string | null;
|
|
754
|
+
}
|
|
755
|
+
export interface OpenApiCallLog extends TimestampFields {
|
|
756
|
+
id: number;
|
|
757
|
+
app_id?: number | null;
|
|
758
|
+
app_key?: string | null;
|
|
759
|
+
method?: string | null;
|
|
760
|
+
path?: string | null;
|
|
761
|
+
ip?: string | null;
|
|
762
|
+
status_code?: number | null;
|
|
763
|
+
success?: number | null;
|
|
764
|
+
error?: string | null;
|
|
765
|
+
}
|
|
766
|
+
export interface WorkflowDef extends TimestampFields, SoftDeleteFields {
|
|
767
|
+
id: number;
|
|
768
|
+
code: string;
|
|
769
|
+
name: string;
|
|
770
|
+
description?: string | null;
|
|
771
|
+
form_schema?: unknown;
|
|
772
|
+
node_json?: unknown;
|
|
773
|
+
status?: number;
|
|
774
|
+
}
|
|
775
|
+
export interface WorkflowInstance extends TimestampFields, SoftDeleteFields {
|
|
776
|
+
id: number;
|
|
777
|
+
def_id: number;
|
|
778
|
+
title: string;
|
|
779
|
+
status?: string | null;
|
|
780
|
+
current_node?: string | null;
|
|
781
|
+
form_data?: unknown;
|
|
782
|
+
creator_id?: number | null;
|
|
783
|
+
}
|
|
784
|
+
export interface WorkflowTask extends TimestampFields {
|
|
785
|
+
id: number;
|
|
786
|
+
instance_id: number;
|
|
787
|
+
node_key: string;
|
|
788
|
+
node_name?: string | null;
|
|
789
|
+
assignee_type?: string | null;
|
|
790
|
+
assignee_value?: string | null;
|
|
791
|
+
action?: string | null;
|
|
792
|
+
comment?: string | null;
|
|
793
|
+
operator_id?: number | null;
|
|
794
|
+
}
|
|
@@ -40,6 +40,10 @@ export declare const TableNames: {
|
|
|
40
40
|
readonly VideoCategory: "cms_video_category";
|
|
41
41
|
readonly VideoCollection: "cms_video_collection";
|
|
42
42
|
readonly PaymentOrder: "payment_order";
|
|
43
|
+
readonly PaymentRefund: "payment_refund";
|
|
44
|
+
readonly PaymentSplit: "payment_split";
|
|
45
|
+
readonly PaymentSplitReceiver: "payment_split_receiver";
|
|
46
|
+
readonly PaymentSplitReturn: "payment_split_return";
|
|
43
47
|
readonly Region: "biz_region";
|
|
44
48
|
readonly CSConfig: "cs_config";
|
|
45
49
|
readonly CSKnowledgeBase: "cs_knowledge_base";
|
|
@@ -49,6 +53,17 @@ export declare const TableNames: {
|
|
|
49
53
|
readonly CSAgent: "cs_agent";
|
|
50
54
|
readonly CSMessage: "cs_message";
|
|
51
55
|
readonly SecurityAuditLog: "sys_security_audit";
|
|
56
|
+
readonly Principal: "sys_principal";
|
|
57
|
+
readonly PrincipalMember: "sys_principal_member";
|
|
58
|
+
readonly Tenant: "sys_tenant";
|
|
59
|
+
readonly BillingPlan: "sys_billing_plan";
|
|
60
|
+
readonly BillingAccount: "sys_billing_account";
|
|
61
|
+
readonly BillingUsage: "sys_billing_usage";
|
|
62
|
+
readonly OpenApiApp: "sys_open_api_app";
|
|
63
|
+
readonly OpenApiCallLog: "sys_open_api_log";
|
|
64
|
+
readonly WorkflowDef: "sys_workflow_def";
|
|
65
|
+
readonly WorkflowInstance: "sys_workflow_instance";
|
|
66
|
+
readonly WorkflowTask: "sys_workflow_task";
|
|
52
67
|
readonly Skill: "studio_skill";
|
|
53
68
|
readonly StudioRole: "studio_role";
|
|
54
69
|
readonly StudioWorkflow: "studio_workflow";
|
|
@@ -98,6 +113,10 @@ export declare const ModelRegistry: {
|
|
|
98
113
|
VideoCategory: "cms_video_category";
|
|
99
114
|
VideoCollection: "cms_video_collection";
|
|
100
115
|
PaymentOrder: "payment_order";
|
|
116
|
+
PaymentRefund: "payment_refund";
|
|
117
|
+
PaymentSplit: "payment_split";
|
|
118
|
+
PaymentSplitReceiver: "payment_split_receiver";
|
|
119
|
+
PaymentSplitReturn: "payment_split_return";
|
|
101
120
|
Region: "biz_region";
|
|
102
121
|
CSConfig: "cs_config";
|
|
103
122
|
CSKnowledgeBase: "cs_knowledge_base";
|
|
@@ -107,6 +126,17 @@ export declare const ModelRegistry: {
|
|
|
107
126
|
CSAgent: "cs_agent";
|
|
108
127
|
CSMessage: "cs_message";
|
|
109
128
|
SecurityAuditLog: "sys_security_audit";
|
|
129
|
+
Principal: "sys_principal";
|
|
130
|
+
PrincipalMember: "sys_principal_member";
|
|
131
|
+
Tenant: "sys_tenant";
|
|
132
|
+
BillingPlan: "sys_billing_plan";
|
|
133
|
+
BillingAccount: "sys_billing_account";
|
|
134
|
+
BillingUsage: "sys_billing_usage";
|
|
135
|
+
OpenApiApp: "sys_open_api_app";
|
|
136
|
+
OpenApiCallLog: "sys_open_api_log";
|
|
137
|
+
WorkflowDef: "sys_workflow_def";
|
|
138
|
+
WorkflowInstance: "sys_workflow_instance";
|
|
139
|
+
WorkflowTask: "sys_workflow_task";
|
|
110
140
|
Skill: "studio_skill";
|
|
111
141
|
StudioRole: "studio_role";
|
|
112
142
|
StudioWorkflow: "studio_workflow";
|
|
@@ -40,6 +40,10 @@ export const TableNames = {
|
|
|
40
40
|
VideoCategory: "cms_video_category",
|
|
41
41
|
VideoCollection: "cms_video_collection",
|
|
42
42
|
PaymentOrder: "payment_order",
|
|
43
|
+
PaymentRefund: "payment_refund",
|
|
44
|
+
PaymentSplit: "payment_split",
|
|
45
|
+
PaymentSplitReceiver: "payment_split_receiver",
|
|
46
|
+
PaymentSplitReturn: "payment_split_return",
|
|
43
47
|
Region: "biz_region",
|
|
44
48
|
CSConfig: "cs_config",
|
|
45
49
|
CSKnowledgeBase: "cs_knowledge_base",
|
|
@@ -49,6 +53,21 @@ export const TableNames = {
|
|
|
49
53
|
CSAgent: "cs_agent",
|
|
50
54
|
CSMessage: "cs_message",
|
|
51
55
|
SecurityAuditLog: "sys_security_audit",
|
|
56
|
+
// 主体认证 / 主体成员 / 多租户
|
|
57
|
+
Principal: "sys_principal",
|
|
58
|
+
PrincipalMember: "sys_principal_member",
|
|
59
|
+
Tenant: "sys_tenant",
|
|
60
|
+
// 计量计费(套餐 / 账户 / 用量)
|
|
61
|
+
BillingPlan: "sys_billing_plan",
|
|
62
|
+
BillingAccount: "sys_billing_account",
|
|
63
|
+
BillingUsage: "sys_billing_usage",
|
|
64
|
+
// 开放平台(应用密钥 / 调用审计)
|
|
65
|
+
OpenApiApp: "sys_open_api_app",
|
|
66
|
+
OpenApiCallLog: "sys_open_api_log",
|
|
67
|
+
// 流程审批(定义 / 实例 / 任务)
|
|
68
|
+
WorkflowDef: "sys_workflow_def",
|
|
69
|
+
WorkflowInstance: "sys_workflow_instance",
|
|
70
|
+
WorkflowTask: "sys_workflow_task",
|
|
52
71
|
// 智能工坊(技能库 + 角色库 + 工作流 + 运行记录 + 产物/长任务 + MCP)
|
|
53
72
|
Skill: "studio_skill",
|
|
54
73
|
StudioRole: "studio_role",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../reglow/core/models.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,QAAQ,EAAE,cAAc;IACxB,YAAY,EAAE,mBAAmB;IACjC,YAAY,EAAE,mBAAmB;IACjC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,eAAe;IACzB,QAAQ,EAAE,eAAe;IACzB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAEhB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,mBAAmB;IACjC,QAAQ,EAAE,eAAe;IAEzB,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,gBAAgB;IAC3B,aAAa,EAAE,oBAAoB;IAEnC,QAAQ,EAAE,eAAe;IACzB,QAAQ,EAAE,eAAe;IAEzB,QAAQ,EAAE,cAAc;IACxB,aAAa,EAAE,oBAAoB;IACnC,qBAAqB,EAAE,6BAA6B;IAEpD,OAAO,EAAE,aAAa;IACtB,eAAe,EAAE,sBAAsB;IACvC,MAAM,EAAE,YAAY;IACpB,UAAU,EAAE,iBAAiB;IAE7B,SAAS,EAAE,eAAe;IAC1B,gBAAgB,EAAE,uBAAuB;IAEzC,OAAO,EAAE,aAAa;IACtB,eAAe,EAAE,sBAAsB;IACvC,iBAAiB,EAAE,wBAAwB;IAE3C,KAAK,EAAE,WAAW;IAClB,UAAU,EAAE,iBAAiB;IAC7B,aAAa,EAAE,oBAAoB;IAEnC,KAAK,EAAE,WAAW;IAClB,aAAa,EAAE,oBAAoB;IACnC,eAAe,EAAE,sBAAsB;IAEvC,YAAY,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../reglow/core/models.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,QAAQ,EAAE,cAAc;IACxB,YAAY,EAAE,mBAAmB;IACjC,YAAY,EAAE,mBAAmB;IACjC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,eAAe;IACzB,QAAQ,EAAE,eAAe;IACzB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAEhB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,mBAAmB;IACjC,QAAQ,EAAE,eAAe;IAEzB,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,gBAAgB;IAC3B,aAAa,EAAE,oBAAoB;IAEnC,QAAQ,EAAE,eAAe;IACzB,QAAQ,EAAE,eAAe;IAEzB,QAAQ,EAAE,cAAc;IACxB,aAAa,EAAE,oBAAoB;IACnC,qBAAqB,EAAE,6BAA6B;IAEpD,OAAO,EAAE,aAAa;IACtB,eAAe,EAAE,sBAAsB;IACvC,MAAM,EAAE,YAAY;IACpB,UAAU,EAAE,iBAAiB;IAE7B,SAAS,EAAE,eAAe;IAC1B,gBAAgB,EAAE,uBAAuB;IAEzC,OAAO,EAAE,aAAa;IACtB,eAAe,EAAE,sBAAsB;IACvC,iBAAiB,EAAE,wBAAwB;IAE3C,KAAK,EAAE,WAAW;IAClB,UAAU,EAAE,iBAAiB;IAC7B,aAAa,EAAE,oBAAoB;IAEnC,KAAK,EAAE,WAAW;IAClB,aAAa,EAAE,oBAAoB;IACnC,eAAe,EAAE,sBAAsB;IAEvC,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,gBAAgB;IAC/B,YAAY,EAAE,eAAe;IAC7B,oBAAoB,EAAE,wBAAwB;IAC9C,kBAAkB,EAAE,sBAAsB;IAE1C,MAAM,EAAE,YAAY;IAEpB,QAAQ,EAAE,WAAW;IACrB,eAAe,EAAE,mBAAmB;IACpC,gBAAgB,EAAE,oBAAoB;IACtC,UAAU,EAAE,cAAc;IAC1B,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,YAAY;IAEvB,gBAAgB,EAAE,oBAAoB;IAEtC,oBAAoB;IACpB,SAAS,EAAE,eAAe;IAC1B,eAAe,EAAE,sBAAsB;IACvC,MAAM,EAAE,YAAY;IAEpB,qBAAqB;IACrB,WAAW,EAAE,kBAAkB;IAC/B,cAAc,EAAE,qBAAqB;IACrC,YAAY,EAAE,mBAAmB;IAEjC,oBAAoB;IACpB,UAAU,EAAE,kBAAkB;IAC9B,cAAc,EAAE,kBAAkB;IAElC,qBAAqB;IACrB,WAAW,EAAE,kBAAkB;IAC/B,gBAAgB,EAAE,uBAAuB;IACzC,YAAY,EAAE,mBAAmB;IAEjC,8CAA8C;IAC9C,KAAK,EAAE,cAAc;IACrB,UAAU,EAAE,aAAa;IACzB,cAAc,EAAE,iBAAiB;IACjC,SAAS,EAAE,YAAY;IACvB,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,mBAAmB;IACpC,aAAa,EAAE,iBAAiB;CACxB,CAAC;AAIX,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,UAAU;IACb,GAAG,CAAC,IAA6B;QAC/B,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF,CAAC"}
|
|
@@ -15,23 +15,85 @@ export interface CallbackResult {
|
|
|
15
15
|
amount: number;
|
|
16
16
|
status: string;
|
|
17
17
|
}
|
|
18
|
+
export interface RefundResult {
|
|
19
|
+
success: boolean;
|
|
20
|
+
msg: string;
|
|
21
|
+
/** 商户退款单号 */
|
|
22
|
+
refundNo: string;
|
|
23
|
+
/** 原商户订单号 */
|
|
24
|
+
outTradeNo: string;
|
|
25
|
+
/** 渠道退款单号 */
|
|
26
|
+
channelRefundNo: string;
|
|
27
|
+
/** success / processing / failed */
|
|
28
|
+
status: string;
|
|
29
|
+
raw: Record<string, unknown>;
|
|
30
|
+
}
|
|
31
|
+
export interface SplitReceiver {
|
|
32
|
+
/** 微信 MERCHANT_ID / PERSONAL_OPENID;支付宝 userId / loginName */
|
|
33
|
+
receiverType: string;
|
|
34
|
+
account: string;
|
|
35
|
+
amountCents: number;
|
|
36
|
+
description?: string;
|
|
37
|
+
/** 个人接收方姓名(微信必填) */
|
|
38
|
+
name?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface SplitResult {
|
|
41
|
+
success: boolean;
|
|
42
|
+
msg: string;
|
|
43
|
+
splitNo: string;
|
|
44
|
+
outTradeNo: string;
|
|
45
|
+
channelSplitNo: string;
|
|
46
|
+
/** processing / success / failed / finished */
|
|
47
|
+
status: string;
|
|
48
|
+
receivers: Array<Record<string, unknown>>;
|
|
49
|
+
raw: Record<string, unknown>;
|
|
50
|
+
}
|
|
18
51
|
export declare abstract class PaymentProvider {
|
|
19
52
|
provider_name: string;
|
|
53
|
+
supportsRefund: boolean;
|
|
54
|
+
supportsSplit: boolean;
|
|
55
|
+
supportsClose: boolean;
|
|
56
|
+
supportedPlatforms: string[];
|
|
57
|
+
/** 渠道能力声明(业务按此渲染退款/分账/关单入口,避免硬编码渠道判断) */
|
|
58
|
+
capabilities(): Record<string, unknown>;
|
|
20
59
|
abstract createTrade(outTradeNo: string, amountCents: number, subject: string, notifyUrl: string): Promise<PaymentResult>;
|
|
21
60
|
createTradeByPlatform(outTradeNo: string, amountCents: number, subject: string, notifyUrl: string, _platform?: string, _openid?: string, _buyerId?: string, _payerIp?: string): Promise<PaymentResult>;
|
|
22
61
|
abstract queryTrade(outTradeNo: string): Promise<PaymentResult>;
|
|
62
|
+
/**
|
|
63
|
+
* 发起退款(原路退回)。
|
|
64
|
+
* @param refundNo 商户退款单号(同一笔退款重试必须复用,渠道侧幂等)
|
|
65
|
+
* @param totalCents 原订单金额(分,微信退款必填)
|
|
66
|
+
*/
|
|
67
|
+
refund(_outTradeNo: string, _refundNo: string, _amountCents: number, _totalCents: number, _reason?: string): Promise<RefundResult>;
|
|
68
|
+
closeTrade(_outTradeNo: string): Promise<PaymentResult>;
|
|
69
|
+
queryRefund(_outTradeNo: string, _refundNo: string): Promise<RefundResult>;
|
|
70
|
+
split(_outTradeNo: string, _splitNo: string, _receivers: SplitReceiver[], _reason?: string, _transactionId?: string): Promise<SplitResult>;
|
|
71
|
+
querySplit(_outTradeNo: string, _splitNo: string, _transactionId?: string): Promise<SplitResult>;
|
|
72
|
+
returnSplit(_outTradeNo: string, _splitNo: string, _returnNo: string, _amountCents: number, _receiverType: string, _receiverAccount: string, _reason?: string, _transactionId?: string): Promise<SplitResult>;
|
|
73
|
+
finishSplit(_outTradeNo: string, _splitNo: string, _transactionId?: string, _reason?: string): Promise<SplitResult>;
|
|
74
|
+
bindSplitReceiver(_receiverType: string, _account: string, _name?: string, _relationType?: string): Promise<SplitResult>;
|
|
23
75
|
abstract verifyCallback(headers: Record<string, string>, body: Buffer): Promise<CallbackResult>;
|
|
24
76
|
successResponse(): string;
|
|
25
77
|
}
|
|
26
78
|
export declare class MockPaymentProvider extends PaymentProvider {
|
|
27
79
|
provider_name: string;
|
|
80
|
+
supportsSplit: boolean;
|
|
28
81
|
createTrade(outTradeNo: string, amountCents: number, _subject: string, _notifyUrl: string): Promise<PaymentResult>;
|
|
29
82
|
createTradeByPlatform(outTradeNo: string, amountCents: number, subject: string, notifyUrl: string, platform?: string): Promise<PaymentResult>;
|
|
30
83
|
queryTrade(outTradeNo: string): Promise<PaymentResult>;
|
|
84
|
+
refund(outTradeNo: string, refundNo: string, _amountCents: number, _totalCents: number, _reason?: string): Promise<RefundResult>;
|
|
85
|
+
closeTrade(outTradeNo: string): Promise<PaymentResult>;
|
|
86
|
+
queryRefund(outTradeNo: string, refundNo: string): Promise<RefundResult>;
|
|
87
|
+
split(outTradeNo: string, splitNo: string, receivers: SplitReceiver[], _reason?: string, _transactionId?: string): Promise<SplitResult>;
|
|
88
|
+
querySplit(outTradeNo: string, splitNo: string, _transactionId?: string): Promise<SplitResult>;
|
|
89
|
+
returnSplit(outTradeNo: string, splitNo: string, returnNo: string, _amountCents: number, _receiverType: string, _receiverAccount: string, _reason?: string, _transactionId?: string): Promise<SplitResult>;
|
|
90
|
+
finishSplit(outTradeNo: string, splitNo: string, _transactionId?: string, _reason?: string): Promise<SplitResult>;
|
|
91
|
+
bindSplitReceiver(receiverType: string, account: string, _name?: string, _relationType?: string): Promise<SplitResult>;
|
|
31
92
|
verifyCallback(_headers: Record<string, string>, body: Buffer): Promise<CallbackResult>;
|
|
32
93
|
}
|
|
33
94
|
export declare class AlipayProvider extends PaymentProvider {
|
|
34
95
|
provider_name: string;
|
|
96
|
+
supportsSplit: boolean;
|
|
35
97
|
private appId;
|
|
36
98
|
private appPrivateKey;
|
|
37
99
|
private alipayPublicKey;
|
|
@@ -53,10 +115,20 @@ export declare class AlipayProvider extends PaymentProvider {
|
|
|
53
115
|
createWapTrade(outTradeNo: string, amountCents: number, subject: string, notifyUrl: string, returnUrl?: string): Promise<PaymentResult>;
|
|
54
116
|
createTradeByPlatform(outTradeNo: string, amountCents: number, subject: string, notifyUrl: string, platform?: string, _openid?: string, buyerId?: string): Promise<PaymentResult>;
|
|
55
117
|
queryTrade(outTradeNo: string): Promise<PaymentResult>;
|
|
118
|
+
refund(outTradeNo: string, refundNo: string, amountCents: number, _totalCents: number, reason?: string): Promise<RefundResult>;
|
|
119
|
+
closeTrade(outTradeNo: string): Promise<PaymentResult>;
|
|
120
|
+
queryRefund(outTradeNo: string, refundNo: string): Promise<RefundResult>;
|
|
121
|
+
bindSplitReceiver(receiverType: string, account: string, name?: string, relationType?: string): Promise<SplitResult>;
|
|
122
|
+
split(outTradeNo: string, splitNo: string, receivers: SplitReceiver[], reason?: string, transactionId?: string): Promise<SplitResult>;
|
|
123
|
+
querySplit(outTradeNo: string, splitNo: string, _transactionId?: string): Promise<SplitResult>;
|
|
124
|
+
returnSplit(outTradeNo: string, splitNo: string, returnNo: string, amountCents: number, receiverType: string, receiverAccount: string, reason?: string, _transactionId?: string): Promise<SplitResult>;
|
|
125
|
+
finishSplit(outTradeNo: string, splitNo: string, _transactionId?: string, _reason?: string): Promise<SplitResult>;
|
|
56
126
|
verifyCallback(_headers: Record<string, string>, body: Buffer): Promise<CallbackResult>;
|
|
57
127
|
}
|
|
58
128
|
export declare class UnionPayProvider extends PaymentProvider {
|
|
59
129
|
provider_name: string;
|
|
130
|
+
supportsSplit: boolean;
|
|
131
|
+
supportsClose: boolean;
|
|
60
132
|
static TEST_GATEWAY: string;
|
|
61
133
|
static PROD_GATEWAY: string;
|
|
62
134
|
private merId;
|
|
@@ -72,11 +144,13 @@ export declare class UnionPayProvider extends PaymentProvider {
|
|
|
72
144
|
createAppTrade(outTradeNo: string, amountCents: number, _subject: string, notifyUrl: string): Promise<PaymentResult>;
|
|
73
145
|
createTradeByPlatform(outTradeNo: string, amountCents: number, subject: string, notifyUrl: string, platform?: string): Promise<PaymentResult>;
|
|
74
146
|
queryTrade(outTradeNo: string): Promise<PaymentResult>;
|
|
147
|
+
refund(outTradeNo: string, refundNo: string, amountCents: number, _totalCents: number, _reason?: string): Promise<RefundResult>;
|
|
75
148
|
verifyCallback(_headers: Record<string, string>, body: Buffer): Promise<CallbackResult>;
|
|
76
149
|
successResponse(): string;
|
|
77
150
|
}
|
|
78
151
|
export declare class WeChatPayProvider extends PaymentProvider {
|
|
79
152
|
provider_name: string;
|
|
153
|
+
supportsSplit: boolean;
|
|
80
154
|
static BASE_URL: string;
|
|
81
155
|
private appid;
|
|
82
156
|
private miniAppId;
|
|
@@ -117,9 +191,25 @@ export declare class WeChatPayProvider extends PaymentProvider {
|
|
|
117
191
|
*/
|
|
118
192
|
createTradeByPlatform(outTradeNo: string, amountCents: number, subject: string, notifyUrl: string, platform?: string, openid?: string, _buyerId?: string, payerIp?: string): Promise<PaymentResult>;
|
|
119
193
|
queryTrade(outTradeNo: string): Promise<PaymentResult>;
|
|
194
|
+
refund(outTradeNo: string, refundNo: string, amountCents: number, totalCents: number, reason?: string): Promise<RefundResult>;
|
|
195
|
+
closeTrade(outTradeNo: string): Promise<PaymentResult>;
|
|
196
|
+
private v3Get;
|
|
197
|
+
queryRefund(outTradeNo: string, refundNo: string): Promise<RefundResult>;
|
|
198
|
+
bindSplitReceiver(receiverType: string, account: string, name?: string, relationType?: string): Promise<SplitResult>;
|
|
199
|
+
private mapWechatReceivers;
|
|
200
|
+
split(outTradeNo: string, splitNo: string, receivers: SplitReceiver[], reason?: string, transactionId?: string): Promise<SplitResult>;
|
|
201
|
+
querySplit(outTradeNo: string, splitNo: string, transactionId?: string): Promise<SplitResult>;
|
|
202
|
+
returnSplit(outTradeNo: string, splitNo: string, returnNo: string, amountCents: number, receiverType: string, receiverAccount: string, reason?: string, transactionId?: string): Promise<SplitResult>;
|
|
203
|
+
finishSplit(outTradeNo: string, splitNo: string, transactionId?: string, reason?: string): Promise<SplitResult>;
|
|
120
204
|
verifyCallback(_headers: Record<string, string>, body: Buffer): Promise<CallbackResult>;
|
|
121
205
|
successResponse(): string;
|
|
122
206
|
}
|
|
207
|
+
export type PaymentProviderFactory = (config: Record<string, string>) => PaymentProvider;
|
|
208
|
+
/** 注册/覆盖支付渠道;注册后通用回调 /payment/notify/{name} 自动生效 */
|
|
209
|
+
export declare function registerPaymentProvider(name: string, factory: PaymentProviderFactory): void;
|
|
210
|
+
export declare function unregisterPaymentProvider(name: string): void;
|
|
211
|
+
export declare function listPaymentProviders(): string[];
|
|
123
212
|
export declare function createPaymentProvider(providerName: string, config: Record<string, string>): PaymentProvider;
|
|
213
|
+
export declare function getProviderCapabilities(providerName: string, config: Record<string, string>): Record<string, unknown>;
|
|
124
214
|
export declare function getPaymentSettings(): Promise<Record<string, string>>;
|
|
125
215
|
export declare function getActiveProvider(config: Record<string, string>): string;
|