Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Questions:

  •  Possibles questions about this feature

Technical Refinement

Description

  • intl-user-service

    • We will add the new attribute on class UserDetailsBaseDto:

      • path: intl-user-service/src/users/dtos/users.dtos.ts

        @ApiProperty({
            required: false,
            description: 'Required acceptance agreement info',
            type: [RequiredAcceptanceAgreementInfoDto],
            nullable: true,
          })
          @Type(() => RequiredAcceptanceAgreementInfoDto)
          @IsArray()
          @IsOptional()
          public requiredAcceptanceAgreementInfo?: RequiredAcceptanceAgreementInfoDto[] | null;
      • On class UserDetailsDto on constructor, we will add a mapper:

        const requiredAcceptanceAgreementInfo = userDetails.requiredAcceptanceAgreementInfo?.map(
          (ra: IRequiredAcceptanceAgreementInfo) => ra as RequiredAcceptanceAgreementInfoDto,
        );
        this.requiredAcceptanceAgreementInfo = requiredAcceptanceAgreementInfo;
  • intl-packages | ctg-packages

    • We will add the attribute requiredAcceptanceAgreementInfo on TUserDetails:

      • path: intl-packages/packages/users/src/schemata.ts

        requiredAcceptanceAgreementInfo: t.union([t.array(TRequiredAcceptanceAgreementInfo), t.null]),
        export const TRequiredAcceptanceAgreementInfo = t.interface({
          id: t.string,
          updatedAt: t.string,
        });
  • intl-whitelabel-graphql

    • We will add the attribute requiredAcceptanceAgreementInfo on UpdateUserDetailsInput

      • path: intl-whitelabel-graphql/src/functions/graphql/schemas/users.gql

        input UpdateUserDetailsInput {
          ...
          requiredAcceptanceAgreementInfo: [RequiredAcceptanceAgreementInfoInput]
        }
    • We will run the command:

      yarn run graphql:types
      • After that, will be created an automatic code on file: intl-whitelabel-graphql/src/functions/graphql/generated/graphql.ts, probably, will be many changes, but we can to discard all, except of change related about requiredAcceptanceAgreementInfo

  • intl-whitelabel-app

Screenshots

  • TODO

POC

  • TODO

Impact Analysis

  • Signup

  • Authentication

Unit Test

  • Signup

  • Authentication

MOCKS

  • TODO

Workflows: Lucidchart document | Lucidchart

Existent behavior: Terms and Conditions - Technical Refinement - Discovery As-Is

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.