@azure/arm-playwrighttesting 1.0.0-beta.1 → 1.0.0-beta.2

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 (44) hide show
  1. package/CHANGELOG.md +26 -1
  2. package/LICENSE +1 -1
  3. package/dist/index.js +121 -89
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +1 -1
  8. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +3 -8
  10. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
  11. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +3 -8
  12. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -1
  13. package/dist-esm/samples-dev/accountsUpdateSample.js +1 -1
  14. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -1
  15. package/dist-esm/samples-dev/operationsListSample.js +3 -8
  16. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  17. package/dist-esm/samples-dev/quotasListBySubscriptionSample.js +3 -8
  18. package/dist-esm/samples-dev/quotasListBySubscriptionSample.js.map +1 -1
  19. package/dist-esm/src/models/index.d.ts +38 -23
  20. package/dist-esm/src/models/index.d.ts.map +1 -1
  21. package/dist-esm/src/models/index.js.map +1 -1
  22. package/dist-esm/src/models/mappers.d.ts +3 -0
  23. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  24. package/dist-esm/src/models/mappers.js +87 -37
  25. package/dist-esm/src/models/mappers.js.map +1 -1
  26. package/dist-esm/src/operations/accounts.js +6 -16
  27. package/dist-esm/src/operations/accounts.js.map +1 -1
  28. package/dist-esm/src/operations/operations.js +3 -8
  29. package/dist-esm/src/operations/operations.js.map +1 -1
  30. package/dist-esm/src/operations/quotas.js +3 -8
  31. package/dist-esm/src/operations/quotas.js.map +1 -1
  32. package/dist-esm/src/pagingHelper.js.map +1 -1
  33. package/dist-esm/src/playwrightTestingClient.js +1 -1
  34. package/dist-esm/src/playwrightTestingClient.js.map +1 -1
  35. package/dist-esm/test/playwrighttesting_operations_test.spec.js +3 -8
  36. package/dist-esm/test/playwrighttesting_operations_test.spec.js.map +1 -1
  37. package/package.json +12 -17
  38. package/review/arm-playwrighttesting.api.md +25 -10
  39. package/src/models/index.ts +41 -23
  40. package/src/models/mappers.ts +90 -42
  41. package/src/playwrightTestingClient.ts +1 -1
  42. package/types/arm-playwrighttesting.d.ts +33 -15
  43. package/types/tsdoc-metadata.json +1 -1
  44. package/rollup.config.js +0 -122
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Release History
2
2
 
3
+ ## 1.0.0-beta.2 (2024-01-31)
4
+
5
+ **Features**
6
+
7
+ - Added Interface AccountProperties
8
+ - Added Interface AccountUpdateProperties
9
+ - Added Interface QuotaProperties
10
+ - Interface Account has a new optional parameter properties
11
+ - Interface AccountUpdate has a new optional parameter properties
12
+ - Interface Quota has a new optional parameter properties
13
+
14
+ **Breaking Changes**
15
+
16
+ - Interface Account no longer has parameter dashboardUri
17
+ - Interface Account no longer has parameter provisioningState
18
+ - Interface Account no longer has parameter regionalAffinity
19
+ - Interface Account no longer has parameter reporting
20
+ - Interface Account no longer has parameter scalableExecution
21
+ - Interface AccountUpdate no longer has parameter regionalAffinity
22
+ - Interface AccountUpdate no longer has parameter reporting
23
+ - Interface AccountUpdate no longer has parameter scalableExecution
24
+ - Interface Quota no longer has parameter freeTrial
25
+ - Interface Quota no longer has parameter provisioningState
26
+
27
+
3
28
  ## 1.0.0-beta.1 (2023-09-27)
4
29
 
5
- The package of @azure/arm-playwrighttesting is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
30
+ The package of @azure/arm-playwrighttesting is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023 Microsoft
3
+ Copyright (c) 2024 Microsoft
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.js CHANGED
@@ -7,8 +7,7 @@ var coreClient = require('@azure/core-client');
7
7
  var coreRestPipeline = require('@azure/core-rest-pipeline');
8
8
  var coreLro = require('@azure/core-lro');
9
9
 
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
10
+ function _interopNamespaceDefault(e) {
12
11
  var n = Object.create(null);
13
12
  if (e) {
14
13
  Object.keys(e).forEach(function (k) {
@@ -21,12 +20,12 @@ function _interopNamespace(e) {
21
20
  }
22
21
  });
23
22
  }
24
- n["default"] = e;
23
+ n.default = e;
25
24
  return Object.freeze(n);
26
25
  }
27
26
 
28
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
27
+ var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
30
29
 
31
30
  /*
32
31
  * Copyright (c) Microsoft Corporation.
@@ -366,6 +365,46 @@ const AccountListResult = {
366
365
  }
367
366
  }
368
367
  };
368
+ const AccountProperties = {
369
+ type: {
370
+ name: "Composite",
371
+ className: "AccountProperties",
372
+ modelProperties: {
373
+ dashboardUri: {
374
+ serializedName: "dashboardUri",
375
+ readOnly: true,
376
+ type: {
377
+ name: "String"
378
+ }
379
+ },
380
+ regionalAffinity: {
381
+ serializedName: "regionalAffinity",
382
+ type: {
383
+ name: "String"
384
+ }
385
+ },
386
+ scalableExecution: {
387
+ serializedName: "scalableExecution",
388
+ type: {
389
+ name: "String"
390
+ }
391
+ },
392
+ reporting: {
393
+ serializedName: "reporting",
394
+ type: {
395
+ name: "String"
396
+ }
397
+ },
398
+ provisioningState: {
399
+ serializedName: "provisioningState",
400
+ readOnly: true,
401
+ type: {
402
+ name: "String"
403
+ }
404
+ }
405
+ }
406
+ }
407
+ };
369
408
  const Resource = {
370
409
  type: {
371
410
  name: "Composite",
@@ -473,6 +512,28 @@ const QuotaListResult = {
473
512
  }
474
513
  }
475
514
  };
515
+ const QuotaProperties = {
516
+ type: {
517
+ name: "Composite",
518
+ className: "QuotaProperties",
519
+ modelProperties: {
520
+ freeTrial: {
521
+ serializedName: "freeTrial",
522
+ type: {
523
+ name: "Composite",
524
+ className: "FreeTrialProperties"
525
+ }
526
+ },
527
+ provisioningState: {
528
+ serializedName: "provisioningState",
529
+ readOnly: true,
530
+ type: {
531
+ name: "String"
532
+ }
533
+ }
534
+ }
535
+ }
536
+ };
476
537
  const FreeTrialProperties = {
477
538
  type: {
478
539
  name: "Composite",
@@ -553,20 +614,35 @@ const AccountUpdate = {
553
614
  value: { type: { name: "String" } }
554
615
  }
555
616
  },
617
+ properties: {
618
+ serializedName: "properties",
619
+ type: {
620
+ name: "Composite",
621
+ className: "AccountUpdateProperties"
622
+ }
623
+ }
624
+ }
625
+ }
626
+ };
627
+ const AccountUpdateProperties = {
628
+ type: {
629
+ name: "Composite",
630
+ className: "AccountUpdateProperties",
631
+ modelProperties: {
556
632
  regionalAffinity: {
557
- serializedName: "properties.regionalAffinity",
633
+ serializedName: "regionalAffinity",
558
634
  type: {
559
635
  name: "String"
560
636
  }
561
637
  },
562
638
  scalableExecution: {
563
- serializedName: "properties.scalableExecution",
639
+ serializedName: "scalableExecution",
564
640
  type: {
565
641
  name: "String"
566
642
  }
567
643
  },
568
644
  reporting: {
569
- serializedName: "properties.reporting",
645
+ serializedName: "reporting",
570
646
  type: {
571
647
  name: "String"
572
648
  }
@@ -604,32 +680,11 @@ const Account = {
604
680
  type: {
605
681
  name: "Composite",
606
682
  className: "Account",
607
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { dashboardUri: {
608
- serializedName: "properties.dashboardUri",
609
- readOnly: true,
610
- type: {
611
- name: "String"
612
- }
613
- }, regionalAffinity: {
614
- serializedName: "properties.regionalAffinity",
615
- type: {
616
- name: "String"
617
- }
618
- }, scalableExecution: {
619
- serializedName: "properties.scalableExecution",
620
- type: {
621
- name: "String"
622
- }
623
- }, reporting: {
624
- serializedName: "properties.reporting",
625
- type: {
626
- name: "String"
627
- }
628
- }, provisioningState: {
629
- serializedName: "properties.provisioningState",
630
- readOnly: true,
683
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
684
+ serializedName: "properties",
631
685
  type: {
632
- name: "String"
686
+ name: "Composite",
687
+ className: "AccountProperties"
633
688
  }
634
689
  } })
635
690
  }
@@ -638,17 +693,11 @@ const Quota = {
638
693
  type: {
639
694
  name: "Composite",
640
695
  className: "Quota",
641
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { freeTrial: {
642
- serializedName: "properties.freeTrial",
696
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
697
+ serializedName: "properties",
643
698
  type: {
644
699
  name: "Composite",
645
- className: "FreeTrialProperties"
646
- }
647
- }, provisioningState: {
648
- serializedName: "properties.provisioningState",
649
- readOnly: true,
650
- type: {
651
- name: "String"
700
+ className: "QuotaProperties"
652
701
  }
653
702
  } })
654
703
  }
@@ -690,24 +739,27 @@ const AccountsDeleteHeaders = {
690
739
 
691
740
  var Mappers = /*#__PURE__*/Object.freeze({
692
741
  __proto__: null,
693
- OperationListResult: OperationListResult,
694
- Operation: Operation,
695
- OperationDisplay: OperationDisplay,
696
- ErrorResponse: ErrorResponse,
697
- ErrorDetail: ErrorDetail,
698
- ErrorAdditionalInfo: ErrorAdditionalInfo,
742
+ Account: Account,
699
743
  AccountListResult: AccountListResult,
700
- Resource: Resource,
701
- SystemData: SystemData,
702
- QuotaListResult: QuotaListResult,
703
- FreeTrialProperties: FreeTrialProperties,
744
+ AccountProperties: AccountProperties,
704
745
  AccountUpdate: AccountUpdate,
705
- TrackedResource: TrackedResource,
746
+ AccountUpdateProperties: AccountUpdateProperties,
747
+ AccountsCreateOrUpdateHeaders: AccountsCreateOrUpdateHeaders,
748
+ AccountsDeleteHeaders: AccountsDeleteHeaders,
749
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
750
+ ErrorDetail: ErrorDetail,
751
+ ErrorResponse: ErrorResponse,
752
+ FreeTrialProperties: FreeTrialProperties,
753
+ Operation: Operation,
754
+ OperationDisplay: OperationDisplay,
755
+ OperationListResult: OperationListResult,
706
756
  ProxyResource: ProxyResource,
707
- Account: Account,
708
757
  Quota: Quota,
709
- AccountsCreateOrUpdateHeaders: AccountsCreateOrUpdateHeaders,
710
- AccountsDeleteHeaders: AccountsDeleteHeaders
758
+ QuotaListResult: QuotaListResult,
759
+ QuotaProperties: QuotaProperties,
760
+ Resource: Resource,
761
+ SystemData: SystemData,
762
+ TrackedResource: TrackedResource
711
763
  });
712
764
 
713
765
  /*
@@ -905,16 +957,11 @@ class OperationsImpl {
905
957
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
906
958
  var _a, e_1, _b, _c;
907
959
  try {
908
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
960
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
909
961
  _c = _f.value;
910
962
  _d = false;
911
- try {
912
- const page = _c;
913
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
914
- }
915
- finally {
916
- _d = true;
917
- }
963
+ const page = _c;
964
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
918
965
  }
919
966
  }
920
967
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -1058,16 +1105,11 @@ class AccountsImpl {
1058
1105
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1059
1106
  var _a, e_1, _b, _c;
1060
1107
  try {
1061
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1108
+ for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1062
1109
  _c = _f.value;
1063
1110
  _d = false;
1064
- try {
1065
- const page = _c;
1066
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1067
- }
1068
- finally {
1069
- _d = true;
1070
- }
1111
+ const page = _c;
1112
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1071
1113
  }
1072
1114
  }
1073
1115
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -1125,16 +1167,11 @@ class AccountsImpl {
1125
1167
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1126
1168
  var _a, e_2, _b, _c;
1127
1169
  try {
1128
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1170
+ for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1129
1171
  _c = _f.value;
1130
1172
  _d = false;
1131
- try {
1132
- const page = _c;
1133
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1134
- }
1135
- finally {
1136
- _d = true;
1137
- }
1173
+ const page = _c;
1174
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1138
1175
  }
1139
1176
  }
1140
1177
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
@@ -1551,16 +1588,11 @@ class QuotasImpl {
1551
1588
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1552
1589
  var _a, e_1, _b, _c;
1553
1590
  try {
1554
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1591
+ for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1555
1592
  _c = _f.value;
1556
1593
  _d = false;
1557
- try {
1558
- const page = _c;
1559
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1560
- }
1561
- finally {
1562
- _d = true;
1563
- }
1594
+ const page = _c;
1595
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1564
1596
  }
1565
1597
  }
1566
1598
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -1693,7 +1725,7 @@ class PlaywrightTestingClient extends coreClient__namespace.ServiceClient {
1693
1725
  requestContentType: "application/json; charset=utf-8",
1694
1726
  credential: credentials
1695
1727
  };
1696
- const packageDetails = `azsdk-js-arm-playwrighttesting/1.0.0-beta.1`;
1728
+ const packageDetails = `azsdk-js-arm-playwrighttesting/1.0.0-beta.2`;
1697
1729
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1698
1730
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1699
1731
  : `${packageDetails}`;