autosync_backend2 1.1.26 → 1.1.27
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 +24 -181
- package/dist/index.js +564 -650
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -311,34 +311,20 @@ export declare const app: Elysia<"", {
|
|
|
311
311
|
userId: import("@sinclair/typebox").TString;
|
|
312
312
|
permissions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
313
313
|
}>;
|
|
314
|
-
readonly "
|
|
314
|
+
readonly "CrmCpOrderItemModel.create": import("@sinclair/typebox").TObject<{
|
|
315
315
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
316
|
-
quantity: import("@sinclair/typebox").TInteger;
|
|
317
316
|
cpOrderId: import("@sinclair/typebox").TString;
|
|
318
|
-
cpOrderSpPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
319
|
-
companyServiceKindId: import("@sinclair/typebox").TString;
|
|
320
|
-
priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
321
|
-
}>;
|
|
322
|
-
readonly "CrmCpOrderServiceModel.update": import("@sinclair/typebox").TObject<{
|
|
323
|
-
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
324
|
-
priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
325
|
-
}>;
|
|
326
|
-
readonly "CrmCpOrderServiceModel.select": import("@sinclair/typebox").TObject<{
|
|
327
|
-
cpOrderId: import("@sinclair/typebox").TString;
|
|
328
|
-
}>;
|
|
329
|
-
readonly "CrmCpOrderProductModel.create": import("@sinclair/typebox").TObject<{
|
|
330
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
331
317
|
quantity: import("@sinclair/typebox").TInteger;
|
|
332
|
-
companyProductId: import("@sinclair/typebox").TString
|
|
333
|
-
|
|
318
|
+
companyProductId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
319
|
+
companyServiceKindId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
334
320
|
cpOrderSpPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
335
321
|
priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
336
322
|
}>;
|
|
337
|
-
readonly "
|
|
323
|
+
readonly "CrmCpOrderItemModel.update": import("@sinclair/typebox").TObject<{
|
|
338
324
|
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
339
325
|
priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
340
326
|
}>;
|
|
341
|
-
readonly "
|
|
327
|
+
readonly "CrmCpOrderItemModel.select": import("@sinclair/typebox").TObject<{
|
|
342
328
|
cpOrderId: import("@sinclair/typebox").TString;
|
|
343
329
|
}>;
|
|
344
330
|
readonly "CrmCpOrderPaymentModel.create": import("@sinclair/typebox").TObject<{
|
|
@@ -3216,9 +3202,9 @@ export declare const app: Elysia<"", {
|
|
|
3216
3202
|
"cp-order": {};
|
|
3217
3203
|
} & {
|
|
3218
3204
|
"cp-order": {
|
|
3219
|
-
|
|
3205
|
+
item: {};
|
|
3220
3206
|
} & {
|
|
3221
|
-
|
|
3207
|
+
item: {
|
|
3222
3208
|
get: {
|
|
3223
3209
|
body: unknown;
|
|
3224
3210
|
params: {};
|
|
@@ -3240,158 +3226,11 @@ export declare const app: Elysia<"", {
|
|
|
3240
3226
|
createdAt: string;
|
|
3241
3227
|
updatedAt: string;
|
|
3242
3228
|
deletedAt: string | null;
|
|
3243
|
-
};
|
|
3244
|
-
|
|
3245
|
-
cpOrderId: string;
|
|
3246
|
-
cpOrderSpPackageId: string | null;
|
|
3247
|
-
companyServiceKindId: string;
|
|
3248
|
-
quantity: number;
|
|
3249
|
-
priceUnit: number;
|
|
3250
|
-
priceTotal: number;
|
|
3251
|
-
name: string | null;
|
|
3252
|
-
id: string;
|
|
3253
|
-
createdAt: string;
|
|
3254
|
-
updatedAt: string;
|
|
3255
|
-
deletedAt: string | null;
|
|
3256
|
-
};
|
|
3257
|
-
}[];
|
|
3258
|
-
422: {
|
|
3259
|
-
type: "validation";
|
|
3260
|
-
on: string;
|
|
3261
|
-
summary?: string;
|
|
3262
|
-
message?: string;
|
|
3263
|
-
found?: unknown;
|
|
3264
|
-
property?: string;
|
|
3265
|
-
expected?: string;
|
|
3266
|
-
};
|
|
3267
|
-
};
|
|
3268
|
-
};
|
|
3269
|
-
};
|
|
3270
|
-
} & {
|
|
3271
|
-
service: {
|
|
3272
|
-
post: {
|
|
3273
|
-
body: {
|
|
3274
|
-
name?: string | null | undefined;
|
|
3275
|
-
priceUnit?: number | undefined;
|
|
3276
|
-
cpOrderSpPackageId?: string | null | undefined;
|
|
3277
|
-
quantity: number;
|
|
3278
|
-
cpOrderId: string;
|
|
3279
|
-
companyServiceKindId: string;
|
|
3280
|
-
};
|
|
3281
|
-
params: {};
|
|
3282
|
-
query: unknown;
|
|
3283
|
-
headers: unknown;
|
|
3284
|
-
response: {
|
|
3285
|
-
200: {
|
|
3286
|
-
name: string | null;
|
|
3287
|
-
id: string;
|
|
3288
|
-
createdAt: string;
|
|
3289
|
-
updatedAt: string;
|
|
3290
|
-
deletedAt: string | null;
|
|
3291
|
-
priceTotal: number;
|
|
3292
|
-
quantity: number;
|
|
3293
|
-
priceUnit: number;
|
|
3294
|
-
cpOrderId: string;
|
|
3295
|
-
cpOrderSpPackageId: string | null;
|
|
3296
|
-
companyServiceKindId: string;
|
|
3297
|
-
};
|
|
3298
|
-
404: "Үйлчилгээний төрөл олдсонгүй.";
|
|
3299
|
-
422: {
|
|
3300
|
-
type: "validation";
|
|
3301
|
-
on: string;
|
|
3302
|
-
summary?: string;
|
|
3303
|
-
message?: string;
|
|
3304
|
-
found?: unknown;
|
|
3305
|
-
property?: string;
|
|
3306
|
-
expected?: string;
|
|
3307
|
-
};
|
|
3308
|
-
};
|
|
3309
|
-
};
|
|
3310
|
-
};
|
|
3311
|
-
} & {
|
|
3312
|
-
service: {
|
|
3313
|
-
":id": {
|
|
3314
|
-
put: {
|
|
3315
|
-
body: {
|
|
3316
|
-
quantity?: number | undefined;
|
|
3317
|
-
priceUnit?: number | undefined;
|
|
3318
|
-
};
|
|
3319
|
-
params: {
|
|
3320
|
-
id: string;
|
|
3321
|
-
};
|
|
3322
|
-
query: unknown;
|
|
3323
|
-
headers: unknown;
|
|
3324
|
-
response: {
|
|
3325
|
-
200: {
|
|
3326
|
-
cpOrderId: string;
|
|
3327
|
-
cpOrderSpPackageId: string | null;
|
|
3328
|
-
companyServiceKindId: string;
|
|
3329
|
-
quantity: number;
|
|
3330
|
-
priceUnit: number;
|
|
3331
|
-
priceTotal: number;
|
|
3332
|
-
name: string | null;
|
|
3333
|
-
id: string;
|
|
3334
|
-
createdAt: string;
|
|
3335
|
-
updatedAt: string;
|
|
3336
|
-
deletedAt: string | null;
|
|
3337
|
-
};
|
|
3338
|
-
404: "Үйлчилгээ олдсонгүй.";
|
|
3339
|
-
422: {
|
|
3340
|
-
type: "validation";
|
|
3341
|
-
on: string;
|
|
3342
|
-
summary?: string;
|
|
3343
|
-
message?: string;
|
|
3344
|
-
found?: unknown;
|
|
3345
|
-
property?: string;
|
|
3346
|
-
expected?: string;
|
|
3347
|
-
};
|
|
3348
|
-
};
|
|
3349
|
-
};
|
|
3350
|
-
};
|
|
3351
|
-
};
|
|
3352
|
-
} & {
|
|
3353
|
-
service: {
|
|
3354
|
-
":id": {
|
|
3355
|
-
delete: {
|
|
3356
|
-
body: unknown;
|
|
3357
|
-
params: {
|
|
3358
|
-
id: string;
|
|
3359
|
-
};
|
|
3360
|
-
query: unknown;
|
|
3361
|
-
headers: unknown;
|
|
3362
|
-
response: {
|
|
3363
|
-
200: void;
|
|
3364
|
-
422: {
|
|
3365
|
-
type: "validation";
|
|
3366
|
-
on: string;
|
|
3367
|
-
summary?: string;
|
|
3368
|
-
message?: string;
|
|
3369
|
-
found?: unknown;
|
|
3370
|
-
property?: string;
|
|
3371
|
-
expected?: string;
|
|
3372
|
-
};
|
|
3373
|
-
};
|
|
3374
|
-
};
|
|
3375
|
-
};
|
|
3376
|
-
};
|
|
3377
|
-
};
|
|
3378
|
-
} & {
|
|
3379
|
-
"cp-order": {
|
|
3380
|
-
product: {};
|
|
3381
|
-
} & {
|
|
3382
|
-
product: {
|
|
3383
|
-
get: {
|
|
3384
|
-
body: unknown;
|
|
3385
|
-
params: {};
|
|
3386
|
-
query: {
|
|
3387
|
-
cpOrderId: string;
|
|
3388
|
-
};
|
|
3389
|
-
headers: unknown;
|
|
3390
|
-
response: {
|
|
3391
|
-
200: {
|
|
3392
|
-
cp_order_product: {
|
|
3229
|
+
} | null;
|
|
3230
|
+
cp_order_item: {
|
|
3393
3231
|
cpOrderId: string;
|
|
3394
|
-
companyProductId: string;
|
|
3232
|
+
companyProductId: string | null;
|
|
3233
|
+
companyServiceKindId: string | null;
|
|
3395
3234
|
cpOrderSpPackageId: string | null;
|
|
3396
3235
|
quantity: number;
|
|
3397
3236
|
priceUnit: number;
|
|
@@ -3419,7 +3258,7 @@ export declare const app: Elysia<"", {
|
|
|
3419
3258
|
createdAt: string;
|
|
3420
3259
|
updatedAt: string;
|
|
3421
3260
|
deletedAt: string | null;
|
|
3422
|
-
};
|
|
3261
|
+
} | null;
|
|
3423
3262
|
}[];
|
|
3424
3263
|
422: {
|
|
3425
3264
|
type: "validation";
|
|
@@ -3434,14 +3273,15 @@ export declare const app: Elysia<"", {
|
|
|
3434
3273
|
};
|
|
3435
3274
|
};
|
|
3436
3275
|
} & {
|
|
3437
|
-
|
|
3276
|
+
item: {
|
|
3438
3277
|
post: {
|
|
3439
3278
|
body: {
|
|
3440
3279
|
name?: string | null | undefined;
|
|
3441
3280
|
priceUnit?: number | undefined;
|
|
3281
|
+
companyProductId?: string | null | undefined;
|
|
3282
|
+
companyServiceKindId?: string | null | undefined;
|
|
3442
3283
|
cpOrderSpPackageId?: string | null | undefined;
|
|
3443
3284
|
quantity: number;
|
|
3444
|
-
companyProductId: string;
|
|
3445
3285
|
cpOrderId: string;
|
|
3446
3286
|
};
|
|
3447
3287
|
params: {};
|
|
@@ -3457,11 +3297,13 @@ export declare const app: Elysia<"", {
|
|
|
3457
3297
|
priceTotal: number;
|
|
3458
3298
|
quantity: number;
|
|
3459
3299
|
priceUnit: number;
|
|
3460
|
-
companyProductId: string;
|
|
3300
|
+
companyProductId: string | null;
|
|
3461
3301
|
cpOrderId: string;
|
|
3302
|
+
companyServiceKindId: string | null;
|
|
3462
3303
|
cpOrderSpPackageId: string | null;
|
|
3463
3304
|
};
|
|
3464
|
-
404: "Бараа олдсонгүй.";
|
|
3305
|
+
404: "Бараа олдсонгүй." | "Үйлчилгээний төрөл олдсонгүй.";
|
|
3306
|
+
400: "Үйлчилгээний төрөл эсвэл бараа сонгоно уу.";
|
|
3465
3307
|
422: {
|
|
3466
3308
|
type: "validation";
|
|
3467
3309
|
on: string;
|
|
@@ -3475,7 +3317,7 @@ export declare const app: Elysia<"", {
|
|
|
3475
3317
|
};
|
|
3476
3318
|
};
|
|
3477
3319
|
} & {
|
|
3478
|
-
|
|
3320
|
+
item: {
|
|
3479
3321
|
":id": {
|
|
3480
3322
|
put: {
|
|
3481
3323
|
body: {
|
|
@@ -3490,7 +3332,8 @@ export declare const app: Elysia<"", {
|
|
|
3490
3332
|
response: {
|
|
3491
3333
|
200: {
|
|
3492
3334
|
cpOrderId: string;
|
|
3493
|
-
companyProductId: string;
|
|
3335
|
+
companyProductId: string | null;
|
|
3336
|
+
companyServiceKindId: string | null;
|
|
3494
3337
|
cpOrderSpPackageId: string | null;
|
|
3495
3338
|
quantity: number;
|
|
3496
3339
|
priceUnit: number;
|
|
@@ -3501,7 +3344,7 @@ export declare const app: Elysia<"", {
|
|
|
3501
3344
|
updatedAt: string;
|
|
3502
3345
|
deletedAt: string | null;
|
|
3503
3346
|
};
|
|
3504
|
-
404: "
|
|
3347
|
+
404: "Үйлчилгээ олдсонгүй.";
|
|
3505
3348
|
422: {
|
|
3506
3349
|
type: "validation";
|
|
3507
3350
|
on: string;
|
|
@@ -3516,7 +3359,7 @@ export declare const app: Elysia<"", {
|
|
|
3516
3359
|
};
|
|
3517
3360
|
};
|
|
3518
3361
|
} & {
|
|
3519
|
-
|
|
3362
|
+
item: {
|
|
3520
3363
|
":id": {
|
|
3521
3364
|
delete: {
|
|
3522
3365
|
body: unknown;
|