Skip to content

Commit

Permalink
Add missing DurationTypeDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Mar 24, 2023
1 parent b1dad3a commit f12ccbd
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 44 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-beans-pretend.md
@@ -0,0 +1,5 @@
---
'graphql-scalars': patch
---

Add missing `DurationTypeDefinition`
92 changes: 48 additions & 44 deletions src/index.ts
@@ -1,70 +1,69 @@
import { GraphQLScalarType } from 'graphql';
import * as mocks from './mocks.js';

import {
GraphQLAccountNumber,
GraphQLBigInt,
GraphQLByte,
GraphQLCountryCode,
GraphQLCuid,
GraphQLCurrency,
GraphQLDate,
GraphQLTime,
GraphQLDateTime,
GraphQLTimestamp,
GraphQLTimeZone,
GraphQLUtcOffset,
GraphQLISO8601Duration,
GraphQLLocalDate,
GraphQLLocalTime,
GraphQLLocalEndTime,
GraphQLDeweyDecimal,
GraphQLDID,
GraphQLEmailAddress,
GraphQLNegativeFloat,
GraphQLNegativeInt,
GraphQLNonEmptyString,
GraphQLNonNegativeFloat,
GraphQLNonNegativeInt,
GraphQLNonPositiveFloat,
GraphQLNonPositiveInt,
GraphQLPhoneNumber,
GraphQLPositiveFloat,
GraphQLPositiveInt,
GraphQLPostalCode,
GraphQLUnsignedFloat,
GraphQLUnsignedInt,
GraphQLURL,
GraphQLBigInt,
GraphQLByte,
GraphQLLong,
GraphQLSafeInt,
GraphQLUUID,
GraphQLGUID,
GraphQLHexadecimal,
GraphQLHexColorCode,
GraphQLHSL,
GraphQLHSLA,
GraphQLIBAN,
GraphQLIP,
GraphQLIPCPatent,
GraphQLIPv4,
GraphQLIPv6,
GraphQLISBN,
GraphQLISO8601Duration,
GraphQLJSON,
GraphQLJSONObject,
GraphQLJWT,
GraphQLLatitude,
GraphQLLCCSubclass,
GraphQLLocalDate,
GraphQLLocale,
GraphQLLocalEndTime,
GraphQLLocalTime,
GraphQLLong,
GraphQLLongitude,
GraphQLMAC,
GraphQLNegativeFloat,
GraphQLNegativeInt,
GraphQLNonEmptyString,
GraphQLNonNegativeFloat,
GraphQLNonNegativeInt,
GraphQLNonPositiveFloat,
GraphQLNonPositiveInt,
GraphQLObjectID,
GraphQLPhoneNumber,
GraphQLPort,
GraphQLPositiveFloat,
GraphQLPositiveInt,
GraphQLPostalCode,
GraphQLRGB,
GraphQLRGBA,
GraphQLUSCurrency,
GraphQLCurrency,
GraphQLJSON,
GraphQLJSONObject,
GraphQLIBAN,
GraphQLObjectID,
GraphQLVoid,
GraphQLDID,
GraphQLCountryCode,
GraphQLLocale,
GraphQLRoutingNumber,
GraphQLAccountNumber,
GraphQLCuid,
GraphQLSafeInt,
GraphQLSemVer,
GraphQLDeweyDecimal,
GraphQLLCCSubclass,
GraphQLIPCPatent,
GraphQLTime,
GraphQLTimestamp,
GraphQLTimeZone,
GraphQLUnsignedFloat,
GraphQLUnsignedInt,
GraphQLURL,
GraphQLUSCurrency,
GraphQLUtcOffset,
GraphQLUUID,
GraphQLVoid,
} from './scalars/index.js';
import { GraphQLDuration } from './scalars/iso-date/Duration.js';

Expand Down Expand Up @@ -122,6 +121,7 @@ export {
ObjectID as ObjectIDTypeDefinition,
Void as VoidTypeDefinition,
DID as DIDDefinition,
Duration as DurationTypeDefinition,
CountryCode as CountryCodeDefinition,
Locale as LocaleDefinition,
RoutingNumber as RoutingNumberDefinition,
Expand Down Expand Up @@ -337,7 +337,11 @@ export {

export { mocks };

export { RegularExpression, RegularExpressionOptions, RegularExpressionErrorMessageFn } from './RegularExpression.js';
export {
RegularExpression,
RegularExpressionOptions,
RegularExpressionErrorMessageFn,
} from './RegularExpression.js';

export {
GraphQLDate,
Expand Down

0 comments on commit f12ccbd

Please sign in to comment.