1.2.4 • Published 1 month ago

@qte/nest-spar-personsok v1.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

Nest SPAR Personsök

Nest module for SPAR Personsök.

Installation

yarn add @qte/nest-spar-personsok

Usage

import { Module } from '@nestjs/common'
import { SparPersonsokModule } from '@qte/nest-spar-personsok'
import * as fs from 'fs'

const pfx = fs.readFileSync('path/to/pfx')

@Module({
  imports: [
    // Note that register accepts an empty object in non-production environments
    SparPersonsokModule.register({
      pfx: pfx,
      passphrase: 'passphrase',
      production: true,
      identifieringsinformation: {
        KundNrLeveransMottagare: '500243',
        KundNrSlutkund: '500243',
        UppdragId: '637',
        SlutAnvandarId: 'qte-230819',
      },
    }),
  ],
})
export class AppModule {}
import { SparPersonsokService } from '@qte/nest-spar-personsok'

@Injectable()
export class AppService {
  constructor(private readonly sparPersonsokService: SparPersonsokService) {}

  async search() {
    const result = await this.sparPersonsokService.personsok({
      IdNummer: '198007199295',
    })
    console.log(result)
  }
}
1.2.4

1 month ago

1.2.3

1 month ago

1.2.2

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago