@kwiz/common 1.0.135 → 1.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/lib/cjs/utils/sharepoint.rest/exports-index.js +1 -0
  2. package/lib/cjs/utils/sharepoint.rest/exports-index.js.map +1 -1
  3. package/lib/cjs/utils/sharepoint.rest/item.js +7 -1
  4. package/lib/cjs/utils/sharepoint.rest/item.js.map +1 -1
  5. package/lib/cjs/utils/sharepoint.rest/list.js +32 -25
  6. package/lib/cjs/utils/sharepoint.rest/list.js.map +1 -1
  7. package/lib/cjs/utils/sharepoint.rest/sp-people-search-service.js +9 -2
  8. package/lib/cjs/utils/sharepoint.rest/sp-people-search-service.js.map +1 -1
  9. package/lib/cjs/utils/sharepoint.rest/timzone-map.js +323 -0
  10. package/lib/cjs/utils/sharepoint.rest/timzone-map.js.map +1 -0
  11. package/lib/cjs/utils/sharepoint.rest/web.js +75 -3
  12. package/lib/cjs/utils/sharepoint.rest/web.js.map +1 -1
  13. package/lib/esm/utils/sharepoint.rest/exports-index.js +1 -0
  14. package/lib/esm/utils/sharepoint.rest/exports-index.js.map +1 -1
  15. package/lib/esm/utils/sharepoint.rest/item.js +6 -1
  16. package/lib/esm/utils/sharepoint.rest/item.js.map +1 -1
  17. package/lib/esm/utils/sharepoint.rest/list.js +28 -23
  18. package/lib/esm/utils/sharepoint.rest/list.js.map +1 -1
  19. package/lib/esm/utils/sharepoint.rest/sp-people-search-service.js +10 -3
  20. package/lib/esm/utils/sharepoint.rest/sp-people-search-service.js.map +1 -1
  21. package/lib/esm/utils/sharepoint.rest/timzone-map.js +320 -0
  22. package/lib/esm/utils/sharepoint.rest/timzone-map.js.map +1 -0
  23. package/lib/esm/utils/sharepoint.rest/web.js +74 -3
  24. package/lib/esm/utils/sharepoint.rest/web.js.map +1 -1
  25. package/lib/types/utils/sharepoint.rest/exports-index.d.ts +1 -0
  26. package/lib/types/utils/sharepoint.rest/item.d.ts +4 -0
  27. package/lib/types/utils/sharepoint.rest/list.d.ts +11 -3
  28. package/lib/types/utils/sharepoint.rest/timzone-map.d.ts +319 -0
  29. package/lib/types/utils/sharepoint.rest/web.d.ts +1 -0
  30. package/package.json +1 -1
@@ -0,0 +1,323 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SPTimeZoneNameToSPTimeZoneId = exports.SPTimeZoneIdToSPTimeZoneName = exports.SPTimeZoneIdToIANATimeZoneName = void 0;
4
+ exports.SPTimeZoneIdToIANATimeZoneName = {
5
+ "2": "Europe/London",
6
+ "3": "Europe/Paris",
7
+ "4": "Europe/Berlin",
8
+ "5": "Europe/Bucharest",
9
+ "6": "Europe/Budapest",
10
+ "7": "Europe/Kaliningrad",
11
+ "8": "America/Sao_Paulo",
12
+ "9": "America/Halifax",
13
+ "10": "America/New_York",
14
+ "11": "America/Chicago",
15
+ "12": "America/Denver",
16
+ "13": "America/Los_Angeles",
17
+ "14": "America/Anchorage",
18
+ "15": "Pacific/Honolulu",
19
+ "16": "Pacific/Apia",
20
+ "17": "Pacific/Auckland",
21
+ "18": "Australia/Brisbane",
22
+ "19": "Australia/Adelaide",
23
+ "20": "Asia/Tokyo",
24
+ "21": "Asia/Singapore",
25
+ "22": "Asia/Bangkok",
26
+ "23": "Asia/Kolkata",
27
+ "24": "Asia/Dubai",
28
+ "25": "Asia/Tehran",
29
+ "26": "Asia/Baghdad",
30
+ "27": "Asia/Jerusalem",
31
+ "28": "America/St_Johns",
32
+ "29": "Atlantic/Azores",
33
+ "30": "Etc/GMT+2",
34
+ "31": "Atlantic/Reykjavik",
35
+ "32": "America/Cayenne",
36
+ "33": "America/La_Paz",
37
+ "34": "America/Indianapolis",
38
+ "35": "America/Bogota",
39
+ "36": "America/Regina",
40
+ "37": "America/Mexico_City",
41
+ "38": "America/Phoenix",
42
+ "39": "Etc/GMT+12",
43
+ "40": "Pacific/Fiji",
44
+ "41": "Asia/Magadan",
45
+ "42": "Australia/Hobart",
46
+ "43": "Pacific/Port_Moresby",
47
+ "44": "Australia/Darwin",
48
+ "45": "Asia/Shanghai",
49
+ "46": "Asia/Novosibirsk",
50
+ "47": "Asia/Tashkent",
51
+ "48": "Asia/Kabul",
52
+ "49": "Africa/Cairo",
53
+ "50": "Africa/Johannesburg",
54
+ "51": "Europe/Moscow",
55
+ "53": "Atlantic/Cape_Verde",
56
+ "54": "Asia/Baku",
57
+ "55": "America/Guatemala",
58
+ "56": "Africa/Nairobi",
59
+ "57": "Europe/Warsaw",
60
+ "58": "Asia/Yekaterinburg",
61
+ "59": "Europe/Kiev",
62
+ "60": "America/Godthab",
63
+ "61": "Asia/Rangoon",
64
+ "62": "Asia/Katmandu",
65
+ "63": "Asia/Irkutsk",
66
+ "64": "Asia/Krasnoyarsk",
67
+ "65": "America/Santiago",
68
+ "66": "Asia/Colombo",
69
+ "67": "Pacific/Tongatapu",
70
+ "68": "Asia/Vladivostok",
71
+ "69": "Africa/Lagos",
72
+ "70": "Asia/Yakutsk",
73
+ "71": "Asia/Almaty",
74
+ "72": "Asia/Seoul",
75
+ "73": "Australia/Perth",
76
+ "74": "Asia/Riyadh",
77
+ "75": "Asia/Taipei",
78
+ "76": "Australia/Sydney",
79
+ "77": "America/Chihuahua",
80
+ "78": "America/Santa_Isabel",
81
+ "79": "Asia/Amman",
82
+ "80": "Asia/Beirut",
83
+ "81": "America/Manaus",
84
+ "82": "Asia/Tbilisi",
85
+ "83": "Africa/Windhoek",
86
+ "84": "Asia/Yerevan",
87
+ "85": "America/Buenos_Aires",
88
+ "86": "Africa/Casablanca",
89
+ "87": "Asia/Karachi",
90
+ "88": "America/Caracas",
91
+ "89": "Indian/Mauritius",
92
+ "90": "America/Montevideo",
93
+ "91": "America/Asuncion",
94
+ "92": "Asia/Kamchatka",
95
+ "93": "UTC",
96
+ "94": "Asia/Ulaanbaatar",
97
+ "95": "Etc/GMT+11",
98
+ "96": "Etc/GMT+2",
99
+ "97": "Etc/GMT-12",
100
+ "98": "Asia/Damascus",
101
+ "99": "Asia/Magadan",
102
+ "100": "Europe/Kaliningrad",
103
+ "101": "Europe/Istanbul",
104
+ "102": "Asia/Dhaka",
105
+ "103": "America/Bahia"
106
+ };
107
+ exports.SPTimeZoneIdToSPTimeZoneName = {
108
+ "39": "(UTC-12:00) International Date Line West",
109
+ "95": "(UTC-11:00) Coordinated Universal Time-11",
110
+ "15": "(UTC-10:00) Hawaii",
111
+ "14": "(UTC-09:00) Alaska",
112
+ "78": "(UTC-08:00) Baja California",
113
+ "13": "(UTC-08:00) Pacific Time (US and Canada)",
114
+ "38": "(UTC-07:00) Arizona",
115
+ "77": "(UTC-07:00) Chihuahua, La Paz, Mazatlan",
116
+ "12": "(UTC-07:00) Mountain Time (US and Canada)",
117
+ "55": "(UTC-06:00) Central America",
118
+ "11": "(UTC-06:00) Central Time (US and Canada)",
119
+ "37": "(UTC-06:00) Guadalajara, Mexico City, Monterrey",
120
+ "36": "(UTC-06:00) Saskatchewan",
121
+ "35": "(UTC-05:00) Bogota, Lima, Quito",
122
+ "10": "(UTC-05:00) Eastern Time (US and Canada)",
123
+ "34": "(UTC-05:00) Indiana (East)",
124
+ "88": "(UTC-04:30) Caracas",
125
+ "91": "(UTC-04:00) Asuncion",
126
+ "9": "(UTC-04:00) Atlantic Time (Canada)",
127
+ "81": "(UTC-04:00) Cuiaba",
128
+ "33": "(UTC-04:00) Georgetown, La Paz, Manaus, San Juan",
129
+ "28": "(UTC-03:30) Newfoundland",
130
+ "8": "(UTC-03:00) Brasilia",
131
+ "85": "(UTC-03:00) Buenos Aires",
132
+ "32": "(UTC-03:00) Cayenne, Fortaleza",
133
+ "60": "(UTC-03:00) Greenland",
134
+ "90": "(UTC-03:00) Montevideo",
135
+ "103": "(UTC-03:00) Salvador",
136
+ "65": "(UTC-03:00) Santiago",
137
+ "96": "(UTC-02:00) Coordinated Universal Time-02",
138
+ "30": "(UTC-02:00) Mid-Atlantic",
139
+ "29": "(UTC-01:00) Azores",
140
+ "53": "(UTC-01:00) Cabo Verde",
141
+ "86": "(UTC) Casablanca",
142
+ "93": "(UTC) Coordinated Universal Time",
143
+ "2": "(UTC) Dublin, Edinburgh, Lisbon, London",
144
+ "31": "(UTC) Monrovia, Reykjavik",
145
+ "4": "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",
146
+ "6": "(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague",
147
+ "3": "(UTC+01:00) Brussels, Copenhagen, Madrid, Paris",
148
+ "57": "(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb",
149
+ "69": "(UTC+01:00) West Central Africa",
150
+ "83": "(UTC+01:00) Windhoek",
151
+ "79": "(UTC+02:00) Amman",
152
+ "5": "(UTC+02:00) Athens, Bucharest, Istanbul",
153
+ "80": "(UTC+02:00) Beirut",
154
+ "49": "(UTC+02:00) Cairo",
155
+ "98": "(UTC+02:00) Damascus",
156
+ "50": "(UTC+02:00) Harare, Pretoria",
157
+ "59": "(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius",
158
+ "101": "(UTC+02:00) Istanbul",
159
+ "27": "(UTC+02:00) Jerusalem",
160
+ "7": "(UTC+02:00) Minsk (old)",
161
+ "104": "(UTC+02:00) E. Europe",
162
+ "100": "(UTC+02:00) Kaliningrad (RTZ 1)",
163
+ "26": "(UTC+03:00) Baghdad",
164
+ "74": "(UTC+03:00) Kuwait, Riyadh",
165
+ "109": "(UTC+03:00) Minsk",
166
+ "51": "(UTC+03:00) Moscow, St. Petersburg, Volgograd (RTZ 2)",
167
+ "56": "(UTC+03:00) Nairobi",
168
+ "25": "(UTC+03:30) Tehran",
169
+ "24": "(UTC+04:00) Abu Dhabi, Muscat",
170
+ "54": "(UTC+04:00) Baku",
171
+ "106": "(UTC+04:00) Izhevsk, Samara (RTZ 3)",
172
+ "89": "(UTC+04:00) Port Louis",
173
+ "82": "(UTC+04:00) Tbilisi",
174
+ "84": "(UTC+04:00) Yerevan",
175
+ "48": "(UTC+04:30) Kabul",
176
+ "58": "(UTC+05:00) Ekaterinburg (RTZ 4)",
177
+ "87": "(UTC+05:00) Islamabad, Karachi",
178
+ "47": "(UTC+05:00) Tashkent",
179
+ "23": "(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi",
180
+ "66": "(UTC+05:30) Sri Jayawardenepura",
181
+ "62": "(UTC+05:45) Kathmandu",
182
+ "71": "(UTC+06:00) Astana",
183
+ "102": "(UTC+06:00) Dhaka",
184
+ "46": "(UTC+06:00) Novosibirsk (RTZ 5)",
185
+ "61": "(UTC+06:30) Yangon (Rangoon)",
186
+ "22": "(UTC+07:00) Bangkok, Hanoi, Jakarta",
187
+ "64": "(UTC+07:00) Krasnoyarsk (RTZ 6)",
188
+ "45": "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi",
189
+ "63": "(UTC+08:00) Irkutsk (RTZ 7)",
190
+ "21": "(UTC+08:00) Kuala Lumpur, Singapore",
191
+ "73": "(UTC+08:00) Perth",
192
+ "75": "(UTC+08:00) Taipei",
193
+ "94": "(UTC+08:00) Ulaanbaatar",
194
+ "20": "(UTC+09:00) Osaka, Sapporo, Tokyo",
195
+ "72": "(UTC+09:00) Seoul",
196
+ "70": "(UTC+09:00) Yakutsk (RTZ 8)",
197
+ "19": "(UTC+09:30) Adelaide",
198
+ "44": "(UTC+09:30) Darwin",
199
+ "18": "(UTC+10:00) Brisbane",
200
+ "76": "(UTC+10:00) Canberra, Melbourne, Sydney",
201
+ "43": "(UTC+10:00) Guam, Port Moresby",
202
+ "42": "(UTC+10:00) Hobart",
203
+ "99": "(UTC+10:00) Magadan",
204
+ "68": "(UTC+10:00) Vladivostok, Magadan (RTZ 9)",
205
+ "107": "(UTC+11:00) Chokurdakh (RTZ 10)",
206
+ "41": "(UTC+11:00) Solomon Is., New Caledonia",
207
+ "108": "(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky (RTZ 11)",
208
+ "17": "(UTC+12:00) Auckland, Wellington",
209
+ "97": "(UTC+12:00) Coordinated Universal Time+12",
210
+ "40": "(UTC+12:00) Fiji",
211
+ "92": "(UTC+12:00) Petropavlovsk-Kamchatsky - Old",
212
+ "67": "(UTC+13:00) Nuku'alofa",
213
+ "16": "(UTC+13:00) Samoa"
214
+ };
215
+ exports.SPTimeZoneNameToSPTimeZoneId = {
216
+ "(UTC-12:00) International Date Line West": "39",
217
+ "(UTC-11:00) Coordinated Universal Time-11": "95",
218
+ "(UTC-10:00) Hawaii": "15",
219
+ "(UTC-09:00) Alaska": "14",
220
+ "(UTC-08:00) Baja California": "78",
221
+ "(UTC-08:00) Pacific Time (US and Canada)": "13",
222
+ "(UTC-07:00) Arizona": "38",
223
+ "(UTC-07:00) Chihuahua, La Paz, Mazatlan": "77",
224
+ "(UTC-07:00) Mountain Time (US and Canada)": "12",
225
+ "(UTC-06:00) Central America": "55",
226
+ "(UTC-06:00) Central Time (US and Canada)": "11",
227
+ "(UTC-06:00) Guadalajara, Mexico City, Monterrey": "37",
228
+ "(UTC-06:00) Saskatchewan": "36",
229
+ "(UTC-05:00) Bogota, Lima, Quito": "35",
230
+ "(UTC-05:00) Eastern Time (US and Canada)": "10",
231
+ "(UTC-05:00) Indiana (East)": "34",
232
+ "(UTC-04:30) Caracas": "88",
233
+ "(UTC-04:00) Asuncion": "91",
234
+ "(UTC-04:00) Atlantic Time (Canada)": "9",
235
+ "(UTC-04:00) Cuiaba": "81",
236
+ "(UTC-04:00) Georgetown, La Paz, Manaus, San Juan": "33",
237
+ "(UTC-03:30) Newfoundland": "28",
238
+ "(UTC-03:00) Brasilia": "8",
239
+ "(UTC-03:00) Buenos Aires": "85",
240
+ "(UTC-03:00) Cayenne, Fortaleza": "32",
241
+ "(UTC-03:00) Greenland": "60",
242
+ "(UTC-03:00) Montevideo": "90",
243
+ "(UTC-03:00) Salvador": "103",
244
+ "(UTC-03:00) Santiago": "65",
245
+ "(UTC-02:00) Coordinated Universal Time-02": "96",
246
+ "(UTC-02:00) Mid-Atlantic": "30",
247
+ "(UTC-01:00) Azores": "29",
248
+ "(UTC-01:00) Cabo Verde": "53",
249
+ "(UTC) Casablanca": "86",
250
+ "(UTC) Coordinated Universal Time": "93",
251
+ "(UTC) Dublin, Edinburgh, Lisbon, London": "2",
252
+ "(UTC) Monrovia, Reykjavik": "31",
253
+ "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna": "4",
254
+ "(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague": "6",
255
+ "(UTC+01:00) Brussels, Copenhagen, Madrid, Paris": "3",
256
+ "(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb": "57",
257
+ "(UTC+01:00) West Central Africa": "69",
258
+ "(UTC+01:00) Windhoek": "83",
259
+ "(UTC+02:00) Amman": "79",
260
+ "(UTC+02:00) Athens, Bucharest, Istanbul": "5",
261
+ "(UTC+02:00) Beirut": "80",
262
+ "(UTC+02:00) Cairo": "49",
263
+ "(UTC+02:00) Damascus": "98",
264
+ "(UTC+02:00) Harare, Pretoria": "50",
265
+ "(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius": "59",
266
+ "(UTC+02:00) Istanbul": "101",
267
+ "(UTC+02:00) Jerusalem": "27",
268
+ "(UTC+02:00) Minsk (old)": "7",
269
+ "(UTC+02:00) E. Europe": "104",
270
+ "(UTC+02:00) Kaliningrad (RTZ 1)": "100",
271
+ "(UTC+03:00) Baghdad": "26",
272
+ "(UTC+03:00) Kuwait, Riyadh": "74",
273
+ "(UTC+03:00) Minsk": "109",
274
+ "(UTC+03:00) Moscow, St. Petersburg, Volgograd (RTZ 2)": "51",
275
+ "(UTC+03:00) Nairobi": "56",
276
+ "(UTC+03:30) Tehran": "25",
277
+ "(UTC+04:00) Abu Dhabi, Muscat": "24",
278
+ "(UTC+04:00) Baku": "54",
279
+ "(UTC+04:00) Izhevsk, Samara (RTZ 3)": "106",
280
+ "(UTC+04:00) Port Louis": "89",
281
+ "(UTC+04:00) Tbilisi": "82",
282
+ "(UTC+04:00) Yerevan": "84",
283
+ "(UTC+04:30) Kabul": "48",
284
+ "(UTC+05:00) Ekaterinburg (RTZ 4)": "58",
285
+ "(UTC+05:00) Islamabad, Karachi": "87",
286
+ "(UTC+05:00) Tashkent": "47",
287
+ "(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi": "23",
288
+ "(UTC+05:30) Sri Jayawardenepura": "66",
289
+ "(UTC+05:45) Kathmandu": "62",
290
+ "(UTC+06:00) Astana": "71",
291
+ "(UTC+06:00) Dhaka": "102",
292
+ "(UTC+06:00) Novosibirsk (RTZ 5)": "46",
293
+ "(UTC+06:30) Yangon (Rangoon)": "61",
294
+ "(UTC+07:00) Bangkok, Hanoi, Jakarta": "22",
295
+ "(UTC+07:00) Krasnoyarsk (RTZ 6)": "64",
296
+ "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi": "45",
297
+ "(UTC+08:00) Irkutsk (RTZ 7)": "63",
298
+ "(UTC+08:00) Kuala Lumpur, Singapore": "21",
299
+ "(UTC+08:00) Perth": "73",
300
+ "(UTC+08:00) Taipei": "75",
301
+ "(UTC+08:00) Ulaanbaatar": "94",
302
+ "(UTC+09:00) Osaka, Sapporo, Tokyo": "20",
303
+ "(UTC+09:00) Seoul": "72",
304
+ "(UTC+09:00) Yakutsk (RTZ 8)": "70",
305
+ "(UTC+09:30) Adelaide": "19",
306
+ "(UTC+09:30) Darwin": "44",
307
+ "(UTC+10:00) Brisbane": "18",
308
+ "(UTC+10:00) Canberra, Melbourne, Sydney": "76",
309
+ "(UTC+10:00) Guam, Port Moresby": "43",
310
+ "(UTC+10:00) Hobart": "42",
311
+ "(UTC+10:00) Magadan": "99",
312
+ "(UTC+10:00) Vladivostok, Magadan (RTZ 9)": "68",
313
+ "(UTC+11:00) Chokurdakh (RTZ 10)": "107",
314
+ "(UTC+11:00) Solomon Is., New Caledonia": "41",
315
+ "(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky (RTZ 11)": "108",
316
+ "(UTC+12:00) Auckland, Wellington": "17",
317
+ "(UTC+12:00) Coordinated Universal Time+12": "97",
318
+ "(UTC+12:00) Fiji": "40",
319
+ "(UTC+12:00) Petropavlovsk-Kamchatsky - Old": "92",
320
+ "(UTC+13:00) Nuku'alofa": "67",
321
+ "(UTC+13:00) Samoa": "16"
322
+ };
323
+ //# sourceMappingURL=timzone-map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timzone-map.js","sourceRoot":"","sources":["../../../../src/utils/sharepoint.rest/timzone-map.ts"],"names":[],"mappings":";;;AAAW,QAAA,8BAA8B,GAAG;IACxC,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,kBAAkB;IACvB,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,oBAAoB;IACzB,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,iBAAiB;IACtB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,sBAAsB;IA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,IAAI;IACxC,2CAA2C,EAAE,IAAI;IACjD,kBAAkB,EAAE,IAAI;IACxB,4CAA4C,EAAE,IAAI;IAClD,wBAAwB,EAAE,IAAI;IAC9B,mBAAmB,EAAE,IAAI;CAC5B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RestoreWebPermissionInheritance = exports.WebHasUniquePermissions = exports.ensureLegacyProps = exports.getFormDigest = exports.GetWebPropertyByName = exports.GetAllWebProperties = exports.GetRegionalSettings = exports.DeleteUserCustomAction = exports.UpdateUserCustomAction = exports.AddUserCustomAction = exports.GetUserCustomActionByName = exports.GetUserCustomActionById = exports.GetUserCustomActions = exports.GetContextWebInformationSync = exports.SPServerLocalToday = exports.SPServerLocalTime = exports.SPServerLocalTimeSync = exports.UTCToSPServerLocalTimeSync = exports.UTCToSPServerLocalTime = exports.SPServerLocalTimeToUTCSync = exports.SPServerLocalTimeToUTC = exports.SPServerLocalTimeToUTCDateSync = exports.SPServerLocalTimeToUTCDate = exports.GetServerTimeZone = exports.GetAppTilesSync = exports.GetAppTiles = exports.GetSubWebs = exports.GetRoleAssignments = exports.GetWebRoleDefinitions = exports.GetWebInfoSync = exports.GetWebInfo = exports.__getSubSites = exports.GetAllSubWebs = exports.GetListsSync = exports.GetLists = exports.GetContentTypesSync = exports.GetContentTypes = exports.UserHasManageSitePermissions = exports.UserHasAllPermissions = exports.IsRootWeb = exports.GetWebIdSync = exports.GetWebId = exports.GetWebTitle = exports.GetRootWebInfo = exports.GetSiteIdSync = exports.GetSiteId = exports.GetPortalUrl = exports.GetTenantId = exports.GetSiteInfoSync = exports.GetSiteInfo = void 0;
4
- exports.GetWebAssociatedGroups = exports.SetWelcomePage = exports.GetWelcomePage = exports.DectivateFeature = exports.ActivateFeature = exports.GetActiveFeatures = exports.GetAvailableTagsForSiteSync = exports.GetAvailableTagsForSite = exports.SetUserAsSiteAdmin = exports.RemoveWebPermission = exports.AssignWebPermission = exports.BreakWebPermissionInheritance = void 0;
3
+ exports.WebHasUniquePermissions = exports.ensureLegacyProps = exports.getFormDigest = exports.GetWebPropertyByName = exports.GetAllWebProperties = exports.GetRegionalSettings = exports.DeleteUserCustomAction = exports.UpdateUserCustomAction = exports.AddUserCustomAction = exports.GetUserCustomActionByName = exports.GetUserCustomActionById = exports.GetUserCustomActions = exports.GetContextWebInformationSync = exports.SPServerLocalToday = exports.SPServerLocalTime = exports.SPServerLocalTimeSync = exports.UTCToSPServerLocalTimeSync = exports.UTCToSPServerLocalTime = exports.SPServerLocalTimeToUTCSync = exports.SPServerLocalTimeToUTC = exports.SPServerLocalTimeToUTCDateSync = exports.SPServerLocalTimeToUTCDate = exports.GetServerTimeZoneSync = exports.GetServerTimeZone = exports.GetAppTilesSync = exports.GetAppTiles = exports.GetSubWebs = exports.GetRoleAssignments = exports.GetWebRoleDefinitions = exports.GetWebInfoSync = exports.GetWebInfo = exports.__getSubSites = exports.GetAllSubWebs = exports.GetListsSync = exports.GetLists = exports.GetContentTypesSync = exports.GetContentTypes = exports.UserHasManageSitePermissions = exports.UserHasAllPermissions = exports.IsRootWeb = exports.GetWebIdSync = exports.GetWebId = exports.GetWebTitle = exports.GetRootWebInfo = exports.GetSiteIdSync = exports.GetSiteId = exports.GetPortalUrl = exports.GetTenantId = exports.GetSiteInfoSync = exports.GetSiteInfo = void 0;
4
+ exports.GetWebAssociatedGroups = exports.SetWelcomePage = exports.GetWelcomePage = exports.DectivateFeature = exports.ActivateFeature = exports.GetActiveFeatures = exports.GetAvailableTagsForSiteSync = exports.GetAvailableTagsForSite = exports.SetUserAsSiteAdmin = exports.RemoveWebPermission = exports.AssignWebPermission = exports.BreakWebPermissionInheritance = exports.RestoreWebPermissionInheritance = void 0;
5
5
  const exports_index_1 = require("../../exports-index");
6
6
  const collections_base_1 = require("../../helpers/collections.base");
7
7
  const json_1 = require("../../helpers/json");
@@ -19,6 +19,7 @@ const date_1 = require("../date");
19
19
  const rest_1 = require("../rest");
20
20
  const common_1 = require("./common");
21
21
  const list_1 = require("./list");
22
+ const timzone_map_1 = require("./timzone-map");
22
23
  const logger = consolelogger_1.ConsoleLogger.get("SharePoint.Rest.Web");
23
24
  async function GetSiteInfo(siteUrl) {
24
25
  siteUrl = (0, common_1.GetSiteUrl)(siteUrl);
@@ -623,7 +624,7 @@ function GetWebType(WebTemplate) {
623
624
  async function GetServerTimeZone(siteUrl) {
624
625
  siteUrl = (0, common_1.GetSiteUrl)(siteUrl);
625
626
  let getTimeZoneUrl = `${(0, common_1.GetRestBaseUrl)(siteUrl)}/web/regionalSettings/timeZone`;
626
- let result = await (0, rest_1.GetJson)(getTimeZoneUrl, null, { ...rest_1.longLocalCache });
627
+ let result = await (0, rest_1.GetJson)(getTimeZoneUrl, null, { ...rest_1.extraLongLocalCache });
627
628
  if (result && result.d && !(0, typecheckers_1.isNullOrUndefined)(result.d)) {
628
629
  return result.d;
629
630
  }
@@ -631,6 +632,17 @@ async function GetServerTimeZone(siteUrl) {
631
632
  return null;
632
633
  }
633
634
  exports.GetServerTimeZone = GetServerTimeZone;
635
+ function GetServerTimeZoneSync(siteUrl) {
636
+ siteUrl = (0, common_1.GetSiteUrl)(siteUrl);
637
+ let getTimeZoneUrl = `${(0, common_1.GetRestBaseUrl)(siteUrl)}/web/regionalSettings/timeZone`;
638
+ let response = (0, rest_1.GetJsonSync)(getTimeZoneUrl, null, { ...rest_1.extraLongLocalCache });
639
+ if (response && response.result.d && !(0, typecheckers_1.isNullOrUndefined)(response.result.d)) {
640
+ return response.result.d;
641
+ }
642
+ else
643
+ return null;
644
+ }
645
+ exports.GetServerTimeZoneSync = GetServerTimeZoneSync;
634
646
  /**
635
647
  * to be used when parsing string date to date object in JavaScript like so:
636
648
  * var clientTimezoneOffset = new Date().getTimezoneOffset() * 60 * 1000;
@@ -741,6 +753,21 @@ async function UTCToSPServerLocalTime(siteUrl, date) {
741
753
  if ((0, typecheckers_1.isDate)(date)) {
742
754
  date = (0, date_1.toIsoDateFormat)(date);
743
755
  }
756
+ let supportedLocale = _getSupportedLocaleForUTCToSPServerTime();
757
+ if (!(0, typecheckers_1.isNullOrEmptyString)(supportedLocale)) {
758
+ try {
759
+ let regionalSettings = await GetServerTimeZone(siteUrl);
760
+ let timeZone = timzone_map_1.SPTimeZoneIdToIANATimeZoneName[`${regionalSettings.Id}`];
761
+ if (!(0, typecheckers_1.isNullOrEmptyString)(timeZone)) {
762
+ let result = _UTCDateStringToSPServerLocalDateString(date, timeZone, supportedLocale);
763
+ if (!(0, typecheckers_1.isNullOrEmptyString)(result)) {
764
+ return result;
765
+ }
766
+ }
767
+ }
768
+ catch {
769
+ }
770
+ }
744
771
  let restUrl = `${(0, common_1.GetRestBaseUrl)(siteUrl)}/web/regionalSettings/timeZone/utcToLocalTime(@date)?@date='${encodeURIComponent(date)}'`;
745
772
  let result = await (0, rest_1.GetJson)(restUrl, null, { ...rest_1.longLocalCache, jsonMetadata: rest_types_1.jsonTypes.nometadata });
746
773
  return result && result.value || null;
@@ -755,11 +782,56 @@ function UTCToSPServerLocalTimeSync(siteUrl, date) {
755
782
  if ((0, typecheckers_1.isDate)(date)) {
756
783
  date = (0, date_1.toIsoDateFormat)(date);
757
784
  }
785
+ let supportedLocale = _getSupportedLocaleForUTCToSPServerTime();
786
+ if (!(0, typecheckers_1.isNullOrEmptyString)(supportedLocale)) {
787
+ try {
788
+ let regionalSettings = GetServerTimeZoneSync(siteUrl);
789
+ let timeZone = timzone_map_1.SPTimeZoneIdToIANATimeZoneName[`${regionalSettings.Id}`];
790
+ if (!(0, typecheckers_1.isNullOrEmptyString)(timeZone)) {
791
+ let result = _UTCDateStringToSPServerLocalDateString(date, timeZone, supportedLocale);
792
+ if (!(0, typecheckers_1.isNullOrEmptyString)(result)) {
793
+ return result;
794
+ }
795
+ }
796
+ }
797
+ catch {
798
+ }
799
+ }
758
800
  let restUrl = `${(0, common_1.GetRestBaseUrl)(siteUrl)}/web/regionalSettings/timeZone/utcToLocalTime(@date)?@date='${encodeURIComponent(date)}'`;
759
801
  let result = (0, rest_1.GetJsonSync)(restUrl, null, { ...rest_1.longLocalCache, jsonMetadata: rest_types_1.jsonTypes.nometadata });
760
802
  return result.success && result.result.value || null;
761
803
  }
762
804
  exports.UTCToSPServerLocalTimeSync = UTCToSPServerLocalTimeSync;
805
+ function _getSupportedLocaleForUTCToSPServerTime() {
806
+ try {
807
+ let supportedLocales = Intl.DateTimeFormat.supportedLocalesOf(["en-CA", "sv-SE"]);
808
+ return supportedLocales[0];
809
+ }
810
+ catch {
811
+ }
812
+ return null;
813
+ }
814
+ function _UTCDateStringToSPServerLocalDateString(utcISODate, targetIanaTimeZone, supportedLocale) {
815
+ let formatter = new Intl.DateTimeFormat(supportedLocale, {
816
+ timeZone: targetIanaTimeZone,
817
+ year: "numeric",
818
+ month: "2-digit",
819
+ day: "2-digit",
820
+ hour: "2-digit",
821
+ minute: "2-digit",
822
+ second: "2-digit",
823
+ fractionalSecondDigits: 3,
824
+ hour12: false
825
+ });
826
+ let value1 = formatter.format(new Date(utcISODate));
827
+ if (supportedLocale.toLowerCase() === "en-ca") {
828
+ value1 = value1.replace(",", "").replace(" ", "T").split(".000")[0];
829
+ }
830
+ else {
831
+ value1 = value1.replace(",", ".").replace(" ", "T").split(".000")[0];
832
+ }
833
+ return (0, exports_index_1.isISODate)(value1) ? value1 : null;
834
+ }
763
835
  function SPServerLocalTimeSync(siteUrl) {
764
836
  siteUrl = (0, common_1.GetSiteUrl)(siteUrl);
765
837
  var clientNowServerDeltas = (0, objects_1.getGlobal)("ClientNowServerDeltas");