UNPKG

@agnostack/next-shopify

Version:

Please contact agnoStack via info@agnostack.com for any questions

78 lines 2.94 kB
export function normalizeShopifyId(shopifyData: any): { id: any; } | { entity_type?: string | undefined; id?: string | undefined; } | { entity_id: string; gid: string; entity_type?: string | undefined; id?: string | undefined; } | { gid: string; entity_type?: string | undefined; id?: string | undefined; }; export function getShopifyHelpers(serverRuntimeConfig: any, config: any): Promise<{ getVerifiedClients: (() => undefined) | (({ req, res, apiVersion, isOnline: _isOnline }?: { req: any; res: any; apiVersion: any; isOnline: any; }) => Promise<{ Graphql: import("@shopify/shopify-api").GraphqlClient; } | undefined>); getAppUrl: (() => undefined) | ((_appPath: any) => Promise<string | undefined>); validateSessionToken: (() => {}) | (({ idToken: idTokens }?: { idToken: any; }) => Promise<{ isValid: boolean; }>); exchangeSessionToken: (() => {}) | (({ idToken: idTokens, isOnline }?: { idToken: any; isOnline: any; }) => Promise<{ isValid: boolean; accessToken?: undefined; } | { accessToken: { session: import("@shopify/shopify-api").Session; }; isValid: boolean; }>); encryptData?: ((value: any) => any) | undefined; decryptData?: ((encrypted: any, { publicKey, sharedSecret }?: { publicKey: any; sharedSecret: any; }) => any) | undefined; loadAppData: (() => undefined) | (({ appId: _appId }?: { appId: any; }) => Promise<{ appMetafields: any; appInfo: any; appInstallation: any; }>); loadData: () => {}; loadSecureData: () => {}; loadSession: (() => {}) | ((params: any) => Promise<any>); storeSession: (() => {}) | ((session: any) => Promise<any>); ensureBilling: (() => undefined) | ((session: any, { reAuth, forceBilling: _forceBilling }?: { reAuth: any; forceBilling?: boolean | undefined; }) => Promise<any>); loadState: (() => undefined) | (() => Promise<any>); storeState: (() => undefined) | ((state: any) => Promise<any>); deleteState: (() => undefined) | (() => Promise<any>); updateSession: (() => {}) | ((sessionId: any, data: any) => Promise<any>); deleteSessions: (() => undefined) | ((sessionIds: any) => Promise<any[]>); findSessionIds: (() => never[]) | ((_shop: any) => Promise<any[]>); shopify: import("@shopify/shopify-api").Shopify<any, import("@shopify/shopify-api").ShopifyRestResources, import("@shopify/shopify-api/dist/ts/future/flags").FutureFlagOptions> | undefined; }>; export function prepareHeaders(serverRuntimeConfig: any): ({ generateReplacements, appData, shop, appId, headers: _headers }?: { generateReplacements: any; appData: any; shop: any; appId: any; headers: any; }) => Promise<any>; //# sourceMappingURL=session.d.ts.map