Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maxvision/maxerp-api-client

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maxvision/maxerp-api-client - npm Package Compare versions

Comparing version 1.17.2 to 1.18.0

136

Api.ts

@@ -28,3 +28,3 @@ /* eslint-disable */

export interface ERPCustomerCreateReqDTO {
export interface ERPCustomerCreateDTO {
address?: string;

@@ -145,2 +145,6 @@ /** @format date */

| "PRIVILEGE_CUSTOMER_VIEW_LOG"
| "PRIVILEGE_ORDER_READ"
| "PRIVILEGE_ORDER_CREATE"
| "PRIVILEGE_ORDER_UPDATE"
| "PRIVILEGE_ORDER_VIEW_LOG"
)[];

@@ -190,2 +194,6 @@ /**

| "PRIVILEGE_CUSTOMER_VIEW_LOG"
| "PRIVILEGE_ORDER_READ"
| "PRIVILEGE_ORDER_CREATE"
| "PRIVILEGE_ORDER_UPDATE"
| "PRIVILEGE_ORDER_VIEW_LOG"
)[];

@@ -228,2 +236,6 @@ /** @format int32 */

| "PRIVILEGE_CUSTOMER_VIEW_LOG"
| "PRIVILEGE_ORDER_READ"
| "PRIVILEGE_ORDER_CREATE"
| "PRIVILEGE_ORDER_UPDATE"
| "PRIVILEGE_ORDER_VIEW_LOG"
)[];

@@ -238,2 +250,43 @@ /** @format int32 */

export interface ERPOrderCreateReqDTO {
customer?: ERPCustomerCreateDTO;
/** @format int64 */
customerId?: number;
orderTotal: string;
/** @format int32 */
productId: number;
}
export interface ERPOrderDetailResDTO {
/** @format date-time */
createdAt?: string;
customerCardNumber?: string;
/** @format int64 */
customerId?: number;
customerName?: string;
customerPhoneNumber?: string;
/** @format int64 */
lastModifiedById?: number;
/** @format int64 */
orderId?: number;
orderNumber?: string;
orderProductSnapshot?: ERPProductSnapshotResDTO;
orderStatus?:
| "CREATED"
| "CLOTHES_CHOSEN"
| "PHOTO_SHOT"
| "ORIGINAL_PHOTOS_UPLOADED"
| "RETOUCHED_PHOTOS_UPLOADED"
| "PHOTOS_CHOSEN"
| "PHOTOS_RETOUCHED"
| "PHOTOS_PRINTED"
| "PHOTOS_DELIVERED"
| "CANCELLED";
orderTotal?: string;
/** @format int32 */
storeId?: number;
/** @format date-time */
updatedAt?: string;
}
export interface ERPPasswordChangeReqDTO {

@@ -343,2 +396,14 @@ email: string;

export interface ERPProductSnapshotResDTO {
/** @format date-time */
createdAt?: string;
/** @format int64 */
id?: number;
imageIds?: string[];
price?: string;
/** @format int64 */
productId?: number;
productName?: string;
}
export interface ERPStorageDetailResDTO {

@@ -588,2 +653,11 @@ contentId?: string;

export interface ERPSuccessResDTOOrderDetailResDTO {
/** @format int32 */
code?: number;
data?: ERPOrderDetailResDTO;
message?: string;
/** @format date-time */
timestamp?: string;
}
export interface ERPSuccessResDTOPositionDetailResDTO {

@@ -862,2 +936,6 @@ /** @format int32 */

| "PRIVILEGE_CUSTOMER_VIEW_LOG"
| "PRIVILEGE_ORDER_READ"
| "PRIVILEGE_ORDER_CREATE"
| "PRIVILEGE_ORDER_UPDATE"
| "PRIVILEGE_ORDER_VIEW_LOG"
)[];

@@ -1190,21 +1268,2 @@ avatarContentId?: string;

* @tags Customer Management
* @name CreateCustomer
* @summary create new customer
* @request POST:/customers
* @secure
*/
createCustomer: (data: ERPCustomerCreateReqDTO, params: RequestParams = {}) =>
this.http.request<ERPSuccessResDTOCustomerDetailResDTO, ERPErrorResDTO>({
path: `/customers`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
...params,
}),
/**
* No description
*
* @tags Customer Management
* @name GetCustomerPublicNameCards

@@ -1393,2 +1452,39 @@ * @summary get customer name card by customer ids

};
orders = {
/**
* No description
*
* @tags Order Controller
* @name CreateOrder
* @summary create order
* @request POST:/orders
* @secure
*/
createOrder: (data: ERPOrderCreateReqDTO, params: RequestParams = {}) =>
this.http.request<ERPSuccessResDTOOrderDetailResDTO, ERPErrorResDTO>({
path: `/orders`,
method: "POST",
body: data,
secure: true,
type: ContentType.Json,
...params,
}),
/**
* No description
*
* @tags Order Controller
* @name GetOrderDetail
* @summary get order detail
* @request GET:/orders/{orderId}
* @secure
*/
getOrderDetail: (orderId: number, params: RequestParams = {}) =>
this.http.request<ERPSuccessResDTOOrderDetailResDTO, ERPErrorResDTO>({
path: `/orders/${orderId}`,
method: "GET",
secure: true,
...params,
}),
};
products = {

@@ -1395,0 +1491,0 @@ /**

@@ -15,3 +15,3 @@ export interface ERPCustomerContactCreateReqDTO {

}
export interface ERPCustomerCreateReqDTO {
export interface ERPCustomerCreateDTO {
address?: string;

@@ -99,3 +99,3 @@ /** @format date */

groupName: string;
privileges: ("PRIVILEGE_STORE_READ" | "PRIVILEGE_STORE_CREATE" | "PRIVILEGE_STORE_UPDATE" | "PRIVILEGE_GROUP_READ" | "PRIVILEGE_GROUP_CREATE" | "PRIVILEGE_GROUP_UPDATE" | "PRIVILEGE_GROUP_DELETE" | "PRIVILEGE_POSITION_READ" | "PRIVILEGE_POSITION_CREATE" | "PRIVILEGE_POSITION_UPDATE" | "PRIVILEGE_POSITION_DELETE" | "PRIVILEGE_DEPARTMENT_READ" | "PRIVILEGE_DEPARTMENT_CREATE" | "PRIVILEGE_DEPARTMENT_UPDATE" | "PRIVILEGE_DEPARTMENT_DELETE" | "PRIVILEGE_PRODUCT_READ" | "PRIVILEGE_PRODUCT_CREATE" | "PRIVILEGE_PRODUCT_UPDATE" | "PRIVILEGE_USER_READ" | "PRIVILEGE_USER_CREATE" | "PRIVILEGE_USER_UPDATE" | "PRIVILEGE_USER_DELETE" | "PRIVILEGE_CUSTOMER_READ" | "PRIVILEGE_CUSTOMER_CREATE" | "PRIVILEGE_CUSTOMER_UPDATE" | "PRIVILEGE_CUSTOMER_VIEW_LOG")[];
privileges: ("PRIVILEGE_STORE_READ" | "PRIVILEGE_STORE_CREATE" | "PRIVILEGE_STORE_UPDATE" | "PRIVILEGE_GROUP_READ" | "PRIVILEGE_GROUP_CREATE" | "PRIVILEGE_GROUP_UPDATE" | "PRIVILEGE_GROUP_DELETE" | "PRIVILEGE_POSITION_READ" | "PRIVILEGE_POSITION_CREATE" | "PRIVILEGE_POSITION_UPDATE" | "PRIVILEGE_POSITION_DELETE" | "PRIVILEGE_DEPARTMENT_READ" | "PRIVILEGE_DEPARTMENT_CREATE" | "PRIVILEGE_DEPARTMENT_UPDATE" | "PRIVILEGE_DEPARTMENT_DELETE" | "PRIVILEGE_PRODUCT_READ" | "PRIVILEGE_PRODUCT_CREATE" | "PRIVILEGE_PRODUCT_UPDATE" | "PRIVILEGE_USER_READ" | "PRIVILEGE_USER_CREATE" | "PRIVILEGE_USER_UPDATE" | "PRIVILEGE_USER_DELETE" | "PRIVILEGE_CUSTOMER_READ" | "PRIVILEGE_CUSTOMER_CREATE" | "PRIVILEGE_CUSTOMER_UPDATE" | "PRIVILEGE_CUSTOMER_VIEW_LOG" | "PRIVILEGE_ORDER_READ" | "PRIVILEGE_ORDER_CREATE" | "PRIVILEGE_ORDER_UPDATE" | "PRIVILEGE_ORDER_VIEW_LOG")[];
/**

@@ -116,3 +116,3 @@ * @format int32

lastModifiedById?: number;
privileges?: ("PRIVILEGE_STORE_READ" | "PRIVILEGE_STORE_CREATE" | "PRIVILEGE_STORE_UPDATE" | "PRIVILEGE_GROUP_READ" | "PRIVILEGE_GROUP_CREATE" | "PRIVILEGE_GROUP_UPDATE" | "PRIVILEGE_GROUP_DELETE" | "PRIVILEGE_POSITION_READ" | "PRIVILEGE_POSITION_CREATE" | "PRIVILEGE_POSITION_UPDATE" | "PRIVILEGE_POSITION_DELETE" | "PRIVILEGE_DEPARTMENT_READ" | "PRIVILEGE_DEPARTMENT_CREATE" | "PRIVILEGE_DEPARTMENT_UPDATE" | "PRIVILEGE_DEPARTMENT_DELETE" | "PRIVILEGE_PRODUCT_READ" | "PRIVILEGE_PRODUCT_CREATE" | "PRIVILEGE_PRODUCT_UPDATE" | "PRIVILEGE_USER_READ" | "PRIVILEGE_USER_CREATE" | "PRIVILEGE_USER_UPDATE" | "PRIVILEGE_USER_DELETE" | "PRIVILEGE_CUSTOMER_READ" | "PRIVILEGE_CUSTOMER_CREATE" | "PRIVILEGE_CUSTOMER_UPDATE" | "PRIVILEGE_CUSTOMER_VIEW_LOG")[];
privileges?: ("PRIVILEGE_STORE_READ" | "PRIVILEGE_STORE_CREATE" | "PRIVILEGE_STORE_UPDATE" | "PRIVILEGE_GROUP_READ" | "PRIVILEGE_GROUP_CREATE" | "PRIVILEGE_GROUP_UPDATE" | "PRIVILEGE_GROUP_DELETE" | "PRIVILEGE_POSITION_READ" | "PRIVILEGE_POSITION_CREATE" | "PRIVILEGE_POSITION_UPDATE" | "PRIVILEGE_POSITION_DELETE" | "PRIVILEGE_DEPARTMENT_READ" | "PRIVILEGE_DEPARTMENT_CREATE" | "PRIVILEGE_DEPARTMENT_UPDATE" | "PRIVILEGE_DEPARTMENT_DELETE" | "PRIVILEGE_PRODUCT_READ" | "PRIVILEGE_PRODUCT_CREATE" | "PRIVILEGE_PRODUCT_UPDATE" | "PRIVILEGE_USER_READ" | "PRIVILEGE_USER_CREATE" | "PRIVILEGE_USER_UPDATE" | "PRIVILEGE_USER_DELETE" | "PRIVILEGE_CUSTOMER_READ" | "PRIVILEGE_CUSTOMER_CREATE" | "PRIVILEGE_CUSTOMER_UPDATE" | "PRIVILEGE_CUSTOMER_VIEW_LOG" | "PRIVILEGE_ORDER_READ" | "PRIVILEGE_ORDER_CREATE" | "PRIVILEGE_ORDER_UPDATE" | "PRIVILEGE_ORDER_VIEW_LOG")[];
/** @format int32 */

@@ -126,3 +126,3 @@ sortOrder?: number;

groupName?: string;
privileges?: ("PRIVILEGE_STORE_READ" | "PRIVILEGE_STORE_CREATE" | "PRIVILEGE_STORE_UPDATE" | "PRIVILEGE_GROUP_READ" | "PRIVILEGE_GROUP_CREATE" | "PRIVILEGE_GROUP_UPDATE" | "PRIVILEGE_GROUP_DELETE" | "PRIVILEGE_POSITION_READ" | "PRIVILEGE_POSITION_CREATE" | "PRIVILEGE_POSITION_UPDATE" | "PRIVILEGE_POSITION_DELETE" | "PRIVILEGE_DEPARTMENT_READ" | "PRIVILEGE_DEPARTMENT_CREATE" | "PRIVILEGE_DEPARTMENT_UPDATE" | "PRIVILEGE_DEPARTMENT_DELETE" | "PRIVILEGE_PRODUCT_READ" | "PRIVILEGE_PRODUCT_CREATE" | "PRIVILEGE_PRODUCT_UPDATE" | "PRIVILEGE_USER_READ" | "PRIVILEGE_USER_CREATE" | "PRIVILEGE_USER_UPDATE" | "PRIVILEGE_USER_DELETE" | "PRIVILEGE_CUSTOMER_READ" | "PRIVILEGE_CUSTOMER_CREATE" | "PRIVILEGE_CUSTOMER_UPDATE" | "PRIVILEGE_CUSTOMER_VIEW_LOG")[];
privileges?: ("PRIVILEGE_STORE_READ" | "PRIVILEGE_STORE_CREATE" | "PRIVILEGE_STORE_UPDATE" | "PRIVILEGE_GROUP_READ" | "PRIVILEGE_GROUP_CREATE" | "PRIVILEGE_GROUP_UPDATE" | "PRIVILEGE_GROUP_DELETE" | "PRIVILEGE_POSITION_READ" | "PRIVILEGE_POSITION_CREATE" | "PRIVILEGE_POSITION_UPDATE" | "PRIVILEGE_POSITION_DELETE" | "PRIVILEGE_DEPARTMENT_READ" | "PRIVILEGE_DEPARTMENT_CREATE" | "PRIVILEGE_DEPARTMENT_UPDATE" | "PRIVILEGE_DEPARTMENT_DELETE" | "PRIVILEGE_PRODUCT_READ" | "PRIVILEGE_PRODUCT_CREATE" | "PRIVILEGE_PRODUCT_UPDATE" | "PRIVILEGE_USER_READ" | "PRIVILEGE_USER_CREATE" | "PRIVILEGE_USER_UPDATE" | "PRIVILEGE_USER_DELETE" | "PRIVILEGE_CUSTOMER_READ" | "PRIVILEGE_CUSTOMER_CREATE" | "PRIVILEGE_CUSTOMER_UPDATE" | "PRIVILEGE_CUSTOMER_VIEW_LOG" | "PRIVILEGE_ORDER_READ" | "PRIVILEGE_ORDER_CREATE" | "PRIVILEGE_ORDER_UPDATE" | "PRIVILEGE_ORDER_VIEW_LOG")[];
/** @format int32 */

@@ -134,2 +134,31 @@ sortOrder?: number;

}
export interface ERPOrderCreateReqDTO {
customer?: ERPCustomerCreateDTO;
/** @format int64 */
customerId?: number;
orderTotal: string;
/** @format int32 */
productId: number;
}
export interface ERPOrderDetailResDTO {
/** @format date-time */
createdAt?: string;
customerCardNumber?: string;
/** @format int64 */
customerId?: number;
customerName?: string;
customerPhoneNumber?: string;
/** @format int64 */
lastModifiedById?: number;
/** @format int64 */
orderId?: number;
orderNumber?: string;
orderProductSnapshot?: ERPProductSnapshotResDTO;
orderStatus?: "CREATED" | "CLOTHES_CHOSEN" | "PHOTO_SHOT" | "ORIGINAL_PHOTOS_UPLOADED" | "RETOUCHED_PHOTOS_UPLOADED" | "PHOTOS_CHOSEN" | "PHOTOS_RETOUCHED" | "PHOTOS_PRINTED" | "PHOTOS_DELIVERED" | "CANCELLED";
orderTotal?: string;
/** @format int32 */
storeId?: number;
/** @format date-time */
updatedAt?: string;
}
export interface ERPPasswordChangeReqDTO {

@@ -230,2 +259,13 @@ email: string;

}
export interface ERPProductSnapshotResDTO {
/** @format date-time */
createdAt?: string;
/** @format int64 */
id?: number;
imageIds?: string[];
price?: string;
/** @format int64 */
productId?: number;
productName?: string;
}
export interface ERPStorageDetailResDTO {

@@ -453,2 +493,10 @@ contentId?: string;

}
export interface ERPSuccessResDTOOrderDetailResDTO {
/** @format int32 */
code?: number;
data?: ERPOrderDetailResDTO;
message?: string;
/** @format date-time */
timestamp?: string;
}
export interface ERPSuccessResDTOPositionDetailResDTO {

@@ -627,3 +675,3 @@ /** @format int32 */

admin?: boolean;
authorities?: ("PRIVILEGE_STORE_READ" | "PRIVILEGE_STORE_CREATE" | "PRIVILEGE_STORE_UPDATE" | "PRIVILEGE_GROUP_READ" | "PRIVILEGE_GROUP_CREATE" | "PRIVILEGE_GROUP_UPDATE" | "PRIVILEGE_GROUP_DELETE" | "PRIVILEGE_POSITION_READ" | "PRIVILEGE_POSITION_CREATE" | "PRIVILEGE_POSITION_UPDATE" | "PRIVILEGE_POSITION_DELETE" | "PRIVILEGE_DEPARTMENT_READ" | "PRIVILEGE_DEPARTMENT_CREATE" | "PRIVILEGE_DEPARTMENT_UPDATE" | "PRIVILEGE_DEPARTMENT_DELETE" | "PRIVILEGE_PRODUCT_READ" | "PRIVILEGE_PRODUCT_CREATE" | "PRIVILEGE_PRODUCT_UPDATE" | "PRIVILEGE_USER_READ" | "PRIVILEGE_USER_CREATE" | "PRIVILEGE_USER_UPDATE" | "PRIVILEGE_USER_DELETE" | "PRIVILEGE_CUSTOMER_READ" | "PRIVILEGE_CUSTOMER_CREATE" | "PRIVILEGE_CUSTOMER_UPDATE" | "PRIVILEGE_CUSTOMER_VIEW_LOG")[];
authorities?: ("PRIVILEGE_STORE_READ" | "PRIVILEGE_STORE_CREATE" | "PRIVILEGE_STORE_UPDATE" | "PRIVILEGE_GROUP_READ" | "PRIVILEGE_GROUP_CREATE" | "PRIVILEGE_GROUP_UPDATE" | "PRIVILEGE_GROUP_DELETE" | "PRIVILEGE_POSITION_READ" | "PRIVILEGE_POSITION_CREATE" | "PRIVILEGE_POSITION_UPDATE" | "PRIVILEGE_POSITION_DELETE" | "PRIVILEGE_DEPARTMENT_READ" | "PRIVILEGE_DEPARTMENT_CREATE" | "PRIVILEGE_DEPARTMENT_UPDATE" | "PRIVILEGE_DEPARTMENT_DELETE" | "PRIVILEGE_PRODUCT_READ" | "PRIVILEGE_PRODUCT_CREATE" | "PRIVILEGE_PRODUCT_UPDATE" | "PRIVILEGE_USER_READ" | "PRIVILEGE_USER_CREATE" | "PRIVILEGE_USER_UPDATE" | "PRIVILEGE_USER_DELETE" | "PRIVILEGE_CUSTOMER_READ" | "PRIVILEGE_CUSTOMER_CREATE" | "PRIVILEGE_CUSTOMER_UPDATE" | "PRIVILEGE_CUSTOMER_VIEW_LOG" | "PRIVILEGE_ORDER_READ" | "PRIVILEGE_ORDER_CREATE" | "PRIVILEGE_ORDER_UPDATE" | "PRIVILEGE_ORDER_VIEW_LOG")[];
avatarContentId?: string;

@@ -788,12 +836,2 @@ degree?: "JUNIOR_HIGH_SCHOOL" | "HIGH_SCHOOL" | "JUNIOR_COLLEGE" | "BACHELOR" | "MASTER" | "DOCTOR" | "UNKNOWN";

* @tags Customer Management
* @name CreateCustomer
* @summary create new customer
* @request POST:/customers
* @secure
*/
createCustomer: (data: ERPCustomerCreateReqDTO, params?: RequestParams) => Promise<AxiosResponse<ERPSuccessResDTOCustomerDetailResDTO, any>>;
/**
* No description
*
* @tags Customer Management
* @name GetCustomerPublicNameCards

@@ -914,2 +952,24 @@ * @summary get customer name card by customer ids

};
orders: {
/**
* No description
*
* @tags Order Controller
* @name CreateOrder
* @summary create order
* @request POST:/orders
* @secure
*/
createOrder: (data: ERPOrderCreateReqDTO, params?: RequestParams) => Promise<AxiosResponse<ERPSuccessResDTOOrderDetailResDTO, any>>;
/**
* No description
*
* @tags Order Controller
* @name GetOrderDetail
* @summary get order detail
* @request GET:/orders/{orderId}
* @secure
*/
getOrderDetail: (orderId: number, params?: RequestParams) => Promise<AxiosResponse<ERPSuccessResDTOOrderDetailResDTO, any>>;
};
products: {

@@ -916,0 +976,0 @@ /**

41

dist/Api.js

@@ -221,15 +221,2 @@ "use strict";

* @tags Customer Management
* @name CreateCustomer
* @summary create new customer
* @request POST:/customers
* @secure
*/
createCustomer: function (data, params) {
if (params === void 0) { params = {}; }
return _this.http.request(__assign({ path: "/customers", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
},
/**
* No description
*
* @tags Customer Management
* @name GetCustomerPublicNameCards

@@ -336,2 +323,30 @@ * @summary get customer name card by customer ids

};
this.orders = {
/**
* No description
*
* @tags Order Controller
* @name CreateOrder
* @summary create order
* @request POST:/orders
* @secure
*/
createOrder: function (data, params) {
if (params === void 0) { params = {}; }
return _this.http.request(__assign({ path: "/orders", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
},
/**
* No description
*
* @tags Order Controller
* @name GetOrderDetail
* @summary get order detail
* @request GET:/orders/{orderId}
* @secure
*/
getOrderDetail: function (orderId, params) {
if (params === void 0) { params = {}; }
return _this.http.request(__assign({ path: "/orders/".concat(orderId), method: "GET", secure: true }, params));
},
};
this.products = {

@@ -338,0 +353,0 @@ /**

{
"name": "@maxvision/maxerp-api-client",
"version": "1.17.2",
"version": "1.18.0",
"description": "Api client for Max Erp API",

@@ -5,0 +5,0 @@ "main": "dist/Api.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc