@selldone/sdk-storefront
Version:
A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.
57 lines (56 loc) • 1.91 kB
TypeScript
import type { Shop } from "../../models/shop/shop.model";
import { Domain } from "../../models/shop/domain/domain.model";
import { Club } from "../../models/shop/club/club.model";
import { ShopGateway } from "../../models/shop/gateway/shop-gateway.model";
import { ShopSocial } from "../../models/shop/social/shop-social.model";
import { Account } from "../../models/account/account.model";
import { Gateway } from "../../models";
export declare class ShopCautionHelper {
static Generate(shop: Shop & {
domains?: Domain[];
clubs?: Club[];
shop_gateways?: (ShopGateway & {
gateway?: Gateway;
})[];
socials?: ShopSocial[];
accounts?: Account[];
}): {
type: "error" | "warning" | "info";
title: string;
message: string | string[];
to: {
name: string;
params?: Record<string, any>;
query?: Record<string, any>;
} | null;
action: String | null;
score: number | null;
}[] | null;
/**
*
* @param type
* @param title
* @param message can be string or array!
* @param to
* @param action
* @param score message must be arrayed!
* @returns {{score: *, action: *, to: *, type: *, title: *, message: *}}
* @constructor
*/
static Caution(type: "error" | "warning" | "info", title: string, message: string | string[], to: {
name: string;
params?: Record<string, any>;
query?: Record<string, any>;
} | null, action: String | null, score?: number | null): {
type: "error" | "warning" | "info";
title: string;
message: string | string[];
to: {
name: string;
params?: Record<string, any>;
query?: Record<string, any>;
} | null;
action: String | null;
score: number | null;
};
}