autosync_backend2 1.1.38 → 1.1.40
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 +223 -4
- package/dist/index.js +2135 -1432
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export declare const app: Elysia<"", {
|
|
|
7
7
|
requiresAdmin?: boolean;
|
|
8
8
|
}[];
|
|
9
9
|
};
|
|
10
|
-
store: {
|
|
10
|
+
store: {
|
|
11
|
+
cron: Record<"log-uploader", import("croner").Cron>;
|
|
12
|
+
};
|
|
11
13
|
derive: {};
|
|
12
14
|
resolve: {};
|
|
13
15
|
}, {
|
|
@@ -328,9 +330,9 @@ export declare const app: Elysia<"", {
|
|
|
328
330
|
}>;
|
|
329
331
|
readonly "CrmCpOrderItemModel.create": import("@sinclair/typebox").TObject<{
|
|
330
332
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
331
|
-
cpOrderId: import("@sinclair/typebox").TString;
|
|
332
333
|
quantity: import("@sinclair/typebox").TInteger;
|
|
333
334
|
companyProductId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
335
|
+
cpOrderId: import("@sinclair/typebox").TString;
|
|
334
336
|
companyServiceKindId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
335
337
|
cpOrderSpPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
336
338
|
priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -507,6 +509,45 @@ export declare const app: Elysia<"", {
|
|
|
507
509
|
size: import("@sinclair/typebox").TInteger;
|
|
508
510
|
}>;
|
|
509
511
|
}>;
|
|
512
|
+
readonly "CrmDiscountModel.create": import("@sinclair/typebox").TObject<{
|
|
513
|
+
name: import("@sinclair/typebox").TString;
|
|
514
|
+
companyId: import("@sinclair/typebox").TString;
|
|
515
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
516
|
+
state: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
517
|
+
applyType: import("@sinclair/typebox").TEnum<{
|
|
518
|
+
ORDER: "ORDER";
|
|
519
|
+
ITEM: "ITEM";
|
|
520
|
+
}>;
|
|
521
|
+
discountType: import("@sinclair/typebox").TEnum<{
|
|
522
|
+
PERCENTAGE: "PERCENTAGE";
|
|
523
|
+
FIXED: "FIXED";
|
|
524
|
+
}>;
|
|
525
|
+
timeStart: import("@sinclair/typebox").TDate;
|
|
526
|
+
timeEnd: import("@sinclair/typebox").TDate;
|
|
527
|
+
}>;
|
|
528
|
+
readonly "CrmDiscountModel.update": import("@sinclair/typebox").TObject<{
|
|
529
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
530
|
+
companyId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
531
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
532
|
+
state: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
533
|
+
applyType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
534
|
+
ORDER: "ORDER";
|
|
535
|
+
ITEM: "ITEM";
|
|
536
|
+
}>>;
|
|
537
|
+
discountType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
538
|
+
PERCENTAGE: "PERCENTAGE";
|
|
539
|
+
FIXED: "FIXED";
|
|
540
|
+
}>>;
|
|
541
|
+
timeStart: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TDate>;
|
|
542
|
+
timeEnd: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TDate>;
|
|
543
|
+
}>;
|
|
544
|
+
readonly "CrmDiscountModel.select": import("@sinclair/typebox").TObject<{
|
|
545
|
+
pagination: import("@sinclair/typebox").TObject<{
|
|
546
|
+
page: import("@sinclair/typebox").TInteger;
|
|
547
|
+
size: import("@sinclair/typebox").TInteger;
|
|
548
|
+
}>;
|
|
549
|
+
companyId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
550
|
+
}>;
|
|
510
551
|
readonly "TechdocSupplierModel.select": import("@sinclair/typebox").TObject<{
|
|
511
552
|
pagination: import("@sinclair/typebox").TObject<{
|
|
512
553
|
page: import("@sinclair/typebox").TInteger;
|
|
@@ -3966,7 +4007,7 @@ export declare const app: Elysia<"", {
|
|
|
3966
4007
|
vehicleId: string;
|
|
3967
4008
|
orderId: string;
|
|
3968
4009
|
state: "CREATED" | "PROGRESSING" | "COMPLETE";
|
|
3969
|
-
timeCompleted:
|
|
4010
|
+
timeCompleted: string | null;
|
|
3970
4011
|
id: string;
|
|
3971
4012
|
createdAt: string;
|
|
3972
4013
|
updatedAt: string;
|
|
@@ -4073,7 +4114,7 @@ export declare const app: Elysia<"", {
|
|
|
4073
4114
|
vehicleId: string;
|
|
4074
4115
|
orderId: string;
|
|
4075
4116
|
state: "CREATED" | "PROGRESSING" | "COMPLETE";
|
|
4076
|
-
timeCompleted:
|
|
4117
|
+
timeCompleted: string | null;
|
|
4077
4118
|
id: string;
|
|
4078
4119
|
createdAt: string;
|
|
4079
4120
|
updatedAt: string;
|
|
@@ -4980,6 +5021,184 @@ export declare const app: Elysia<"", {
|
|
|
4980
5021
|
};
|
|
4981
5022
|
};
|
|
4982
5023
|
};
|
|
5024
|
+
} & {
|
|
5025
|
+
crm: {
|
|
5026
|
+
discount: {};
|
|
5027
|
+
} & {
|
|
5028
|
+
discount: {
|
|
5029
|
+
get: {
|
|
5030
|
+
body: unknown;
|
|
5031
|
+
params: {};
|
|
5032
|
+
query: {
|
|
5033
|
+
companyId?: string | undefined;
|
|
5034
|
+
pagination: {
|
|
5035
|
+
size: number;
|
|
5036
|
+
page: number;
|
|
5037
|
+
};
|
|
5038
|
+
};
|
|
5039
|
+
headers: unknown;
|
|
5040
|
+
response: {
|
|
5041
|
+
200: {
|
|
5042
|
+
totalCount: number;
|
|
5043
|
+
totalPage: number;
|
|
5044
|
+
result: {
|
|
5045
|
+
companyId: string;
|
|
5046
|
+
name: string;
|
|
5047
|
+
description: string | null;
|
|
5048
|
+
applyType: "ORDER" | "ITEM";
|
|
5049
|
+
discountType: "PERCENTAGE" | "FIXED";
|
|
5050
|
+
timeStart: Date;
|
|
5051
|
+
timeEnd: Date;
|
|
5052
|
+
state: string | null;
|
|
5053
|
+
id: string;
|
|
5054
|
+
createdAt: string;
|
|
5055
|
+
updatedAt: string;
|
|
5056
|
+
deletedAt: string | null;
|
|
5057
|
+
}[];
|
|
5058
|
+
};
|
|
5059
|
+
422: {
|
|
5060
|
+
type: "validation";
|
|
5061
|
+
on: string;
|
|
5062
|
+
summary?: string;
|
|
5063
|
+
message?: string;
|
|
5064
|
+
found?: unknown;
|
|
5065
|
+
property?: string;
|
|
5066
|
+
expected?: string;
|
|
5067
|
+
};
|
|
5068
|
+
};
|
|
5069
|
+
};
|
|
5070
|
+
};
|
|
5071
|
+
} & {
|
|
5072
|
+
discount: {
|
|
5073
|
+
post: {
|
|
5074
|
+
body: {
|
|
5075
|
+
description?: string | null | undefined;
|
|
5076
|
+
state?: string | null | undefined;
|
|
5077
|
+
name: string;
|
|
5078
|
+
companyId: string;
|
|
5079
|
+
applyType: "ORDER" | "ITEM";
|
|
5080
|
+
discountType: "PERCENTAGE" | "FIXED";
|
|
5081
|
+
timeStart: Date;
|
|
5082
|
+
timeEnd: Date;
|
|
5083
|
+
};
|
|
5084
|
+
params: {};
|
|
5085
|
+
query: unknown;
|
|
5086
|
+
headers: unknown;
|
|
5087
|
+
response: {
|
|
5088
|
+
200: {
|
|
5089
|
+
name: string;
|
|
5090
|
+
id: string;
|
|
5091
|
+
createdAt: string;
|
|
5092
|
+
updatedAt: string;
|
|
5093
|
+
companyId: string;
|
|
5094
|
+
deletedAt: string | null;
|
|
5095
|
+
description: string | null;
|
|
5096
|
+
state: string | null;
|
|
5097
|
+
applyType: "ORDER" | "ITEM";
|
|
5098
|
+
discountType: "PERCENTAGE" | "FIXED";
|
|
5099
|
+
timeStart: Date;
|
|
5100
|
+
timeEnd: Date;
|
|
5101
|
+
};
|
|
5102
|
+
422: {
|
|
5103
|
+
type: "validation";
|
|
5104
|
+
on: string;
|
|
5105
|
+
summary?: string;
|
|
5106
|
+
message?: string;
|
|
5107
|
+
found?: unknown;
|
|
5108
|
+
property?: string;
|
|
5109
|
+
expected?: string;
|
|
5110
|
+
};
|
|
5111
|
+
};
|
|
5112
|
+
};
|
|
5113
|
+
};
|
|
5114
|
+
} & {
|
|
5115
|
+
discount: {
|
|
5116
|
+
":id": {
|
|
5117
|
+
put: {
|
|
5118
|
+
body: {
|
|
5119
|
+
name?: string | undefined;
|
|
5120
|
+
companyId?: string | undefined;
|
|
5121
|
+
description?: string | null | undefined;
|
|
5122
|
+
state?: string | null | undefined;
|
|
5123
|
+
applyType?: "ORDER" | "ITEM" | undefined;
|
|
5124
|
+
discountType?: "PERCENTAGE" | "FIXED" | undefined;
|
|
5125
|
+
timeStart?: Date | undefined;
|
|
5126
|
+
timeEnd?: Date | undefined;
|
|
5127
|
+
};
|
|
5128
|
+
params: {
|
|
5129
|
+
id: string;
|
|
5130
|
+
};
|
|
5131
|
+
query: unknown;
|
|
5132
|
+
headers: unknown;
|
|
5133
|
+
response: {
|
|
5134
|
+
200: {
|
|
5135
|
+
companyId: string;
|
|
5136
|
+
name: string;
|
|
5137
|
+
description: string | null;
|
|
5138
|
+
applyType: "ORDER" | "ITEM";
|
|
5139
|
+
discountType: "PERCENTAGE" | "FIXED";
|
|
5140
|
+
timeStart: Date;
|
|
5141
|
+
timeEnd: Date;
|
|
5142
|
+
state: string | null;
|
|
5143
|
+
id: string;
|
|
5144
|
+
createdAt: string;
|
|
5145
|
+
updatedAt: string;
|
|
5146
|
+
deletedAt: string | null;
|
|
5147
|
+
};
|
|
5148
|
+
404: "Хөнгөлөлт олдсонгүй.";
|
|
5149
|
+
422: {
|
|
5150
|
+
type: "validation";
|
|
5151
|
+
on: string;
|
|
5152
|
+
summary?: string;
|
|
5153
|
+
message?: string;
|
|
5154
|
+
found?: unknown;
|
|
5155
|
+
property?: string;
|
|
5156
|
+
expected?: string;
|
|
5157
|
+
};
|
|
5158
|
+
};
|
|
5159
|
+
};
|
|
5160
|
+
};
|
|
5161
|
+
};
|
|
5162
|
+
} & {
|
|
5163
|
+
discount: {
|
|
5164
|
+
":id": {
|
|
5165
|
+
delete: {
|
|
5166
|
+
body: unknown;
|
|
5167
|
+
params: {
|
|
5168
|
+
id: string;
|
|
5169
|
+
};
|
|
5170
|
+
query: unknown;
|
|
5171
|
+
headers: unknown;
|
|
5172
|
+
response: {
|
|
5173
|
+
200: {
|
|
5174
|
+
name: string;
|
|
5175
|
+
id: string;
|
|
5176
|
+
createdAt: string;
|
|
5177
|
+
updatedAt: string;
|
|
5178
|
+
companyId: string;
|
|
5179
|
+
deletedAt: string | null;
|
|
5180
|
+
description: string | null;
|
|
5181
|
+
state: string | null;
|
|
5182
|
+
applyType: "ORDER" | "ITEM";
|
|
5183
|
+
discountType: "PERCENTAGE" | "FIXED";
|
|
5184
|
+
timeStart: Date;
|
|
5185
|
+
timeEnd: Date;
|
|
5186
|
+
};
|
|
5187
|
+
404: "Хөнгөлөлт олдсонгүй.";
|
|
5188
|
+
422: {
|
|
5189
|
+
type: "validation";
|
|
5190
|
+
on: string;
|
|
5191
|
+
summary?: string;
|
|
5192
|
+
message?: string;
|
|
5193
|
+
found?: unknown;
|
|
5194
|
+
property?: string;
|
|
5195
|
+
expected?: string;
|
|
5196
|
+
};
|
|
5197
|
+
};
|
|
5198
|
+
};
|
|
5199
|
+
};
|
|
5200
|
+
};
|
|
5201
|
+
};
|
|
4983
5202
|
};
|
|
4984
5203
|
} & {
|
|
4985
5204
|
api: {
|