diff --git a/packages/acs-client/src/acs/authz.ts b/packages/acs-client/src/acs/authz.ts index e559fb7b..cd661802 100644 --- a/packages/acs-client/src/acs/authz.ts +++ b/packages/acs-client/src/acs/authz.ts @@ -62,7 +62,7 @@ export const createActionTarget = (action: any): Attribute[] => { } }; -export const createSubjectTarget = (subject: DeepPartial, orgScopeURN): Attribute[] => { +export const createSubjectTarget = (subject: DeepPartial): Attribute[] => { if (subject.unauthenticated) { return [{ id: urns.unauthenticated_user, @@ -79,16 +79,11 @@ export const createSubjectTarget = (subject: DeepPartial, orgScopeURN): ]; if (subject.scope) { - orgScopeURN = orgScopeURN ? orgScopeURN : 'urn:restorecommerce:acs:model:organization.Organization'; flattened = flattened.concat([ { - id: urns.roleScopingEntity, - value: orgScopeURN, - attributes: [{ - id: urns.roleScopingInstance, - value: subject.scope, - attributes: [] - }] + id: urns.roleScopingInstance, + value: subject.scope, + attributes: [] } ]); } @@ -199,11 +194,11 @@ export class UnAuthZ implements IAuthZ { } async isAllowed(request: Request, - ctx: ACSClientContext, useCache: boolean, roleScopingEntityURN: string): Promise { + ctx: ACSClientContext, useCache: boolean): Promise { const authZRequest = { target: { actions: createActionTarget(request.target.actions), - subjects: createSubjectTarget(request.target.subjects, roleScopingEntityURN), + subjects: createSubjectTarget(request.target.subjects), resources: createResourceTarget(request.target.resources, request.target.actions) }, context: { @@ -246,11 +241,11 @@ export class UnAuthZ implements IAuthZ { } async whatIsAllowed(request: Request, - ctx: ACSClientContext, useCache: boolean, roleScopingEntityURN: string): Promise { + ctx: ACSClientContext, useCache: boolean): Promise { const authZRequest = { target: { actions: createActionTarget(request.target.actions), - subjects: createSubjectTarget(request.target.subjects, roleScopingEntityURN), + subjects: createSubjectTarget(request.target.subjects), resources: createResourceTarget(request.target.resources, request.target.actions) }, context: { @@ -309,8 +304,8 @@ export class ACSAuthZ implements IAuthZ { * @param useCache * @returns {DecisionResponse} */ - async isAllowed(request: Request, ctx: ACSClientContext, useCache, roleScopingEntityURN: string): Promise { - const authZRequest = this.prepareRequest(request, roleScopingEntityURN); + async isAllowed(request: Request, ctx: ACSClientContext, useCache): Promise { + const authZRequest = this.prepareRequest(request); authZRequest.context = { subject: {}, resources: [], @@ -370,8 +365,8 @@ export class ACSAuthZ implements IAuthZ { * @param resource */ async whatIsAllowed(request: Request, - ctx: ACSClientContext, useCache: boolean, roleScopingEntityURN: string): Promise { - const authZRequest = this.prepareRequest(request, roleScopingEntityURN); + ctx: ACSClientContext, useCache: boolean): Promise { + const authZRequest = this.prepareRequest(request); authZRequest.context = { subject: {}, resources: [], @@ -431,12 +426,12 @@ export class ACSAuthZ implements IAuthZ { } } - prepareRequest(request: Request, roleScopingEntityURN): any { + prepareRequest(request: Request): any { let { subjects, resources, actions } = request.target; const authZRequest: any = { target: { actions: createActionTarget(actions), - subjects: createSubjectTarget(subjects, roleScopingEntityURN), + subjects: createSubjectTarget(subjects), }, }; authZRequest.target.resources = createResourceTarget(resources, actions); diff --git a/packages/acs-client/src/acs/interfaces.ts b/packages/acs-client/src/acs/interfaces.ts index cb1a90e3..fde4b05b 100644 --- a/packages/acs-client/src/acs/interfaces.ts +++ b/packages/acs-client/src/acs/interfaces.ts @@ -246,5 +246,4 @@ export interface ACSClientOptions { operation?: Operation; database?: 'arangoDB' | 'postgres'; useCache?: boolean; // default value is true - roleScopingEntityURN?: string; // default value is Organization } \ No newline at end of file diff --git a/packages/acs-client/src/acs/resolver.ts b/packages/acs-client/src/acs/resolver.ts index 45116813..ed6223f5 100644 --- a/packages/acs-client/src/acs/resolver.ts +++ b/packages/acs-client/src/acs/resolver.ts @@ -41,7 +41,7 @@ const subjectIsUnauthenticated = (subject: any): subject is UnauthenticatedConte }; const whatIsAllowedRequest = async (subject: DeepPartial, resources: Resource[], - actions: AuthZAction, ctx: ACSClientContext, useCache: boolean, roleScopingEntityURN: string) => { + actions: AuthZAction, ctx: ACSClientContext, useCache: boolean) => { if (subjectIsUnauthenticated(subject)) { return await unauthZ.whatIsAllowed({ target: { @@ -50,7 +50,7 @@ const whatIsAllowedRequest = async (subject: DeepPartial, resources: Re context: { security: {} } - }, ctx, useCache, roleScopingEntityURN); + }, ctx, useCache); } else { return await authZ.whatIsAllowed({ context: { @@ -61,12 +61,12 @@ const whatIsAllowedRequest = async (subject: DeepPartial, resources: Re resources, actions } - }, ctx, useCache, roleScopingEntityURN); + }, ctx, useCache); } }; export const isAllowedRequest = async (subject: Subject, - resources: Resource[], actions: AuthZAction, ctx: ACSClientContext, useCache: boolean, roleScopingEntityURN: string): Promise => { + resources: Resource[], actions: AuthZAction, ctx: ACSClientContext, useCache: boolean): Promise => { if (subjectIsUnauthenticated(subject)) { return await unauthZ.isAllowed({ target: { @@ -75,7 +75,7 @@ export const isAllowedRequest = async (subject: Subject, context: { security: {} } - }, ctx, useCache, roleScopingEntityURN); + }, ctx, useCache); } else { return await authZ.isAllowed({ context: { @@ -86,7 +86,7 @@ export const isAllowedRequest = async (subject: Subject, resources, actions } - }, ctx, useCache, roleScopingEntityURN); + }, ctx, useCache); } }; @@ -161,6 +161,7 @@ export const accessRequest = async ( // resolve userID by token const subjectID = subject?.id; const targetScope = subject?.scope; + const targetScopeMessage = targetScope ? `, target_scope:${ targetScope };` : ';'; if (resource && !_.isArray(resource)) { resource = [resource]; } @@ -169,7 +170,7 @@ export const accessRequest = async ( if (_.isEmpty(resource)) { const msg = [ `Access not allowed for request with`, - `subject:${ subjectID }, resource:${ resourceName }, action:${ action }, target_scope:${ targetScope };`, + `subject:${ subjectID }, resource:${ resourceName }, action:${ action }${targetScopeMessage}`, `the response was ${ Response_Decision.INDETERMINATE }`, ].join(' '); const details = 'Entity missing'; @@ -189,8 +190,6 @@ export const accessRequest = async ( // default database is arangoDB const database = options?.database ? options.database : 'arangoDB'; const useCache = options?.useCache ? options.useCache : true; - // default value is RC organization - const roleScopingEntityURN = options?.roleScopingEntityURN ? options.roleScopingEntityURN: 'urn:restorecommerce:acs:model:organization.Organization'; // ctx.resources if (ctx.resources && !_.isArray(ctx.resources)) { ctx.resources = [ctx.resources]; @@ -207,7 +206,7 @@ export const accessRequest = async ( resource, action, ctx, - useCache, roleScopingEntityURN + useCache ); } catch (err) { logger.error( @@ -228,7 +227,7 @@ export const accessRequest = async ( if (authzEnforced && (!policySetResponse || _.isEmpty(policySetResponse.policy_sets))) { const msg = [ `Access not allowed for request with subject:${ subjectID },`, - `resource:${ resourceName }, action:${ action }, target_scope:${ targetScope };`, + `resource:${ resourceName }, action:${ action }${targetScopeMessage}`, 'the response was INDETERMINATE' ].join(' '); const details = 'no matching policy/rule could be found'; @@ -246,13 +245,14 @@ export const accessRequest = async ( if (!authzEnforced && (!policySetResponse || _.isEmpty(policySetResponse.policy_sets))) { logger.verbose([ `The Access response was INDETERMIATE for a request with subject:${ subjectID },`, - `resource:${ resourceName }, action:${ action }, target_scope:${ targetScope }`, + `resource:${ resourceName }, action:${ action }${targetScopeMessage}`, `as no matching policy/rule could be found, but since ACS enforcement`, `config is disabled overriding the ACS result`, ].join(' ')); } // create filters to enforce applicable policies and custom query / args if applicable + // TODO check and modify this const resourceFilters = await createResourceFilterMap(resource, policySetResponse, ctx.resources, action, subClone, subjectID, authzEnforced, targetScope, database); @@ -273,7 +273,7 @@ export const accessRequest = async ( if (operation === Operation.isAllowed) { // authorization try { - decisionResponse = await isAllowedRequest(subClone as Subject, resource, action, ctx, useCache, roleScopingEntityURN); + decisionResponse = await isAllowedRequest(subClone as Subject, resource, action, ctx, useCache); } catch (err) { logger.error('Error calling isAllowed operation', { code: err.code, message: err.message, stack: err.stack }); return { decision: Response_Decision.DENY, operation_status: generateOperationStatus(err.code, err.message) }; @@ -288,7 +288,7 @@ export const accessRequest = async ( } const msg = [ `Access not allowed for request with subject:${ subjectID },`, - `resource:${ resourceName }, action:${ action }, target_scope:${ targetScope };`, + `resource:${ resourceName }, action:${ action }${targetScopeMessage}`, `the response was ${Response_Decision[decisionResponse.decision]}`, ].join(' '); logger.verbose(msg); @@ -309,7 +309,7 @@ export const accessRequest = async ( } logger.verbose([ `Access not allowed for request with subject:${ subjectID },`, - `resource:${ resourceName }, action:${ action }, target_scope:${ targetScope };`, + `resource:${ resourceName }, action:${ action }${targetScopeMessage}`, `the response was ${Response_Decision[decisionResponse.decision]}`, ]).join(' '); logger.verbose(`${details}, Overriding the ACS result as ACS enforce config is disabled`); diff --git a/packages/acs-client/src/utils.ts b/packages/acs-client/src/utils.ts index b979ffa6..242bfb4a 100644 --- a/packages/acs-client/src/utils.ts +++ b/packages/acs-client/src/utils.ts @@ -43,21 +43,23 @@ const reduceUserScope = (hrScope: HierarchicalScope, reducedUserScope: string[], } }; -const checkTargetScopeExists = (hrScope: HierarchicalScope, targetScope: string, +const checkTargetScopeExists = (hrScopes: HierarchicalScope[], targetScope: string, reducedUserScope: string[], hierarchicalRoleScopingCheck: string): boolean => { - if (hrScope?.id === targetScope) { - // found the target scope object, iterate and put the orgs in reducedUserScope array - logger.debug(`Target entity match found in the user's hierarchical scope`); - reduceUserScope(hrScope, reducedUserScope, hierarchicalRoleScopingCheck); - return true; - } else if (hrScope?.children?.length > 0 && hierarchicalRoleScopingCheck === 'true') { - for (let childNode of hrScope.children) { - if (checkTargetScopeExists(childNode, targetScope, reducedUserScope, hierarchicalRoleScopingCheck)) { - return true; + return hrScopes.some((hrScope) => { + if (hrScope?.id === targetScope) { + // found the target scope object, iterate and put the orgs in reducedUserScope array + logger.debug(`Target entity match found in the user's hierarchical scope`); + reduceUserScope(hrScope, reducedUserScope, hierarchicalRoleScopingCheck); + return true; + } else if (hrScope?.children?.length > 0 && hierarchicalRoleScopingCheck === 'true') { + for (let childNode of hrScope.children) { + if (checkTargetScopeExists([childNode], targetScope, reducedUserScope, hierarchicalRoleScopingCheck)) { + return true; + } } } - } - return false; + return false; + }); }; const checkSubjectMatch = (user: ResolvedSubject, ruleSubjectAttributes: Attribute[], @@ -66,10 +68,7 @@ const checkSubjectMatch = (user: ResolvedSubject, ruleSubjectAttributes: Attribu // role URN exists // 2) Now check if the subject rule role value matches with one of the users ctx role_associations // then get the corresponding scope instance and check if the targetScope is present in user HR scope Object - let roleScopeEntExists = false; - let roleValueExists = false; - // by default HR scoping check is considered - let hierarchicalRoleScopingCheck = 'true'; + let hierarchicalRoleScopingCheck = 'true'; // by default HR scoping check is considered let ruleRoleValue; let ruleRoleScopeEntityName; const urns = cfg.get('authorization:urns'); @@ -81,60 +80,53 @@ const checkSubjectMatch = (user: ResolvedSubject, ruleSubjectAttributes: Attribu return true; } if (attribute?.id === urns.roleScopingEntity) { - roleScopeEntExists = true; ruleRoleScopeEntityName = attribute.value; } else if (attribute.id === urns.role) { // urns.role -> urn:restorecommerce:acs:names:role - roleValueExists = true; ruleRoleValue = attribute.value; } else if (attribute?.id === urns.hierarchicalRoleScoping) { hierarchicalRoleScopingCheck = attribute.value; } } - let userAssocScope; - if (roleScopeEntExists && roleValueExists) { - if (user?.role_associations?.length > 0) { - for (let role of user?.role_associations) { - if (role?.role === ruleRoleValue) { - // check the targetScope exists in the user HR scope object - let roleScopeEntityNameMatched = false; - for (let roleAttrs of role?.attributes) { - // urn:restorecommerce:acs:names:roleScopingInstance - if (roleAttrs?.id === urns.roleScopingEntity && - roleAttrs?.value === ruleRoleScopeEntityName) { - roleScopeEntityNameMatched = true; - } - if (roleScopeEntityNameMatched && roleAttrs?.attributes?.length > 0) { - for (let roleScopeInstObj of roleAttrs.attributes) { - if (roleScopeInstObj.id === urns.roleScopingInstance) { - userAssocScope = roleScopeInstObj.value; - break; - } - } + if (ruleRoleValue && ruleRoleScopeEntityName) { + const matchingRoleScopedInstance: string[] = user?.role_associations?.filter((roleObj) => { + return roleObj?.attributes?.some((roleAttributeObj) => { + if (roleAttributeObj?.id === urns?.roleScopingEntity + && roleAttributeObj?.value === ruleRoleScopeEntityName) { + return roleAttributeObj?.attributes?.some((roleScopingInstanceObj) => { + if (roleScopingInstanceObj?.id === urns?.roleScopingInstance) { + return roleScopingInstanceObj?.value; } - } - - // check if this userAssocScope's HR object contains the targetScope - const userAssocHRScope = user?.hierarchical_scopes.find( - hrScope => hrScope?.id === userAssocScope - ); - - // check HR scope matching for subject if hierarchicalRoleScopingCheck is 'true' - if (!userAssocHRScope) { - return false; - } - else if (checkTargetScopeExists( - userAssocHRScope, - user.scope, - reducedUserScope, - hierarchicalRoleScopingCheck - )) { - return true; - } + }); } + }); + }).flatMap((roleObj) => roleObj?.attributes?.map( + roleObjAttr => roleObjAttr?.attributes?.map((attrInstObj) => attrInstObj.value)[0] + )); + + // validate HR scope root ID contains the role scope instances + const hrScopeExist = user?.hierarchical_scopes?.every((hrScope) => matchingRoleScopedInstance.includes(hrScope.id)); + if (!hrScopeExist) { + logger.info('Hierarchial scopes for matching role does not exist', { role: ruleRoleValue, instances: matchingRoleScopedInstance }); + return false; + } else if (hrScopeExist && user?.scope) { + return checkTargetScopeExists( + user?.hierarchical_scopes?.filter((hrScope) => matchingRoleScopedInstance?.includes(hrScope?.id)), + user?.scope, + reducedUserScope, + hierarchicalRoleScopingCheck + ); + } else { + // HR scope match exist but user has not provided scope so still a match is considered + if (!user?.scope) { + // if no scope is provided then use the complete HR tree for user scopes + user?.hierarchical_scopes?.filter((hrScope) => matchingRoleScopedInstance?.includes(hrScope?.id)).forEach((eachHRScope) => { + reduceUserScope(eachHRScope, reducedUserScope, hierarchicalRoleScopingCheck); + }); } + return hrScopeExist; } - } else if (roleValueExists) { + } else if (ruleRoleValue) { return user?.role_associations?.some( ra => ra.role === ruleRoleValue ); @@ -347,8 +339,8 @@ export const buildFilterPermissions = async ( } } else { - subject.hierarchical_scopes ??= []; - subject.role_associations ??= []; + subject.hierarchical_scopes ??=[]; + subject.role_associations ??=[]; } const urns = cfg.get('authorization:urns'); diff --git a/packages/acs-client/test/acs.spec.test.ts b/packages/acs-client/test/acs.spec.test.ts index 6992cf68..5590af9a 100644 --- a/packages/acs-client/test/acs.spec.test.ts +++ b/packages/acs-client/test/acs.spec.test.ts @@ -589,6 +589,84 @@ describe('Testing acs-client', () => { } ); + it( + 'Should PERMIT reading Test resource when no scope is provided (PERMIT rule) with HR scoping ' + + 'enabled and verify since no scope is provided all applicable HR scope instances are returned', + async () => { + // PolicySet contains PERMIT rule + PolicySetRQFactory.rules = [permitRule]; + + // test resource to be read of type 'ReadRequest' + const resources: CtxResource[] = [{ + id: 'test_id', + meta: { + owners: [] + } + }]; + + // user ctx data updated in session + const subject = { + id: 'test_user_id', + token: 'valid_token', + role_associations: [ + { + role: 'test-role', + attributes: [ + { + id: 'urn:restorecommerce:acs:names:roleScopingEntity', + value: 'urn:test:acs:model:organization.Organization', + attributes: [{ + id: 'urn:restorecommerce:acs:names:roleScopingInstance', + value: 'targetScope' + }] + } + ] + } + ], + hierarchical_scopes: [ + { + id: 'targetScope', + children: [{ + id: 'targetSubScope' + }] + } + ] + }; + + const ctx: ACSClientContext = { + subject, + resources, + }; + + // call accessRequest(), the response is from mock ACS + const readResponse = await accessRequest( + subject, + [{ resource: 'Test', id: resources[0].id }], + AuthZAction.READ, + ctx, { operation: Operation.whatIsAllowed, database: 'postgres' } + ) as PolicySetRQResponse; + + should.equal(readResponse.decision, Response_Decision.PERMIT); + should.equal(readResponse.operation_status?.code, 200); + should.equal(readResponse.operation_status?.message, 'success'); + // verify input is modified to enforce the applicapble poilicies + const filterParamKey = cfg.get('authorization:filterParamKey'); + const expectedFilterResponse = [{ + field: filterParamKey, + operation: 'eq', + value: 'targetScope' + }, { + field: filterParamKey, + operation: 'eq', + value: 'targetSubScope' + }]; + should.equal(readResponse.filters?.[0]?.resource, 'Test'); + const filters = readResponse.filters?.[0].filters; + should.deepEqual(filters?.[0]?.filters?.[0], expectedFilterResponse[0]); + should.deepEqual(filters?.[0]?.filters?.[1], expectedFilterResponse[1]); + } + ); + it( 'Should DENY reading Test resource (PERMIT rule) with HR scoping disabled', async () => { diff --git a/packages/facade/src/modules/catalog/gql/schema.generated.ts b/packages/facade/src/modules/catalog/gql/schema.generated.ts index eca7784d..4682005b 100644 --- a/packages/facade/src/modules/catalog/gql/schema.generated.ts +++ b/packages/facade/src/modules/catalog/gql/schema.generated.ts @@ -107,7 +107,6 @@ export type IoRestorecommerceProductIndividualProduct = { categoryId?: Maybe; category?: Maybe; taxIds?: Maybe>; - tax?: Maybe>; gtin?: Maybe; physical?: Maybe; service?: Maybe; @@ -182,26 +181,6 @@ export type IoRestorecommerceProductCategoryParent = { parentId?: Maybe; }; -export type IoRestorecommerceTaxTax = { - __typename?: 'IoRestorecommerceTaxTax'; - id?: Maybe; - meta?: Maybe; - countryId?: Maybe; - country?: Maybe; - rate?: Maybe; - variant?: Maybe; - typeId?: Maybe; - type?: Maybe; -}; - -export type IoRestorecommerceTaxTypeTaxType = { - __typename?: 'IoRestorecommerceTaxTypeTaxType'; - id?: Maybe; - meta?: Maybe; - type?: Maybe; - description?: Maybe; -}; - export type IoRestorecommerceProductPhysicalProduct = { __typename?: 'IoRestorecommerceProductPhysicalProduct'; variants?: Maybe>; @@ -220,7 +199,6 @@ export type IoRestorecommerceProductPhysicalVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; package?: Maybe; }; @@ -303,7 +281,6 @@ export type IoRestorecommerceProductServiceVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; }; export type IoRestorecommerceProductVirtualProduct = { @@ -324,7 +301,6 @@ export type IoRestorecommerceProductVirtualVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; }; export type IoRestorecommerceProductBundle = { @@ -460,15 +436,28 @@ export type IoRestorecommerceTimezoneTimezone = { __typename?: 'IoRestorecommerceTimezoneTimezone'; id?: Maybe; meta?: Maybe; + name?: Maybe; + value?: Maybe; + abbreviationStd?: Maybe; + abbreviationDst?: Maybe; + offsetStd?: Maybe; + offsetDst?: Maybe; description?: Maybe; }; +export type IoRestorecommerceTimezoneTimezoneOffset = { + __typename?: 'IoRestorecommerceTimezoneTimezoneOffset'; + hours?: Maybe; + minutes?: Maybe; +}; + export type IoRestorecommerceLocaleLocale = { __typename?: 'IoRestorecommerceLocaleLocale'; id?: Maybe; meta?: Maybe; value?: Maybe; description?: Maybe; + name?: Maybe; }; export type IoRestorecommercePaymentMethodPaymentMethod = { @@ -1244,8 +1233,6 @@ export type ResolversTypes = ResolversObject<{ Float: ResolverTypeWrapper; Int: ResolverTypeWrapper; IoRestorecommerceProductCategoryParent: ResolverTypeWrapper; - IoRestorecommerceTaxTax: ResolverTypeWrapper; - IoRestorecommerceTaxTypeTaxType: ResolverTypeWrapper; IoRestorecommerceProductPhysicalProduct: ResolverTypeWrapper; IoRestorecommerceProductPhysicalVariant: ResolverTypeWrapper; IoRestorecommercePricePrice: ResolverTypeWrapper; @@ -1273,6 +1260,7 @@ export type ResolversTypes = ResolversObject<{ IoRestorecommerceAddressPackStation: ResolverTypeWrapper; IoRestorecommerceContactPointTypeContactPointType: ResolverTypeWrapper; IoRestorecommerceTimezoneTimezone: ResolverTypeWrapper; + IoRestorecommerceTimezoneTimezoneOffset: ResolverTypeWrapper; IoRestorecommerceLocaleLocale: ResolverTypeWrapper; IoRestorecommercePaymentMethodPaymentMethod: ResolverTypeWrapper; IoRestorecommercePaymentMethodPaymentMethodEnum: IoRestorecommercePaymentMethodPaymentMethodEnum; @@ -1384,8 +1372,6 @@ export type ResolversParentTypes = ResolversObject<{ Float: Scalars['Float']['output']; Int: Scalars['Int']['output']; IoRestorecommerceProductCategoryParent: IoRestorecommerceProductCategoryParent; - IoRestorecommerceTaxTax: IoRestorecommerceTaxTax; - IoRestorecommerceTaxTypeTaxType: IoRestorecommerceTaxTypeTaxType; IoRestorecommerceProductPhysicalProduct: IoRestorecommerceProductPhysicalProduct; IoRestorecommerceProductPhysicalVariant: IoRestorecommerceProductPhysicalVariant; IoRestorecommercePricePrice: IoRestorecommercePricePrice; @@ -1413,6 +1399,7 @@ export type ResolversParentTypes = ResolversObject<{ IoRestorecommerceAddressPackStation: IoRestorecommerceAddressPackStation; IoRestorecommerceContactPointTypeContactPointType: IoRestorecommerceContactPointTypeContactPointType; IoRestorecommerceTimezoneTimezone: IoRestorecommerceTimezoneTimezone; + IoRestorecommerceTimezoneTimezoneOffset: IoRestorecommerceTimezoneTimezoneOffset; IoRestorecommerceLocaleLocale: IoRestorecommerceLocaleLocale; IoRestorecommercePaymentMethodPaymentMethod: IoRestorecommercePaymentMethodPaymentMethod; GoogleProtobufAny: GoogleProtobufAny; @@ -1573,7 +1560,6 @@ export type IoRestorecommerceProductIndividualProductResolvers, ParentType, ContextType>; category?: Resolver, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; gtin?: Resolver, ParentType, ContextType>; physical?: Resolver, ParentType, ContextType>; service?: Resolver, ParentType, ContextType>; @@ -1649,26 +1635,6 @@ export type IoRestorecommerceProductCategoryParentResolvers; }>; -export type IoRestorecommerceTaxTaxResolvers = ResolversObject<{ - id?: Resolver, ParentType, ContextType>; - meta?: Resolver, ParentType, ContextType>; - countryId?: Resolver, ParentType, ContextType>; - country?: Resolver, ParentType, ContextType>; - rate?: Resolver, ParentType, ContextType>; - variant?: Resolver, ParentType, ContextType>; - typeId?: Resolver, ParentType, ContextType>; - type?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type IoRestorecommerceTaxTypeTaxTypeResolvers = ResolversObject<{ - id?: Resolver, ParentType, ContextType>; - meta?: Resolver, ParentType, ContextType>; - type?: Resolver, ParentType, ContextType>; - description?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - export type IoRestorecommerceProductPhysicalProductResolvers = ResolversObject<{ variants?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; @@ -1686,7 +1652,6 @@ export type IoRestorecommerceProductPhysicalVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; package?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -1769,7 +1734,6 @@ export type IoRestorecommerceProductServiceVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -1790,7 +1754,6 @@ export type IoRestorecommerceProductVirtualVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -1926,15 +1889,28 @@ export type IoRestorecommerceContactPointTypeContactPointTypeResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; + value?: Resolver, ParentType, ContextType>; + abbreviationStd?: Resolver, ParentType, ContextType>; + abbreviationDst?: Resolver, ParentType, ContextType>; + offsetStd?: Resolver, ParentType, ContextType>; + offsetDst?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; +export type IoRestorecommerceTimezoneTimezoneOffsetResolvers = ResolversObject<{ + hours?: Resolver, ParentType, ContextType>; + minutes?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}>; + export type IoRestorecommerceLocaleLocaleResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; value?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2179,8 +2155,6 @@ export type Resolvers = ResolversObject<{ IoRestorecommercePriceGroupPriceGroup?: IoRestorecommercePriceGroupPriceGroupResolvers; IoRestorecommerceImageImage?: IoRestorecommerceImageImageResolvers; IoRestorecommerceProductCategoryParent?: IoRestorecommerceProductCategoryParentResolvers; - IoRestorecommerceTaxTax?: IoRestorecommerceTaxTaxResolvers; - IoRestorecommerceTaxTypeTaxType?: IoRestorecommerceTaxTypeTaxTypeResolvers; IoRestorecommerceProductPhysicalProduct?: IoRestorecommerceProductPhysicalProductResolvers; IoRestorecommerceProductPhysicalVariant?: IoRestorecommerceProductPhysicalVariantResolvers; IoRestorecommercePricePrice?: IoRestorecommercePricePriceResolvers; @@ -2207,6 +2181,7 @@ export type Resolvers = ResolversObject<{ IoRestorecommerceAddressPackStation?: IoRestorecommerceAddressPackStationResolvers; IoRestorecommerceContactPointTypeContactPointType?: IoRestorecommerceContactPointTypeContactPointTypeResolvers; IoRestorecommerceTimezoneTimezone?: IoRestorecommerceTimezoneTimezoneResolvers; + IoRestorecommerceTimezoneTimezoneOffset?: IoRestorecommerceTimezoneTimezoneOffsetResolvers; IoRestorecommerceLocaleLocale?: IoRestorecommerceLocaleLocaleResolvers; IoRestorecommercePaymentMethodPaymentMethod?: IoRestorecommercePaymentMethodPaymentMethodResolvers; IoRestorecommercePaymentMethodPaymentMethodEnum?: IoRestorecommercePaymentMethodPaymentMethodEnumResolvers; diff --git a/packages/facade/src/modules/fulfillment/gql/schema.generated.ts b/packages/facade/src/modules/fulfillment/gql/schema.generated.ts index 7cb04478..647de2ba 100644 --- a/packages/facade/src/modules/fulfillment/gql/schema.generated.ts +++ b/packages/facade/src/modules/fulfillment/gql/schema.generated.ts @@ -139,15 +139,28 @@ export type IoRestorecommerceTimezoneTimezone = { __typename?: 'IoRestorecommerceTimezoneTimezone'; id?: Maybe; meta?: Maybe; + name?: Maybe; + value?: Maybe; + abbreviationStd?: Maybe; + abbreviationDst?: Maybe; + offsetStd?: Maybe; + offsetDst?: Maybe; description?: Maybe; }; +export type IoRestorecommerceTimezoneTimezoneOffset = { + __typename?: 'IoRestorecommerceTimezoneTimezoneOffset'; + hours?: Maybe; + minutes?: Maybe; +}; + export type IoRestorecommerceLocaleLocale = { __typename?: 'IoRestorecommerceLocaleLocale'; id?: Maybe; meta?: Maybe; value?: Maybe; description?: Maybe; + name?: Maybe; }; export type IoRestorecommerceImageImage = { @@ -503,6 +516,8 @@ export type IoRestorecommerceTaxTax = { variant?: Maybe; typeId?: Maybe; type?: Maybe; + name?: Maybe; + abbreviation?: Maybe; }; export type IoRestorecommerceTaxTypeTaxType = { @@ -539,14 +554,14 @@ export type IoRestorecommerceFulfillmentLabel = { }; export enum IoRestorecommerceFulfillmentState { - Failed = 0, + Pending = 0, Invalid = 1, - Created = 2, - Submitted = 3, - InTransit = 4, - Fulfilled = 5, - Withdrawn = 6, - Cancelled = 7 + Submitted = 2, + InTransit = 3, + Completed = 4, + Withdrawn = 5, + Cancelled = 6, + Failed = 7 } export type IoRestorecommerceStatusStatus = { @@ -1210,7 +1225,6 @@ export type IoRestorecommerceProductIndividualProduct = { categoryId?: Maybe; category?: Maybe; taxIds?: Maybe>; - tax?: Maybe>; gtin?: Maybe; physical?: Maybe; service?: Maybe; @@ -1279,7 +1293,6 @@ export type IoRestorecommerceProductPhysicalVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; package?: Maybe; }; @@ -1321,7 +1334,6 @@ export type IoRestorecommerceProductServiceVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; }; export type IoRestorecommerceProductVirtualProduct = { @@ -1342,7 +1354,6 @@ export type IoRestorecommerceProductVirtualVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; }; export type IoRestorecommerceProductBundle = { @@ -1643,10 +1654,11 @@ export type ResolversTypes = ResolversObject<{ Boolean: ResolverTypeWrapper; IoRestorecommerceAuthRoleAssociation: ResolverTypeWrapper; IoRestorecommerceTimezoneTimezone: ResolverTypeWrapper; + IoRestorecommerceTimezoneTimezoneOffset: ResolverTypeWrapper; + Int: ResolverTypeWrapper; IoRestorecommerceLocaleLocale: ResolverTypeWrapper; IoRestorecommerceImageImage: ResolverTypeWrapper; Float: ResolverTypeWrapper; - Int: ResolverTypeWrapper; IoRestorecommerceUserUserType: IoRestorecommerceUserUserType; IoRestorecommerceAuthTokens: ResolverTypeWrapper; GoogleProtobufAny: ResolverTypeWrapper; @@ -1823,10 +1835,11 @@ export type ResolversParentTypes = ResolversObject<{ Boolean: Scalars['Boolean']['output']; IoRestorecommerceAuthRoleAssociation: IoRestorecommerceAuthRoleAssociation; IoRestorecommerceTimezoneTimezone: IoRestorecommerceTimezoneTimezone; + IoRestorecommerceTimezoneTimezoneOffset: IoRestorecommerceTimezoneTimezoneOffset; + Int: Scalars['Int']['output']; IoRestorecommerceLocaleLocale: IoRestorecommerceLocaleLocale; IoRestorecommerceImageImage: IoRestorecommerceImageImage; Float: Scalars['Float']['output']; - Int: Scalars['Int']['output']; IoRestorecommerceAuthTokens: IoRestorecommerceAuthTokens; GoogleProtobufAny: GoogleProtobufAny; GoogleProtobufAnyValue: Scalars['GoogleProtobufAnyValue']['output']; @@ -2087,15 +2100,28 @@ export type IoRestorecommerceAuthRoleAssociationResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; + value?: Resolver, ParentType, ContextType>; + abbreviationStd?: Resolver, ParentType, ContextType>; + abbreviationDst?: Resolver, ParentType, ContextType>; + offsetStd?: Resolver, ParentType, ContextType>; + offsetDst?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; +export type IoRestorecommerceTimezoneTimezoneOffsetResolvers = ResolversObject<{ + hours?: Resolver, ParentType, ContextType>; + minutes?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}>; + export type IoRestorecommerceLocaleLocaleResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; value?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2442,6 +2468,8 @@ export type IoRestorecommerceTaxTaxResolvers, ParentType, ContextType>; typeId?: Resolver, ParentType, ContextType>; type?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; + abbreviation?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2478,7 +2506,7 @@ export type IoRestorecommerceFulfillmentLabelResolvers; }>; -export type IoRestorecommerceFulfillmentStateResolvers = { FAILED: 0, INVALID: 1, CREATED: 2, SUBMITTED: 3, IN_TRANSIT: 4, FULFILLED: 5, WITHDRAWN: 6, CANCELLED: 7 }; +export type IoRestorecommerceFulfillmentStateResolvers = { PENDING: 0, INVALID: 1, SUBMITTED: 2, IN_TRANSIT: 3, COMPLETED: 4, WITHDRAWN: 5, CANCELLED: 6, FAILED: 7 }; export type IoRestorecommerceStatusStatusResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; @@ -2745,7 +2773,6 @@ export type IoRestorecommerceProductIndividualProductResolvers, ParentType, ContextType>; category?: Resolver, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; gtin?: Resolver, ParentType, ContextType>; physical?: Resolver, ParentType, ContextType>; service?: Resolver, ParentType, ContextType>; @@ -2814,7 +2841,6 @@ export type IoRestorecommerceProductPhysicalVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; package?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2856,7 +2882,6 @@ export type IoRestorecommerceProductServiceVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2877,7 +2902,6 @@ export type IoRestorecommerceProductVirtualVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2978,6 +3002,7 @@ export type Resolvers = ResolversObject<{ IoRestorecommerceUserUser?: IoRestorecommerceUserUserResolvers; IoRestorecommerceAuthRoleAssociation?: IoRestorecommerceAuthRoleAssociationResolvers; IoRestorecommerceTimezoneTimezone?: IoRestorecommerceTimezoneTimezoneResolvers; + IoRestorecommerceTimezoneTimezoneOffset?: IoRestorecommerceTimezoneTimezoneOffsetResolvers; IoRestorecommerceLocaleLocale?: IoRestorecommerceLocaleLocaleResolvers; IoRestorecommerceImageImage?: IoRestorecommerceImageImageResolvers; IoRestorecommerceUserUserType?: IoRestorecommerceUserUserTypeResolvers; diff --git a/packages/facade/src/modules/identity/gql/schema.generated.ts b/packages/facade/src/modules/identity/gql/schema.generated.ts index c9ee442b..644bc339 100644 --- a/packages/facade/src/modules/identity/gql/schema.generated.ts +++ b/packages/facade/src/modules/identity/gql/schema.generated.ts @@ -142,15 +142,28 @@ export type IoRestorecommerceTimezoneTimezone = { __typename?: 'IoRestorecommerceTimezoneTimezone'; id?: Maybe; meta?: Maybe; + name?: Maybe; + value?: Maybe; + abbreviationStd?: Maybe; + abbreviationDst?: Maybe; + offsetStd?: Maybe; + offsetDst?: Maybe; description?: Maybe; }; +export type IoRestorecommerceTimezoneTimezoneOffset = { + __typename?: 'IoRestorecommerceTimezoneTimezoneOffset'; + hours?: Maybe; + minutes?: Maybe; +}; + export type IoRestorecommerceLocaleLocale = { __typename?: 'IoRestorecommerceLocaleLocale'; id?: Maybe; meta?: Maybe; value?: Maybe; description?: Maybe; + name?: Maybe; }; export type IoRestorecommerceImageImage = { @@ -1147,10 +1160,11 @@ export type ResolversTypes = ResolversObject<{ Boolean: ResolverTypeWrapper; IoRestorecommerceAuthRoleAssociation: ResolverTypeWrapper; IoRestorecommerceTimezoneTimezone: ResolverTypeWrapper; + IoRestorecommerceTimezoneTimezoneOffset: ResolverTypeWrapper; + Int: ResolverTypeWrapper; IoRestorecommerceLocaleLocale: ResolverTypeWrapper; IoRestorecommerceImageImage: ResolverTypeWrapper; Float: ResolverTypeWrapper; - Int: ResolverTypeWrapper; IoRestorecommerceUserUserType: IoRestorecommerceUserUserType; IoRestorecommerceAuthTokens: ResolverTypeWrapper; GoogleProtobufAny: ResolverTypeWrapper; @@ -1271,10 +1285,11 @@ export type ResolversParentTypes = ResolversObject<{ Boolean: Scalars['Boolean']['output']; IoRestorecommerceAuthRoleAssociation: IoRestorecommerceAuthRoleAssociation; IoRestorecommerceTimezoneTimezone: IoRestorecommerceTimezoneTimezone; + IoRestorecommerceTimezoneTimezoneOffset: IoRestorecommerceTimezoneTimezoneOffset; + Int: Scalars['Int']['output']; IoRestorecommerceLocaleLocale: IoRestorecommerceLocaleLocale; IoRestorecommerceImageImage: IoRestorecommerceImageImage; Float: Scalars['Float']['output']; - Int: Scalars['Int']['output']; IoRestorecommerceAuthTokens: IoRestorecommerceAuthTokens; GoogleProtobufAny: GoogleProtobufAny; GoogleProtobufAnyValue: Scalars['GoogleProtobufAnyValue']['output']; @@ -1472,15 +1487,28 @@ export type IoRestorecommerceAuthRoleAssociationResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; + value?: Resolver, ParentType, ContextType>; + abbreviationStd?: Resolver, ParentType, ContextType>; + abbreviationDst?: Resolver, ParentType, ContextType>; + offsetStd?: Resolver, ParentType, ContextType>; + offsetDst?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; +export type IoRestorecommerceTimezoneTimezoneOffsetResolvers = ResolversObject<{ + hours?: Resolver, ParentType, ContextType>; + minutes?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}>; + export type IoRestorecommerceLocaleLocaleResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; value?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -1865,6 +1893,7 @@ export type Resolvers = ResolversObject<{ IoRestorecommerceAttributeAttribute?: IoRestorecommerceAttributeAttributeResolvers; IoRestorecommerceAuthRoleAssociation?: IoRestorecommerceAuthRoleAssociationResolvers; IoRestorecommerceTimezoneTimezone?: IoRestorecommerceTimezoneTimezoneResolvers; + IoRestorecommerceTimezoneTimezoneOffset?: IoRestorecommerceTimezoneTimezoneOffsetResolvers; IoRestorecommerceLocaleLocale?: IoRestorecommerceLocaleLocaleResolvers; IoRestorecommerceImageImage?: IoRestorecommerceImageImageResolvers; IoRestorecommerceUserUserType?: IoRestorecommerceUserUserTypeResolvers; diff --git a/packages/facade/src/modules/invoicing/gql/schema.generated.ts b/packages/facade/src/modules/invoicing/gql/schema.generated.ts index 3dfa6928..30b9d208 100644 --- a/packages/facade/src/modules/invoicing/gql/schema.generated.ts +++ b/packages/facade/src/modules/invoicing/gql/schema.generated.ts @@ -151,15 +151,28 @@ export type IoRestorecommerceTimezoneTimezone = { __typename?: 'IoRestorecommerceTimezoneTimezone'; id?: Maybe; meta?: Maybe; + name?: Maybe; + value?: Maybe; + abbreviationStd?: Maybe; + abbreviationDst?: Maybe; + offsetStd?: Maybe; + offsetDst?: Maybe; description?: Maybe; }; +export type IoRestorecommerceTimezoneTimezoneOffset = { + __typename?: 'IoRestorecommerceTimezoneTimezoneOffset'; + hours?: Maybe; + minutes?: Maybe; +}; + export type IoRestorecommerceLocaleLocale = { __typename?: 'IoRestorecommerceLocaleLocale'; id?: Maybe; meta?: Maybe; value?: Maybe; description?: Maybe; + name?: Maybe; }; export type IoRestorecommerceImageImage = { @@ -446,7 +459,6 @@ export type IoRestorecommerceProductIndividualProduct = { categoryId?: Maybe; category?: Maybe; taxIds?: Maybe>; - tax?: Maybe>; gtin?: Maybe; physical?: Maybe; service?: Maybe; @@ -497,26 +509,6 @@ export type IoRestorecommerceProductCategoryParent = { parentId?: Maybe; }; -export type IoRestorecommerceTaxTax = { - __typename?: 'IoRestorecommerceTaxTax'; - id?: Maybe; - meta?: Maybe; - countryId?: Maybe; - country?: Maybe; - rate?: Maybe; - variant?: Maybe; - typeId?: Maybe; - type?: Maybe; -}; - -export type IoRestorecommerceTaxTypeTaxType = { - __typename?: 'IoRestorecommerceTaxTypeTaxType'; - id?: Maybe; - meta?: Maybe; - type?: Maybe; - description?: Maybe; -}; - export type IoRestorecommerceProductPhysicalProduct = { __typename?: 'IoRestorecommerceProductPhysicalProduct'; variants?: Maybe>; @@ -535,7 +527,6 @@ export type IoRestorecommerceProductPhysicalVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; package?: Maybe; }; @@ -618,7 +609,6 @@ export type IoRestorecommerceProductServiceVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; }; export type IoRestorecommerceProductVirtualProduct = { @@ -639,7 +629,6 @@ export type IoRestorecommerceProductVirtualVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; }; export type IoRestorecommerceProductBundle = { @@ -748,6 +737,28 @@ export type IoRestorecommerceAmountVat = { vat?: Maybe; }; +export type IoRestorecommerceTaxTax = { + __typename?: 'IoRestorecommerceTaxTax'; + id?: Maybe; + meta?: Maybe; + countryId?: Maybe; + country?: Maybe; + rate?: Maybe; + variant?: Maybe; + typeId?: Maybe; + type?: Maybe; + name?: Maybe; + abbreviation?: Maybe; +}; + +export type IoRestorecommerceTaxTypeTaxType = { + __typename?: 'IoRestorecommerceTaxTypeTaxType'; + id?: Maybe; + meta?: Maybe; + type?: Maybe; + description?: Maybe; +}; + export type IoRestorecommerceStatusStatus = { __typename?: 'IoRestorecommerceStatusStatus'; id?: Maybe; @@ -1305,10 +1316,11 @@ export type ResolversTypes = ResolversObject<{ Boolean: ResolverTypeWrapper; IoRestorecommerceAuthRoleAssociation: ResolverTypeWrapper; IoRestorecommerceTimezoneTimezone: ResolverTypeWrapper; + IoRestorecommerceTimezoneTimezoneOffset: ResolverTypeWrapper; + Int: ResolverTypeWrapper; IoRestorecommerceLocaleLocale: ResolverTypeWrapper; IoRestorecommerceImageImage: ResolverTypeWrapper; Float: ResolverTypeWrapper; - Int: ResolverTypeWrapper; IoRestorecommerceUserUserType: IoRestorecommerceUserUserType; IoRestorecommerceAuthTokens: ResolverTypeWrapper; GoogleProtobufAny: ResolverTypeWrapper; @@ -1344,8 +1356,6 @@ export type ResolversTypes = ResolversObject<{ IoRestorecommerceProductCategoryProductCategory: ResolverTypeWrapper; IoRestorecommercePriceGroupPriceGroup: ResolverTypeWrapper; IoRestorecommerceProductCategoryParent: ResolverTypeWrapper; - IoRestorecommerceTaxTax: ResolverTypeWrapper; - IoRestorecommerceTaxTypeTaxType: ResolverTypeWrapper; IoRestorecommerceProductPhysicalProduct: ResolverTypeWrapper; IoRestorecommerceProductPhysicalVariant: ResolverTypeWrapper; IoRestorecommercePricePrice: ResolverTypeWrapper; @@ -1370,6 +1380,8 @@ export type ResolversTypes = ResolversObject<{ IoRestorecommerceInvoiceManualItem: ResolverTypeWrapper; IoRestorecommerceAmountAmount: ResolverTypeWrapper; IoRestorecommerceAmountVAT: ResolverTypeWrapper; + IoRestorecommerceTaxTax: ResolverTypeWrapper; + IoRestorecommerceTaxTypeTaxType: ResolverTypeWrapper; IoRestorecommerceStatusStatus: ResolverTypeWrapper; IoRestorecommerceStatusOperationStatus: ResolverTypeWrapper; IIoRestorecommerceResourcebaseReadRequest: IIoRestorecommerceResourcebaseReadRequest; @@ -1450,10 +1462,11 @@ export type ResolversParentTypes = ResolversObject<{ Boolean: Scalars['Boolean']['output']; IoRestorecommerceAuthRoleAssociation: IoRestorecommerceAuthRoleAssociation; IoRestorecommerceTimezoneTimezone: IoRestorecommerceTimezoneTimezone; + IoRestorecommerceTimezoneTimezoneOffset: IoRestorecommerceTimezoneTimezoneOffset; + Int: Scalars['Int']['output']; IoRestorecommerceLocaleLocale: IoRestorecommerceLocaleLocale; IoRestorecommerceImageImage: IoRestorecommerceImageImage; Float: Scalars['Float']['output']; - Int: Scalars['Int']['output']; IoRestorecommerceAuthTokens: IoRestorecommerceAuthTokens; GoogleProtobufAny: GoogleProtobufAny; GoogleProtobufAnyValue: Scalars['GoogleProtobufAnyValue']['output']; @@ -1485,8 +1498,6 @@ export type ResolversParentTypes = ResolversObject<{ IoRestorecommerceProductCategoryProductCategory: IoRestorecommerceProductCategoryProductCategory; IoRestorecommercePriceGroupPriceGroup: IoRestorecommercePriceGroupPriceGroup; IoRestorecommerceProductCategoryParent: IoRestorecommerceProductCategoryParent; - IoRestorecommerceTaxTax: IoRestorecommerceTaxTax; - IoRestorecommerceTaxTypeTaxType: IoRestorecommerceTaxTypeTaxType; IoRestorecommerceProductPhysicalProduct: IoRestorecommerceProductPhysicalProduct; IoRestorecommerceProductPhysicalVariant: IoRestorecommerceProductPhysicalVariant; IoRestorecommercePricePrice: IoRestorecommercePricePrice; @@ -1510,6 +1521,8 @@ export type ResolversParentTypes = ResolversObject<{ IoRestorecommerceInvoiceManualItem: IoRestorecommerceInvoiceManualItem; IoRestorecommerceAmountAmount: IoRestorecommerceAmountAmount; IoRestorecommerceAmountVAT: IoRestorecommerceAmountVat; + IoRestorecommerceTaxTax: IoRestorecommerceTaxTax; + IoRestorecommerceTaxTypeTaxType: IoRestorecommerceTaxTypeTaxType; IoRestorecommerceStatusStatus: IoRestorecommerceStatusStatus; IoRestorecommerceStatusOperationStatus: IoRestorecommerceStatusOperationStatus; IIoRestorecommerceResourcebaseReadRequest: IIoRestorecommerceResourcebaseReadRequest; @@ -1691,15 +1704,28 @@ export type IoRestorecommerceAuthRoleAssociationResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; + value?: Resolver, ParentType, ContextType>; + abbreviationStd?: Resolver, ParentType, ContextType>; + abbreviationDst?: Resolver, ParentType, ContextType>; + offsetStd?: Resolver, ParentType, ContextType>; + offsetDst?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; +export type IoRestorecommerceTimezoneTimezoneOffsetResolvers = ResolversObject<{ + hours?: Resolver, ParentType, ContextType>; + minutes?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}>; + export type IoRestorecommerceLocaleLocaleResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; value?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -1974,7 +2000,6 @@ export type IoRestorecommerceProductIndividualProductResolvers, ParentType, ContextType>; category?: Resolver, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; gtin?: Resolver, ParentType, ContextType>; physical?: Resolver, ParentType, ContextType>; service?: Resolver, ParentType, ContextType>; @@ -2026,26 +2051,6 @@ export type IoRestorecommerceProductCategoryParentResolvers; }>; -export type IoRestorecommerceTaxTaxResolvers = ResolversObject<{ - id?: Resolver, ParentType, ContextType>; - meta?: Resolver, ParentType, ContextType>; - countryId?: Resolver, ParentType, ContextType>; - country?: Resolver, ParentType, ContextType>; - rate?: Resolver, ParentType, ContextType>; - variant?: Resolver, ParentType, ContextType>; - typeId?: Resolver, ParentType, ContextType>; - type?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type IoRestorecommerceTaxTypeTaxTypeResolvers = ResolversObject<{ - id?: Resolver, ParentType, ContextType>; - meta?: Resolver, ParentType, ContextType>; - type?: Resolver, ParentType, ContextType>; - description?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - export type IoRestorecommerceProductPhysicalProductResolvers = ResolversObject<{ variants?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; @@ -2063,7 +2068,6 @@ export type IoRestorecommerceProductPhysicalVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; package?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2146,7 +2150,6 @@ export type IoRestorecommerceProductServiceVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2167,7 +2170,6 @@ export type IoRestorecommerceProductVirtualVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2273,6 +2275,28 @@ export type IoRestorecommerceAmountVatResolvers; }>; +export type IoRestorecommerceTaxTaxResolvers = ResolversObject<{ + id?: Resolver, ParentType, ContextType>; + meta?: Resolver, ParentType, ContextType>; + countryId?: Resolver, ParentType, ContextType>; + country?: Resolver, ParentType, ContextType>; + rate?: Resolver, ParentType, ContextType>; + variant?: Resolver, ParentType, ContextType>; + typeId?: Resolver, ParentType, ContextType>; + type?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; + abbreviation?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type IoRestorecommerceTaxTypeTaxTypeResolvers = ResolversObject<{ + id?: Resolver, ParentType, ContextType>; + meta?: Resolver, ParentType, ContextType>; + type?: Resolver, ParentType, ContextType>; + description?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}>; + export type IoRestorecommerceStatusStatusResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; code?: Resolver, ParentType, ContextType>; @@ -2382,6 +2406,7 @@ export type Resolvers = ResolversObject<{ IoRestorecommerceUserUser?: IoRestorecommerceUserUserResolvers; IoRestorecommerceAuthRoleAssociation?: IoRestorecommerceAuthRoleAssociationResolvers; IoRestorecommerceTimezoneTimezone?: IoRestorecommerceTimezoneTimezoneResolvers; + IoRestorecommerceTimezoneTimezoneOffset?: IoRestorecommerceTimezoneTimezoneOffsetResolvers; IoRestorecommerceLocaleLocale?: IoRestorecommerceLocaleLocaleResolvers; IoRestorecommerceImageImage?: IoRestorecommerceImageImageResolvers; IoRestorecommerceUserUserType?: IoRestorecommerceUserUserTypeResolvers; @@ -2419,8 +2444,6 @@ export type Resolvers = ResolversObject<{ IoRestorecommerceProductCategoryProductCategory?: IoRestorecommerceProductCategoryProductCategoryResolvers; IoRestorecommercePriceGroupPriceGroup?: IoRestorecommercePriceGroupPriceGroupResolvers; IoRestorecommerceProductCategoryParent?: IoRestorecommerceProductCategoryParentResolvers; - IoRestorecommerceTaxTax?: IoRestorecommerceTaxTaxResolvers; - IoRestorecommerceTaxTypeTaxType?: IoRestorecommerceTaxTypeTaxTypeResolvers; IoRestorecommerceProductPhysicalProduct?: IoRestorecommerceProductPhysicalProductResolvers; IoRestorecommerceProductPhysicalVariant?: IoRestorecommerceProductPhysicalVariantResolvers; IoRestorecommercePricePrice?: IoRestorecommercePricePriceResolvers; @@ -2445,6 +2468,8 @@ export type Resolvers = ResolversObject<{ IoRestorecommerceInvoiceManualItem?: IoRestorecommerceInvoiceManualItemResolvers; IoRestorecommerceAmountAmount?: IoRestorecommerceAmountAmountResolvers; IoRestorecommerceAmountVAT?: IoRestorecommerceAmountVatResolvers; + IoRestorecommerceTaxTax?: IoRestorecommerceTaxTaxResolvers; + IoRestorecommerceTaxTypeTaxType?: IoRestorecommerceTaxTypeTaxTypeResolvers; IoRestorecommerceStatusStatus?: IoRestorecommerceStatusStatusResolvers; IoRestorecommerceStatusOperationStatus?: IoRestorecommerceStatusOperationStatusResolvers; IoRestorecommerceResourcebaseSortSortOrder?: IoRestorecommerceResourcebaseSortSortOrderResolvers; diff --git a/packages/facade/src/modules/master_data/gql/schema.generated.ts b/packages/facade/src/modules/master_data/gql/schema.generated.ts index 80d29e62..51f614e1 100644 --- a/packages/facade/src/modules/master_data/gql/schema.generated.ts +++ b/packages/facade/src/modules/master_data/gql/schema.generated.ts @@ -339,9 +339,21 @@ export type IoRestorecommerceTimezoneTimezone = { __typename?: 'IoRestorecommerceTimezoneTimezone'; id?: Maybe; meta?: Maybe; + name?: Maybe; + value?: Maybe; + abbreviationStd?: Maybe; + abbreviationDst?: Maybe; + offsetStd?: Maybe; + offsetDst?: Maybe; description?: Maybe; }; +export type IoRestorecommerceTimezoneTimezoneOffset = { + __typename?: 'IoRestorecommerceTimezoneTimezoneOffset'; + hours?: Maybe; + minutes?: Maybe; +}; + export type ResourceContactPointTypeQuery = { __typename?: 'ResourceContactPointTypeQuery'; Read?: Maybe; @@ -468,6 +480,7 @@ export type IoRestorecommerceLocaleLocale = { meta?: Maybe; value?: Maybe; description?: Maybe; + name?: Maybe; }; export type IoRestorecommerceImageImage = { @@ -824,6 +837,8 @@ export type IoRestorecommerceTaxTax = { variant?: Maybe; typeId?: Maybe; type?: Maybe; + name?: Maybe; + abbreviation?: Maybe; }; export type ResourceUnitCodeQuery = { @@ -1142,9 +1157,20 @@ export type IIoRestorecommerceTimezoneTimezoneList = { export type IIoRestorecommerceTimezoneTimezone = { id?: InputMaybe; meta?: InputMaybe; + name?: InputMaybe; + value?: InputMaybe; + abbreviationStd?: InputMaybe; + abbreviationDst?: InputMaybe; + offsetStd?: InputMaybe; + offsetDst?: InputMaybe; description?: InputMaybe; }; +export type IIoRestorecommerceTimezoneTimezoneOffset = { + hours?: InputMaybe; + minutes?: InputMaybe; +}; + export type ResourceContactPointTypeMutation = { __typename?: 'ResourceContactPointTypeMutation'; Mutate?: Maybe; @@ -1287,6 +1313,7 @@ export type IIoRestorecommerceLocaleLocale = { meta?: InputMaybe; value?: InputMaybe; description?: InputMaybe; + name?: InputMaybe; }; export type ResourceLocationMutation = { @@ -1475,6 +1502,8 @@ export type IIoRestorecommerceTaxTax = { rate?: InputMaybe; variant?: InputMaybe; typeId?: InputMaybe; + name?: InputMaybe; + abbreviation?: InputMaybe; }; export type ResourceUnitCodeMutation = { @@ -1697,6 +1726,7 @@ export type ResolversTypes = ResolversObject<{ IoRestorecommerceTimezoneTimezoneListResponse: ResolverTypeWrapper; IoRestorecommerceTimezoneTimezoneResponse: ResolverTypeWrapper; IoRestorecommerceTimezoneTimezone: ResolverTypeWrapper; + IoRestorecommerceTimezoneTimezoneOffset: ResolverTypeWrapper; ResourceContactPointTypeQuery: ResolverTypeWrapper; ProtoIoRestorecommerceContactPointTypeContactPointTypeListResponse: ResolverTypeWrapper; IoRestorecommerceContactPointTypeContactPointTypeListResponse: ResolverTypeWrapper; @@ -1791,6 +1821,7 @@ export type ResolversTypes = ResolversObject<{ ResourceTimezoneMutation: ResolverTypeWrapper; IIoRestorecommerceTimezoneTimezoneList: IIoRestorecommerceTimezoneTimezoneList; IIoRestorecommerceTimezoneTimezone: IIoRestorecommerceTimezoneTimezone; + IIoRestorecommerceTimezoneTimezoneOffset: IIoRestorecommerceTimezoneTimezoneOffset; ResourceContactPointTypeMutation: ResolverTypeWrapper; IIoRestorecommerceContactPointTypeContactPointTypeList: IIoRestorecommerceContactPointTypeContactPointTypeList; IIoRestorecommerceContactPointTypeContactPointType: IIoRestorecommerceContactPointTypeContactPointType; @@ -1877,6 +1908,7 @@ export type ResolversParentTypes = ResolversObject<{ IoRestorecommerceTimezoneTimezoneListResponse: IoRestorecommerceTimezoneTimezoneListResponse; IoRestorecommerceTimezoneTimezoneResponse: IoRestorecommerceTimezoneTimezoneResponse; IoRestorecommerceTimezoneTimezone: IoRestorecommerceTimezoneTimezone; + IoRestorecommerceTimezoneTimezoneOffset: IoRestorecommerceTimezoneTimezoneOffset; ResourceContactPointTypeQuery: ResourceContactPointTypeQuery; ProtoIoRestorecommerceContactPointTypeContactPointTypeListResponse: ProtoIoRestorecommerceContactPointTypeContactPointTypeListResponse; IoRestorecommerceContactPointTypeContactPointTypeListResponse: IoRestorecommerceContactPointTypeContactPointTypeListResponse; @@ -1964,6 +1996,7 @@ export type ResolversParentTypes = ResolversObject<{ ResourceTimezoneMutation: ResourceTimezoneMutation; IIoRestorecommerceTimezoneTimezoneList: IIoRestorecommerceTimezoneTimezoneList; IIoRestorecommerceTimezoneTimezone: IIoRestorecommerceTimezoneTimezone; + IIoRestorecommerceTimezoneTimezoneOffset: IIoRestorecommerceTimezoneTimezoneOffset; ResourceContactPointTypeMutation: ResourceContactPointTypeMutation; IIoRestorecommerceContactPointTypeContactPointTypeList: IIoRestorecommerceContactPointTypeContactPointTypeList; IIoRestorecommerceContactPointTypeContactPointType: IIoRestorecommerceContactPointTypeContactPointType; @@ -2213,10 +2246,22 @@ export type IoRestorecommerceTimezoneTimezoneResponseResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; + value?: Resolver, ParentType, ContextType>; + abbreviationStd?: Resolver, ParentType, ContextType>; + abbreviationDst?: Resolver, ParentType, ContextType>; + offsetStd?: Resolver, ParentType, ContextType>; + offsetDst?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; +export type IoRestorecommerceTimezoneTimezoneOffsetResolvers = ResolversObject<{ + hours?: Resolver, ParentType, ContextType>; + minutes?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}>; + export type ResourceContactPointTypeQueryResolvers = ResolversObject<{ Read?: Resolver, ParentType, ContextType, RequireFields>; __isTypeOf?: IsTypeOfResolverFn; @@ -2332,6 +2377,7 @@ export type IoRestorecommerceLocaleLocaleResolvers, ParentType, ContextType>; value?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2640,6 +2686,8 @@ export type IoRestorecommerceTaxTaxResolvers, ParentType, ContextType>; typeId?: Resolver, ParentType, ContextType>; type?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; + abbreviation?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2895,6 +2943,7 @@ export type Resolvers = ResolversObject<{ IoRestorecommerceTimezoneTimezoneListResponse?: IoRestorecommerceTimezoneTimezoneListResponseResolvers; IoRestorecommerceTimezoneTimezoneResponse?: IoRestorecommerceTimezoneTimezoneResponseResolvers; IoRestorecommerceTimezoneTimezone?: IoRestorecommerceTimezoneTimezoneResolvers; + IoRestorecommerceTimezoneTimezoneOffset?: IoRestorecommerceTimezoneTimezoneOffsetResolvers; ResourceContactPointTypeQuery?: ResourceContactPointTypeQueryResolvers; ProtoIoRestorecommerceContactPointTypeContactPointTypeListResponse?: ProtoIoRestorecommerceContactPointTypeContactPointTypeListResponseResolvers; IoRestorecommerceContactPointTypeContactPointTypeListResponse?: IoRestorecommerceContactPointTypeContactPointTypeListResponseResolvers; diff --git a/packages/facade/src/modules/ordering/gql/schema.generated.ts b/packages/facade/src/modules/ordering/gql/schema.generated.ts index b44e2032..36154781 100644 --- a/packages/facade/src/modules/ordering/gql/schema.generated.ts +++ b/packages/facade/src/modules/ordering/gql/schema.generated.ts @@ -142,15 +142,28 @@ export type IoRestorecommerceTimezoneTimezone = { __typename?: 'IoRestorecommerceTimezoneTimezone'; id?: Maybe; meta?: Maybe; + name?: Maybe; + value?: Maybe; + abbreviationStd?: Maybe; + abbreviationDst?: Maybe; + offsetStd?: Maybe; + offsetDst?: Maybe; description?: Maybe; }; +export type IoRestorecommerceTimezoneTimezoneOffset = { + __typename?: 'IoRestorecommerceTimezoneTimezoneOffset'; + hours?: Maybe; + minutes?: Maybe; +}; + export type IoRestorecommerceLocaleLocale = { __typename?: 'IoRestorecommerceLocaleLocale'; id?: Maybe; meta?: Maybe; value?: Maybe; description?: Maybe; + name?: Maybe; }; export type IoRestorecommerceImageImage = { @@ -402,7 +415,6 @@ export type IoRestorecommerceProductIndividualProduct = { categoryId?: Maybe; category?: Maybe; taxIds?: Maybe>; - tax?: Maybe>; gtin?: Maybe; physical?: Maybe; service?: Maybe; @@ -453,26 +465,6 @@ export type IoRestorecommerceProductCategoryParent = { parentId?: Maybe; }; -export type IoRestorecommerceTaxTax = { - __typename?: 'IoRestorecommerceTaxTax'; - id?: Maybe; - meta?: Maybe; - countryId?: Maybe; - country?: Maybe; - rate?: Maybe; - variant?: Maybe; - typeId?: Maybe; - type?: Maybe; -}; - -export type IoRestorecommerceTaxTypeTaxType = { - __typename?: 'IoRestorecommerceTaxTypeTaxType'; - id?: Maybe; - meta?: Maybe; - type?: Maybe; - description?: Maybe; -}; - export type IoRestorecommerceProductPhysicalProduct = { __typename?: 'IoRestorecommerceProductPhysicalProduct'; variants?: Maybe>; @@ -491,7 +483,6 @@ export type IoRestorecommerceProductPhysicalVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; package?: Maybe; }; @@ -574,7 +565,6 @@ export type IoRestorecommerceProductServiceVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; }; export type IoRestorecommerceProductVirtualProduct = { @@ -595,7 +585,6 @@ export type IoRestorecommerceProductVirtualVariant = { parentVariantId?: Maybe; properties?: Maybe>; taxIds?: Maybe>; - tax?: Maybe>; }; export type IoRestorecommerceProductBundle = { @@ -649,26 +638,45 @@ export type IoRestorecommerceAmountVat = { vat?: Maybe; }; +export type IoRestorecommerceTaxTax = { + __typename?: 'IoRestorecommerceTaxTax'; + id?: Maybe; + meta?: Maybe; + countryId?: Maybe; + country?: Maybe; + rate?: Maybe; + variant?: Maybe; + typeId?: Maybe; + type?: Maybe; + name?: Maybe; + abbreviation?: Maybe; +}; + +export type IoRestorecommerceTaxTypeTaxType = { + __typename?: 'IoRestorecommerceTaxTypeTaxType'; + id?: Maybe; + meta?: Maybe; + type?: Maybe; + description?: Maybe; +}; + export enum IoRestorecommerceOrderOrderState { - Failed = 0, - Invalid = 1, - Created = 2, - Submitted = 3, - InProcess = 4, - Done = 5, - Withdrawn = 6, - Cancelled = 7 + Pending = 0, + Submitted = 1, + Completed = 2, + Withdrawn = 3, + Cancelled = 4 } export enum IoRestorecommerceFulfillmentState { - Failed = 0, + Pending = 0, Invalid = 1, - Created = 2, - Submitted = 3, - InTransit = 4, - Fulfilled = 5, - Withdrawn = 6, - Cancelled = 7 + Submitted = 2, + InTransit = 3, + Completed = 4, + Withdrawn = 5, + Cancelled = 6, + Failed = 7 } export enum IoRestorecommerceInvoicePaymentState { @@ -1511,10 +1519,11 @@ export type ResolversTypes = ResolversObject<{ Boolean: ResolverTypeWrapper; IoRestorecommerceAuthRoleAssociation: ResolverTypeWrapper; IoRestorecommerceTimezoneTimezone: ResolverTypeWrapper; + IoRestorecommerceTimezoneTimezoneOffset: ResolverTypeWrapper; + Int: ResolverTypeWrapper; IoRestorecommerceLocaleLocale: ResolverTypeWrapper; IoRestorecommerceImageImage: ResolverTypeWrapper; Float: ResolverTypeWrapper; - Int: ResolverTypeWrapper; IoRestorecommerceUserUserType: IoRestorecommerceUserUserType; IoRestorecommerceAuthTokens: ResolverTypeWrapper; GoogleProtobufAny: ResolverTypeWrapper; @@ -1545,8 +1554,6 @@ export type ResolversTypes = ResolversObject<{ IoRestorecommerceProductCategoryProductCategory: ResolverTypeWrapper; IoRestorecommercePriceGroupPriceGroup: ResolverTypeWrapper; IoRestorecommerceProductCategoryParent: ResolverTypeWrapper; - IoRestorecommerceTaxTax: ResolverTypeWrapper; - IoRestorecommerceTaxTypeTaxType: ResolverTypeWrapper; IoRestorecommerceProductPhysicalProduct: ResolverTypeWrapper; IoRestorecommerceProductPhysicalVariant: ResolverTypeWrapper; IoRestorecommercePricePrice: ResolverTypeWrapper; @@ -1566,6 +1573,8 @@ export type ResolversTypes = ResolversObject<{ IoRestorecommerceProductAssociationType: IoRestorecommerceProductAssociationType; IoRestorecommerceAmountAmount: ResolverTypeWrapper; IoRestorecommerceAmountVAT: ResolverTypeWrapper; + IoRestorecommerceTaxTax: ResolverTypeWrapper; + IoRestorecommerceTaxTypeTaxType: ResolverTypeWrapper; IoRestorecommerceOrderOrderState: IoRestorecommerceOrderOrderState; IoRestorecommerceFulfillmentState: IoRestorecommerceFulfillmentState; IoRestorecommerceInvoicePaymentState: IoRestorecommerceInvoicePaymentState; @@ -1678,10 +1687,11 @@ export type ResolversParentTypes = ResolversObject<{ Boolean: Scalars['Boolean']['output']; IoRestorecommerceAuthRoleAssociation: IoRestorecommerceAuthRoleAssociation; IoRestorecommerceTimezoneTimezone: IoRestorecommerceTimezoneTimezone; + IoRestorecommerceTimezoneTimezoneOffset: IoRestorecommerceTimezoneTimezoneOffset; + Int: Scalars['Int']['output']; IoRestorecommerceLocaleLocale: IoRestorecommerceLocaleLocale; IoRestorecommerceImageImage: IoRestorecommerceImageImage; Float: Scalars['Float']['output']; - Int: Scalars['Int']['output']; IoRestorecommerceAuthTokens: IoRestorecommerceAuthTokens; GoogleProtobufAny: GoogleProtobufAny; GoogleProtobufAnyValue: Scalars['GoogleProtobufAnyValue']['output']; @@ -1709,8 +1719,6 @@ export type ResolversParentTypes = ResolversObject<{ IoRestorecommerceProductCategoryProductCategory: IoRestorecommerceProductCategoryProductCategory; IoRestorecommercePriceGroupPriceGroup: IoRestorecommercePriceGroupPriceGroup; IoRestorecommerceProductCategoryParent: IoRestorecommerceProductCategoryParent; - IoRestorecommerceTaxTax: IoRestorecommerceTaxTax; - IoRestorecommerceTaxTypeTaxType: IoRestorecommerceTaxTypeTaxType; IoRestorecommerceProductPhysicalProduct: IoRestorecommerceProductPhysicalProduct; IoRestorecommerceProductPhysicalVariant: IoRestorecommerceProductPhysicalVariant; IoRestorecommercePricePrice: IoRestorecommercePricePrice; @@ -1729,6 +1737,8 @@ export type ResolversParentTypes = ResolversObject<{ IoRestorecommerceProductAssociation: IoRestorecommerceProductAssociation; IoRestorecommerceAmountAmount: IoRestorecommerceAmountAmount; IoRestorecommerceAmountVAT: IoRestorecommerceAmountVat; + IoRestorecommerceTaxTax: IoRestorecommerceTaxTax; + IoRestorecommerceTaxTypeTaxType: IoRestorecommerceTaxTypeTaxType; IoRestorecommerceAddressShippingAddress: IoRestorecommerceAddressShippingAddress; IoRestorecommerceAddressContact: IoRestorecommerceAddressContact; IoRestorecommerceAddressBillingAddress: IoRestorecommerceAddressBillingAddress; @@ -1930,15 +1940,28 @@ export type IoRestorecommerceAuthRoleAssociationResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; + value?: Resolver, ParentType, ContextType>; + abbreviationStd?: Resolver, ParentType, ContextType>; + abbreviationDst?: Resolver, ParentType, ContextType>; + offsetStd?: Resolver, ParentType, ContextType>; + offsetDst?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; +export type IoRestorecommerceTimezoneTimezoneOffsetResolvers = ResolversObject<{ + hours?: Resolver, ParentType, ContextType>; + minutes?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}>; + export type IoRestorecommerceLocaleLocaleResolvers = ResolversObject<{ id?: Resolver, ParentType, ContextType>; meta?: Resolver, ParentType, ContextType>; value?: Resolver, ParentType, ContextType>; description?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2181,7 +2204,6 @@ export type IoRestorecommerceProductIndividualProductResolvers, ParentType, ContextType>; category?: Resolver, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; gtin?: Resolver, ParentType, ContextType>; physical?: Resolver, ParentType, ContextType>; service?: Resolver, ParentType, ContextType>; @@ -2233,26 +2255,6 @@ export type IoRestorecommerceProductCategoryParentResolvers; }>; -export type IoRestorecommerceTaxTaxResolvers = ResolversObject<{ - id?: Resolver, ParentType, ContextType>; - meta?: Resolver, ParentType, ContextType>; - countryId?: Resolver, ParentType, ContextType>; - country?: Resolver, ParentType, ContextType>; - rate?: Resolver, ParentType, ContextType>; - variant?: Resolver, ParentType, ContextType>; - typeId?: Resolver, ParentType, ContextType>; - type?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type IoRestorecommerceTaxTypeTaxTypeResolvers = ResolversObject<{ - id?: Resolver, ParentType, ContextType>; - meta?: Resolver, ParentType, ContextType>; - type?: Resolver, ParentType, ContextType>; - description?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - export type IoRestorecommerceProductPhysicalProductResolvers = ResolversObject<{ variants?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; @@ -2270,7 +2272,6 @@ export type IoRestorecommerceProductPhysicalVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; package?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2353,7 +2354,6 @@ export type IoRestorecommerceProductServiceVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2374,7 +2374,6 @@ export type IoRestorecommerceProductVirtualVariantResolvers, ParentType, ContextType>; properties?: Resolver>, ParentType, ContextType>; taxIds?: Resolver>, ParentType, ContextType>; - tax?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -2425,9 +2424,31 @@ export type IoRestorecommerceAmountVatResolvers; }>; -export type IoRestorecommerceOrderOrderStateResolvers = { FAILED: 0, INVALID: 1, CREATED: 2, SUBMITTED: 3, IN_PROCESS: 4, DONE: 5, WITHDRAWN: 6, CANCELLED: 7 }; +export type IoRestorecommerceTaxTaxResolvers = ResolversObject<{ + id?: Resolver, ParentType, ContextType>; + meta?: Resolver, ParentType, ContextType>; + countryId?: Resolver, ParentType, ContextType>; + country?: Resolver, ParentType, ContextType>; + rate?: Resolver, ParentType, ContextType>; + variant?: Resolver, ParentType, ContextType>; + typeId?: Resolver, ParentType, ContextType>; + type?: Resolver, ParentType, ContextType>; + name?: Resolver, ParentType, ContextType>; + abbreviation?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}>; -export type IoRestorecommerceFulfillmentStateResolvers = { FAILED: 0, INVALID: 1, CREATED: 2, SUBMITTED: 3, IN_TRANSIT: 4, FULFILLED: 5, WITHDRAWN: 6, CANCELLED: 7 }; +export type IoRestorecommerceTaxTypeTaxTypeResolvers = ResolversObject<{ + id?: Resolver, ParentType, ContextType>; + meta?: Resolver, ParentType, ContextType>; + type?: Resolver, ParentType, ContextType>; + description?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type IoRestorecommerceOrderOrderStateResolvers = { PENDING: 0, SUBMITTED: 1, COMPLETED: 2, WITHDRAWN: 3, CANCELLED: 4 }; + +export type IoRestorecommerceFulfillmentStateResolvers = { PENDING: 0, INVALID: 1, SUBMITTED: 2, IN_TRANSIT: 3, COMPLETED: 4, WITHDRAWN: 5, CANCELLED: 6, FAILED: 7 }; export type IoRestorecommerceInvoicePaymentStateResolvers = { UNPAYED: 0, PAYED: 1 }; @@ -2828,6 +2849,7 @@ export type Resolvers = ResolversObject<{ IoRestorecommerceUserUser?: IoRestorecommerceUserUserResolvers; IoRestorecommerceAuthRoleAssociation?: IoRestorecommerceAuthRoleAssociationResolvers; IoRestorecommerceTimezoneTimezone?: IoRestorecommerceTimezoneTimezoneResolvers; + IoRestorecommerceTimezoneTimezoneOffset?: IoRestorecommerceTimezoneTimezoneOffsetResolvers; IoRestorecommerceLocaleLocale?: IoRestorecommerceLocaleLocaleResolvers; IoRestorecommerceImageImage?: IoRestorecommerceImageImageResolvers; IoRestorecommerceUserUserType?: IoRestorecommerceUserUserTypeResolvers; @@ -2860,8 +2882,6 @@ export type Resolvers = ResolversObject<{ IoRestorecommerceProductCategoryProductCategory?: IoRestorecommerceProductCategoryProductCategoryResolvers; IoRestorecommercePriceGroupPriceGroup?: IoRestorecommercePriceGroupPriceGroupResolvers; IoRestorecommerceProductCategoryParent?: IoRestorecommerceProductCategoryParentResolvers; - IoRestorecommerceTaxTax?: IoRestorecommerceTaxTaxResolvers; - IoRestorecommerceTaxTypeTaxType?: IoRestorecommerceTaxTypeTaxTypeResolvers; IoRestorecommerceProductPhysicalProduct?: IoRestorecommerceProductPhysicalProductResolvers; IoRestorecommerceProductPhysicalVariant?: IoRestorecommerceProductPhysicalVariantResolvers; IoRestorecommercePricePrice?: IoRestorecommercePricePriceResolvers; @@ -2881,6 +2901,8 @@ export type Resolvers = ResolversObject<{ IoRestorecommerceProductAssociationType?: IoRestorecommerceProductAssociationTypeResolvers; IoRestorecommerceAmountAmount?: IoRestorecommerceAmountAmountResolvers; IoRestorecommerceAmountVAT?: IoRestorecommerceAmountVatResolvers; + IoRestorecommerceTaxTax?: IoRestorecommerceTaxTaxResolvers; + IoRestorecommerceTaxTypeTaxType?: IoRestorecommerceTaxTypeTaxTypeResolvers; IoRestorecommerceOrderOrderState?: IoRestorecommerceOrderOrderStateResolvers; IoRestorecommerceFulfillmentState?: IoRestorecommerceFulfillmentStateResolvers; IoRestorecommerceInvoicePaymentState?: IoRestorecommerceInvoicePaymentStateResolvers;