@giteeteam/apps-proxima-api
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -68,3 +68,3 @@ import { ItemObjectProps, WorkflowObjectProps, UserObjectProps, ancestorOption, returnFlag, RequestCoreResponse, SupportRequestMethod } from './types'; | ||
*/ | ||
export declare const getData: (isAppClass: boolean, className: string, params: Record<string, any>, applicationId?: string) => Promise<Record<string, any>>; | ||
export declare const getData: (isAppClass: boolean, className: string, params: Record<string, any>, applicationId?: string | undefined) => Promise<Record<string, any>>; | ||
/** | ||
@@ -78,3 +78,3 @@ * 根据条件查询所有的值 | ||
*/ | ||
export declare const getAllData: (isAppClass: boolean, className: string, params: Record<string, any>, applicationId?: string) => Promise<Record<string, any>[]>; | ||
export declare const getAllData: (isAppClass: boolean, className: string, params: Record<string, any>, applicationId?: string | undefined) => Promise<Record<string, any>[]>; | ||
/** | ||
@@ -87,3 +87,3 @@ * 对外提供直接调用 core 接口能力,对外暴露 GET/POST/PUT/PATCH 方法 | ||
*/ | ||
export declare const requestCoreApi: (method: SupportRequestMethod, url: string, data?: Record<string, unknown>) => Promise<RequestCoreResponse>; | ||
export declare const requestCoreApi: (method: SupportRequestMethod, url: string, data?: Record<string, unknown> | undefined) => Promise<RequestCoreResponse>; | ||
/** | ||
@@ -96,3 +96,3 @@ * 根据class名称获取parse query | ||
*/ | ||
export declare const getParseQuery: (isAppClass: boolean, className: string, applicationId?: string) => import("../parse/query").default; | ||
export declare const getParseQuery: (isAppClass: boolean, className: string, applicationId?: string | undefined) => import("../parse/query").default; | ||
/** | ||
@@ -119,3 +119,3 @@ * 根据class名称获取parse对象。注意:只是parse对象简单实现,并不是真正的parse对象 | ||
*/ | ||
export declare const getParseFile: (name: string, data: ParseFileData, type?: string) => import("../parse/file").default; | ||
export declare const getParseFile: (name: string, data: ParseFileData, type?: string | undefined) => import("../parse/file").default; | ||
/** | ||
@@ -122,0 +122,0 @@ * 保存多个parse对象,由于对象已经进行了appKey处理所以,保存不需要区分。 |
@@ -53,3 +53,9 @@ import Base from './base'; | ||
set(key, value) { | ||
this.attributes = { ...this.attributes, ...value }; | ||
let updateValue = key; | ||
if (value) { | ||
updateValue = { | ||
[key]: value, | ||
}; | ||
} | ||
this.attributes = { ...this.attributes, ...updateValue }; | ||
return this.operate(this.set.name, [key, value]); | ||
@@ -56,0 +62,0 @@ } |
{ | ||
"name": "@giteeteam/apps-proxima-api", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Apps Proxima API", | ||
@@ -35,3 +35,6 @@ "keywords": [ | ||
"axios": "^0.27.2" | ||
}, | ||
"devDependencies": { | ||
"copyfiles": "^2.4.1" | ||
} | ||
} |
36035
986
1