sprint-es 0.0.77 → 0.0.78
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.
|
@@ -12,11 +12,13 @@ const sprintBuilder = {
|
|
|
12
12
|
const sprintAuth = {
|
|
13
13
|
authorization: createSprintAuthorizationSchema
|
|
14
14
|
};
|
|
15
|
+
const sprintCallable = function() {
|
|
16
|
+
return sprintAuth;
|
|
17
|
+
};
|
|
18
|
+
Object.assign(sprintCallable, sprintAuth);
|
|
15
19
|
const proxyZ = new Proxy(zod.z, {
|
|
16
20
|
get(target, prop) {
|
|
17
|
-
if (prop === "sprint")
|
|
18
|
-
return sprintAuth;
|
|
19
|
-
}
|
|
21
|
+
if (prop === "sprint") return sprintCallable;
|
|
20
22
|
return target[prop];
|
|
21
23
|
}
|
|
22
24
|
});
|
|
@@ -10,11 +10,13 @@ const sprintBuilder = {
|
|
|
10
10
|
const sprintAuth = {
|
|
11
11
|
authorization: createSprintAuthorizationSchema
|
|
12
12
|
};
|
|
13
|
+
const sprintCallable = function() {
|
|
14
|
+
return sprintAuth;
|
|
15
|
+
};
|
|
16
|
+
Object.assign(sprintCallable, sprintAuth);
|
|
13
17
|
const proxyZ = new Proxy(z, {
|
|
14
18
|
get(target, prop) {
|
|
15
|
-
if (prop === "sprint")
|
|
16
|
-
return sprintAuth;
|
|
17
|
-
}
|
|
19
|
+
if (prop === "sprint") return sprintCallable;
|
|
18
20
|
return target[prop];
|
|
19
21
|
}
|
|
20
22
|
});
|
|
@@ -8,7 +8,14 @@ declare function createSprintAuthorizationSchema(options?: SprintAuthorizationOp
|
|
|
8
8
|
declare const sprintBuilder: {
|
|
9
9
|
authorization: typeof createSprintAuthorizationSchema;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
11
|
+
declare const sprintAuth: {
|
|
12
|
+
authorization: typeof createSprintAuthorizationSchema;
|
|
13
|
+
};
|
|
14
|
+
type SprintCallable = typeof sprintAuth & (() => typeof sprintAuth);
|
|
15
|
+
type ZodWithSprint = typeof z & {
|
|
16
|
+
sprint: SprintCallable;
|
|
17
|
+
};
|
|
18
|
+
declare const proxyZ: ZodWithSprint;
|
|
12
19
|
export { proxyZ as z };
|
|
13
20
|
export { sprintBuilder as sprint };
|
|
14
21
|
export interface RouteSchemaOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,CAAC,EAAE,SAAS,IAAI,aAAa,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AAErF,MAAM,MAAM,mBAAmB,GAAG,SAAS,MAAM,EAAE,GAAG,WAAW,MAAM,EAAE,CAAC;AAE1E,MAAM,WAAW,0BAA0B;IACvC,OAAO,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,EAAE,CAAC;CACzD;AAED,iBAAS,+BAA+B,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,CAKxH;AAED,QAAA,MAAM,aAAa;;CAElB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,CAAC,EAAE,SAAS,IAAI,aAAa,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AAErF,MAAM,MAAM,mBAAmB,GAAG,SAAS,MAAM,EAAE,GAAG,WAAW,MAAM,EAAE,CAAC;AAE1E,MAAM,WAAW,0BAA0B;IACvC,OAAO,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,EAAE,CAAC;CACzD;AAED,iBAAS,+BAA+B,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG,aAAa,CAAC,MAAM,EAAE,U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