UNPKG

@wishcbg/bobcode

Version:

基於店家同步功能的需求,讓店家能夠在不同的店家之間同步各項功能設定,並且能夠檢視各項功能的異動情況。 規劃出一套店家設定即程式碼的機制,讓店家能夠以 config file (.sac) 來定義各項功能設定,並且能夠還原店家各項功能設定。 暫且稱這個機制為「Settings as Code」「店家設定即程式碼」。

21 lines (20 loc) 732 B
export declare function createApiClient(baseUrl: string, token: string): import("axios").AxiosInstance; declare class Bob { private client; private shopId; constructor({ baseUrl, token, shopId }: { baseUrl: string; token: string; shopId: string; }); findLogicIdSet(): Promise<any>; upsertLogicIdSet(data: { resourceType: string; logicId: string; resourceId: string | null; }[]): Promise<any>; introspect(resourceTypes: string[], logicIdPrefix: string | null): Promise<any>; applyChanges(apiPath: string, httpMethod: 'post' | 'put' | 'delete', applyBody: object): Promise<any>; getExtraInfo(apiPath: string): Promise<any>; } export default Bob;