@favid-inc/api
Advanced tools
Comparing version 3.3.4 to 3.3.5
@@ -1,36 +0,2 @@ | ||
import { Artist, Order } from "../model"; | ||
export interface Action { | ||
request: { | ||
url: string; | ||
method: "POST" | "GET" | "PUT" | "PATCH" | "DELETE"; | ||
query?: any; | ||
data?: any; | ||
}; | ||
response?: {}; | ||
} | ||
export interface FindArtistsGroupingByMainCategory extends Action { | ||
request: { | ||
url: "/FindArtistsGroupingByMainCategory"; | ||
method: "POST"; | ||
query: void; | ||
data: void; | ||
}; | ||
response: { | ||
[mainCategory: string]: Artist; | ||
}; | ||
} | ||
export interface PlaceOrder extends Action { | ||
request: { | ||
url: "/PlaceOrder"; | ||
method: "POST"; | ||
query?: void; | ||
data: { | ||
artistId: string; | ||
customerName: string; | ||
instructions: string; | ||
isGift: boolean; | ||
receiverName?: string; | ||
}; | ||
}; | ||
response: Order; | ||
} | ||
export * from "./artist"; | ||
export * from "./order"; |
@@ -23,5 +23,6 @@ import { Model } from "../model"; | ||
export declare enum OrderStatus { | ||
PLACED = "P", | ||
CANCELED = "C", | ||
DECLINED = "D", | ||
FULFILLED = "F" | ||
FULFILLED = "F", | ||
PLACED = "P" | ||
} | ||
@@ -28,0 +29,0 @@ export declare enum OrderPaymentStatus { |
@@ -6,5 +6,6 @@ "use strict"; | ||
(function (OrderStatus) { | ||
OrderStatus["PLACED"] = "P"; | ||
OrderStatus["CANCELED"] = "C"; | ||
OrderStatus["DECLINED"] = "D"; | ||
OrderStatus["FULFILLED"] = "F"; | ||
OrderStatus["PLACED"] = "P"; | ||
})(OrderStatus = exports.OrderStatus || (exports.OrderStatus = {})); | ||
@@ -11,0 +12,0 @@ var OrderPaymentStatus; |
{ | ||
"name": "@favid-inc/api", | ||
"version": "3.3.4", | ||
"version": "3.3.5", | ||
"description": "API for Favid Project", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/favid-inc/api#readme", |
7158
26
221