@artaio/node-api
Advanced tools
Comparing version 1.2.3 to 1.3.0
import type { RestClient } from '../net/RestClient'; | ||
import type { Page } from '../pagination'; | ||
import type { TagsSearch } from '../search'; | ||
import type { Tag } from '../types'; | ||
@@ -14,5 +15,5 @@ export type TagCreateBody = Omit<Tag, 'id' | 'created_at' | 'updated_at'>; | ||
getByName(name: Tag['name'], auth?: string): Promise<Tag>; | ||
list(page?: number, pageSize?: number, auth?: string): Promise<Page<Tag>>; | ||
list(search?: TagsSearch, page?: number, pageSize?: number, auth?: string): Promise<Page<Tag>>; | ||
create(payload: TagCreateBody, auth?: string): Promise<Tag>; | ||
update(name: Tag['name'], payload: Partial<TagCreateBody>, auth?: string): Promise<Tag>; | ||
} |
@@ -14,6 +14,6 @@ "use strict"; | ||
}; | ||
TagsEndpoint.prototype.list = function (page, pageSize, auth) { | ||
TagsEndpoint.prototype.list = function (search, page, pageSize, auth) { | ||
if (page === void 0) { page = 1; } | ||
if (pageSize === void 0) { pageSize = 20; } | ||
return this.defaultEndpoint.list({ page: page, page_size: pageSize }, auth); | ||
return this.defaultEndpoint.list({ page: page, page_size: pageSize, search: search }, auth); | ||
}; | ||
@@ -20,0 +20,0 @@ TagsEndpoint.prototype.create = function (payload, auth) { |
export type HostedSessionsSearch = string; | ||
export type ShipmentsSearch = string; | ||
export type RequestsSearch = string; | ||
export type TagsSearch = string; |
{ | ||
"name": "@artaio/node-api", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
{ | ||
"name": "@artaio/node-api", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
185597
3292