winrt-Windows.ApplicationModel.Store.Preview 2.1.0__tar.gz → 2.3.0__tar.gz

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 (20) hide show
  1. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/PKG-INFO +10 -10
  2. winrt_windows_applicationmodel_store_preview-2.3.0/all-requirements.txt +9 -0
  3. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/py.Windows.ApplicationModel.Store.Preview.cpp +449 -63
  4. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_applicationmodel_store_preview-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/winrt/_winrt_windows_applicationmodel_store_preview.pyi +1 -1
  8. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/winrt/windows/applicationmodel/store/preview/__init__.py +1 -1
  9. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/winrt_Windows.ApplicationModel.Store.Preview.egg-info/PKG-INFO +10 -10
  10. winrt_windows_applicationmodel_store_preview-2.3.0/winrt_Windows.ApplicationModel.Store.Preview.egg-info/requires.txt +10 -0
  11. winrt_windows_applicationmodel_store_preview-2.1.0/all-requirements.txt +0 -9
  12. winrt_windows_applicationmodel_store_preview-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_applicationmodel_store_preview-2.1.0/winrt_Windows.ApplicationModel.Store.Preview.egg-info/requires.txt +0 -10
  14. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/README.md +0 -0
  15. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/setup.py +0 -0
  17. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/winrt/windows/applicationmodel/store/preview/py.typed +0 -0
  18. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/winrt_Windows.ApplicationModel.Store.Preview.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/winrt_Windows.ApplicationModel.Store.Preview.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_applicationmodel_store_preview-2.1.0 → winrt_windows_applicationmodel_store_preview-2.3.0}/winrt_Windows.ApplicationModel.Store.Preview.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Store.Preview
3
- Version: 2.1.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,17 +10,17 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Security.Authentication.Web.Core[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Security.Credentials[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
22
- Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
23
- Requires-Dist: winrt-Windows.UI.Xaml[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Security.Authentication.Web.Core[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Security.Credentials[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.UI.Xaml[all]==2.3.0; extra == "all"
24
24
 
25
25
  <!-- warning: Please don't edit this file. It was automatically generated. -->
26
26
 
@@ -0,0 +1,9 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ winrt-Windows.Foundation[all]==2.3.0
4
+ winrt-Windows.Foundation.Collections[all]==2.3.0
5
+ winrt-Windows.Security.Authentication.Web.Core[all]==2.3.0
6
+ winrt-Windows.Security.Credentials[all]==2.3.0
7
+ winrt-Windows.Storage.Streams[all]==2.3.0
8
+ winrt-Windows.System[all]==2.3.0
9
+ winrt-Windows.UI.Xaml[all]==2.3.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  #include "py.Windows.ApplicationModel.Store.Preview.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.DeliveryOptimizationSettings", L"GetCurrentSettings", 0))
32
+ static std::optional<bool> is_overload_present{};
33
+
34
+ if (!is_overload_present.has_value())
35
+ {
36
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.DeliveryOptimizationSettings", L"GetCurrentSettings", 0);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(0);
35
42
  return nullptr;
@@ -54,7 +61,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
54
61
  {
55
62
  try
56
63
  {
57
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.DeliveryOptimizationSettings", L"DownloadMode"))
64
+ static std::optional<bool> is_property_present{};
65
+
66
+ if (!is_property_present.has_value())
67
+ {
68
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.DeliveryOptimizationSettings", L"DownloadMode");
69
+ }
70
+
71
+ if (!is_property_present.value())
58
72
  {
59
73
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
60
74
  return nullptr;
@@ -73,7 +87,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
73
87
  {
74
88
  try
75
89
  {
76
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.DeliveryOptimizationSettings", L"DownloadModeSource"))
90
+ static std::optional<bool> is_property_present{};
91
+
92
+ if (!is_property_present.has_value())
93
+ {
94
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.DeliveryOptimizationSettings", L"DownloadModeSource");
95
+ }
96
+
97
+ if (!is_property_present.value())
77
98
  {
78
99
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
79
100
  return nullptr;
@@ -182,7 +203,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
182
203
  {
183
204
  try
184
205
  {
185
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"FilterUnsupportedSystemFeaturesAsync", 1))
206
+ static std::optional<bool> is_overload_present{};
207
+
208
+ if (!is_overload_present.has_value())
209
+ {
210
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"FilterUnsupportedSystemFeaturesAsync", 1);
211
+ }
212
+
213
+ if (!is_overload_present.value())
186
214
  {
187
215
  py::set_arg_count_version_error(1);
188
216
  return nullptr;
@@ -213,7 +241,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
213
241
  {
214
242
  try
215
243
  {
216
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetEnterpriseStoreWebAccountId", 0))
244
+ static std::optional<bool> is_overload_present{};
245
+
246
+ if (!is_overload_present.has_value())
247
+ {
248
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetEnterpriseStoreWebAccountId", 0);
249
+ }
250
+
251
+ if (!is_overload_present.value())
217
252
  {
218
253
  py::set_arg_count_version_error(0);
219
254
  return nullptr;
@@ -242,7 +277,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
242
277
  {
243
278
  try
244
279
  {
245
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetEnterpriseStoreWebAccountIdForUser", 1))
280
+ static std::optional<bool> is_overload_present{};
281
+
282
+ if (!is_overload_present.has_value())
283
+ {
284
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetEnterpriseStoreWebAccountIdForUser", 1);
285
+ }
286
+
287
+ if (!is_overload_present.value())
246
288
  {
247
289
  py::set_arg_count_version_error(1);
248
290
  return nullptr;
@@ -273,7 +315,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
273
315
  {
274
316
  try
275
317
  {
276
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetPurchasePromptingPolicyForUser", 1))
318
+ static std::optional<bool> is_overload_present{};
319
+
320
+ if (!is_overload_present.has_value())
321
+ {
322
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetPurchasePromptingPolicyForUser", 1);
323
+ }
324
+
325
+ if (!is_overload_present.value())
277
326
  {
278
327
  py::set_arg_count_version_error(1);
279
328
  return nullptr;
@@ -304,7 +353,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
304
353
  {
305
354
  try
306
355
  {
307
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetStoreLogDataAsync", 1))
356
+ static std::optional<bool> is_overload_present{};
357
+
358
+ if (!is_overload_present.has_value())
359
+ {
360
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetStoreLogDataAsync", 1);
361
+ }
362
+
363
+ if (!is_overload_present.value())
308
364
  {
309
365
  py::set_arg_count_version_error(1);
310
366
  return nullptr;
@@ -335,7 +391,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
335
391
  {
336
392
  try
337
393
  {
338
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetStoreWebAccountId", 0))
394
+ static std::optional<bool> is_overload_present{};
395
+
396
+ if (!is_overload_present.has_value())
397
+ {
398
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetStoreWebAccountId", 0);
399
+ }
400
+
401
+ if (!is_overload_present.value())
339
402
  {
340
403
  py::set_arg_count_version_error(0);
341
404
  return nullptr;
@@ -364,7 +427,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
364
427
  {
365
428
  try
366
429
  {
367
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetStoreWebAccountIdForUser", 1))
430
+ static std::optional<bool> is_overload_present{};
431
+
432
+ if (!is_overload_present.has_value())
433
+ {
434
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"GetStoreWebAccountIdForUser", 1);
435
+ }
436
+
437
+ if (!is_overload_present.value())
368
438
  {
369
439
  py::set_arg_count_version_error(1);
370
440
  return nullptr;
@@ -395,7 +465,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
395
465
  {
396
466
  try
397
467
  {
398
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"HasStoreWebAccount", 0))
468
+ static std::optional<bool> is_overload_present{};
469
+
470
+ if (!is_overload_present.has_value())
471
+ {
472
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"HasStoreWebAccount", 0);
473
+ }
474
+
475
+ if (!is_overload_present.value())
399
476
  {
400
477
  py::set_arg_count_version_error(0);
401
478
  return nullptr;
@@ -424,7 +501,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
424
501
  {
425
502
  try
426
503
  {
427
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"HasStoreWebAccountForUser", 1))
504
+ static std::optional<bool> is_overload_present{};
505
+
506
+ if (!is_overload_present.has_value())
507
+ {
508
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"HasStoreWebAccountForUser", 1);
509
+ }
510
+
511
+ if (!is_overload_present.value())
428
512
  {
429
513
  py::set_arg_count_version_error(1);
430
514
  return nullptr;
@@ -455,7 +539,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
455
539
  {
456
540
  try
457
541
  {
458
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"IsPinToDesktopSupported", 0))
542
+ static std::optional<bool> is_overload_present{};
543
+
544
+ if (!is_overload_present.has_value())
545
+ {
546
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"IsPinToDesktopSupported", 0);
547
+ }
548
+
549
+ if (!is_overload_present.value())
459
550
  {
460
551
  py::set_arg_count_version_error(0);
461
552
  return nullptr;
@@ -484,7 +575,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
484
575
  {
485
576
  try
486
577
  {
487
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"IsPinToStartSupported", 0))
578
+ static std::optional<bool> is_overload_present{};
579
+
580
+ if (!is_overload_present.has_value())
581
+ {
582
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"IsPinToStartSupported", 0);
583
+ }
584
+
585
+ if (!is_overload_present.value())
488
586
  {
489
587
  py::set_arg_count_version_error(0);
490
588
  return nullptr;
@@ -513,7 +611,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
513
611
  {
514
612
  try
515
613
  {
516
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"IsPinToTaskbarSupported", 0))
614
+ static std::optional<bool> is_overload_present{};
615
+
616
+ if (!is_overload_present.has_value())
617
+ {
618
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"IsPinToTaskbarSupported", 0);
619
+ }
620
+
621
+ if (!is_overload_present.value())
517
622
  {
518
623
  py::set_arg_count_version_error(0);
519
624
  return nullptr;
@@ -542,7 +647,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
542
647
  {
543
648
  try
544
649
  {
545
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"IsStoreWebAccountId", 1))
650
+ static std::optional<bool> is_overload_present{};
651
+
652
+ if (!is_overload_present.has_value())
653
+ {
654
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"IsStoreWebAccountId", 1);
655
+ }
656
+
657
+ if (!is_overload_present.value())
546
658
  {
547
659
  py::set_arg_count_version_error(1);
548
660
  return nullptr;
@@ -573,7 +685,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
573
685
  {
574
686
  try
575
687
  {
576
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"IsStoreWebAccountIdForUser", 2))
688
+ static std::optional<bool> is_overload_present{};
689
+
690
+ if (!is_overload_present.has_value())
691
+ {
692
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"IsStoreWebAccountIdForUser", 2);
693
+ }
694
+
695
+ if (!is_overload_present.value())
577
696
  {
578
697
  py::set_arg_count_version_error(2);
579
698
  return nullptr;
@@ -605,7 +724,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
605
724
  {
606
725
  try
607
726
  {
608
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"PinToDesktop", 1))
727
+ static std::optional<bool> is_overload_present{};
728
+
729
+ if (!is_overload_present.has_value())
730
+ {
731
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"PinToDesktop", 1);
732
+ }
733
+
734
+ if (!is_overload_present.value())
609
735
  {
610
736
  py::set_arg_count_version_error(1);
611
737
  return nullptr;
@@ -637,7 +763,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
637
763
  {
638
764
  try
639
765
  {
640
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"PinToDesktopForUser", 2))
766
+ static std::optional<bool> is_overload_present{};
767
+
768
+ if (!is_overload_present.has_value())
769
+ {
770
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"PinToDesktopForUser", 2);
771
+ }
772
+
773
+ if (!is_overload_present.value())
641
774
  {
642
775
  py::set_arg_count_version_error(2);
643
776
  return nullptr;
@@ -670,7 +803,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
670
803
  {
671
804
  try
672
805
  {
673
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetEnterpriseStoreWebAccountId", 1))
806
+ static std::optional<bool> is_overload_present{};
807
+
808
+ if (!is_overload_present.has_value())
809
+ {
810
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetEnterpriseStoreWebAccountId", 1);
811
+ }
812
+
813
+ if (!is_overload_present.value())
674
814
  {
675
815
  py::set_arg_count_version_error(1);
676
816
  return nullptr;
@@ -702,7 +842,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
702
842
  {
703
843
  try
704
844
  {
705
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetEnterpriseStoreWebAccountIdForUser", 2))
845
+ static std::optional<bool> is_overload_present{};
846
+
847
+ if (!is_overload_present.has_value())
848
+ {
849
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetEnterpriseStoreWebAccountIdForUser", 2);
850
+ }
851
+
852
+ if (!is_overload_present.value())
706
853
  {
707
854
  py::set_arg_count_version_error(2);
708
855
  return nullptr;
@@ -735,7 +882,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
735
882
  {
736
883
  try
737
884
  {
738
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetMobileOperatorConfiguration", 3))
885
+ static std::optional<bool> is_overload_present{};
886
+
887
+ if (!is_overload_present.has_value())
888
+ {
889
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetMobileOperatorConfiguration", 3);
890
+ }
891
+
892
+ if (!is_overload_present.value())
739
893
  {
740
894
  py::set_arg_count_version_error(3);
741
895
  return nullptr;
@@ -769,7 +923,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
769
923
  {
770
924
  try
771
925
  {
772
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetPurchasePromptingPolicyForUser", 2))
926
+ static std::optional<bool> is_overload_present{};
927
+
928
+ if (!is_overload_present.has_value())
929
+ {
930
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetPurchasePromptingPolicyForUser", 2);
931
+ }
932
+
933
+ if (!is_overload_present.value())
773
934
  {
774
935
  py::set_arg_count_version_error(2);
775
936
  return nullptr;
@@ -802,7 +963,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
802
963
  {
803
964
  try
804
965
  {
805
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetStoreWebAccountId", 1))
966
+ static std::optional<bool> is_overload_present{};
967
+
968
+ if (!is_overload_present.has_value())
969
+ {
970
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetStoreWebAccountId", 1);
971
+ }
972
+
973
+ if (!is_overload_present.value())
806
974
  {
807
975
  py::set_arg_count_version_error(1);
808
976
  return nullptr;
@@ -834,7 +1002,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
834
1002
  {
835
1003
  try
836
1004
  {
837
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetStoreWebAccountIdForUser", 2))
1005
+ static std::optional<bool> is_overload_present{};
1006
+
1007
+ if (!is_overload_present.has_value())
1008
+ {
1009
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetStoreWebAccountIdForUser", 2);
1010
+ }
1011
+
1012
+ if (!is_overload_present.value())
838
1013
  {
839
1014
  py::set_arg_count_version_error(2);
840
1015
  return nullptr;
@@ -867,7 +1042,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
867
1042
  {
868
1043
  try
869
1044
  {
870
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetSystemConfiguration", 4))
1045
+ static std::optional<bool> is_overload_present{};
1046
+
1047
+ if (!is_overload_present.has_value())
1048
+ {
1049
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"SetSystemConfiguration", 4);
1050
+ }
1051
+
1052
+ if (!is_overload_present.value())
871
1053
  {
872
1054
  py::set_arg_count_version_error(4);
873
1055
  return nullptr;
@@ -902,7 +1084,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
902
1084
  {
903
1085
  try
904
1086
  {
905
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"ShouldRestrictToEnterpriseStoreOnly", 0))
1087
+ static std::optional<bool> is_overload_present{};
1088
+
1089
+ if (!is_overload_present.has_value())
1090
+ {
1091
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"ShouldRestrictToEnterpriseStoreOnly", 0);
1092
+ }
1093
+
1094
+ if (!is_overload_present.value())
906
1095
  {
907
1096
  py::set_arg_count_version_error(0);
908
1097
  return nullptr;
@@ -931,7 +1120,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
931
1120
  {
932
1121
  try
933
1122
  {
934
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"ShouldRestrictToEnterpriseStoreOnlyForUser", 1))
1123
+ static std::optional<bool> is_overload_present{};
1124
+
1125
+ if (!is_overload_present.has_value())
1126
+ {
1127
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"ShouldRestrictToEnterpriseStoreOnlyForUser", 1);
1128
+ }
1129
+
1130
+ if (!is_overload_present.value())
935
1131
  {
936
1132
  py::set_arg_count_version_error(1);
937
1133
  return nullptr;
@@ -958,7 +1154,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
958
1154
  {
959
1155
  try
960
1156
  {
961
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"HardwareManufacturerInfo"))
1157
+ static std::optional<bool> is_property_present{};
1158
+
1159
+ if (!is_property_present.has_value())
1160
+ {
1161
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"HardwareManufacturerInfo");
1162
+ }
1163
+
1164
+ if (!is_property_present.value())
962
1165
  {
963
1166
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
964
1167
  return nullptr;
@@ -977,7 +1180,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
977
1180
  {
978
1181
  try
979
1182
  {
980
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"PurchasePromptingPolicy"))
1183
+ static std::optional<bool> is_property_present{};
1184
+
1185
+ if (!is_property_present.has_value())
1186
+ {
1187
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"PurchasePromptingPolicy");
1188
+ }
1189
+
1190
+ if (!is_property_present.value())
981
1191
  {
982
1192
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
983
1193
  return nullptr;
@@ -1002,7 +1212,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1002
1212
 
1003
1213
  try
1004
1214
  {
1005
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"PurchasePromptingPolicy"))
1215
+ static std::optional<bool> is_property_present{};
1216
+
1217
+ if (!is_property_present.has_value())
1218
+ {
1219
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreConfiguration", L"PurchasePromptingPolicy");
1220
+ }
1221
+
1222
+ if (!is_property_present.value())
1006
1223
  {
1007
1224
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1008
1225
  return -1;
@@ -1115,7 +1332,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1115
1332
  {
1116
1333
  try
1117
1334
  {
1118
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreHardwareManufacturerInfo", L"HardwareManufacturerId"))
1335
+ static std::optional<bool> is_property_present{};
1336
+
1337
+ if (!is_property_present.has_value())
1338
+ {
1339
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreHardwareManufacturerInfo", L"HardwareManufacturerId");
1340
+ }
1341
+
1342
+ if (!is_property_present.value())
1119
1343
  {
1120
1344
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1121
1345
  return nullptr;
@@ -1134,7 +1358,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1134
1358
  {
1135
1359
  try
1136
1360
  {
1137
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreHardwareManufacturerInfo", L"ManufacturerName"))
1361
+ static std::optional<bool> is_property_present{};
1362
+
1363
+ if (!is_property_present.has_value())
1364
+ {
1365
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreHardwareManufacturerInfo", L"ManufacturerName");
1366
+ }
1367
+
1368
+ if (!is_property_present.value())
1138
1369
  {
1139
1370
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1140
1371
  return nullptr;
@@ -1153,7 +1384,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1153
1384
  {
1154
1385
  try
1155
1386
  {
1156
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreHardwareManufacturerInfo", L"ModelName"))
1387
+ static std::optional<bool> is_property_present{};
1388
+
1389
+ if (!is_property_present.has_value())
1390
+ {
1391
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreHardwareManufacturerInfo", L"ModelName");
1392
+ }
1393
+
1394
+ if (!is_property_present.value())
1157
1395
  {
1158
1396
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1159
1397
  return nullptr;
@@ -1172,7 +1410,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1172
1410
  {
1173
1411
  try
1174
1412
  {
1175
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreHardwareManufacturerInfo", L"StoreContentModifierId"))
1413
+ static std::optional<bool> is_property_present{};
1414
+
1415
+ if (!is_property_present.has_value())
1416
+ {
1417
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StoreHardwareManufacturerInfo", L"StoreContentModifierId");
1418
+ }
1419
+
1420
+ if (!is_property_present.value())
1176
1421
  {
1177
1422
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1178
1423
  return nullptr;
@@ -1257,7 +1502,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1257
1502
  {
1258
1503
  try
1259
1504
  {
1260
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StorePreview", L"LoadAddOnProductInfosAsync", 0))
1505
+ static std::optional<bool> is_overload_present{};
1506
+
1507
+ if (!is_overload_present.has_value())
1508
+ {
1509
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StorePreview", L"LoadAddOnProductInfosAsync", 0);
1510
+ }
1511
+
1512
+ if (!is_overload_present.value())
1261
1513
  {
1262
1514
  py::set_arg_count_version_error(0);
1263
1515
  return nullptr;
@@ -1286,7 +1538,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1286
1538
  {
1287
1539
  try
1288
1540
  {
1289
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StorePreview", L"RequestProductPurchaseByProductIdAndSkuIdAsync", 2))
1541
+ static std::optional<bool> is_overload_present{};
1542
+
1543
+ if (!is_overload_present.has_value())
1544
+ {
1545
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.StorePreview", L"RequestProductPurchaseByProductIdAndSkuIdAsync", 2);
1546
+ }
1547
+
1548
+ if (!is_overload_present.value())
1290
1549
  {
1291
1550
  py::set_arg_count_version_error(2);
1292
1551
  return nullptr;
@@ -1380,7 +1639,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1380
1639
  {
1381
1640
  try
1382
1641
  {
1383
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo", L"Description"))
1642
+ static std::optional<bool> is_property_present{};
1643
+
1644
+ if (!is_property_present.has_value())
1645
+ {
1646
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo", L"Description");
1647
+ }
1648
+
1649
+ if (!is_property_present.value())
1384
1650
  {
1385
1651
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1386
1652
  return nullptr;
@@ -1399,7 +1665,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1399
1665
  {
1400
1666
  try
1401
1667
  {
1402
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo", L"ProductId"))
1668
+ static std::optional<bool> is_property_present{};
1669
+
1670
+ if (!is_property_present.has_value())
1671
+ {
1672
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo", L"ProductId");
1673
+ }
1674
+
1675
+ if (!is_property_present.value())
1403
1676
  {
1404
1677
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1405
1678
  return nullptr;
@@ -1418,7 +1691,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1418
1691
  {
1419
1692
  try
1420
1693
  {
1421
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo", L"ProductType"))
1694
+ static std::optional<bool> is_property_present{};
1695
+
1696
+ if (!is_property_present.has_value())
1697
+ {
1698
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo", L"ProductType");
1699
+ }
1700
+
1701
+ if (!is_property_present.value())
1422
1702
  {
1423
1703
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1424
1704
  return nullptr;
@@ -1437,7 +1717,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1437
1717
  {
1438
1718
  try
1439
1719
  {
1440
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo", L"SkuInfoList"))
1720
+ static std::optional<bool> is_property_present{};
1721
+
1722
+ if (!is_property_present.has_value())
1723
+ {
1724
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo", L"SkuInfoList");
1725
+ }
1726
+
1727
+ if (!is_property_present.value())
1441
1728
  {
1442
1729
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1443
1730
  return nullptr;
@@ -1456,7 +1743,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1456
1743
  {
1457
1744
  try
1458
1745
  {
1459
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo", L"Title"))
1746
+ static std::optional<bool> is_property_present{};
1747
+
1748
+ if (!is_property_present.has_value())
1749
+ {
1750
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo", L"Title");
1751
+ }
1752
+
1753
+ if (!is_property_present.value())
1460
1754
  {
1461
1755
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1462
1756
  return nullptr;
@@ -1546,7 +1840,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1546
1840
  {
1547
1841
  try
1548
1842
  {
1549
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewPurchaseResults", L"ProductPurchaseStatus"))
1843
+ static std::optional<bool> is_property_present{};
1844
+
1845
+ if (!is_property_present.has_value())
1846
+ {
1847
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewPurchaseResults", L"ProductPurchaseStatus");
1848
+ }
1849
+
1850
+ if (!is_property_present.value())
1550
1851
  {
1551
1852
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1552
1853
  return nullptr;
@@ -1632,7 +1933,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1632
1933
  {
1633
1934
  try
1634
1935
  {
1635
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"CurrencyCode"))
1936
+ static std::optional<bool> is_property_present{};
1937
+
1938
+ if (!is_property_present.has_value())
1939
+ {
1940
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"CurrencyCode");
1941
+ }
1942
+
1943
+ if (!is_property_present.value())
1636
1944
  {
1637
1945
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1638
1946
  return nullptr;
@@ -1651,7 +1959,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1651
1959
  {
1652
1960
  try
1653
1961
  {
1654
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"CustomDeveloperData"))
1962
+ static std::optional<bool> is_property_present{};
1963
+
1964
+ if (!is_property_present.has_value())
1965
+ {
1966
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"CustomDeveloperData");
1967
+ }
1968
+
1969
+ if (!is_property_present.value())
1655
1970
  {
1656
1971
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1657
1972
  return nullptr;
@@ -1670,7 +1985,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1670
1985
  {
1671
1986
  try
1672
1987
  {
1673
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"Description"))
1988
+ static std::optional<bool> is_property_present{};
1989
+
1990
+ if (!is_property_present.has_value())
1991
+ {
1992
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"Description");
1993
+ }
1994
+
1995
+ if (!is_property_present.value())
1674
1996
  {
1675
1997
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1676
1998
  return nullptr;
@@ -1689,7 +2011,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1689
2011
  {
1690
2012
  try
1691
2013
  {
1692
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"ExtendedData"))
2014
+ static std::optional<bool> is_property_present{};
2015
+
2016
+ if (!is_property_present.has_value())
2017
+ {
2018
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"ExtendedData");
2019
+ }
2020
+
2021
+ if (!is_property_present.value())
1693
2022
  {
1694
2023
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1695
2024
  return nullptr;
@@ -1708,7 +2037,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1708
2037
  {
1709
2038
  try
1710
2039
  {
1711
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"FormattedListPrice"))
2040
+ static std::optional<bool> is_property_present{};
2041
+
2042
+ if (!is_property_present.has_value())
2043
+ {
2044
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"FormattedListPrice");
2045
+ }
2046
+
2047
+ if (!is_property_present.value())
1712
2048
  {
1713
2049
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1714
2050
  return nullptr;
@@ -1727,7 +2063,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1727
2063
  {
1728
2064
  try
1729
2065
  {
1730
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"ProductId"))
2066
+ static std::optional<bool> is_property_present{};
2067
+
2068
+ if (!is_property_present.has_value())
2069
+ {
2070
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"ProductId");
2071
+ }
2072
+
2073
+ if (!is_property_present.value())
1731
2074
  {
1732
2075
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1733
2076
  return nullptr;
@@ -1746,7 +2089,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1746
2089
  {
1747
2090
  try
1748
2091
  {
1749
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"SkuId"))
2092
+ static std::optional<bool> is_property_present{};
2093
+
2094
+ if (!is_property_present.has_value())
2095
+ {
2096
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"SkuId");
2097
+ }
2098
+
2099
+ if (!is_property_present.value())
1750
2100
  {
1751
2101
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1752
2102
  return nullptr;
@@ -1765,7 +2115,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1765
2115
  {
1766
2116
  try
1767
2117
  {
1768
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"SkuType"))
2118
+ static std::optional<bool> is_property_present{};
2119
+
2120
+ if (!is_property_present.has_value())
2121
+ {
2122
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"SkuType");
2123
+ }
2124
+
2125
+ if (!is_property_present.value())
1769
2126
  {
1770
2127
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1771
2128
  return nullptr;
@@ -1784,7 +2141,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1784
2141
  {
1785
2142
  try
1786
2143
  {
1787
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"Title"))
2144
+ static std::optional<bool> is_property_present{};
2145
+
2146
+ if (!is_property_present.has_value())
2147
+ {
2148
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo", L"Title");
2149
+ }
2150
+
2151
+ if (!is_property_present.value())
1788
2152
  {
1789
2153
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1790
2154
  return nullptr;
@@ -1874,7 +2238,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1874
2238
  {
1875
2239
  try
1876
2240
  {
1877
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.WebAuthenticationCoreManagerHelper", L"RequestTokenWithUIElementHostingAsync", 2))
2241
+ static std::optional<bool> is_overload_present{};
2242
+
2243
+ if (!is_overload_present.has_value())
2244
+ {
2245
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.WebAuthenticationCoreManagerHelper", L"RequestTokenWithUIElementHostingAsync", 2);
2246
+ }
2247
+
2248
+ if (!is_overload_present.value())
1878
2249
  {
1879
2250
  py::set_arg_count_version_error(2);
1880
2251
  return nullptr;
@@ -1895,7 +2266,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::Preview
1895
2266
  {
1896
2267
  try
1897
2268
  {
1898
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.WebAuthenticationCoreManagerHelper", L"RequestTokenWithUIElementHostingAsync", 3))
2269
+ static std::optional<bool> is_overload_present{};
2270
+
2271
+ if (!is_overload_present.has_value())
2272
+ {
2273
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.Preview.WebAuthenticationCoreManagerHelper", L"RequestTokenWithUIElementHostingAsync", 3);
2274
+ }
2275
+
2276
+ if (!is_overload_present.value())
1899
2277
  {
1900
2278
  py::set_arg_count_version_error(3);
1901
2279
  return nullptr;
@@ -2019,7 +2397,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_store_preview(void) noexce
2019
2397
  return nullptr;
2020
2398
  }
2021
2399
 
2022
- if (py::register_python_type(module.get(), &type_spec_DeliveryOptimizationSettings, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_DeliveryOptimizationSettings_Static.get())) == -1)
2400
+ py::pytype_handle DeliveryOptimizationSettings_type{py::register_python_type(module.get(), &type_spec_DeliveryOptimizationSettings, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_DeliveryOptimizationSettings_Static.get()))};
2401
+ if (!DeliveryOptimizationSettings_type)
2023
2402
  {
2024
2403
  return nullptr;
2025
2404
  }
@@ -2030,12 +2409,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_store_preview(void) noexce
2030
2409
  return nullptr;
2031
2410
  }
2032
2411
 
2033
- if (py::register_python_type(module.get(), &type_spec_StoreConfiguration, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_StoreConfiguration_Static.get())) == -1)
2412
+ py::pytype_handle StoreConfiguration_type{py::register_python_type(module.get(), &type_spec_StoreConfiguration, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_StoreConfiguration_Static.get()))};
2413
+ if (!StoreConfiguration_type)
2034
2414
  {
2035
2415
  return nullptr;
2036
2416
  }
2037
2417
 
2038
- if (py::register_python_type(module.get(), &type_spec_StoreHardwareManufacturerInfo, object_bases.get(), nullptr) == -1)
2418
+ py::pytype_handle StoreHardwareManufacturerInfo_type{py::register_python_type(module.get(), &type_spec_StoreHardwareManufacturerInfo, object_bases.get(), nullptr)};
2419
+ if (!StoreHardwareManufacturerInfo_type)
2039
2420
  {
2040
2421
  return nullptr;
2041
2422
  }
@@ -2046,22 +2427,26 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_store_preview(void) noexce
2046
2427
  return nullptr;
2047
2428
  }
2048
2429
 
2049
- if (py::register_python_type(module.get(), &type_spec_StorePreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_StorePreview_Static.get())) == -1)
2430
+ py::pytype_handle StorePreview_type{py::register_python_type(module.get(), &type_spec_StorePreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_StorePreview_Static.get()))};
2431
+ if (!StorePreview_type)
2050
2432
  {
2051
2433
  return nullptr;
2052
2434
  }
2053
2435
 
2054
- if (py::register_python_type(module.get(), &type_spec_StorePreviewProductInfo, object_bases.get(), nullptr) == -1)
2436
+ py::pytype_handle StorePreviewProductInfo_type{py::register_python_type(module.get(), &type_spec_StorePreviewProductInfo, object_bases.get(), nullptr)};
2437
+ if (!StorePreviewProductInfo_type)
2055
2438
  {
2056
2439
  return nullptr;
2057
2440
  }
2058
2441
 
2059
- if (py::register_python_type(module.get(), &type_spec_StorePreviewPurchaseResults, object_bases.get(), nullptr) == -1)
2442
+ py::pytype_handle StorePreviewPurchaseResults_type{py::register_python_type(module.get(), &type_spec_StorePreviewPurchaseResults, object_bases.get(), nullptr)};
2443
+ if (!StorePreviewPurchaseResults_type)
2060
2444
  {
2061
2445
  return nullptr;
2062
2446
  }
2063
2447
 
2064
- if (py::register_python_type(module.get(), &type_spec_StorePreviewSkuInfo, object_bases.get(), nullptr) == -1)
2448
+ py::pytype_handle StorePreviewSkuInfo_type{py::register_python_type(module.get(), &type_spec_StorePreviewSkuInfo, object_bases.get(), nullptr)};
2449
+ if (!StorePreviewSkuInfo_type)
2065
2450
  {
2066
2451
  return nullptr;
2067
2452
  }
@@ -2072,7 +2457,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_store_preview(void) noexce
2072
2457
  return nullptr;
2073
2458
  }
2074
2459
 
2075
- if (py::register_python_type(module.get(), &type_spec_WebAuthenticationCoreManagerHelper, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_WebAuthenticationCoreManagerHelper_Static.get())) == -1)
2460
+ py::pytype_handle WebAuthenticationCoreManagerHelper_type{py::register_python_type(module.get(), &type_spec_WebAuthenticationCoreManagerHelper, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_WebAuthenticationCoreManagerHelper_Static.get()))};
2461
+ if (!WebAuthenticationCoreManagerHelper_type)
2076
2462
  {
2077
2463
  return nullptr;
2078
2464
  }
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.13"
19
+ requires-python = ">=3.9,<3.14"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
36
36
  # use local winrt-sdk build dependency
37
37
  environment = { PYTHONPATH="../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
+ before-build = "uv pip install setuptools"
40
41
  # don't build for PyPy
41
42
  skip = "pp*"
42
43
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
- winrt-runtime==2.1.0
3
+ winrt-runtime==2.3.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Store.Preview
3
- Version: 2.1.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,17 +10,17 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Security.Authentication.Web.Core[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Security.Credentials[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
22
- Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
23
- Requires-Dist: winrt-Windows.UI.Xaml[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Security.Authentication.Web.Core[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Security.Credentials[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.UI.Xaml[all]==2.3.0; extra == "all"
24
24
 
25
25
  <!-- warning: Please don't edit this file. It was automatically generated. -->
26
26
 
@@ -0,0 +1,10 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.3.0
5
+ winrt-Windows.Foundation.Collections[all]==2.3.0
6
+ winrt-Windows.Security.Authentication.Web.Core[all]==2.3.0
7
+ winrt-Windows.Security.Credentials[all]==2.3.0
8
+ winrt-Windows.Storage.Streams[all]==2.3.0
9
+ winrt-Windows.System[all]==2.3.0
10
+ winrt-Windows.UI.Xaml[all]==2.3.0
@@ -1,9 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Foundation[all]==2.1.0
4
- winrt-Windows.Foundation.Collections[all]==2.1.0
5
- winrt-Windows.Security.Authentication.Web.Core[all]==2.1.0
6
- winrt-Windows.Security.Credentials[all]==2.1.0
7
- winrt-Windows.Storage.Streams[all]==2.1.0
8
- winrt-Windows.System[all]==2.1.0
9
- winrt-Windows.UI.Xaml[all]==2.1.0
@@ -1,10 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.Foundation.Collections[all]==2.1.0
6
- winrt-Windows.Security.Authentication.Web.Core[all]==2.1.0
7
- winrt-Windows.Security.Credentials[all]==2.1.0
8
- winrt-Windows.Storage.Streams[all]==2.1.0
9
- winrt-Windows.System[all]==2.1.0
10
- winrt-Windows.UI.Xaml[all]==2.1.0