open-index/open-npm huggingface dataset:
npm package: @med.me/adt-sdk
Description: Medme ADT SDK
Author: props
Latest version: 1.0.28-alpha.1

# @med.me/adt-sdk

Medme ADT SDK - TypeScript client library for ADT API

## Installation

```bash
npm install @med.me/adt-sdk
# or
yarn add @med.me/adt-sdk
```

## Usage

```typescript
import { OpenAPI, PatientService, ActivityService } from '@med.me/adt-sdk';

// Configure the API client
OpenAPI.BASE = 'http://localhost:5000';
OpenAPI.TOKEN = 'your-auth-token';

// Use the services
const patients = await PatientService.getPatients();
const activities = await ActivityService.getActivities();
```

## Development

### Prerequisites

1. Make sure the ADT backend (`adt-core`) is running on `http://localhost:5000`
2. Ensure you have the required dependencies installed

### SDK Update Process

#### 1. Update Backend API Schema
In the `adt-core` project:
```bash
yarn gen:openapi  # Generate updated openapi.json
yarn start:dev    # Start server to serve OpenAPI schema
```

#### 2. Regenerate SDK Code
In the `adt-sdk` project:
```bash
# Install dependencies (first time only)
yarn install

# Generate new SDK code from current backend
API_URL=http://localhost:5000/openapi-json yarn codegen-local

# Build the SDK
yarn build
```

#### 3. Update Frontend Project
In the `adt-front` project:
```bash
# Update SDK dependency
yarn install
```

### Version Management

When updating the SDK with new changes:

1. **Update version** in `package.json`:
   ```bash
   npm version patch  # for bug fixes
   npm version minor  # for new features
   npm version major  # for breaking changes
   ```

2. **Build and test**:
   ```bash
   yarn build
   ```

3. **Publish** (if using npm registry):
   ```bash
   npm publish
   ```

### Scripts

- `yarn codegen-local` - Generate SDK code from local backend API
- `yarn build` - Build the SDK for distribution

## Project Structure

```
src/
├── core/          # Core API utilities
├── models/        # TypeScript type definitions
├── services/      # API service classes
└── index.ts       # Main export file
```

## Notes

- The SDK is automatically generated from OpenAPI specification
- Do not manually edit generated files in `src/` - they will be overwritten
- Always use the `codegen-local` script to update the SDK
- The SDK uses fetch API client for HTTP requests

## Troubleshooting

### Common Issues

1. **"openapi command not found"**
   ```bash
   yarn add -D openapi-typescript-codegen
   ```

2. **Backend not responding**
   - Ensure `adt-core` is running on port 5000
   - Check that `/openapi-json` endpoint is accessible

3. **Build errors after regeneration**
   - Check for naming conflicts in generated types
   - Verify OpenAPI schema is valid

### Getting Help

If you encounter issues during SDK update:
1. Check that backend API is running and accessible
2. Verify the OpenAPI schema is valid
3. Review generated code for any obvious issues
4. Check console for specific error messages
npm package: @med.me/report-service-sdk
Description: Medme Report Service SDK
Author: props
Latest version: 0.0.1-beta.13

# Medme Report Service SDK

<p>Typescript Medme Report Service SDK</p>

## Installation

```
npm install @med.me/report-service-sdk --save-dev
```
or
```
yarn add -D @med.me/report-service-sdk
```
## Publishing

To update publish into `npm` registry, commit and tag it with SemVer tag (e.g. `0.0.1` or `0.0.1-beta.1`)
npm package: @med247-package/react-base
Description: Made with create-react-library
Author: nguyendangbanghn93
Latest version: 2.0.1

# @med247-package/react-base

> Made with create-react-library

[![NPM](https://img.shields.io/npm/v/@med247-package/react-base.svg)](https://www.npmjs.com/package/@med247-package/react-base) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @med247-package/react-base
```

## Usage

```tsx
import React, { Component } from 'react'

import MyComponent from '@med247-package/react-base'
import '@med247-package/react-base/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## License

MIT © [nguyendangbanghn93](https://github.com/nguyendangbanghn93)
npm package: @med247-package/wpa-sdk
Description: WebView-WPA
Author: Bằng Nguyễn Đăng
Latest version: 0.1.12

# wpa-sdk

WebView-WPA

## Installation

```sh
npm install @med247-package/wpa-sdk react-native-webview @react-native-async-storage/async-storage

// or

yarn @med247-package/wpa-sdk react-native-webview @react-native-async-storage/async-storage

//

cd ios && pod install
```

## Usage

```js
import { WPA } from 'wpa-sdk';

// ...

<WPA
  env={env}
  secretkey={secretkey}
  code={code}
  button={button}
  style={style}
  user={{
    fullname: fullname,
    phone: phone,
    email: email,
    birthday: birthday,
    address: address,
    gender: gender,
    uid: uid,
  }}
/>;

```

## explain

```ts
interface IWPAProps {
  env: 'develop' | 'qa' | 'staging' | 'production';
  code: string;
  secretkey: string;
  style?: { icon?: StyleProp<ImageStyle>; textIcon?: StyleProp<TextStyle> };
  button?: React.JSX.Element;
  user?: {
    uid?: string;
    phone?: string;
    email?: string;
    fullname?: string;
    birthday?: string;
    gender?: 'male' | 'female' | 'other';
    address?: string;
  };
}

// env: Development environment
// code, secretkey: Identification for the partner, provided by Med247
// style: Style to customize default Med247 icon available
// button: Customize Med247 app icon yourself
// user: Customer information transferred to automatically create accounts for customers.
```

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
npm package: @med4labs/basis
Description: Template web Next.js da MED4U para geração de novos apps.
Latest version: 1.0.2

# @med4labs/basis

Template versionado do app base web (Next.js) para gerar novos projetos em `apps/web`.

## Uso no monorepo

```bash
bun run new:web meu-app --template @med4labs/basis@1.0.0
```

## Publicação

1. Publique no npm:

```bash
npm publish --workspace @med4labs/basis
```
npm package: @medable/jest-evidence-collector-environment
Description: A Jest environment for collecting test evidence.
Author: Gaston Robledo @ Medable Inc
Latest version: 1.0.10

# Jest Evidence Collector Environment

This enviroment will let you collect evidence and produce a report that later can be upload to zephyr in Jira.

## Dependecies

Mostly depends on Jest packages, but an extra package was added to convert to images the results.

- ultimate-text-to-image

### How to use it

First we need to install it.
```
npm install @medable/jest-evidence-collector-environment
```

Then you need to cofigure your jest implementation
```
module.exports = {
  testEnvironment: 'jest-evidence-collector-environment',
  testEnvironmentOptions: {
    project: "DCT",
    header: "Scheduler" // this will be added as a header of each collected evidence
    output: {
      folder: './evidence',
      file: 'results.json'
    }
  }
};
```

### How to write the tests to collect evidence

Here we have a couple of tests
```
describe("sum", () => {
  it("#DCT-T45667 can add two numbers together", async function() {
    collectAsImage("result date from calling service", {a: "b"})
    const a = 'b'
    collectAsImage("value transformed", a)
    expect(1+1).toBe(2);
    
  });

  it("can add two numbers DCT-T488,DCT-T188 together", async function() {
    collectAsImage("result date from calling service",{a: "c"}) // apply to both TC
    expect(1+1).toBe(2);
    collectAsImage("everything ok", {success: true}, "DCT-T188") // this will be collected only for that TC
    
  });

  it("#DCT-T489 can add two numbers together", async function() {
    collectAsImage("result date from calling service",{a: "d"})
    expect(1+1).toBe(1);
    
  });
});

```

therea are some functions that exists globaly so you can use inside tests and it will collect all evidence related with the context you have.
the signatures are the following:
```
collectAsImage(description: string, data: any, type: EvidenceTypeEnum, identifier?:string) : void
collectAsText(description: string, data: any, type: EvidenceTypeEnum, identifier?:string) : void
collectError(err: Error, identifier?:string) : void
```
Note: if you are using typescript add the following header to access the types
```
/// <reference types="@medable/jest-evidence-collector-environment" />
```

### Run Tests

Test of the module it self

```
npm test
```

To run E2E testing (which execute tests using this envorinment)

```
npm run test:e2e
```