@lokalise/node-api
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -17,3 +17,2 @@ module.exports = { | ||
"plugin:prettier/recommended", | ||
"prettier/@typescript-eslint", | ||
], | ||
@@ -20,0 +19,0 @@ settings: { |
@@ -20,2 +20,3 @@ export interface Order { | ||
total: number; | ||
payment_method: string | null; | ||
} |
@@ -22,2 +22,3 @@ import { Order as OrderInterface } from "../interfaces/order"; | ||
total: number; | ||
payment_method: string | null; | ||
} |
# Changelog | ||
## 6.1.0 (26-Feb-21) | ||
* Added `payment_method` field (`string`) for the `Order` | ||
* Fixed typing for the `ApiRequest` (thanks, @Tenga) | ||
* Updated to ESLintConfigPrettier 8 | ||
## 6.0.0 (02-Feb-21) | ||
@@ -4,0 +10,0 @@ |
@@ -142,2 +142,3 @@ import { Options } from "got"; | ||
total: number; | ||
payment_method: string | null; | ||
} | ||
@@ -352,3 +353,3 @@ | ||
export class ApiRequest { | ||
private urlRoot: string | URL; | ||
private urlRoot: NonNullable<Options["prefixUrl"]>; | ||
promise: Promise<any>; | ||
@@ -355,0 +356,0 @@ params: StandartParams; |
{ | ||
"name": "@lokalise/node-api", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "Official Lokalise API 2.0 Node.js client", | ||
@@ -34,3 +34,3 @@ "license": "BSD-3-Clause", | ||
"eslint": "^7.16.0", | ||
"eslint-config-prettier": "^7.1.0", | ||
"eslint-config-prettier": "^8.0.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
@@ -37,0 +37,0 @@ "eslint-plugin-prettier": "^3.3.0", |
@@ -0,0 +0,0 @@ import { Options } from "got"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { Language } from "../models/language"; |
@@ -0,0 +0,0 @@ import { Order } from "../models/order"; |
@@ -0,0 +0,0 @@ import { PaymentCard } from "../models/payment_card"; |
@@ -0,0 +0,0 @@ import { Project } from "../models/project"; |
@@ -0,0 +0,0 @@ import { QueuedProcess } from "../models/queued_process"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -0,0 +0,0 @@ import { BaseCollection } from "./base_collection"; |
@@ -8,3 +8,4 @@ import { RequestError, Response, Options } from "got"; | ||
export class ApiRequest { | ||
private urlRoot: string | URL = "https://api.lokalise.com/api2/"; | ||
private urlRoot: NonNullable<Options["prefixUrl"]> = | ||
"https://api.lokalise.com/api2/"; | ||
public promise: Promise<any>; | ||
@@ -11,0 +12,0 @@ public params: StandartParams = {}; |
@@ -0,0 +0,0 @@ import { Keyable } from "../interfaces/keyable"; |
export interface Keyable { | ||
[key: string]: any; | ||
} |
@@ -20,2 +20,3 @@ export interface Order { | ||
total: number; | ||
payment_method: string | null; | ||
} |
@@ -0,0 +0,0 @@ export interface PaginatedResult { |
@@ -0,0 +0,0 @@ export interface Task { |
@@ -0,0 +0,0 @@ import { Keyable } from "../interfaces/keyable"; |
@@ -0,0 +0,0 @@ import { LocaliseApiMethods } from "./api_methods"; |
@@ -0,0 +0,0 @@ import { Branch as BranchInterface } from "../interfaces/branch"; |
@@ -0,0 +0,0 @@ import { Comment as CommentInterface } from "../interfaces/comment"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { Key as KeyInterface } from "../interfaces/key"; |
@@ -0,0 +0,0 @@ import { Language as LanguageInterface } from "../interfaces/language"; |
@@ -23,2 +23,3 @@ import { Order as OrderInterface } from "../interfaces/order"; | ||
public total: number; | ||
public payment_method: string | null; | ||
} |
@@ -0,0 +0,0 @@ import { PaginatedResult as PaginatedResultInterface } from "../interfaces/paginated_result"; |
@@ -0,0 +0,0 @@ import { PaymentCard as PaymentCardInterface } from "../interfaces/payment_card"; |
@@ -0,0 +0,0 @@ import { Project as ProjectInterface } from "../interfaces/project"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { BaseModel } from "./base_model"; |
@@ -0,0 +0,0 @@ import { ApiError } from "../../src/interfaces/api_error"; |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -43,3 +43,3 @@ require("../setup"); | ||
expect(order.project_id).to.eq("803826145ba90b42d5d860.46800099"); | ||
expect(order.card_id).to.eq("1774"); | ||
expect(order.card_id).to.eq(1774); | ||
expect(order.status).to.eq("completed"); | ||
@@ -60,2 +60,3 @@ expect(order.created_at).to.eq("2019-03-19 18:18:21 (Etc/UTC)"); | ||
expect(order.total).to.eq(0.07); | ||
expect(order.payment_method).to.eq(null); | ||
}) | ||
@@ -62,0 +63,0 @@ .register(this); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
6402
960064