Skip to content

Commit

Permalink
fix(acs): fix decorator declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Oct 13, 2023
1 parent e6a4d24 commit 9847528
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/acs-client/src/acs/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
export type ACSClientContextFactory = (self: any, ...args: any) => Promise<ACSClientContext>;
export type ResourceFactory = (self: any, ...args: any) => Promise<Resource[]>;

export function access_controlled_service<T extends { new (...args: any): {} }>(baseService: T) {
export function access_controlled_service<T extends { new (...args: any): {} }>(baseService: T): any {
return class extends baseService {
public readonly user_service: Client<UserServiceDefinition>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export type IoRestorecommerceAccessControlResponse = {
};

export enum IoRestorecommerceAccessControlResponseDecision {
Permit = 0,
Deny = 1,
Deny = 0,
Permit = 1,
NotApplicable = 2,
Indeterminate = 3
}
Expand Down Expand Up @@ -902,7 +902,7 @@ export type IoRestorecommerceAccessControlResponseResolvers<ContextType = Access
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type IoRestorecommerceAccessControlResponseDecisionResolvers = { PERMIT: 0, DENY: 1, NOT_APPLICABLE: 2, INDETERMINATE: 3 };
export type IoRestorecommerceAccessControlResponseDecisionResolvers = { DENY: 0, PERMIT: 1, NOT_APPLICABLE: 2, INDETERMINATE: 3 };

export type IoRestorecommerceAttributeAttributeResolvers<ContextType = AccessControlContext, ParentType extends ResolversParentTypes['IoRestorecommerceAttributeAttribute'] = ResolversParentTypes['IoRestorecommerceAttributeAttribute']> = ResolversObject<{
id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ export type IIoRestorecommerceUserRegisterRequest = {
defaultScope?: InputMaybe<Scalars['String']['input']>;
userType?: InputMaybe<IoRestorecommerceUserUserType>;
captchaCode?: InputMaybe<Scalars['String']['input']>;
data?: InputMaybe<IGoogleProtobufAny>;
};

export type ProtoIoRestorecommerceStatusOperationStatusObj = {
Expand Down
2 changes: 2 additions & 0 deletions packages/facade/src/modules/invoicing/gql/schema.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,7 @@ export type ProtoIoRestorecommerceInvoiceInvoiceNumberResponse = {
export type IoRestorecommerceInvoiceInvoiceNumberResponse = {
__typename?: 'IoRestorecommerceInvoiceInvoiceNumberResponse';
invoiceNumber?: Maybe<Scalars['String']['output']>;
operationStatus?: Maybe<IoRestorecommerceStatusOperationStatus>;
};

export type IIoRestorecommerceInvoiceRequestInvoiceNumber = {
Expand Down Expand Up @@ -2332,6 +2333,7 @@ export type ProtoIoRestorecommerceInvoiceInvoiceNumberResponseResolvers<ContextT

export type IoRestorecommerceInvoiceInvoiceNumberResponseResolvers<ContextType = InvoicingContext, ParentType extends ResolversParentTypes['IoRestorecommerceInvoiceInvoiceNumberResponse'] = ResolversParentTypes['IoRestorecommerceInvoiceInvoiceNumberResponse']> = ResolversObject<{
invoiceNumber?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
operationStatus?: Resolver<Maybe<ResolversTypes['IoRestorecommerceStatusOperationStatus']>, ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

Expand Down
3 changes: 1 addition & 2 deletions packages/service-config/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as path from 'path';
import * as nconf from 'nconf';
import { Provider as ServiceConfig } from 'nconf';

export interface ServiceConfigLogger {
Expand Down Expand Up @@ -29,7 +28,7 @@ export interface ServiceConfigOptions {

// read the layered configurations and merge into one
export function createServiceConfig(baseDir: string, opts:ServiceConfigOptions = {}): ServiceConfig {
const nconfInstance = new nconf.Provider();
const nconfInstance = new ServiceConfig();
const logger = opts.logger;

// static data from runtime
Expand Down

0 comments on commit 9847528

Please sign in to comment.