<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    App::BPOMUtils - Utilities related to BPOM

VERSION
    This document describes version 0.003 of App::BPOMUtils (from Perl
    distribution App-BPOMUtils), released on 2022-09-07.

SYNOPSIS
     # Use via the included scripts

DESCRIPTION
    This distribution includes CLI utilities related to BPOM (Badan Pengawas
    Obat dan Makanan, Indonesian equivalent of Food &amp; Drug Administration
    authority).

    *   bpom-daftar-jenis-pangan

    *   bpom-daftar-kode-prefiks-reg

    *   bpom-list-food-types

    *   bpom-list-reg-code-prefixes

FUNCTIONS
  bpom_list_food_types
    Usage:

     bpom_list_food_types(%args) -&gt; [$status_code, $reason, $payload, \%result_meta]

    List food types in BPOM processed food division.

    This function is not exported.

    Arguments ('*' denotes required arguments):

    *   code =&gt; *str*

        Only return records where the 'code' field equals specified value.

    *   code.contains =&gt; *str*

        Only return records where the 'code' field contains specified text.

    *   code.in =&gt; *array[str]*

        Only return records where the 'code' field is in the specified
        values.

    *   code.is =&gt; *str*

        Only return records where the 'code' field equals specified value.

    *   code.isnt =&gt; *str*

        Only return records where the 'code' field does not equal specified
        value.

    *   code.max =&gt; *str*

        Only return records where the 'code' field is less than or equal to
        specified value.

    *   code.min =&gt; *str*

        Only return records where the 'code' field is greater than or equal
        to specified value.

    *   code.not_contains =&gt; *str*

        Only return records where the 'code' field does not contain
        specified text.

    *   code.not_in =&gt; *array[str]*

        Only return records where the 'code' field is not in the specified
        values.

    *   code.xmax =&gt; *str*

        Only return records where the 'code' field is less than specified
        value.

    *   code.xmin =&gt; *str*

        Only return records where the 'code' field is greater than specified
        value.

    *   detail =&gt; *bool* (default: 0)

        Return array of full records instead of just ID fields.

        By default, only the key (ID) field is returned per result entry.

    *   exclude_fields =&gt; *array[str]*

        Select fields to return.

    *   fields =&gt; *array[str]*

        Select fields to return.

    *   query =&gt; *str*

        Search.

    *   random =&gt; *bool* (default: 0)

        Return records in random order.

    *   result_limit =&gt; *int*

        Only return a certain number of records.

    *   result_start =&gt; *int* (default: 1)

        Only return starting from the n'th record.

    *   sort =&gt; *array[str]*

        Order records according to certain field(s).

        A list of field names separated by comma. Each field can be prefixed
        with '-' to specify descending order instead of the default
        ascending.

    *   summary =&gt; *str*

        Only return records where the 'summary' field equals specified
        value.

    *   summary.contains =&gt; *str*

        Only return records where the 'summary' field contains specified
        text.

    *   summary.in =&gt; *array[str]*

        Only return records where the 'summary' field is in the specified
        values.

    *   summary.is =&gt; *str*

        Only return records where the 'summary' field equals specified
        value.

    *   summary.isnt =&gt; *str*

        Only return records where the 'summary' field does not equal
        specified value.

    *   summary.max =&gt; *str*

        Only return records where the 'summary' field is less than or equal
        to specified value.

    *   summary.min =&gt; *str*

        Only return records where the 'summary' field is greater than or
        equal to specified value.

    *   summary.not_contains =&gt; *str*

        Only return records where the 'summary' field does not contain
        specified text.

    *   summary.not_in =&gt; *array[str]*

        Only return records where the 'summary' field is not in the
        specified values.

    *   summary.xmax =&gt; *str*

        Only return records where the 'summary' field is less than specified
        value.

    *   summary.xmin =&gt; *str*

        Only return records where the 'summary' field is greater than
        specified value.

    *   with_field_names =&gt; *bool*

        Return field names in each record (as hash/associative array).

        When enabled, function will return each record as hash/associative
        array (field name =&gt; value pairs). Otherwise, function will return
        each record as list/array (field value, field value, ...).

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error
    response ($status_code is not 2xx). Fourth element (%result_meta) is
    called result metadata and is optional, a hash that contains extra
    information, much like how HTTP response headers provide additional
    metadata.

    Return value: (any)

  bpom_list_reg_code_prefixes
    Usage:

     bpom_list_reg_code_prefixes(%args) -&gt; [$status_code, $reason, $payload, \%result_meta]

    List known alphabetical prefixes in BPOM registered product codes.

    This function is not exported.

    Arguments ('*' denotes required arguments):

    *   code =&gt; *str*

        Only return records where the 'code' field equals specified value.

    *   code.contains =&gt; *str*

        Only return records where the 'code' field contains specified text.

    *   code.in =&gt; *array[str]*

        Only return records where the 'code' field is in the specified
        values.

    *   code.is =&gt; *str*

        Only return records where the 'code' field equals specified value.

    *   code.isnt =&gt; *str*

        Only return records where the 'code' field does not equal specified
        value.

    *   code.max =&gt; *str*

        Only return records where the 'code' field is less than or equal to
        specified value.

    *   code.min =&gt; *str*

        Only return records where the 'code' field is greater than or equal
        to specified value.

    *   code.not_contains =&gt; *str*

        Only return records where the 'code' field does not contain
        specified text.

    *   code.not_in =&gt; *array[str]*

        Only return records where the 'code' field is not in the specified
        values.

    *   code.xmax =&gt; *str*

        Only return records where the 'code' field is less than specified
        value.

    *   code.xmin =&gt; *str*

        Only return records where the 'code' field is greater than specified
        value.

    *   detail =&gt; *bool* (default: 0)

        Return array of full records instead of just ID fields.

        By default, only the key (ID) field is returned per result entry.

    *   division =&gt; *str*

        Only return records where the 'division' field equals specified
        value.

    *   division.contains =&gt; *str*

        Only return records where the 'division' field contains specified
        text.

    *   division.in =&gt; *array[str]*

        Only return records where the 'division' field is in the specified
        values.

    *   division.is =&gt; *str*

        Only return records where the 'division' field equals specified
        value.

    *   division.isnt =&gt; *str*

        Only return records where the 'division' field does not equal
        specified value.

    *   division.max =&gt; *str*

        Only return records where the 'division' field is less than or equal
        to specified value.

    *   division.min =&gt; *str*

        Only return records where the 'division' field is greater than or
        equal to specified value.

    *   division.not_contains =&gt; *str*

        Only return records where the 'division' field does not contain
        specified text.

    *   division.not_in =&gt; *array[str]*

        Only return records where the 'division' field is not in the
        specified values.

    *   division.xmax =&gt; *str*

        Only return records where the 'division' field is less than
        specified value.

    *   division.xmin =&gt; *str*

        Only return records where the 'division' field is greater than
        specified value.

    *   exclude_fields =&gt; *array[str]*

        Select fields to return.

    *   fields =&gt; *array[str]*

        Select fields to return.

    *   query =&gt; *str*

        Search.

    *   random =&gt; *bool* (default: 0)

        Return records in random order.

    *   result_limit =&gt; *int*

        Only return a certain number of records.

    *   result_start =&gt; *int* (default: 1)

        Only return starting from the n'th record.

    *   sort =&gt; *array[str]*

        Order records according to certain field(s).

        A list of field names separated by comma. Each field can be prefixed
        with '-' to specify descending order instead of the default
        ascending.

    *   summary_eng =&gt; *str*

        Only return records where the 'summary_eng' field equals specified
        value.

    *   summary_eng.contains =&gt; *str*

        Only return records where the 'summary_eng' field contains specified
        text.

    *   summary_eng.in =&gt; *array[str]*

        Only return records where the 'summary_eng' field is in the
        specified values.

    *   summary_eng.is =&gt; *str*

        Only return records where the 'summary_eng' field equals specified
        value.

    *   summary_eng.isnt =&gt; *str*

        Only return records where the 'summary_eng' field does not equal
        specified value.

    *   summary_eng.max =&gt; *str*

        Only return records where the 'summary_eng' field is less than or
        equal to specified value.

    *   summary_eng.min =&gt; *str*

        Only return records where the 'summary_eng' field is greater than or
        equal to specified value.

    *   summary_eng.not_contains =&gt; *str*

        Only return records where the 'summary_eng' field does not contain
        specified text.

    *   summary_eng.not_in =&gt; *array[str]*

        Only return records where the 'summary_eng' field is not in the
        specified values.

    *   summary_eng.xmax =&gt; *str*

        Only return records where the 'summary_eng' field is less than
        specified value.

    *   summary_eng.xmin =&gt; *str*

        Only return records where the 'summary_eng' field is greater than
        specified value.

    *   summary_ind =&gt; *str*

        Only return records where the 'summary_ind' field equals specified
        value.

    *   summary_ind.contains =&gt; *str*

        Only return records where the 'summary_ind' field contains specified
        text.

    *   summary_ind.in =&gt; *array[str]*

        Only return records where the 'summary_ind' field is in the
        specified values.

    *   summary_ind.is =&gt; *str*

        Only return records where the 'summary_ind' field equals specified
        value.

    *   summary_ind.isnt =&gt; *str*

        Only return records where the 'summary_ind' field does not equal
        specified value.

    *   summary_ind.max =&gt; *str*

        Only return records where the 'summary_ind' field is less than or
        equal to specified value.

    *   summary_ind.min =&gt; *str*

        Only return records where the 'summary_ind' field is greater than or
        equal to specified value.

    *   summary_ind.not_contains =&gt; *str*

        Only return records where the 'summary_ind' field does not contain
        specified text.

    *   summary_ind.not_in =&gt; *array[str]*

        Only return records where the 'summary_ind' field is not in the
        specified values.

    *   summary_ind.xmax =&gt; *str*

        Only return records where the 'summary_ind' field is less than
        specified value.

    *   summary_ind.xmin =&gt; *str*

        Only return records where the 'summary_ind' field is greater than
        specified value.

    *   with_field_names =&gt; *bool*

        Return field names in each record (as hash/associative array).

        When enabled, function will return each record as hash/associative
        array (field name =&gt; value pairs). Otherwise, function will return
        each record as list/array (field value, field value, ...).

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error
    response ($status_code is not 2xx). Fourth element (%result_meta) is
    called result metadata and is optional, a hash that contains extra
    information, much like how HTTP response headers provide additional
    metadata.

    Return value: (any)

HOMEPAGE
    Please visit the project's homepage at
    &lt;https://metacpan.org/release/App-BPOMUtils&gt;.

SOURCE
    Source repository is at
    &lt;https://github.com/perlancar/perl-App-BPOMUtils&gt;.

SEE ALSO
    &lt;https://pom.go.id&gt;

    Business::ID::BPOM

AUTHOR
    perlancar &lt;perlancar@cpan.org&gt;

CONTRIBUTING
    To contribute, you can send patches by email/via RT, or send pull
    requests on GitHub.

    Most of the time, you don't need to build the distribution yourself. You
    can simply modify the code, then test via:

     % prove -l

    If you want to build the distribution (e.g. to try to install it locally
    on your system), you can install Dist::Zilla,
    Dist::Zilla::PluginBundle::Author::PERLANCAR,
    Pod::Weaver::PluginBundle::Author::PERLANCAR, and sometimes one or two
    other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps
    required beyond that are considered a bug and can be reported to me.

COPYRIGHT AND LICENSE
    This software is copyright (c) 2022, 2021 by perlancar
    &lt;perlancar@cpan.org&gt;.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

BUGS
    Please report any bugs or feature requests on the bugtracker website
    &lt;https://rt.cpan.org/Public/Dist/Display.html?Name=App-BPOMUtils&gt;

    When submitting a bug or request, please include a test-file or a patch
    to an existing test-file that illustrates the bug or desired feature.

</pre></body></html>