UNPKG

3.1 kBTypeScriptView Raw
1import { _SPInstance, _SPCollection } from "../spqueryable.js";
2export declare class _RegionalSettings extends _SPInstance<IRegionalSettingsInfo> {
3 /**
4 * Gets time zone
5 */
6 get timeZone(): ITimeZone;
7 /**
8 * Gets time zones
9 */
10 get timeZones(): ITimeZones;
11 /**
12 * Gets the collection of languages used in a server farm.
13 */
14 getInstalledLanguages(): Promise<IInstalledLanguageInfo[]>;
15}
16export interface IRegionalSettings extends _RegionalSettings {
17}
18export declare const RegionalSettings: import("../spqueryable.js").ISPInvokableFactory<IRegionalSettings>;
19export declare class _TimeZone extends _SPInstance<ITimeZoneInfo> {
20 /**
21 * Gets an Local Time by UTC Time
22 *
23 * @param utcTime UTC Time as Date or ISO String
24 */
25 utcToLocalTime(utcTime: string | Date): Promise<string>;
26 /**
27 * Gets an UTC Time by Local Time
28 *
29 * @param localTime Local Time as Date or ISO String
30 */
31 localTimeToUTC(localTime: string | Date): Promise<string>;
32}
33export interface ITimeZone extends _TimeZone {
34}
35export declare const TimeZone: import("../spqueryable.js").ISPInvokableFactory<ITimeZone>;
36export declare class _TimeZones extends _SPCollection<ITimeZoneInfo[]> {
37 /**
38 * Gets an TimeZone by id (see: https://msdn.microsoft.com/en-us/library/office/jj247008.aspx)
39 *
40 * @param id The integer id of the timezone to retrieve
41 */
42 getById(id: number): Promise<ITimeZoneInfo>;
43}
44export interface ITimeZones extends _TimeZones {
45}
46export declare const TimeZones: import("../spqueryable.js").ISPInvokableFactory<ITimeZones>;
47/**
48 * This is the data for Regional Settings
49 */
50export interface IRegionalSettingsInfo {
51 AdjustHijriDays: number;
52 AlternateCalendarType: number;
53 AM: string;
54 CalendarType: number;
55 Collation: number;
56 CollationLCID: number;
57 DateFormat: number;
58 DateSeparator: string;
59 DecimalSeparator: string;
60 DigitGrouping: string;
61 FirstDayOfWeek: number;
62 FirstWeekOfYear: number;
63 IsEastAsia: boolean;
64 IsRightToLeft: boolean;
65 IsUIRightToLeft: boolean;
66 ListSeparator: string;
67 LocaleId: number;
68 NegativeSign: string;
69 NegNumberMode: number;
70 PM: string;
71 PositiveSign: string;
72 ShowWeeks: boolean;
73 ThousandSeparator: string;
74 Time24: boolean;
75 TimeMarkerPosition: number;
76 TimeSeparator: string;
77 WorkDayEndHour: number;
78 WorkDays: number;
79 WorkDayStartHour: number;
80}
81export interface IInstalledLanguageInfo {
82 DisplayName: string;
83 LanguageTag: string;
84 Lcid: number;
85}
86export interface ITimeZoneInfo {
87 Description: string;
88 Id: number;
89 Information: {
90 Bias: number;
91 DaylightBias: number;
92 StandardBias: number;
93 };
94}
95export interface IUserResources {
96 /**
97 * Gets the resource string for the title
98 */
99 titleResource(cultureName: string): Promise<string>;
100 /**
101 * Gets the resource string for the title description
102 */
103 descriptionResource(cultureName: string): Promise<string>;
104}
105//# sourceMappingURL=types.d.ts.map
\No newline at end of file