Skip to content

Commit

Permalink
removed FEE global variable references
Browse files Browse the repository at this point in the history
  • Loading branch information
tareq89 committed Oct 23, 2024
1 parent 894d2f0 commit 3ba7e34
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 259 deletions.
11 changes: 2 additions & 9 deletions packages/client/src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ const config = {
BIRTH: {
REGISTRATION_TARGET: 45,
LATE_REGISTRATION_TARGET: 365,
FEE: {
ON_TIME: 0,
LATE: 0,
DELAYED: 0
}
PRINT_IN_ADVANCE: true
},
COUNTRY: 'BGD',
CURRENCY: {
Expand All @@ -53,10 +49,7 @@ const config = {
},
DEATH: {
REGISTRATION_TARGET: 45,
FEE: {
ON_TIME: 0,
DELAYED: 0
}
PRINT_IN_ADVANCE: true
},
FEATURES: {
DEATH_REGISTRATION: true,
Expand Down
13 changes: 0 additions & 13 deletions packages/client/src/tests/mock-offline-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,27 +426,14 @@ export const mockOfflineData = {
BIRTH: {
REGISTRATION_TARGET: 45,
LATE_REGISTRATION_TARGET: 365,
FEE: {
ON_TIME: 0,
LATE: 15,
DELAYED: 20
},
PRINT_IN_ADVANCE: true
},
DEATH: {
REGISTRATION_TARGET: 45,
FEE: {
ON_TIME: 0,
DELAYED: 0
},
PRINT_IN_ADVANCE: true
},
MARRIAGE: {
REGISTRATION_TARGET: 45,
FEE: {
ON_TIME: 0,
DELAYED: 0
},
PRINT_IN_ADVANCE: true
},
FEATURES: {
Expand Down
40 changes: 0 additions & 40 deletions packages/client/src/tests/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ input AvatarInput {
type Birth {
REGISTRATION_TARGET: Int
LATE_REGISTRATION_TARGET: Int
FEE: BirthFee
PRINT_IN_ADVANCE: Boolean
}

Expand All @@ -317,22 +316,9 @@ type BirthEventSearchSet implements EventSearchSet {
fatherIdentifier: String
}

type BirthFee {
ON_TIME: Float
LATE: Float
DELAYED: Float
}

input BirthFeeInput {
ON_TIME: Float
LATE: Float
DELAYED: Float
}

input BirthInput {
REGISTRATION_TARGET: Int
LATE_REGISTRATION_TARGET: Int
FEE: BirthFeeInput
PRINT_IN_ADVANCE: Boolean
}

Expand Down Expand Up @@ -572,7 +558,6 @@ scalar FieldValue

type Death {
REGISTRATION_TARGET: Int
FEE: DeathFee
PRINT_IN_ADVANCE: Boolean
}

Expand All @@ -586,19 +571,8 @@ type DeathEventSearchSet implements EventSearchSet {
operationHistories: [OperationHistorySearchSet]
}

type DeathFee {
ON_TIME: Float
DELAYED: Float
}

input DeathFeeInput {
ON_TIME: Float
DELAYED: Float
}

input DeathInput {
REGISTRATION_TARGET: Int
FEE: DeathFeeInput
PRINT_IN_ADVANCE: Boolean
}

Expand Down Expand Up @@ -934,7 +908,6 @@ scalar Map

type Marriage {
REGISTRATION_TARGET: Int
FEE: MarriageFee
PRINT_IN_ADVANCE: Boolean
}

Expand All @@ -950,19 +923,8 @@ type MarriageEventSearchSet implements EventSearchSet {
operationHistories: [OperationHistorySearchSet]
}

type MarriageFee {
ON_TIME: Float
DELAYED: Float
}

input MarriageFeeInput {
ON_TIME: Float
DELAYED: Float
}

input MarriageInput {
REGISTRATION_TARGET: Int
FEE: MarriageFeeInput
PRINT_IN_ADVANCE: Boolean
}

Expand Down Expand Up @@ -1998,7 +1960,6 @@ type CertificateConfigData {
id: String!
event: String!
label: CertificateLabel!

fee: CertificateFee!
svgUrl: String!
}
Expand All @@ -2019,7 +1980,6 @@ input CertificateConfigDataInput {
id: String!
event: String!
label: CertificateLabelInput!

fee: CertificateFeeInput!
svgUrl: String!
}
Expand Down
100 changes: 0 additions & 100 deletions packages/client/src/utils/gateway-deprecated-do-not-use.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,6 @@ export interface GQLRoleInput {
export interface GQLBirth {
REGISTRATION_TARGET?: number
LATE_REGISTRATION_TARGET?: number
FEE?: GQLBirthFee
PRINT_IN_ADVANCE?: boolean
}

Expand All @@ -1342,13 +1341,11 @@ export interface GQLCurrency {

export interface GQLDeath {
REGISTRATION_TARGET?: number
FEE?: GQLDeathFee
PRINT_IN_ADVANCE?: boolean
}

export interface GQLMarriage {
REGISTRATION_TARGET?: number
FEE?: GQLMarriageFee
PRINT_IN_ADVANCE?: boolean
}

Expand All @@ -1361,7 +1358,6 @@ export interface GQLLoginBackground {
export interface GQLBirthInput {
REGISTRATION_TARGET?: number
LATE_REGISTRATION_TARGET?: number
FEE?: GQLBirthFeeInput
PRINT_IN_ADVANCE?: boolean
}

Expand All @@ -1377,13 +1373,11 @@ export interface GQLCurrencyInput {

export interface GQLDeathInput {
REGISTRATION_TARGET?: number
FEE?: GQLDeathFeeInput
PRINT_IN_ADVANCE?: boolean
}

export interface GQLMarriageInput {
REGISTRATION_TARGET?: number
FEE?: GQLMarriageFeeInput
PRINT_IN_ADVANCE?: boolean
}

Expand Down Expand Up @@ -1787,43 +1781,11 @@ export interface GQLLabelInput {
label: string
}

export interface GQLBirthFee {
ON_TIME?: number
LATE?: number
DELAYED?: number
}

export interface GQLDeathFee {
ON_TIME?: number
DELAYED?: number
}

export interface GQLMarriageFee {
ON_TIME?: number
DELAYED?: number
}

export const enum GQLImageFit {
FILL = 'FILL',
TILE = 'TILE'
}

export interface GQLBirthFeeInput {
ON_TIME?: number
LATE?: number
DELAYED?: number
}

export interface GQLDeathFeeInput {
ON_TIME?: number
DELAYED?: number
}

export interface GQLMarriageFeeInput {
ON_TIME?: number
DELAYED?: number
}

export interface GQLAuditLogItemBase {
time: string
ipAddress: string
Expand Down Expand Up @@ -2026,9 +1988,6 @@ export interface GQLResolver {
EventProgressData?: GQLEventProgressDataTypeResolver
WebhookPermission?: GQLWebhookPermissionTypeResolver
OIDPUserAddress?: GQLOIDPUserAddressTypeResolver
BirthFee?: GQLBirthFeeTypeResolver
DeathFee?: GQLDeathFeeTypeResolver
MarriageFee?: GQLMarriageFeeTypeResolver
AuditLogItemBase?: {
__resolveType: GQLAuditLogItemBaseTypeResolver
}
Expand Down Expand Up @@ -6734,7 +6693,6 @@ export interface OIDPUserInfoToUpdated_atResolver<
export interface GQLBirthTypeResolver<TParent = any> {
REGISTRATION_TARGET?: BirthToREGISTRATION_TARGETResolver<TParent>
LATE_REGISTRATION_TARGET?: BirthToLATE_REGISTRATION_TARGETResolver<TParent>
FEE?: BirthToFEEResolver<TParent>
PRINT_IN_ADVANCE?: BirthToPRINT_IN_ADVANCEResolver<TParent>
}

Expand All @@ -6752,10 +6710,6 @@ export interface BirthToLATE_REGISTRATION_TARGETResolver<
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface BirthToFEEResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface BirthToPRINT_IN_ADVANCEResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}
Expand Down Expand Up @@ -6791,7 +6745,6 @@ export interface CurrencyToLanguagesAndCountryResolver<

export interface GQLDeathTypeResolver<TParent = any> {
REGISTRATION_TARGET?: DeathToREGISTRATION_TARGETResolver<TParent>
FEE?: DeathToFEEResolver<TParent>
PRINT_IN_ADVANCE?: DeathToPRINT_IN_ADVANCEResolver<TParent>
}

Expand All @@ -6802,17 +6755,12 @@ export interface DeathToREGISTRATION_TARGETResolver<
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface DeathToFEEResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface DeathToPRINT_IN_ADVANCEResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface GQLMarriageTypeResolver<TParent = any> {
REGISTRATION_TARGET?: MarriageToREGISTRATION_TARGETResolver<TParent>
FEE?: MarriageToFEEResolver<TParent>
PRINT_IN_ADVANCE?: MarriageToPRINT_IN_ADVANCEResolver<TParent>
}

Expand All @@ -6823,10 +6771,6 @@ export interface MarriageToREGISTRATION_TARGETResolver<
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface MarriageToFEEResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface MarriageToPRINT_IN_ADVANCEResolver<
TParent = any,
TResult = any
Expand Down Expand Up @@ -8383,50 +8327,6 @@ export interface OIDPUserAddressToCountryResolver<
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface GQLBirthFeeTypeResolver<TParent = any> {
ON_TIME?: BirthFeeToON_TIMEResolver<TParent>
LATE?: BirthFeeToLATEResolver<TParent>
DELAYED?: BirthFeeToDELAYEDResolver<TParent>
}

export interface BirthFeeToON_TIMEResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface BirthFeeToLATEResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface BirthFeeToDELAYEDResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface GQLDeathFeeTypeResolver<TParent = any> {
ON_TIME?: DeathFeeToON_TIMEResolver<TParent>
DELAYED?: DeathFeeToDELAYEDResolver<TParent>
}

export interface DeathFeeToON_TIMEResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface DeathFeeToDELAYEDResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface GQLMarriageFeeTypeResolver<TParent = any> {
ON_TIME?: MarriageFeeToON_TIMEResolver<TParent>
DELAYED?: MarriageFeeToDELAYEDResolver<TParent>
}

export interface MarriageFeeToON_TIMEResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface MarriageFeeToDELAYEDResolver<TParent = any, TResult = any> {
(parent: TParent, args: {}, context: any, info: GraphQLResolveInfo): TResult
}

export interface GQLAuditLogItemBaseTypeResolver<TParent = any> {
(parent: TParent, context: any, info: GraphQLResolveInfo):
| 'UserAuditLogItemWithComposition'
Expand Down
13 changes: 0 additions & 13 deletions packages/client/src/utils/referenceApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,29 +111,16 @@ export interface IApplicationConfig {
BIRTH: {
REGISTRATION_TARGET: number
LATE_REGISTRATION_TARGET: number
FEE: {
ON_TIME: number
LATE: number
DELAYED: number
}
PRINT_IN_ADVANCE: boolean
}
COUNTRY_LOGO: ICountryLogo
CURRENCY: ICurrency
DEATH: {
REGISTRATION_TARGET: number
FEE: {
ON_TIME: number
DELAYED: number
}
PRINT_IN_ADVANCE: boolean
}
MARRIAGE: {
REGISTRATION_TARGET: number
FEE: {
ON_TIME: number
DELAYED: number
}
PRINT_IN_ADVANCE: boolean
}
FEATURES: {
Expand Down
Loading

0 comments on commit 3ba7e34

Please sign in to comment.