npm.io
0.1.0 • Published 2d ago

@shotlingo/rejection-codes

Licence
MIT
Version
0.1.0
Deps
0
Size
9 kB
Vulns
0
Weekly
0

@shotlingo/rejection-codes

Apple App Store review rejection guideline codes, categories, and fix guidance as a typed lookup table. Zero dependencies, no network calls.

Full interactive reference (searchable table + JSON/CSV export): shotlingo.com/tools/app-store-rejection-codes

Install

npm install @shotlingo/rejection-codes

Usage

import { getByCode, getByCategory, REJECTION_CODES } from '@shotlingo/rejection-codes';

getByCode('4.2');
// => { id: '4.2', code: 'Guideline 4.2', title: 'Minimum Functionality', category: 'design', fix: '...', guidelineUrl: '...', frequency: 'very-common' }

getByCategory('business').map((r) => r.title);
// => ['In-App Purchase — Bypassing', 'In-App Purchase — Reader Apps']

REJECTION_CODES.length;
// => 12

API

  • REJECTION_CODES: RejectionCode[] — the full list.
  • CATEGORIES: Category[]'safety' | 'performance' | 'business' | 'design' | 'legal'.
  • getByCode(codeOrId: string): RejectionCode | undefined — lookup by e.g. '4.2' or 'Guideline 4.2' (case-insensitive).
  • getByCategory(category: Category): RejectionCode[]
  • getByFrequency(frequency: 'very-common' | 'common' | 'occasional'): RejectionCode[]

License

MIT

Keywords