UNPKG

@pfantato/printful-ts

Version:

Typescript SDK to integrate with Printful

14 lines (13 loc) 701 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CountriesService = void 0; const constants_1 = require("@printful-ts/constants"); const schemas_1 = require("@printful-ts/schemas"); const printful_api_service_1 = require("./printful-api.service"); class CountriesService extends printful_api_service_1.PrintfulApiService { async listCountries(params, options = {}) { const searchParams = schemas_1.ListCountriesSearchParams.parse(params); return await this.request(constants_1.COUNTRIES_RESOURCE, Object.assign(Object.assign({}, options), { searchParams }), schemas_1.ListCountriesResponse); } } exports.CountriesService = CountriesService;