@kl1/contracts 1.4.7 → 1.4.9
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/api-contracts/src/company/index.d.ts +5 -5
- package/dist/api-contracts/src/company/index.d.ts.map +1 -1
- package/dist/api-contracts/src/contact/index.d.ts +3 -3
- package/dist/api-contracts/src/contract.d.ts +8 -8
- package/dist/index.js +118 -123
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -123
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -440,7 +440,7 @@ export declare const companyContract: {
|
|
440
440
|
error?: any;
|
441
441
|
}>;
|
442
442
|
};
|
443
|
-
path: "cs/
|
443
|
+
path: "cs/company";
|
444
444
|
};
|
445
445
|
update: {
|
446
446
|
body: z.ZodObject<{
|
@@ -882,7 +882,7 @@ export declare const companyContract: {
|
|
882
882
|
error?: any;
|
883
883
|
}>;
|
884
884
|
};
|
885
|
-
path: "cs/
|
885
|
+
path: "cs/company/:id";
|
886
886
|
};
|
887
887
|
delete: {
|
888
888
|
body: null;
|
@@ -958,7 +958,7 @@ export declare const companyContract: {
|
|
958
958
|
error?: any;
|
959
959
|
}>;
|
960
960
|
};
|
961
|
-
path: "cs/
|
961
|
+
path: "cs/company/:id";
|
962
962
|
};
|
963
963
|
getById: {
|
964
964
|
summary: "Get a company by id";
|
@@ -1311,7 +1311,7 @@ export declare const companyContract: {
|
|
1311
1311
|
error?: any;
|
1312
1312
|
}>;
|
1313
1313
|
};
|
1314
|
-
path: "
|
1314
|
+
path: "ccs/api/v1/company/:id";
|
1315
1315
|
};
|
1316
1316
|
getAll: {
|
1317
1317
|
summary: "Get all companies";
|
@@ -1720,7 +1720,7 @@ export declare const companyContract: {
|
|
1720
1720
|
error?: any;
|
1721
1721
|
}>;
|
1722
1722
|
};
|
1723
|
-
path: "
|
1723
|
+
path: "ccs/api/v1/company";
|
1724
1724
|
};
|
1725
1725
|
};
|
1726
1726
|
//# sourceM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0H1B,CAAC"}
|
@@ -1187,7 +1187,7 @@ export declare const contactContract: {
|
|
1187
1187
|
error?: any;
|
1188
1188
|
}>;
|
1189
1189
|
};
|
1190
|
-
path: "
|
1190
|
+
path: "ccs/api/v1/contact";
|
1191
1191
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
1192
1192
|
'x-tenant': z.ZodString;
|
1193
1193
|
'x-service-token': z.ZodString;
|
@@ -10232,7 +10232,7 @@ export declare const contactContract: {
|
|
10232
10232
|
error?: any;
|
10233
10233
|
}>;
|
10234
10234
|
};
|
10235
|
-
path: "
|
10235
|
+
path: "ccs/api/v1/contact/check/phone";
|
10236
10236
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
10237
10237
|
'x-tenant': z.ZodString;
|
10238
10238
|
'x-service-token': z.ZodString;
|
@@ -10326,7 +10326,7 @@ export declare const contactContract: {
|
|
10326
10326
|
error?: any;
|
10327
10327
|
}>;
|
10328
10328
|
};
|
10329
|
-
path: "
|
10329
|
+
path: "ccs/api/v1/contact/check/email";
|
10330
10330
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
10331
10331
|
'x-tenant': z.ZodString;
|
10332
10332
|
'x-service-token': z.ZodString;
|
@@ -38819,7 +38819,7 @@ export declare const apiContract: {
|
|
38819
38819
|
error?: any;
|
38820
38820
|
}>;
|
38821
38821
|
};
|
38822
|
-
path: "cs/
|
38822
|
+
path: "cs/company";
|
38823
38823
|
};
|
38824
38824
|
update: {
|
38825
38825
|
body: import("zod").ZodObject<{
|
@@ -39261,7 +39261,7 @@ export declare const apiContract: {
|
|
39261
39261
|
error?: any;
|
39262
39262
|
}>;
|
39263
39263
|
};
|
39264
|
-
path: "cs/
|
39264
|
+
path: "cs/company/:id";
|
39265
39265
|
};
|
39266
39266
|
delete: {
|
39267
39267
|
body: null;
|
@@ -39337,7 +39337,7 @@ export declare const apiContract: {
|
|
39337
39337
|
error?: any;
|
39338
39338
|
}>;
|
39339
39339
|
};
|
39340
|
-
path: "cs/
|
39340
|
+
path: "cs/company/:id";
|
39341
39341
|
};
|
39342
39342
|
getById: {
|
39343
39343
|
summary: "Get a company by id";
|
@@ -39690,7 +39690,7 @@ export declare const apiContract: {
|
|
39690
39690
|
error?: any;
|
39691
39691
|
}>;
|
39692
39692
|
};
|
39693
|
-
path: "
|
39693
|
+
path: "ccs/api/v1/company/:id";
|
39694
39694
|
};
|
39695
39695
|
getAll: {
|
39696
39696
|
summary: "Get all companies";
|
@@ -40099,7 +40099,7 @@ export declare const apiContract: {
|
|
40099
40099
|
error?: any;
|
40100
40100
|
}>;
|
40101
40101
|
};
|
40102
|
-
path: "
|
40102
|
+
path: "ccs/api/v1/company";
|
40103
40103
|
};
|
40104
40104
|
};
|
40105
40105
|
evaluateForm: {
|
@@ -42922,7 +42922,7 @@ export declare const contactContract: {
|
|
42922
42922
|
error?: any;
|
42923
42923
|
}>;
|
42924
42924
|
};
|
42925
|
-
path: "
|
42925
|
+
path: "ccs/api/v1/contact";
|
42926
42926
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
42927
42927
|
'x-tenant': import("zod").ZodString;
|
42928
42928
|
'x-service-token': import("zod").ZodString;
|
@@ -51967,7 +51967,7 @@ export declare const contactContract: {
|
|
51967
51967
|
error?: any;
|
51968
51968
|
}>;
|
51969
51969
|
};
|
51970
|
-
path: "
|
51970
|
+
path: "ccs/api/v1/contact/check/phone";
|
51971
51971
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
51972
51972
|
'x-tenant': import("zod").ZodString;
|
51973
51973
|
'x-service-token': import("zod").ZodString;
|
@@ -52061,7 +52061,7 @@ export declare const contactContract: {
|
|
52061
52061
|
error?: any;
|
52062
52062
|
}>;
|
52063
52063
|
};
|
52064
|
-
path: "
|
52064
|
+
path: "ccs/api/v1/contact/check/email";
|
52065
52065
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
52066
52066
|
'x-tenant': import("zod").ZodString;
|
52067
52067
|
'x-service-token': import("zod").ZodString;
|
package/dist/index.js
CHANGED
@@ -3539,134 +3539,129 @@ var CompanyContractsValidationSchema = {
|
|
3539
3539
|
};
|
3540
3540
|
|
3541
3541
|
// src/company/index.ts
|
3542
|
-
var companyContract = (0, import_core10.initContract)().router(
|
3543
|
-
{
|
3544
|
-
|
3545
|
-
|
3546
|
-
|
3547
|
-
|
3548
|
-
|
3549
|
-
|
3550
|
-
|
3551
|
-
|
3552
|
-
|
3553
|
-
|
3554
|
-
|
3555
|
-
|
3556
|
-
|
3557
|
-
|
3558
|
-
|
3559
|
-
|
3560
|
-
|
3561
|
-
|
3562
|
-
422: DefaultUnprocessibleSchema
|
3563
|
-
},
|
3564
|
-
body: CompanyContractsValidationSchema.create.request,
|
3565
|
-
summary: "Create a new company"
|
3542
|
+
var companyContract = (0, import_core10.initContract)().router({
|
3543
|
+
create: {
|
3544
|
+
method: "POST",
|
3545
|
+
path: "cs/company",
|
3546
|
+
responses: {
|
3547
|
+
201: DefaultSuccessResponseSchema.extend({
|
3548
|
+
data: CompanyContractsValidationSchema.create.response
|
3549
|
+
}),
|
3550
|
+
400: import_zod48.default.object({
|
3551
|
+
message: import_zod48.default.string()
|
3552
|
+
}),
|
3553
|
+
409: import_zod48.default.object({
|
3554
|
+
message: import_zod48.default.string()
|
3555
|
+
}),
|
3556
|
+
500: import_zod48.default.object({
|
3557
|
+
message: import_zod48.default.string()
|
3558
|
+
}),
|
3559
|
+
401: DefaultUnauthorizedSchema,
|
3560
|
+
404: DefaultNotFoundSchema,
|
3561
|
+
422: DefaultUnprocessibleSchema
|
3566
3562
|
},
|
3567
|
-
|
3568
|
-
|
3569
|
-
|
3570
|
-
|
3571
|
-
|
3563
|
+
body: CompanyContractsValidationSchema.create.request,
|
3564
|
+
summary: "Create a new company"
|
3565
|
+
},
|
3566
|
+
update: {
|
3567
|
+
method: "PATCH",
|
3568
|
+
path: "cs/company/:id",
|
3569
|
+
pathParams: import_zod48.default.object({
|
3570
|
+
id: import_zod48.default.string().uuid()
|
3571
|
+
}),
|
3572
|
+
responses: {
|
3573
|
+
201: DefaultSuccessResponseSchema.extend({
|
3574
|
+
data: CompanyContractsValidationSchema.create.response
|
3572
3575
|
}),
|
3573
|
-
|
3574
|
-
|
3575
|
-
|
3576
|
-
|
3577
|
-
|
3578
|
-
|
3579
|
-
|
3580
|
-
|
3581
|
-
|
3582
|
-
|
3583
|
-
|
3584
|
-
|
3585
|
-
}),
|
3586
|
-
401: DefaultUnauthorizedSchema,
|
3587
|
-
404: DefaultNotFoundSchema,
|
3588
|
-
422: DefaultUnprocessibleSchema
|
3589
|
-
},
|
3590
|
-
body: CompanyContractsValidationSchema.create.request.partial(),
|
3591
|
-
summary: "Update a company"
|
3576
|
+
400: import_zod48.default.object({
|
3577
|
+
message: import_zod48.default.string()
|
3578
|
+
}),
|
3579
|
+
409: import_zod48.default.object({
|
3580
|
+
message: import_zod48.default.string()
|
3581
|
+
}),
|
3582
|
+
500: import_zod48.default.object({
|
3583
|
+
message: import_zod48.default.string()
|
3584
|
+
}),
|
3585
|
+
401: DefaultUnauthorizedSchema,
|
3586
|
+
404: DefaultNotFoundSchema,
|
3587
|
+
422: DefaultUnprocessibleSchema
|
3592
3588
|
},
|
3593
|
-
|
3594
|
-
|
3595
|
-
|
3596
|
-
|
3597
|
-
|
3589
|
+
body: CompanyContractsValidationSchema.create.request.partial(),
|
3590
|
+
summary: "Update a company"
|
3591
|
+
},
|
3592
|
+
delete: {
|
3593
|
+
method: "DELETE",
|
3594
|
+
path: "cs/company/:id",
|
3595
|
+
pathParams: import_zod48.default.object({
|
3596
|
+
id: import_zod48.default.string().uuid()
|
3597
|
+
}),
|
3598
|
+
responses: {
|
3599
|
+
201: DefaultSuccessResponseSchema.extend({
|
3600
|
+
message: import_zod48.default.string()
|
3598
3601
|
}),
|
3599
|
-
|
3600
|
-
|
3601
|
-
|
3602
|
-
|
3603
|
-
|
3604
|
-
|
3605
|
-
|
3606
|
-
|
3607
|
-
|
3608
|
-
|
3609
|
-
|
3610
|
-
|
3611
|
-
}),
|
3612
|
-
401: DefaultUnauthorizedSchema,
|
3613
|
-
404: DefaultNotFoundSchema,
|
3614
|
-
422: DefaultUnprocessibleSchema
|
3615
|
-
},
|
3616
|
-
body: null,
|
3617
|
-
summary: "Delete a company"
|
3602
|
+
400: import_zod48.default.object({
|
3603
|
+
message: import_zod48.default.string()
|
3604
|
+
}),
|
3605
|
+
409: import_zod48.default.object({
|
3606
|
+
message: import_zod48.default.string()
|
3607
|
+
}),
|
3608
|
+
500: import_zod48.default.object({
|
3609
|
+
message: import_zod48.default.string()
|
3610
|
+
}),
|
3611
|
+
401: DefaultUnauthorizedSchema,
|
3612
|
+
404: DefaultNotFoundSchema,
|
3613
|
+
422: DefaultUnprocessibleSchema
|
3618
3614
|
},
|
3619
|
-
|
3620
|
-
|
3621
|
-
|
3622
|
-
|
3623
|
-
|
3624
|
-
|
3625
|
-
|
3626
|
-
|
3627
|
-
|
3628
|
-
|
3629
|
-
|
3630
|
-
|
3631
|
-
|
3632
|
-
|
3633
|
-
|
3634
|
-
|
3635
|
-
|
3636
|
-
|
3637
|
-
|
3638
|
-
|
3639
|
-
|
3640
|
-
|
3615
|
+
body: null,
|
3616
|
+
summary: "Delete a company"
|
3617
|
+
},
|
3618
|
+
getById: {
|
3619
|
+
method: "GET",
|
3620
|
+
path: "ccs/api/v1/company/:id",
|
3621
|
+
pathParams: CompanyContractsValidationSchema.getById.request,
|
3622
|
+
responses: {
|
3623
|
+
200: DefaultSuccessResponseSchema.extend({
|
3624
|
+
data: CompanyContractsValidationSchema.create.response
|
3625
|
+
}),
|
3626
|
+
400: import_zod48.default.object({
|
3627
|
+
message: import_zod48.default.string()
|
3628
|
+
}),
|
3629
|
+
409: import_zod48.default.object({
|
3630
|
+
message: import_zod48.default.string()
|
3631
|
+
}),
|
3632
|
+
500: import_zod48.default.object({
|
3633
|
+
message: import_zod48.default.string()
|
3634
|
+
}),
|
3635
|
+
401: DefaultUnauthorizedSchema,
|
3636
|
+
404: DefaultNotFoundSchema,
|
3637
|
+
422: DefaultUnprocessibleSchema
|
3641
3638
|
},
|
3642
|
-
|
3643
|
-
method: "GET",
|
3644
|
-
path: "",
|
3645
|
-
query: CompanyContractsValidationSchema.getAll.request,
|
3646
|
-
responses: {
|
3647
|
-
200: DefaultSuccessResponseSchema.extend({
|
3648
|
-
...CompanyContractsValidationSchema.getAll.response
|
3649
|
-
}),
|
3650
|
-
400: import_zod48.default.object({
|
3651
|
-
message: import_zod48.default.string()
|
3652
|
-
}),
|
3653
|
-
409: import_zod48.default.object({
|
3654
|
-
message: import_zod48.default.string()
|
3655
|
-
}),
|
3656
|
-
500: import_zod48.default.object({
|
3657
|
-
message: import_zod48.default.string()
|
3658
|
-
}),
|
3659
|
-
401: DefaultUnauthorizedSchema,
|
3660
|
-
404: DefaultNotFoundSchema,
|
3661
|
-
422: DefaultUnprocessibleSchema
|
3662
|
-
},
|
3663
|
-
summary: "Get all companies"
|
3664
|
-
}
|
3639
|
+
summary: "Get a company by id"
|
3665
3640
|
},
|
3666
|
-
{
|
3667
|
-
|
3641
|
+
getAll: {
|
3642
|
+
method: "GET",
|
3643
|
+
path: "ccs/api/v1/company",
|
3644
|
+
query: CompanyContractsValidationSchema.getAll.request,
|
3645
|
+
responses: {
|
3646
|
+
200: DefaultSuccessResponseSchema.extend({
|
3647
|
+
...CompanyContractsValidationSchema.getAll.response
|
3648
|
+
}),
|
3649
|
+
400: import_zod48.default.object({
|
3650
|
+
message: import_zod48.default.string()
|
3651
|
+
}),
|
3652
|
+
409: import_zod48.default.object({
|
3653
|
+
message: import_zod48.default.string()
|
3654
|
+
}),
|
3655
|
+
500: import_zod48.default.object({
|
3656
|
+
message: import_zod48.default.string()
|
3657
|
+
}),
|
3658
|
+
401: DefaultUnauthorizedSchema,
|
3659
|
+
404: DefaultNotFoundSchema,
|
3660
|
+
422: DefaultUnprocessibleSchema
|
3661
|
+
},
|
3662
|
+
summary: "Get all companies"
|
3668
3663
|
}
|
3669
|
-
);
|
3664
|
+
});
|
3670
3665
|
|
3671
3666
|
// src/contact/index.ts
|
3672
3667
|
var import_core11 = require("@ts-rest/core");
|
@@ -3928,7 +3923,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
3928
3923
|
{
|
3929
3924
|
create: {
|
3930
3925
|
method: "POST",
|
3931
|
-
path: "
|
3926
|
+
path: "ccs/api/v1/contact",
|
3932
3927
|
body: ContactContractValidationSchema.create.request,
|
3933
3928
|
responses: {
|
3934
3929
|
201: DefaultSuccessResponseSchema.extend({
|
@@ -4140,7 +4135,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4140
4135
|
},
|
4141
4136
|
checkContactPhone: {
|
4142
4137
|
method: "POST",
|
4143
|
-
path: "
|
4138
|
+
path: "ccs/api/v1/contact/check/phone",
|
4144
4139
|
responses: {
|
4145
4140
|
200: DefaultSuccessResponseSchema.extend({
|
4146
4141
|
existed: ContactContractValidationSchema.checkContactPhone.response
|
@@ -4163,7 +4158,7 @@ var contactContract = (0, import_core11.initContract)().router(
|
|
4163
4158
|
},
|
4164
4159
|
checkContactEmail: {
|
4165
4160
|
method: "POST",
|
4166
|
-
path: "
|
4161
|
+
path: "ccs/api/v1/contact/check/email",
|
4167
4162
|
responses: {
|
4168
4163
|
200: DefaultSuccessResponseSchema.extend({
|
4169
4164
|
existed: ContactContractValidationSchema.checkContactEmail.response
|