autosync_backend2 1.1.30 → 1.1.31
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/index.d.ts +140 -134
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3695,149 +3695,128 @@ export declare const app: Elysia<"", {
|
|
|
3695
3695
|
};
|
|
3696
3696
|
} & {
|
|
3697
3697
|
payment: {
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
};
|
|
3769
|
-
};
|
|
3770
|
-
} & {
|
|
3771
|
-
payment: {
|
|
3772
|
-
post: {
|
|
3773
|
-
body: {
|
|
3774
|
-
branchId?: string | undefined;
|
|
3775
|
-
companyId: string;
|
|
3776
|
-
} & ({
|
|
3777
|
-
type: "StorePay";
|
|
3778
|
-
sub: {
|
|
3779
|
-
password: string;
|
|
3780
|
-
username: string;
|
|
3781
|
-
appUserName: string;
|
|
3782
|
-
appPassword: string;
|
|
3783
|
-
storeId: string;
|
|
3784
|
-
};
|
|
3785
|
-
} | {
|
|
3786
|
-
type: "UbPay";
|
|
3787
|
-
sub: {
|
|
3788
|
-
clientId: string;
|
|
3789
|
-
clientSecret: string;
|
|
3790
|
-
};
|
|
3791
|
-
} | {
|
|
3792
|
-
type: "Qpay";
|
|
3793
|
-
sub: {
|
|
3794
|
-
password: string;
|
|
3795
|
-
username: string;
|
|
3796
|
-
invoiceCode: string;
|
|
3797
|
-
};
|
|
3798
|
-
});
|
|
3799
|
-
params: {};
|
|
3800
|
-
query: unknown;
|
|
3801
|
-
headers: unknown;
|
|
3802
|
-
response: {
|
|
3803
|
-
200: {
|
|
3804
|
-
type: "StorePay" | "Qpay" | "MinuPos" | "UbPay";
|
|
3805
|
-
id: string;
|
|
3806
|
-
sub: unknown;
|
|
3807
|
-
createdAt: string;
|
|
3808
|
-
updatedAt: string;
|
|
3809
|
-
companyId: string;
|
|
3810
|
-
branchId: string | null;
|
|
3811
|
-
accessToken: string | null;
|
|
3812
|
-
refreshToken: string | null;
|
|
3813
|
-
deletedAt: string | null;
|
|
3814
|
-
expiresIn: number | null;
|
|
3815
|
-
refreshExpiresIn: number | null;
|
|
3816
|
-
};
|
|
3817
|
-
422: {
|
|
3818
|
-
type: "validation";
|
|
3819
|
-
on: string;
|
|
3820
|
-
summary?: string;
|
|
3821
|
-
message?: string;
|
|
3822
|
-
found?: unknown;
|
|
3823
|
-
property?: string;
|
|
3824
|
-
expected?: string;
|
|
3698
|
+
info: {
|
|
3699
|
+
get: {
|
|
3700
|
+
body: unknown;
|
|
3701
|
+
params: {};
|
|
3702
|
+
query: unknown;
|
|
3703
|
+
headers: unknown;
|
|
3704
|
+
response: {
|
|
3705
|
+
200: {
|
|
3706
|
+
company: {
|
|
3707
|
+
name: string;
|
|
3708
|
+
regNumber: string;
|
|
3709
|
+
phone: string;
|
|
3710
|
+
email: string;
|
|
3711
|
+
serviceName: string;
|
|
3712
|
+
logoUrl: string;
|
|
3713
|
+
province: string | null;
|
|
3714
|
+
district: string | null;
|
|
3715
|
+
khoroo: string | null;
|
|
3716
|
+
street: string | null;
|
|
3717
|
+
socialUrls: string[] | null;
|
|
3718
|
+
ceoName: string | null;
|
|
3719
|
+
webUrl: string | null;
|
|
3720
|
+
googleMapUrl: string | null;
|
|
3721
|
+
isContract: boolean;
|
|
3722
|
+
isNoat: boolean;
|
|
3723
|
+
isNexus: boolean;
|
|
3724
|
+
isActive: boolean;
|
|
3725
|
+
branchCount: number;
|
|
3726
|
+
id: string;
|
|
3727
|
+
createdAt: string;
|
|
3728
|
+
updatedAt: string;
|
|
3729
|
+
deletedAt: string | null;
|
|
3730
|
+
};
|
|
3731
|
+
branch: {
|
|
3732
|
+
name: string;
|
|
3733
|
+
phone: string;
|
|
3734
|
+
logoUrl: string;
|
|
3735
|
+
email: string | null;
|
|
3736
|
+
regNumber: string | null;
|
|
3737
|
+
province: string | null;
|
|
3738
|
+
district: string | null;
|
|
3739
|
+
khoroo: string | null;
|
|
3740
|
+
street: string | null;
|
|
3741
|
+
socialUrls: string[] | null;
|
|
3742
|
+
ceoName: string | null;
|
|
3743
|
+
googleMapUrl: string | null;
|
|
3744
|
+
isNoat: boolean;
|
|
3745
|
+
isActive: boolean;
|
|
3746
|
+
packageId: string;
|
|
3747
|
+
merchantId: string;
|
|
3748
|
+
id: string;
|
|
3749
|
+
createdAt: string;
|
|
3750
|
+
updatedAt: string;
|
|
3751
|
+
deletedAt: string | null;
|
|
3752
|
+
} | null;
|
|
3753
|
+
payment: {
|
|
3754
|
+
accessToken: string | null;
|
|
3755
|
+
refreshToken: string | null;
|
|
3756
|
+
companyId: string;
|
|
3757
|
+
expiresIn: number | null;
|
|
3758
|
+
refreshExpiresIn: number | null;
|
|
3759
|
+
branchId: string | null;
|
|
3760
|
+
type: "StorePay" | "Qpay" | "MinuPos" | "UbPay";
|
|
3761
|
+
sub: unknown;
|
|
3762
|
+
id: string;
|
|
3763
|
+
createdAt: string;
|
|
3764
|
+
updatedAt: string;
|
|
3765
|
+
deletedAt: string | null;
|
|
3766
|
+
};
|
|
3767
|
+
}[];
|
|
3825
3768
|
};
|
|
3826
3769
|
};
|
|
3827
3770
|
};
|
|
3828
3771
|
};
|
|
3829
3772
|
} & {
|
|
3830
3773
|
payment: {
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
body:
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
}
|
|
3774
|
+
info: {
|
|
3775
|
+
post: {
|
|
3776
|
+
body: {
|
|
3777
|
+
branchId?: string | undefined;
|
|
3778
|
+
companyId: string;
|
|
3779
|
+
} & ({
|
|
3780
|
+
type: "StorePay";
|
|
3781
|
+
sub: {
|
|
3782
|
+
password: string;
|
|
3783
|
+
username: string;
|
|
3784
|
+
appUserName: string;
|
|
3785
|
+
appPassword: string;
|
|
3786
|
+
storeId: string;
|
|
3787
|
+
};
|
|
3788
|
+
} | {
|
|
3789
|
+
type: "UbPay";
|
|
3790
|
+
sub: {
|
|
3791
|
+
clientId: string;
|
|
3792
|
+
clientSecret: string;
|
|
3793
|
+
};
|
|
3794
|
+
} | {
|
|
3795
|
+
type: "Qpay";
|
|
3796
|
+
sub: {
|
|
3797
|
+
password: string;
|
|
3798
|
+
username: string;
|
|
3799
|
+
invoiceCode: string;
|
|
3800
|
+
};
|
|
3801
|
+
});
|
|
3802
|
+
params: {};
|
|
3837
3803
|
query: unknown;
|
|
3838
3804
|
headers: unknown;
|
|
3839
3805
|
response: {
|
|
3840
|
-
200:
|
|
3806
|
+
200: {
|
|
3807
|
+
type: "StorePay" | "Qpay" | "MinuPos" | "UbPay";
|
|
3808
|
+
id: string;
|
|
3809
|
+
sub: unknown;
|
|
3810
|
+
createdAt: string;
|
|
3811
|
+
updatedAt: string;
|
|
3812
|
+
companyId: string;
|
|
3813
|
+
branchId: string | null;
|
|
3814
|
+
accessToken: string | null;
|
|
3815
|
+
refreshToken: string | null;
|
|
3816
|
+
deletedAt: string | null;
|
|
3817
|
+
expiresIn: number | null;
|
|
3818
|
+
refreshExpiresIn: number | null;
|
|
3819
|
+
};
|
|
3841
3820
|
422: {
|
|
3842
3821
|
type: "validation";
|
|
3843
3822
|
on: string;
|
|
@@ -3851,6 +3830,33 @@ export declare const app: Elysia<"", {
|
|
|
3851
3830
|
};
|
|
3852
3831
|
};
|
|
3853
3832
|
};
|
|
3833
|
+
} & {
|
|
3834
|
+
payment: {
|
|
3835
|
+
info: {
|
|
3836
|
+
":id": {
|
|
3837
|
+
delete: {
|
|
3838
|
+
body: unknown;
|
|
3839
|
+
params: {
|
|
3840
|
+
id: string;
|
|
3841
|
+
};
|
|
3842
|
+
query: unknown;
|
|
3843
|
+
headers: unknown;
|
|
3844
|
+
response: {
|
|
3845
|
+
200: void;
|
|
3846
|
+
422: {
|
|
3847
|
+
type: "validation";
|
|
3848
|
+
on: string;
|
|
3849
|
+
summary?: string;
|
|
3850
|
+
message?: string;
|
|
3851
|
+
found?: unknown;
|
|
3852
|
+
property?: string;
|
|
3853
|
+
expected?: string;
|
|
3854
|
+
};
|
|
3855
|
+
};
|
|
3856
|
+
};
|
|
3857
|
+
};
|
|
3858
|
+
};
|
|
3859
|
+
};
|
|
3854
3860
|
};
|
|
3855
3861
|
} & {
|
|
3856
3862
|
"cp-order": {
|
package/dist/index.js
CHANGED
|
@@ -144686,9 +144686,9 @@ var paymentRoutes = new Elysia({
|
|
|
144686
144686
|
auth: true
|
|
144687
144687
|
}).guard({
|
|
144688
144688
|
userKind: "ADMIN"
|
|
144689
|
-
}).get("/", async () => logic_default7.selectPaymentInfo()).post("/", async ({ body }) => logic_default7.createPaymentInfo(body), {
|
|
144689
|
+
}).get("/info", async () => logic_default7.selectPaymentInfo()).post("/info", async ({ body }) => logic_default7.createPaymentInfo(body), {
|
|
144690
144690
|
body: "CrmCpOrderPaymentModel.createPaymentInfo"
|
|
144691
|
-
}).delete("/:id", async ({ params: { id } }) => logic_default7.removePaymentInfo(id), {
|
|
144691
|
+
}).delete("/info/:id", async ({ params: { id } }) => logic_default7.removePaymentInfo(id), {
|
|
144692
144692
|
params: IdSchema
|
|
144693
144693
|
});
|
|
144694
144694
|
var payment_default = paymentRoutes;
|