@geekmidas/client 10.0.0-alpha.2 → 10.0.0-alpha.21
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/README.md +39 -57
- package/dist/auth-fetcher.cjs +78 -3
- package/dist/auth-fetcher.cjs.map +1 -0
- package/dist/auth-fetcher.d.cts +155 -3
- package/dist/auth-fetcher.d.cts.map +1 -0
- package/dist/auth-fetcher.d.mts +155 -3
- package/dist/auth-fetcher.d.mts.map +1 -0
- package/dist/auth-fetcher.mjs +77 -3
- package/dist/auth-fetcher.mjs.map +1 -0
- package/dist/endpoint-hooks.cjs +11 -15
- package/dist/endpoint-hooks.cjs.map +1 -1
- package/dist/endpoint-hooks.d.cts +4 -7
- package/dist/endpoint-hooks.d.cts.map +1 -1
- package/dist/endpoint-hooks.d.mts +4 -7
- package/dist/endpoint-hooks.d.mts.map +1 -1
- package/dist/endpoint-hooks.mjs +5 -9
- package/dist/endpoint-hooks.mjs.map +1 -1
- package/dist/fetcher.cjs +111 -3
- package/dist/fetcher.cjs.map +1 -0
- package/dist/fetcher.d.cts +23 -3
- package/dist/fetcher.d.cts.map +1 -0
- package/dist/fetcher.d.mts +23 -3
- package/dist/fetcher.d.mts.map +1 -0
- package/dist/fetcher.mjs +86 -2
- package/dist/fetcher.mjs.map +1 -0
- package/dist/index.cjs +9 -6
- package/dist/index.d.cts +6 -5
- package/dist/index.d.mts +6 -5
- package/dist/index.mjs +6 -6
- package/dist/infer.cjs +0 -1
- package/dist/infer.d.cts +130 -2
- package/dist/infer.d.cts.map +1 -0
- package/dist/infer.d.mts +130 -2
- package/dist/infer.d.mts.map +1 -0
- package/dist/infer.mjs +1 -1
- package/dist/methods.cjs +21 -0
- package/dist/methods.cjs.map +1 -0
- package/dist/methods.d.cts +23 -0
- package/dist/methods.d.cts.map +1 -0
- package/dist/methods.d.mts +23 -0
- package/dist/methods.d.mts.map +1 -0
- package/dist/methods.mjs +19 -0
- package/dist/methods.mjs.map +1 -0
- package/dist/openapi-hooks.cjs +13 -16
- package/dist/openapi-hooks.cjs.map +1 -1
- package/dist/openapi-hooks.d.cts +8 -11
- package/dist/openapi-hooks.d.cts.map +1 -1
- package/dist/openapi-hooks.d.mts +8 -11
- package/dist/openapi-hooks.d.mts.map +1 -1
- package/dist/openapi-hooks.mjs +9 -12
- package/dist/openapi-hooks.mjs.map +1 -1
- package/dist/openapi-types.d.cts +5 -6
- package/dist/openapi-types.d.cts.map +1 -1
- package/dist/openapi-types.d.mts +5 -6
- package/dist/openapi-types.d.mts.map +1 -1
- package/dist/react-query.cjs +17 -16
- package/dist/react-query.cjs.map +1 -1
- package/dist/react-query.d.cts +12 -17
- package/dist/react-query.d.cts.map +1 -1
- package/dist/react-query.d.mts +12 -17
- package/dist/react-query.d.mts.map +1 -1
- package/dist/react-query.mjs +10 -9
- package/dist/react-query.mjs.map +1 -1
- package/dist/types.cjs +0 -1
- package/dist/types.d.cts +114 -2
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +114 -2
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +1 -1
- package/package.json +14 -14
- package/dist/auth-fetcher-CBYuL6rx.d.cts +0 -158
- package/dist/auth-fetcher-CBYuL6rx.d.cts.map +0 -1
- package/dist/auth-fetcher-DOj0iz21.mjs +0 -77
- package/dist/auth-fetcher-DOj0iz21.mjs.map +0 -1
- package/dist/auth-fetcher-DxS8zOLc.d.mts +0 -158
- package/dist/auth-fetcher-DxS8zOLc.d.mts.map +0 -1
- package/dist/auth-fetcher-HILABmws.cjs +0 -82
- package/dist/auth-fetcher-HILABmws.cjs.map +0 -1
- package/dist/chunk-CUT6urMc.cjs +0 -30
- package/dist/fetcher-C1xtCKpT.d.mts +0 -25
- package/dist/fetcher-C1xtCKpT.d.mts.map +0 -1
- package/dist/fetcher-CakjC9C7.mjs +0 -88
- package/dist/fetcher-CakjC9C7.mjs.map +0 -1
- package/dist/fetcher-CwnSqc4D.cjs +0 -100
- package/dist/fetcher-CwnSqc4D.cjs.map +0 -1
- package/dist/fetcher-cDrfwN-Y.d.cts +0 -25
- package/dist/fetcher-cDrfwN-Y.d.cts.map +0 -1
- package/dist/infer-6KKCgmg1.cjs +0 -0
- package/dist/infer-DfRq5kIb.d.cts +0 -133
- package/dist/infer-DfRq5kIb.d.cts.map +0 -1
- package/dist/infer-bTirNeNW.d.mts +0 -133
- package/dist/infer-bTirNeNW.d.mts.map +0 -1
- package/dist/infer-uCUq1whM.mjs +0 -0
- package/dist/openapi.cjs +0 -526
- package/dist/openapi.cjs.map +0 -1
- package/dist/openapi.mjs +0 -501
- package/dist/openapi.mjs.map +0 -1
- package/dist/types-BH8WgGrm.mjs +0 -0
- package/dist/types-BMGM6sZc.d.mts +0 -110
- package/dist/types-BMGM6sZc.d.mts.map +0 -1
- package/dist/types-DMQMHePI.d.cts +0 -110
- package/dist/types-DMQMHePI.d.cts.map +0 -1
- package/dist/types-a8gm_IaQ.cjs +0 -0
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { Endpoint, EndpointSchemas } from "@geekmidas/constructs/endpoints";
|
|
2
|
-
import { HttpMethod } from "@geekmidas/constructs/types";
|
|
3
|
-
import { InferStandardSchema } from "@geekmidas/schema";
|
|
4
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
|
-
|
|
6
|
-
//#region src/infer.d.ts
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Infers path parameters from a route string as an object
|
|
10
|
-
* @example '/users/{id}/posts/{postId}' -> { id: string, postId: string }
|
|
11
|
-
*/
|
|
12
|
-
type InferPathParams<TRoute extends string> = TRoute extends `${string}{${infer Param}}${infer Rest}` ? { [K in Param]: string } & InferPathParams<Rest> : {};
|
|
13
|
-
/**
|
|
14
|
-
* Converts an HTTP method to lowercase for TypedFetcher compatibility
|
|
15
|
-
*/
|
|
16
|
-
type LowercaseMethod<T extends HttpMethod> = Lowercase<T>;
|
|
17
|
-
/**
|
|
18
|
-
* Infers route-level parameters (path params)
|
|
19
|
-
*/
|
|
20
|
-
type InferRouteParameters<TRoute extends string> = InferPathParams<TRoute> extends Record<string, never> ? {} : {
|
|
21
|
-
parameters: {
|
|
22
|
-
path: InferPathParams<TRoute>;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Infers operation-level parameters (query params)
|
|
27
|
-
*/
|
|
28
|
-
type InferOperationParameters<TInput extends EndpointSchemas> = TInput extends {
|
|
29
|
-
query: infer Q;
|
|
30
|
-
} ? {
|
|
31
|
-
parameters: {
|
|
32
|
-
query: InferStandardSchema<Q>;
|
|
33
|
-
};
|
|
34
|
-
} : {};
|
|
35
|
-
/**
|
|
36
|
-
* Infers the operation object compatible with TypedFetcher
|
|
37
|
-
*/
|
|
38
|
-
type InferOperation<TInput extends EndpointSchemas, TOutput extends StandardSchemaV1 | undefined> = InferOperationParameters<TInput> & {
|
|
39
|
-
requestBody?: TInput extends {
|
|
40
|
-
body: infer B;
|
|
41
|
-
} ? {
|
|
42
|
-
content: {
|
|
43
|
-
'application/json': InferStandardSchema<B>;
|
|
44
|
-
};
|
|
45
|
-
} : never;
|
|
46
|
-
responses: {
|
|
47
|
-
200: {
|
|
48
|
-
content: TOutput extends StandardSchemaV1 ? {
|
|
49
|
-
'application/json': InferStandardSchema<TOutput>;
|
|
50
|
-
} : never;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Infers the TypedFetcher-compatible paths structure from a single endpoint
|
|
56
|
-
*
|
|
57
|
-
* This generates a structure compatible with @geekmidas/client TypedFetcher,
|
|
58
|
-
* allowing you to create a typed client directly from endpoint definitions
|
|
59
|
-
* without needing OpenAPI JSON + codegen.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```typescript
|
|
63
|
-
* import { api } from './constructs/api.js';
|
|
64
|
-
* import { createTypedFetcher, type InferOpenApiFromEndpoint } from '@geekmidas/client';
|
|
65
|
-
* import { z } from 'zod';
|
|
66
|
-
*
|
|
67
|
-
* const endpoint = e
|
|
68
|
-
* .get('/users/{id}')
|
|
69
|
-
* .params(z.object({ id: z.string() }))
|
|
70
|
-
* .output(z.object({ id: z.string(), name: z.string() }))
|
|
71
|
-
* .handle(async ({ params }) => ({ id: params.id, name: 'John' }));
|
|
72
|
-
*
|
|
73
|
-
* type Paths = InferOpenApiFromEndpoint<typeof endpoint>['paths'];
|
|
74
|
-
* const client = createTypedFetcher<Paths>({ baseURL: 'http://localhost:3000' });
|
|
75
|
-
* const user = await client('GET /users/{id}', { params: { id: '123' } });
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
type InferOpenApiFromEndpoint<T> = T extends Endpoint<infer TRoute, infer TMethod, infer TInput, infer TOutput, any, any, any> ? {
|
|
79
|
-
paths: { [K in TRoute]: InferRouteParameters<TRoute> & { [M in LowercaseMethod<TMethod>]: InferOperation<TInput, TOutput> } };
|
|
80
|
-
} : never;
|
|
81
|
-
/**
|
|
82
|
-
* Infers TypedFetcher-compatible paths structure from multiple endpoints
|
|
83
|
-
*
|
|
84
|
-
* Merges multiple endpoint definitions into a single paths object that can be
|
|
85
|
-
* used with @geekmidas/client TypedFetcher for fully type-safe API calls.
|
|
86
|
-
*
|
|
87
|
-
* @example
|
|
88
|
-
* ```typescript
|
|
89
|
-
* import { api } from './constructs/api.js';
|
|
90
|
-
* import { createTypedFetcher, type InferOpenApi } from '@geekmidas/client';
|
|
91
|
-
* import { z } from 'zod';
|
|
92
|
-
*
|
|
93
|
-
* // Define endpoints
|
|
94
|
-
* const getUserEndpoint = e
|
|
95
|
-
* .get('/users/{id}')
|
|
96
|
-
* .params(z.object({ id: z.string() }))
|
|
97
|
-
* .output(z.object({ id: z.string(), name: z.string() }))
|
|
98
|
-
* .handle(async ({ params }) => ({ id: params.id, name: 'John' }));
|
|
99
|
-
*
|
|
100
|
-
* const createUserEndpoint = e
|
|
101
|
-
* .post('/users')
|
|
102
|
-
* .body(z.object({ name: z.string() }))
|
|
103
|
-
* .output(z.object({ id: z.string(), name: z.string() }))
|
|
104
|
-
* .handle(async ({ body }) => ({ id: '123', name: body.name }));
|
|
105
|
-
*
|
|
106
|
-
* // Export for client
|
|
107
|
-
* export const endpoints = [getUserEndpoint, createUserEndpoint] as const;
|
|
108
|
-
* export type Paths = InferOpenApi<typeof endpoints>['paths'];
|
|
109
|
-
*
|
|
110
|
-
* // Client usage
|
|
111
|
-
* import type { Paths } from './endpoints';
|
|
112
|
-
* const client = createTypedFetcher<Paths>({ baseURL: 'http://localhost:3000' });
|
|
113
|
-
*
|
|
114
|
-
* const user = await client('GET /users/{id}', { params: { id: '123' } });
|
|
115
|
-
* const newUser = await client('POST /users', { body: { name: 'Jane' } });
|
|
116
|
-
* ```
|
|
117
|
-
*/
|
|
118
|
-
type InferOpenApi<TEndpoints extends readonly any[]> = TEndpoints extends readonly [infer First, ...infer Rest] ? InferOpenApiFromEndpoint<First> extends {
|
|
119
|
-
paths: infer P1;
|
|
120
|
-
} ? Rest extends [] ? {
|
|
121
|
-
paths: P1;
|
|
122
|
-
} : InferOpenApi<Rest> extends {
|
|
123
|
-
paths: infer P2;
|
|
124
|
-
} ? {
|
|
125
|
-
paths: P1 & P2;
|
|
126
|
-
} : {
|
|
127
|
-
paths: P1;
|
|
128
|
-
} : InferOpenApi<Rest> : {
|
|
129
|
-
paths: {};
|
|
130
|
-
};
|
|
131
|
-
//#endregion
|
|
132
|
-
export { InferOpenApi, InferOpenApiFromEndpoint };
|
|
133
|
-
//# sourceMappingURL=infer-bTirNeNW.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"infer-bTirNeNW.d.mts","names":[],"sources":["../src/infer.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAM8D;;KAMzD,eACJ,CAAA,eAAA,MAAA,CAAA,GAAA,MAAA,SAAA,GAAA,MAAA,IAAA,KAAA,MAAA,IAAA,KAAA,KAAA,EAAA,GAAA,QACW,KAAA,GAAA,MAAA,EAAK,GAAc,eAAgB,CAAA,IAAA,CAAA,GAAA,CAAA,CAAA;;AAAD;AAAA;KAMzC,eAAe,CAAA,UAAW,UAAX,CAAA,GAAyB,SAAzB,CAAmC,CAAnC,CAAA;;;;AAAkC,KAKjD,oBALiD,CAAA,eAAA,MAAA,CAAA,GAMrD,eANqD,CAMrC,MANqC,CAAA,SAMrB,MANqB,CAAA,MAAA,EAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA;EAKjD,UAAA,EAAA;IAAoB,IAAA,EAKd,eALc,CAKE,MALF,CAAA;EAAA,CAAA;CACF;;;;AAIG,KAOrB,wBAPqB,CAAA,eAOmB,eAPnB,CAAA,GAOsC,MAPtC,SAAA;EAOrB,KAAA,EAAA,KAAA,EAAA;CAAwB,GAAA;EAAA,UAAgB,EAAA;IAAmB,KAAA,EAKrD,mBALqD,CAKjC,CALiC,CAAA;EAAM,CAAA;CAKtC,GAAA,CAAA,CAAA;AAAF;AAAA;;KAQzB,cACW,CAAA,eAAA,eAAA,EAAA,gBACC,gBADD,GAAA,SAAA,CAAA,GAEZ,wBAFY,CAEa,MAFb,CAAA,GAAA;EAAe,WACd,CAAA,EAEF,MAFE,SAAA;IACY,IAAA,EAAA,KAAA,EAAA;EAAM,CAAA,GAA/B;IACW,OAAA,EAAA;MAG8B,kBAAA,EAApB,mBAAoB,CAAA,CAAA,CAAA;IAApB,CAAA;EAAmB,CAAA,GAMhC,KAAA;EAAO,SAAS,EAAA;IAEkB,GAAA,EAAA;MAApB,OAAA,EAFd,OAEc,SAFE,gBAEF,GAAA;QAAmB,kBAAA,EAAnB,mBAAmB,CAAC,OAAD,CAAA;MA+BjC,CAAA,GAAA,KAAA;IAAwB,CAAA;EAAA,CAAA;CAClC;;;;;;;;;AAYmD;AA2CrD;;;;;;;;;;;;;;AAQiB;KAhEL,8BACX,UAAU;iBAWA,SAAS,qBAAqB,kBAC7B,gBAAgB,WAAW,eAAe,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2ClD,kDACX,2DACG,yBAAyB;;IACxB;SACU;IACT,aAAa;;;SACH,KAAK;;SACL;IACX,aAAa"}
|
package/dist/infer-uCUq1whM.mjs
DELETED
|
File without changes
|
package/dist/openapi.cjs
DELETED
|
@@ -1,526 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
//#region src/openapi.json
|
|
4
|
-
var openapi = "3.0.0";
|
|
5
|
-
var info = {
|
|
6
|
-
"title": "API Documentation",
|
|
7
|
-
"version": "1.0.0",
|
|
8
|
-
"description": "Auto-generated API documentation from endpoints"
|
|
9
|
-
};
|
|
10
|
-
var paths = { "/explore/jobs": { "get": {
|
|
11
|
-
"operationId": "exploreJobs",
|
|
12
|
-
"responses": { "200": {
|
|
13
|
-
"description": "Successful response",
|
|
14
|
-
"content": { "application/json": { "schema": {
|
|
15
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"properties": {
|
|
18
|
-
"items": {
|
|
19
|
-
"type": "array",
|
|
20
|
-
"items": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"properties": {
|
|
23
|
-
"role": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"minLength": 1,
|
|
26
|
-
"maxLength": 255
|
|
27
|
-
},
|
|
28
|
-
"type": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"enum": [
|
|
31
|
-
"Server",
|
|
32
|
-
"Waiter",
|
|
33
|
-
"Host",
|
|
34
|
-
"Bartender",
|
|
35
|
-
"KitchenPorter",
|
|
36
|
-
"Steward",
|
|
37
|
-
"BusPerson",
|
|
38
|
-
"Dishwasher"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
"overview": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"minLength": 1
|
|
44
|
-
},
|
|
45
|
-
"qualifications": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"minLength": 1
|
|
48
|
-
},
|
|
49
|
-
"hourlyRate": {
|
|
50
|
-
"type": "object",
|
|
51
|
-
"properties": {
|
|
52
|
-
"max": { "type": "number" },
|
|
53
|
-
"min": { "type": "number" }
|
|
54
|
-
},
|
|
55
|
-
"required": ["max", "min"],
|
|
56
|
-
"additionalProperties": false
|
|
57
|
-
},
|
|
58
|
-
"dateNeeded": {
|
|
59
|
-
"type": "object",
|
|
60
|
-
"properties": {
|
|
61
|
-
"from": { "type": "string" },
|
|
62
|
-
"to": { "type": "string" }
|
|
63
|
-
},
|
|
64
|
-
"required": ["from", "to"],
|
|
65
|
-
"additionalProperties": false
|
|
66
|
-
},
|
|
67
|
-
"shiftHours": {
|
|
68
|
-
"type": "object",
|
|
69
|
-
"properties": {
|
|
70
|
-
"from": { "type": "string" },
|
|
71
|
-
"to": { "type": "string" }
|
|
72
|
-
},
|
|
73
|
-
"required": ["from", "to"],
|
|
74
|
-
"additionalProperties": false
|
|
75
|
-
},
|
|
76
|
-
"id": {
|
|
77
|
-
"type": "string",
|
|
78
|
-
"format": "uuid",
|
|
79
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
80
|
-
},
|
|
81
|
-
"createdAt": {
|
|
82
|
-
"type": "string",
|
|
83
|
-
"format": "date-time",
|
|
84
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
85
|
-
},
|
|
86
|
-
"updatedAt": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"format": "date-time",
|
|
89
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
90
|
-
},
|
|
91
|
-
"status": {
|
|
92
|
-
"type": "string",
|
|
93
|
-
"enum": [
|
|
94
|
-
"Draft",
|
|
95
|
-
"Active",
|
|
96
|
-
"Closed",
|
|
97
|
-
"Filled"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"business": {
|
|
101
|
-
"type": "object",
|
|
102
|
-
"properties": {
|
|
103
|
-
"name": {
|
|
104
|
-
"type": "string",
|
|
105
|
-
"minLength": 1
|
|
106
|
-
},
|
|
107
|
-
"description": { "type": "string" },
|
|
108
|
-
"tags": {
|
|
109
|
-
"type": "array",
|
|
110
|
-
"items": { "type": "string" }
|
|
111
|
-
},
|
|
112
|
-
"id": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"format": "uuid",
|
|
115
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
116
|
-
},
|
|
117
|
-
"createdAt": {
|
|
118
|
-
"type": "string",
|
|
119
|
-
"format": "date-time",
|
|
120
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
121
|
-
},
|
|
122
|
-
"updatedAt": {
|
|
123
|
-
"type": "string",
|
|
124
|
-
"format": "date-time",
|
|
125
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
126
|
-
},
|
|
127
|
-
"rating": {
|
|
128
|
-
"type": "number",
|
|
129
|
-
"minimum": 0,
|
|
130
|
-
"maximum": 5
|
|
131
|
-
},
|
|
132
|
-
"status": {
|
|
133
|
-
"type": "string",
|
|
134
|
-
"enum": [
|
|
135
|
-
"Active",
|
|
136
|
-
"Inactive",
|
|
137
|
-
"PendingVerification",
|
|
138
|
-
"Suspended"
|
|
139
|
-
]
|
|
140
|
-
},
|
|
141
|
-
"ratingCount": {
|
|
142
|
-
"type": "integer",
|
|
143
|
-
"minimum": 0,
|
|
144
|
-
"maximum": 9007199254740991
|
|
145
|
-
},
|
|
146
|
-
"address": {
|
|
147
|
-
"type": "object",
|
|
148
|
-
"properties": {
|
|
149
|
-
"id": {
|
|
150
|
-
"type": "string",
|
|
151
|
-
"format": "uuid",
|
|
152
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
153
|
-
},
|
|
154
|
-
"createdAt": {
|
|
155
|
-
"type": "string",
|
|
156
|
-
"format": "date-time",
|
|
157
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
158
|
-
},
|
|
159
|
-
"updatedAt": {
|
|
160
|
-
"type": "string",
|
|
161
|
-
"format": "date-time",
|
|
162
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
163
|
-
},
|
|
164
|
-
"placeId": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
|
|
165
|
-
"text": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"minLength": 1
|
|
168
|
-
},
|
|
169
|
-
"city": {
|
|
170
|
-
"type": "string",
|
|
171
|
-
"minLength": 1
|
|
172
|
-
},
|
|
173
|
-
"state": {
|
|
174
|
-
"type": "string",
|
|
175
|
-
"minLength": 1
|
|
176
|
-
},
|
|
177
|
-
"postalCode": {
|
|
178
|
-
"type": "string",
|
|
179
|
-
"minLength": 1
|
|
180
|
-
},
|
|
181
|
-
"country": {
|
|
182
|
-
"type": "string",
|
|
183
|
-
"minLength": 1
|
|
184
|
-
},
|
|
185
|
-
"lat": { "type": "number" },
|
|
186
|
-
"lng": { "type": "number" }
|
|
187
|
-
},
|
|
188
|
-
"required": [
|
|
189
|
-
"id",
|
|
190
|
-
"createdAt",
|
|
191
|
-
"updatedAt",
|
|
192
|
-
"text",
|
|
193
|
-
"city",
|
|
194
|
-
"state",
|
|
195
|
-
"postalCode",
|
|
196
|
-
"country",
|
|
197
|
-
"lat",
|
|
198
|
-
"lng"
|
|
199
|
-
],
|
|
200
|
-
"additionalProperties": false
|
|
201
|
-
},
|
|
202
|
-
"image": {
|
|
203
|
-
"type": "object",
|
|
204
|
-
"properties": {
|
|
205
|
-
"id": {
|
|
206
|
-
"type": "string",
|
|
207
|
-
"format": "uuid",
|
|
208
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
209
|
-
},
|
|
210
|
-
"createdAt": {
|
|
211
|
-
"type": "string",
|
|
212
|
-
"format": "date-time",
|
|
213
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
214
|
-
},
|
|
215
|
-
"updatedAt": {
|
|
216
|
-
"type": "string",
|
|
217
|
-
"format": "date-time",
|
|
218
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
219
|
-
},
|
|
220
|
-
"mimeType": {
|
|
221
|
-
"type": "string",
|
|
222
|
-
"enum": [
|
|
223
|
-
"image/jpeg",
|
|
224
|
-
"image/png",
|
|
225
|
-
"application/pdf",
|
|
226
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
227
|
-
]
|
|
228
|
-
},
|
|
229
|
-
"name": { "type": "string" },
|
|
230
|
-
"url": {
|
|
231
|
-
"type": "string",
|
|
232
|
-
"format": "uri"
|
|
233
|
-
},
|
|
234
|
-
"contentLength": { "type": "number" },
|
|
235
|
-
"status": {
|
|
236
|
-
"type": "string",
|
|
237
|
-
"enum": [
|
|
238
|
-
"Pending",
|
|
239
|
-
"Uploaded",
|
|
240
|
-
"Failed",
|
|
241
|
-
"Deleted"
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
"required": [
|
|
246
|
-
"id",
|
|
247
|
-
"createdAt",
|
|
248
|
-
"updatedAt",
|
|
249
|
-
"mimeType",
|
|
250
|
-
"name",
|
|
251
|
-
"url",
|
|
252
|
-
"contentLength",
|
|
253
|
-
"status"
|
|
254
|
-
],
|
|
255
|
-
"additionalProperties": false
|
|
256
|
-
},
|
|
257
|
-
"licenses": {
|
|
258
|
-
"type": "array",
|
|
259
|
-
"items": {
|
|
260
|
-
"type": "object",
|
|
261
|
-
"properties": {
|
|
262
|
-
"id": {
|
|
263
|
-
"type": "string",
|
|
264
|
-
"format": "uuid",
|
|
265
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
266
|
-
},
|
|
267
|
-
"createdAt": {
|
|
268
|
-
"type": "string",
|
|
269
|
-
"format": "date-time",
|
|
270
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
271
|
-
},
|
|
272
|
-
"updatedAt": {
|
|
273
|
-
"type": "string",
|
|
274
|
-
"format": "date-time",
|
|
275
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
276
|
-
},
|
|
277
|
-
"mimeType": {
|
|
278
|
-
"type": "string",
|
|
279
|
-
"enum": [
|
|
280
|
-
"image/jpeg",
|
|
281
|
-
"image/png",
|
|
282
|
-
"application/pdf",
|
|
283
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
284
|
-
]
|
|
285
|
-
},
|
|
286
|
-
"name": { "type": "string" },
|
|
287
|
-
"url": {
|
|
288
|
-
"type": "string",
|
|
289
|
-
"format": "uri"
|
|
290
|
-
},
|
|
291
|
-
"contentLength": { "type": "number" },
|
|
292
|
-
"status": {
|
|
293
|
-
"type": "string",
|
|
294
|
-
"enum": [
|
|
295
|
-
"Pending",
|
|
296
|
-
"Uploaded",
|
|
297
|
-
"Failed",
|
|
298
|
-
"Deleted"
|
|
299
|
-
]
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
"required": [
|
|
303
|
-
"id",
|
|
304
|
-
"createdAt",
|
|
305
|
-
"updatedAt",
|
|
306
|
-
"mimeType",
|
|
307
|
-
"name",
|
|
308
|
-
"url",
|
|
309
|
-
"contentLength",
|
|
310
|
-
"status"
|
|
311
|
-
],
|
|
312
|
-
"additionalProperties": false
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
"required": [
|
|
317
|
-
"name",
|
|
318
|
-
"description",
|
|
319
|
-
"tags",
|
|
320
|
-
"id",
|
|
321
|
-
"createdAt",
|
|
322
|
-
"updatedAt",
|
|
323
|
-
"rating",
|
|
324
|
-
"status",
|
|
325
|
-
"ratingCount",
|
|
326
|
-
"address",
|
|
327
|
-
"image",
|
|
328
|
-
"licenses"
|
|
329
|
-
],
|
|
330
|
-
"additionalProperties": false
|
|
331
|
-
},
|
|
332
|
-
"appliedAt": { "anyOf": [{
|
|
333
|
-
"type": "string",
|
|
334
|
-
"format": "date-time",
|
|
335
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
336
|
-
}, { "type": "null" }] },
|
|
337
|
-
"closedAt": { "anyOf": [{
|
|
338
|
-
"type": "string",
|
|
339
|
-
"format": "date-time",
|
|
340
|
-
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
341
|
-
}, { "type": "null" }] },
|
|
342
|
-
"closeReason": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
|
|
343
|
-
"distanceKm": { "type": "number" },
|
|
344
|
-
"roleMatch": { "type": "boolean" },
|
|
345
|
-
"hourlyRateMatch": { "type": "boolean" },
|
|
346
|
-
"hasApplied": {
|
|
347
|
-
"default": false,
|
|
348
|
-
"type": "boolean"
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
"required": [
|
|
352
|
-
"role",
|
|
353
|
-
"type",
|
|
354
|
-
"overview",
|
|
355
|
-
"qualifications",
|
|
356
|
-
"hourlyRate",
|
|
357
|
-
"dateNeeded",
|
|
358
|
-
"shiftHours",
|
|
359
|
-
"id",
|
|
360
|
-
"createdAt",
|
|
361
|
-
"updatedAt",
|
|
362
|
-
"status",
|
|
363
|
-
"business",
|
|
364
|
-
"distanceKm",
|
|
365
|
-
"roleMatch",
|
|
366
|
-
"hourlyRateMatch",
|
|
367
|
-
"hasApplied"
|
|
368
|
-
],
|
|
369
|
-
"additionalProperties": false
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
"pagination": {
|
|
373
|
-
"type": "object",
|
|
374
|
-
"properties": {
|
|
375
|
-
"total": { "type": "number" },
|
|
376
|
-
"cursor": { "type": "string" },
|
|
377
|
-
"hasMore": { "type": "boolean" }
|
|
378
|
-
},
|
|
379
|
-
"required": ["total", "hasMore"],
|
|
380
|
-
"additionalProperties": false
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
"required": ["items", "pagination"],
|
|
384
|
-
"additionalProperties": false
|
|
385
|
-
} } }
|
|
386
|
-
} },
|
|
387
|
-
"parameters": [{
|
|
388
|
-
"name": "filter",
|
|
389
|
-
"in": "query",
|
|
390
|
-
"required": false,
|
|
391
|
-
"schema": {
|
|
392
|
-
"type": "object",
|
|
393
|
-
"properties": {
|
|
394
|
-
"radius": {
|
|
395
|
-
"type": "integer",
|
|
396
|
-
"minimum": 0,
|
|
397
|
-
"maximum": 9007199254740991
|
|
398
|
-
},
|
|
399
|
-
"types": {
|
|
400
|
-
"type": "array",
|
|
401
|
-
"items": {
|
|
402
|
-
"type": "string",
|
|
403
|
-
"enum": [
|
|
404
|
-
"Server",
|
|
405
|
-
"Waiter",
|
|
406
|
-
"Host",
|
|
407
|
-
"Bartender",
|
|
408
|
-
"KitchenPorter",
|
|
409
|
-
"Steward",
|
|
410
|
-
"BusPerson",
|
|
411
|
-
"Dishwasher"
|
|
412
|
-
]
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
"hourlyRate": {
|
|
416
|
-
"type": "object",
|
|
417
|
-
"properties": {
|
|
418
|
-
"max": { "type": "number" },
|
|
419
|
-
"min": { "type": "number" }
|
|
420
|
-
},
|
|
421
|
-
"additionalProperties": false
|
|
422
|
-
},
|
|
423
|
-
"dateNeeded": {
|
|
424
|
-
"type": "object",
|
|
425
|
-
"properties": {
|
|
426
|
-
"from": { "type": "string" },
|
|
427
|
-
"to": { "type": "string" }
|
|
428
|
-
},
|
|
429
|
-
"additionalProperties": false
|
|
430
|
-
},
|
|
431
|
-
"shiftHours": {
|
|
432
|
-
"type": "object",
|
|
433
|
-
"properties": {
|
|
434
|
-
"from": { "type": "string" },
|
|
435
|
-
"to": { "type": "string" }
|
|
436
|
-
},
|
|
437
|
-
"additionalProperties": false
|
|
438
|
-
},
|
|
439
|
-
"box": {
|
|
440
|
-
"type": "object",
|
|
441
|
-
"properties": {
|
|
442
|
-
"topLeft": {
|
|
443
|
-
"type": "object",
|
|
444
|
-
"properties": {
|
|
445
|
-
"lat": { "type": "number" },
|
|
446
|
-
"lng": { "type": "number" }
|
|
447
|
-
},
|
|
448
|
-
"required": ["lat", "lng"],
|
|
449
|
-
"additionalProperties": false
|
|
450
|
-
},
|
|
451
|
-
"bottomRight": {
|
|
452
|
-
"type": "object",
|
|
453
|
-
"properties": {
|
|
454
|
-
"lat": { "type": "number" },
|
|
455
|
-
"lng": { "type": "number" }
|
|
456
|
-
},
|
|
457
|
-
"required": ["lat", "lng"],
|
|
458
|
-
"additionalProperties": false
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
"required": ["topLeft", "bottomRight"],
|
|
462
|
-
"additionalProperties": false
|
|
463
|
-
},
|
|
464
|
-
"name": {
|
|
465
|
-
"type": "string",
|
|
466
|
-
"minLength": 1
|
|
467
|
-
},
|
|
468
|
-
"city": {
|
|
469
|
-
"type": "string",
|
|
470
|
-
"minLength": 1
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
"additionalProperties": false
|
|
474
|
-
}
|
|
475
|
-
}, {
|
|
476
|
-
"name": "pagination",
|
|
477
|
-
"in": "query",
|
|
478
|
-
"required": false,
|
|
479
|
-
"schema": {
|
|
480
|
-
"type": "object",
|
|
481
|
-
"properties": {
|
|
482
|
-
"cursor": { "type": "string" },
|
|
483
|
-
"limit": {
|
|
484
|
-
"default": 20,
|
|
485
|
-
"type": "integer",
|
|
486
|
-
"exclusiveMinimum": 0,
|
|
487
|
-
"maximum": 100
|
|
488
|
-
}
|
|
489
|
-
},
|
|
490
|
-
"required": ["limit"],
|
|
491
|
-
"additionalProperties": false
|
|
492
|
-
}
|
|
493
|
-
}]
|
|
494
|
-
} } };
|
|
495
|
-
var openapi_default = {
|
|
496
|
-
openapi,
|
|
497
|
-
info,
|
|
498
|
-
paths
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
//#endregion
|
|
502
|
-
Object.defineProperty(exports, 'default', {
|
|
503
|
-
enumerable: true,
|
|
504
|
-
get: function () {
|
|
505
|
-
return openapi_default;
|
|
506
|
-
}
|
|
507
|
-
});
|
|
508
|
-
Object.defineProperty(exports, 'info', {
|
|
509
|
-
enumerable: true,
|
|
510
|
-
get: function () {
|
|
511
|
-
return info;
|
|
512
|
-
}
|
|
513
|
-
});
|
|
514
|
-
Object.defineProperty(exports, 'openapi', {
|
|
515
|
-
enumerable: true,
|
|
516
|
-
get: function () {
|
|
517
|
-
return openapi;
|
|
518
|
-
}
|
|
519
|
-
});
|
|
520
|
-
Object.defineProperty(exports, 'paths', {
|
|
521
|
-
enumerable: true,
|
|
522
|
-
get: function () {
|
|
523
|
-
return paths;
|
|
524
|
-
}
|
|
525
|
-
});
|
|
526
|
-
//# sourceMappingURL=openapi.cjs.map
|