@kubun/scalars 0.6.0 → 0.7.0
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/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { JSONSchema } from 'json-schema-typed';
|
|
2
2
|
export declare const attachmentIDSchema: JSONSchema.String;
|
|
3
3
|
export declare const docIDSchema: JSONSchema.String;
|
|
4
|
+
export declare const urlSchema: JSONSchema.String;
|
|
4
5
|
export declare const bigIntSchema: JSONSchema.Integer;
|
|
5
6
|
export declare const didSchema: JSONSchema.String;
|
|
6
7
|
export declare const dateTimeSchema: JSONSchema.String;
|
|
@@ -14,5 +15,4 @@ export declare const localTimeSchema: JSONSchema.String;
|
|
|
14
15
|
export declare const localeSchema: JSONSchema.String;
|
|
15
16
|
export declare const longitudeSchema: JSONSchema.Number;
|
|
16
17
|
export declare const timeZoneSchema: JSONSchema.String;
|
|
17
|
-
export declare const urlSchema: JSONSchema.String;
|
|
18
18
|
export declare const utcOffsetSchema: JSONSchema.String;
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{GraphQLBigInt as t,GraphQLDateTime as e,GraphQLDID as o,GraphQLDuration as c,GraphQLEmailAddress as a,GraphQLJSONObject as n,GraphQLLatitude as r,GraphQLLocalDate as m,GraphQLLocalDateTime as s,GraphQLLocale as p,GraphQLLocalTime as h,GraphQLLongitude as i,GraphQLTimeZone as
|
|
1
|
+
import{GraphQLBigInt as t,GraphQLDateTime as e,GraphQLDID as o,GraphQLDuration as c,GraphQLEmailAddress as a,GraphQLJSONObject as n,GraphQLLatitude as r,GraphQLLocalDate as m,GraphQLLocalDateTime as s,GraphQLLocale as p,GraphQLLocalTime as h,GraphQLLongitude as i,GraphQLTimeZone as l,GraphQLUtcOffset as x}from"graphql-scalars";function S(t){return{...t.extensions.jsonSchema,title:t.name}}export const attachmentIDSchema={type:"string",title:"AttachmentID",pattern:"^k[0-9a-z]{10,120}$"};export const docIDSchema={type:"string",title:"DocID",pattern:"^k[0-9a-z]{10,120}$"};export const urlSchema={type:"string",format:"uri",title:"URL"};export const bigIntSchema=S(t);export const didSchema=S(o);export const dateTimeSchema=S(e);export const durationSchema=S(c);export const emailAddressSchema=S(a);export const jsonObjectSchema=S(n);export const latitudeSchema=S(r);export const localDateSchema=S(m);export const localDateTimeSchema=S(s);export const localTimeSchema=S(h);export const localeSchema=S(p);export const longitudeSchema=S(i);export const timeZoneSchema=S(l);export const utcOffsetSchema=S(x);
|