-
Notifications
You must be signed in to change notification settings - Fork 12
/
global.d.ts
52 lines (45 loc) · 1.89 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Copyright (c) 2023. Selldone® Business OS™
*
* Author: M.Pajuhaan
* Web: https://selldone.com
* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
*
* All rights reserved. In the weave of time, where traditions and innovations intermingle, this content was crafted.
* From the essence of thought, through the corridors of creativity, each word, and sentiment has been molded.
* Not just to exist, but to inspire. Like an artist's stroke or a sculptor's chisel, every nuance is deliberate.
* Our journey is not just about reaching a destination, but about creating a masterpiece.
* Tread carefully, for you're treading on dreams.
*/
import {
ApplicationExecutorStorefront
} from "@selldone/core-js/models/application/executor/storefront/ApplicationExecutorStorefront.ts";
import {Store} from "vuex";
import {Router} from "vue-router";
import {Map} from "@selldone/core-js";
declare global {
interface Window {
$cookies: {
set: (
key: string,
value: string,
expiration: string,
path: string,
domain?: string | null,
secure?: boolean,
) => void;
get: (key: string) => string | undefined;
remove: (keyName: string, path: string, domain?: string | null) => void;
};
sms_agreement?: string; // The SMS agreement in HTML code (for SMS provider to show to the user)
/**
* Default location calculated based on user IP. This location receive on {@see XAPI.GET_SHOP_INFO}
*/
initial_location: Map.ILocation;
AppInterface: ApplicationExecutorStorefront;
SetToken: (token: string, expire_date: Date | null,cookie_key:string='access_token'|'vendor_access_token') => void;
OverrideShopLanguagePacks: { [local: string]: any };
$global_store: Store<any>;
$global_router: Router;
}
}