telegram-jobs-contract 1.0.21 → 1.0.22
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.
|
@@ -94,7 +94,7 @@ export declare const jobsContract: {
|
|
|
94
94
|
offset?: number | undefined;
|
|
95
95
|
};
|
|
96
96
|
}>;
|
|
97
|
-
path: "/
|
|
97
|
+
path: "/search";
|
|
98
98
|
responses: {
|
|
99
99
|
200: z.ZodObject<{
|
|
100
100
|
success: z.ZodLiteral<true>;
|
|
@@ -493,7 +493,7 @@ export declare const jobsContract: {
|
|
|
493
493
|
getJobById: {
|
|
494
494
|
summary: "Get job by ID";
|
|
495
495
|
method: "GET";
|
|
496
|
-
path: "
|
|
496
|
+
path: "/:id";
|
|
497
497
|
responses: {
|
|
498
498
|
200: z.ZodObject<{
|
|
499
499
|
success: z.ZodLiteral<true>;
|
|
@@ -794,7 +794,7 @@ export declare const jobsContract: {
|
|
|
794
794
|
summary: "Mark job as viewed by user";
|
|
795
795
|
method: "POST";
|
|
796
796
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
797
|
-
path: "
|
|
797
|
+
path: "/:id/view";
|
|
798
798
|
responses: {
|
|
799
799
|
200: z.ZodObject<{
|
|
800
800
|
success: z.ZodLiteral<true>;
|
|
@@ -870,7 +870,7 @@ export declare const jobsContract: {
|
|
|
870
870
|
}>;
|
|
871
871
|
summary: "Autocomplete tech skills";
|
|
872
872
|
method: "GET";
|
|
873
|
-
path: "/
|
|
873
|
+
path: "/skills/search";
|
|
874
874
|
responses: {
|
|
875
875
|
200: z.ZodObject<{
|
|
876
876
|
success: z.ZodLiteral<true>;
|
|
@@ -910,7 +910,7 @@ export declare const jobsContract: {
|
|
|
910
910
|
}>;
|
|
911
911
|
summary: "Autocomplete job functions";
|
|
912
912
|
method: "GET";
|
|
913
|
-
path: "/
|
|
913
|
+
path: "/functions/search";
|
|
914
914
|
responses: {
|
|
915
915
|
200: z.ZodObject<{
|
|
916
916
|
success: z.ZodLiteral<true>;
|
|
@@ -10,7 +10,7 @@ const c = (0, core_1.initContract)();
|
|
|
10
10
|
exports.jobsContract = c.router({
|
|
11
11
|
searchJobs: {
|
|
12
12
|
method: 'POST',
|
|
13
|
-
path: '/
|
|
13
|
+
path: '/search',
|
|
14
14
|
body: zod_1.z.object({
|
|
15
15
|
filters: jobs_1.JobFiltersSchema,
|
|
16
16
|
pagination: common_1.PaginationSchema,
|
|
@@ -25,7 +25,7 @@ exports.jobsContract = c.router({
|
|
|
25
25
|
},
|
|
26
26
|
getJobById: {
|
|
27
27
|
method: 'GET',
|
|
28
|
-
path: '
|
|
28
|
+
path: '/:id',
|
|
29
29
|
responses: {
|
|
30
30
|
200: (0, errors_1.SuccessResponseSchema)(jobs_1.JobSchema),
|
|
31
31
|
404: errors_1.ErrorResponseSchema,
|
|
@@ -36,7 +36,7 @@ exports.jobsContract = c.router({
|
|
|
36
36
|
},
|
|
37
37
|
markJobAsViewed: {
|
|
38
38
|
method: 'POST',
|
|
39
|
-
path: '
|
|
39
|
+
path: '/:id/view',
|
|
40
40
|
body: zod_1.z.object({}),
|
|
41
41
|
responses: {
|
|
42
42
|
200: (0, errors_1.SuccessResponseSchema)(zod_1.z.object({ success: zod_1.z.boolean() })),
|
|
@@ -48,7 +48,7 @@ exports.jobsContract = c.router({
|
|
|
48
48
|
},
|
|
49
49
|
searchSkills: {
|
|
50
50
|
method: 'GET',
|
|
51
|
-
path: '/
|
|
51
|
+
path: '/skills/search',
|
|
52
52
|
query: zod_1.z.object({ q: zod_1.z.string().optional() }),
|
|
53
53
|
responses: {
|
|
54
54
|
200: (0, errors_1.SuccessResponseSchema)(zod_1.z.array(zod_1.z.string())),
|
|
@@ -58,7 +58,7 @@ exports.jobsContract = c.router({
|
|
|
58
58
|
},
|
|
59
59
|
searchJobFunctions: {
|
|
60
60
|
method: 'GET',
|
|
61
|
-
path: '/
|
|
61
|
+
path: '/functions/search',
|
|
62
62
|
query: zod_1.z.object({ q: zod_1.z.string().optional() }),
|
|
63
63
|
responses: {
|
|
64
64
|
200: (0, errors_1.SuccessResponseSchema)(zod_1.z.array(zod_1.z.string())),
|
package/dist/index.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ export declare const apiContract: {
|
|
|
102
102
|
offset?: number | undefined;
|
|
103
103
|
};
|
|
104
104
|
}>;
|
|
105
|
-
path: "/
|
|
105
|
+
path: "/search";
|
|
106
106
|
responses: {
|
|
107
107
|
200: z.ZodObject<{
|
|
108
108
|
success: z.ZodLiteral<true>;
|
|
@@ -501,7 +501,7 @@ export declare const apiContract: {
|
|
|
501
501
|
getJobById: {
|
|
502
502
|
summary: "Get job by ID";
|
|
503
503
|
method: "GET";
|
|
504
|
-
path: "
|
|
504
|
+
path: "/:id";
|
|
505
505
|
responses: {
|
|
506
506
|
200: z.ZodObject<{
|
|
507
507
|
success: z.ZodLiteral<true>;
|
|
@@ -802,7 +802,7 @@ export declare const apiContract: {
|
|
|
802
802
|
summary: "Mark job as viewed by user";
|
|
803
803
|
method: "POST";
|
|
804
804
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
805
|
-
path: "
|
|
805
|
+
path: "/:id/view";
|
|
806
806
|
responses: {
|
|
807
807
|
200: z.ZodObject<{
|
|
808
808
|
success: z.ZodLiteral<true>;
|
|
@@ -878,7 +878,7 @@ export declare const apiContract: {
|
|
|
878
878
|
}>;
|
|
879
879
|
summary: "Autocomplete tech skills";
|
|
880
880
|
method: "GET";
|
|
881
|
-
path: "/
|
|
881
|
+
path: "/skills/search";
|
|
882
882
|
responses: {
|
|
883
883
|
200: z.ZodObject<{
|
|
884
884
|
success: z.ZodLiteral<true>;
|
|
@@ -918,7 +918,7 @@ export declare const apiContract: {
|
|
|
918
918
|
}>;
|
|
919
919
|
summary: "Autocomplete job functions";
|
|
920
920
|
method: "GET";
|
|
921
|
-
path: "/
|
|
921
|
+
path: "/functions/search";
|
|
922
922
|
responses: {
|
|
923
923
|
200: z.ZodObject<{
|
|
924
924
|
success: z.ZodLiteral<true>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/schemas/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/schemas/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC;;;;;;;;;;;;iEAKvE,CAAC;AAEL,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,KAAK,CAC3D,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAC5C,CAAC"}
|
package/dist/schemas/errors.js
CHANGED
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SuccessResponseSchema = exports.ErrorResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
// Error response schema (matches server ApiResponse.error format)
|
|
6
5
|
exports.ErrorResponseSchema = zod_1.z.object({
|
|
7
6
|
success: zod_1.z.literal(false),
|
|
8
7
|
message: zod_1.z.string(),
|
|
9
8
|
errors: zod_1.z.any().optional(),
|
|
10
9
|
});
|
|
11
|
-
// Success response wrapper (matches server ApiResponse.success format)
|
|
12
10
|
const SuccessResponseSchema = (dataSchema) => zod_1.z.object({
|
|
13
11
|
success: zod_1.z.literal(true),
|
|
14
12
|
message: zod_1.z.string(),
|