telegram-jobs-contract 1.0.20 → 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.
- package/dist/contracts/jobs.contract.d.ts +5 -5
- package/dist/contracts/jobs.contract.js +5 -5
- package/dist/index.d.ts +6 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas/errors.d.ts +1 -0
- package/dist/schemas/errors.d.ts.map +1 -1
- package/dist/schemas/errors.js +0 -2
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -3304,7 +3304,7 @@ import { ChannelSchema, CategorySchema, ExploreChannelsResponseSchema } from './
|
|
|
3304
3304
|
import { UserPreferencesSchema, NotificationSettingsSchema, QuietHoursSchema } from './schemas/user';
|
|
3305
3305
|
import { BundleSchema } from './schemas/bundles';
|
|
3306
3306
|
import { PaginationSchema } from './schemas/common';
|
|
3307
|
-
|
|
3307
|
+
export { ErrorResponse, SuccessResponse } from './schemas/errors';
|
|
3308
3308
|
export type Job = z.infer<typeof JobSchema>;
|
|
3309
3309
|
export type JobFilters = z.infer<typeof JobFiltersSchema>;
|
|
3310
3310
|
export type JobsResponse = z.infer<typeof JobsResponseSchema>;
|
|
@@ -3318,5 +3318,4 @@ export type NotificationSettings = z.infer<typeof NotificationSettingsSchema>;
|
|
|
3318
3318
|
export type QuietHours = z.infer<typeof QuietHoursSchema>;
|
|
3319
3319
|
export type Bundle = z.infer<typeof BundleSchema>;
|
|
3320
3320
|
export type Pagination = z.infer<typeof PaginationSchema>;
|
|
3321
|
-
export type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
|
|
3322
3321
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EA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,CACrC,CAAC;AAGF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAGlD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/schemas/errors.d.ts
CHANGED
|
@@ -26,4 +26,5 @@ export declare const SuccessResponseSchema: <T extends z.ZodTypeAny>(dataSchema:
|
|
|
26
26
|
message: z.ZodString;
|
|
27
27
|
data: T;
|
|
28
28
|
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
29
|
+
export type SuccessResponse<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof SuccessResponseSchema<T>>>;
|
|
29
30
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -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(),
|