@yadsh/dsh-qa-integrations 0.7.0 → 0.8.0
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.
- package/README.md +33 -16
- package/lib/client/confluence.js +37 -16
- package/lib/client/confluence.js.map +1 -1
- package/lib/client/jira.js +32 -11
- package/lib/client/jira.js.map +1 -1
- package/lib/client.js +128 -73
- package/lib/client.js.map +1 -1
- package/lib/coerce.js +17 -1
- package/lib/coerce.js.map +1 -1
- package/lib/config.js.map +1 -1
- package/lib/errors.js +22 -0
- package/lib/errors.js.map +1 -1
- package/lib/index.js +20 -2
- package/lib/index.js.map +1 -1
- package/lib/providers/bitrix24/config.js +2 -3
- package/lib/providers/bitrix24/config.js.map +1 -1
- package/lib/providers/bitrix24/index.js +1 -14
- package/lib/providers/bitrix24/index.js.map +1 -1
- package/lib/providers/bitrix24/operations.js +5 -9
- package/lib/providers/bitrix24/operations.js.map +1 -1
- package/lib/providers/bitrix24/transport.js +11 -31
- package/lib/providers/bitrix24/transport.js.map +1 -1
- package/lib/providers/confluence/adf.js +28 -23
- package/lib/providers/confluence/adf.js.map +1 -1
- package/lib/providers/confluence/catalog.js +40 -4
- package/lib/providers/confluence/catalog.js.map +1 -1
- package/lib/providers/confluence/config.js +27 -2
- package/lib/providers/confluence/config.js.map +1 -1
- package/lib/providers/confluence/credential-help.js +14 -8
- package/lib/providers/confluence/credential-help.js.map +1 -1
- package/lib/providers/confluence/dialect.js +215 -0
- package/lib/providers/confluence/dialect.js.map +1 -0
- package/lib/providers/confluence/index.js +137 -81
- package/lib/providers/confluence/index.js.map +1 -1
- package/lib/providers/confluence/operations.js +207 -152
- package/lib/providers/confluence/operations.js.map +1 -1
- package/lib/providers/confluence/storage.js +690 -0
- package/lib/providers/confluence/storage.js.map +1 -0
- package/lib/providers/confluence/transport.js +26 -89
- package/lib/providers/confluence/transport.js.map +1 -1
- package/lib/providers/gitlab/config.js +2 -3
- package/lib/providers/gitlab/config.js.map +1 -1
- package/lib/providers/gitlab/index.js +2 -20
- package/lib/providers/gitlab/index.js.map +1 -1
- package/lib/providers/gitlab/operations.js +7 -45
- package/lib/providers/gitlab/operations.js.map +1 -1
- package/lib/providers/gitlab/transport.js +2 -18
- package/lib/providers/gitlab/transport.js.map +1 -1
- package/lib/providers/jira/adf.js +19 -14
- package/lib/providers/jira/adf.js.map +1 -1
- package/lib/providers/jira/catalog.js +52 -1
- package/lib/providers/jira/catalog.js.map +1 -1
- package/lib/providers/jira/config.js +27 -2
- package/lib/providers/jira/config.js.map +1 -1
- package/lib/providers/jira/credential-help.js +16 -7
- package/lib/providers/jira/credential-help.js.map +1 -1
- package/lib/providers/jira/dialect.js +94 -0
- package/lib/providers/jira/dialect.js.map +1 -0
- package/lib/providers/jira/index.js +101 -95
- package/lib/providers/jira/index.js.map +1 -1
- package/lib/providers/jira/jql.js +54 -21
- package/lib/providers/jira/jql.js.map +1 -1
- package/lib/providers/jira/operations.js +77 -55
- package/lib/providers/jira/operations.js.map +1 -1
- package/lib/providers/jira/tools.js +1 -1
- package/lib/providers/jira/tools.js.map +1 -1
- package/lib/providers/jira/transport.js +12 -83
- package/lib/providers/jira/transport.js.map +1 -1
- package/lib/providers/shared/health.js +31 -0
- package/lib/providers/shared/health.js.map +1 -0
- package/lib/providers/shared/http.js +20 -0
- package/lib/providers/shared/http.js.map +1 -1
- package/lib/providers/shared/paths.js +14 -0
- package/lib/providers/shared/paths.js.map +1 -0
- package/lib/providers/shared/payload.js +46 -0
- package/lib/providers/shared/payload.js.map +1 -0
- package/lib/providers/teamcity/artifacts.js +0 -8
- package/lib/providers/teamcity/artifacts.js.map +1 -1
- package/lib/providers/teamcity/config.js +2 -3
- package/lib/providers/teamcity/config.js.map +1 -1
- package/lib/providers/teamcity/index.js +2 -20
- package/lib/providers/teamcity/index.js.map +1 -1
- package/lib/providers/teamcity/operations.js +5 -39
- package/lib/providers/teamcity/operations.js.map +1 -1
- package/lib/providers/teamcity/transport.js +2 -11
- package/lib/providers/teamcity/transport.js.map +1 -1
- package/lib/providers/testit/config.js +2 -3
- package/lib/providers/testit/config.js.map +1 -1
- package/lib/providers/testit/index.js +2 -20
- package/lib/providers/testit/index.js.map +1 -1
- package/lib/providers/testit/operations.js +34 -63
- package/lib/providers/testit/operations.js.map +1 -1
- package/lib/providers/testit/transport.js +2 -18
- package/lib/providers/testit/transport.js.map +1 -1
- package/lib/providers/weblate/config.js +2 -3
- package/lib/providers/weblate/config.js.map +1 -1
- package/lib/providers/weblate/index.js +2 -19
- package/lib/providers/weblate/index.js.map +1 -1
- package/lib/providers/weblate/operations.js +3 -33
- package/lib/providers/weblate/operations.js.map +1 -1
- package/lib/providers/weblate/query.js +3 -6
- package/lib/providers/weblate/query.js.map +1 -1
- package/lib/providers/weblate/transport.js +2 -12
- package/lib/providers/weblate/transport.js.map +1 -1
- package/lib/service-credentials/config.js +2 -3
- package/lib/service-credentials/config.js.map +1 -1
- package/lib/typert.host.js +62 -55
- package/lib/typert.remote-client.d.ts +4 -4
- package/lib/typert.remote-client.js +58 -51
- package/lib/types/client/confluence.d.ts +5 -1
- package/lib/types/client/jira.d.ts +5 -1
- package/lib/types/coerce.d.ts +14 -0
- package/lib/types/config.d.ts +4 -4
- package/lib/types/errors.d.ts +16 -0
- package/lib/types/index.d.ts +10 -2
- package/lib/types/providers/bitrix24/index.d.ts +1 -0
- package/lib/types/providers/confluence/catalog.d.ts +33 -5
- package/lib/types/providers/confluence/config.d.ts +39 -7
- package/lib/types/providers/confluence/credential-help.d.ts +9 -4
- package/lib/types/providers/confluence/dialect.d.ts +113 -0
- package/lib/types/providers/confluence/index.d.ts +24 -4
- package/lib/types/providers/confluence/operations.d.ts +12 -4
- package/lib/types/providers/confluence/storage.d.ts +28 -0
- package/lib/types/providers/confluence/transport.d.ts +10 -21
- package/lib/types/providers/jira/catalog.d.ts +36 -2
- package/lib/types/providers/jira/config.d.ts +37 -6
- package/lib/types/providers/jira/credential-help.d.ts +11 -3
- package/lib/types/providers/jira/dialect.d.ts +79 -0
- package/lib/types/providers/jira/index.d.ts +32 -22
- package/lib/types/providers/jira/jql.d.ts +14 -4
- package/lib/types/providers/jira/operations.d.ts +3 -0
- package/lib/types/providers/jira/transport.d.ts +6 -13
- package/lib/types/providers/shared/health.d.ts +18 -0
- package/lib/types/providers/shared/http.d.ts +9 -0
- package/lib/types/providers/shared/paths.d.ts +10 -0
- package/lib/types/providers/shared/payload.d.ts +26 -0
- package/lib/types/providers/teamcity/artifacts.d.ts +0 -2
- package/lib/types/providers/teamcity/index.d.ts +2 -0
- package/lib/types/providers/testit/index.d.ts +2 -0
- package/lib/types/types.d.ts +8 -0
- package/package.json +5 -5
package/lib/client.js
CHANGED
|
@@ -4848,6 +4848,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4848
4848
|
"id": string().readonly(),
|
|
4849
4849
|
"label": string().readonly(),
|
|
4850
4850
|
"baseUrl": string().readonly(),
|
|
4851
|
+
"deploymentType": union([
|
|
4852
|
+
_undefined(),
|
|
4853
|
+
literal("cloud"),
|
|
4854
|
+
literal("server")
|
|
4855
|
+
]).readonly().optional(),
|
|
4851
4856
|
"service": union([literal(null), object({ "label": string().readonly() })]).readonly()
|
|
4852
4857
|
}));
|
|
4853
4858
|
const _yadsh_dsh_qa_integrations_qaIntegrations_confluenceSites_parameter_0$schema = string();
|
|
@@ -4855,6 +4860,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4855
4860
|
"id": string().readonly(),
|
|
4856
4861
|
"label": string().readonly(),
|
|
4857
4862
|
"baseUrl": string().readonly(),
|
|
4863
|
+
"deploymentType": union([
|
|
4864
|
+
_undefined(),
|
|
4865
|
+
literal("cloud"),
|
|
4866
|
+
literal("server")
|
|
4867
|
+
]).readonly().optional(),
|
|
4858
4868
|
"service": union([literal(null), object({ "label": string().readonly() })]).readonly()
|
|
4859
4869
|
}));
|
|
4860
4870
|
const _yadsh_dsh_qa_integrations_qaIntegrations_credentialSource_parameter_0$schema = string();
|
|
@@ -5228,6 +5238,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5228
5238
|
"id": string().readonly(),
|
|
5229
5239
|
"label": string().readonly(),
|
|
5230
5240
|
"baseUrl": string().readonly(),
|
|
5241
|
+
"deploymentType": union([
|
|
5242
|
+
_undefined(),
|
|
5243
|
+
literal("cloud"),
|
|
5244
|
+
literal("server")
|
|
5245
|
+
]).readonly().optional(),
|
|
5231
5246
|
"service": union([literal(null), object({ "label": string().readonly() })]).readonly()
|
|
5232
5247
|
}));
|
|
5233
5248
|
const _yadsh_dsh_qa_integrations_qaIntegrations_jiraSites_parameter_0$schema = string();
|
|
@@ -5235,6 +5250,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5235
5250
|
"id": string().readonly(),
|
|
5236
5251
|
"label": string().readonly(),
|
|
5237
5252
|
"baseUrl": string().readonly(),
|
|
5253
|
+
"deploymentType": union([
|
|
5254
|
+
_undefined(),
|
|
5255
|
+
literal("cloud"),
|
|
5256
|
+
literal("server")
|
|
5257
|
+
]).readonly().optional(),
|
|
5238
5258
|
"service": union([literal(null), object({ "label": string().readonly() })]).readonly()
|
|
5239
5259
|
}));
|
|
5240
5260
|
const _yadsh_dsh_qa_integrations_qaIntegrations_list_parameter_0$schema = string();
|
|
@@ -5733,7 +5753,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5733
5753
|
const _yadsh_dsh_qa_integrations_qaIntegrations_putConfluenceCredential_parameter_0$schema = string();
|
|
5734
5754
|
const _yadsh_dsh_qa_integrations_qaIntegrations_putConfluenceCredential_parameter_1$schema = object({
|
|
5735
5755
|
"instanceId": string().readonly(),
|
|
5736
|
-
"email": string().readonly(),
|
|
5756
|
+
"email": union([_undefined(), string()]).readonly().optional(),
|
|
5737
5757
|
"token": string().readonly(),
|
|
5738
5758
|
"useServiceCredential": union([
|
|
5739
5759
|
_undefined(),
|
|
@@ -5838,7 +5858,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5838
5858
|
const _yadsh_dsh_qa_integrations_qaIntegrations_putJiraCredential_parameter_0$schema = string();
|
|
5839
5859
|
const _yadsh_dsh_qa_integrations_qaIntegrations_putJiraCredential_parameter_1$schema = object({
|
|
5840
5860
|
"siteId": string().readonly(),
|
|
5841
|
-
"email": string().readonly(),
|
|
5861
|
+
"email": union([_undefined(), string()]).readonly().optional(),
|
|
5842
5862
|
"token": string().readonly(),
|
|
5843
5863
|
"useServiceCredential": union([
|
|
5844
5864
|
_undefined(),
|
|
@@ -6115,6 +6135,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6115
6135
|
"id": string().readonly(),
|
|
6116
6136
|
"label": string().readonly(),
|
|
6117
6137
|
"baseUrl": string().readonly(),
|
|
6138
|
+
"deploymentType": union([
|
|
6139
|
+
_undefined(),
|
|
6140
|
+
literal("cloud"),
|
|
6141
|
+
literal("server")
|
|
6142
|
+
]).readonly().optional(),
|
|
6118
6143
|
"service": union([literal(null), object({ "label": string().readonly() })]).readonly()
|
|
6119
6144
|
})]);
|
|
6120
6145
|
const _yadsh_dsh_qa_integrations_qaIntegrations_testBitrix24_parameter_0$schema = string();
|
|
@@ -6251,6 +6276,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6251
6276
|
"id": string().readonly(),
|
|
6252
6277
|
"label": string().readonly(),
|
|
6253
6278
|
"baseUrl": string().readonly(),
|
|
6279
|
+
"deploymentType": union([
|
|
6280
|
+
_undefined(),
|
|
6281
|
+
literal("cloud"),
|
|
6282
|
+
literal("server")
|
|
6283
|
+
]).readonly().optional(),
|
|
6254
6284
|
"service": union([literal(null), object({ "label": string().readonly() })]).readonly()
|
|
6255
6285
|
}));
|
|
6256
6286
|
const _yadsh_dsh_qa_integrations_qaIntegrations_testJira_parameter_0$schema = string();
|
|
@@ -6430,6 +6460,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6430
6460
|
"id": string().readonly(),
|
|
6431
6461
|
"label": string().readonly(),
|
|
6432
6462
|
"baseUrl": string().readonly(),
|
|
6463
|
+
"deploymentType": union([
|
|
6464
|
+
_undefined(),
|
|
6465
|
+
literal("cloud"),
|
|
6466
|
+
literal("server")
|
|
6467
|
+
]).readonly().optional(),
|
|
6433
6468
|
"service": union([literal(null), object({ "label": string().readonly() })]).readonly()
|
|
6434
6469
|
}));
|
|
6435
6470
|
const TYPERT_REMOTE = {
|
|
@@ -6458,7 +6493,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6458
6493
|
},
|
|
6459
6494
|
sourceLocation: {
|
|
6460
6495
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6461
|
-
"line":
|
|
6496
|
+
"line": 500,
|
|
6462
6497
|
"column": 3
|
|
6463
6498
|
}
|
|
6464
6499
|
},
|
|
@@ -6485,7 +6520,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6485
6520
|
},
|
|
6486
6521
|
sourceLocation: {
|
|
6487
6522
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6488
|
-
"line":
|
|
6523
|
+
"line": 592,
|
|
6489
6524
|
"column": 3
|
|
6490
6525
|
}
|
|
6491
6526
|
},
|
|
@@ -6521,7 +6556,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6521
6556
|
},
|
|
6522
6557
|
sourceLocation: {
|
|
6523
6558
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6524
|
-
"line":
|
|
6559
|
+
"line": 940,
|
|
6525
6560
|
"column": 9
|
|
6526
6561
|
}
|
|
6527
6562
|
},
|
|
@@ -6539,7 +6574,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6539
6574
|
},
|
|
6540
6575
|
sourceLocation: {
|
|
6541
6576
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6542
|
-
"line":
|
|
6577
|
+
"line": 449,
|
|
6543
6578
|
"column": 3
|
|
6544
6579
|
}
|
|
6545
6580
|
},
|
|
@@ -6566,7 +6601,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6566
6601
|
},
|
|
6567
6602
|
sourceLocation: {
|
|
6568
6603
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6569
|
-
"line":
|
|
6604
|
+
"line": 519,
|
|
6570
6605
|
"column": 3
|
|
6571
6606
|
}
|
|
6572
6607
|
},
|
|
@@ -6593,7 +6628,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6593
6628
|
},
|
|
6594
6629
|
sourceLocation: {
|
|
6595
6630
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6596
|
-
"line":
|
|
6631
|
+
"line": 654,
|
|
6597
6632
|
"column": 3
|
|
6598
6633
|
}
|
|
6599
6634
|
},
|
|
@@ -6620,7 +6655,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6620
6655
|
},
|
|
6621
6656
|
sourceLocation: {
|
|
6622
6657
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6623
|
-
"line":
|
|
6658
|
+
"line": 580,
|
|
6624
6659
|
"column": 3
|
|
6625
6660
|
}
|
|
6626
6661
|
},
|
|
@@ -6647,7 +6682,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6647
6682
|
},
|
|
6648
6683
|
sourceLocation: {
|
|
6649
6684
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6650
|
-
"line":
|
|
6685
|
+
"line": 790,
|
|
6651
6686
|
"column": 3
|
|
6652
6687
|
}
|
|
6653
6688
|
},
|
|
@@ -6674,7 +6709,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6674
6709
|
},
|
|
6675
6710
|
sourceLocation: {
|
|
6676
6711
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6677
|
-
"line":
|
|
6712
|
+
"line": 718,
|
|
6678
6713
|
"column": 3
|
|
6679
6714
|
}
|
|
6680
6715
|
},
|
|
@@ -6701,7 +6736,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6701
6736
|
},
|
|
6702
6737
|
sourceLocation: {
|
|
6703
6738
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6704
|
-
"line":
|
|
6739
|
+
"line": 851,
|
|
6705
6740
|
"column": 3
|
|
6706
6741
|
}
|
|
6707
6742
|
},
|
|
@@ -6728,7 +6763,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6728
6763
|
},
|
|
6729
6764
|
sourceLocation: {
|
|
6730
6765
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6731
|
-
"line":
|
|
6766
|
+
"line": 912,
|
|
6732
6767
|
"column": 3
|
|
6733
6768
|
}
|
|
6734
6769
|
},
|
|
@@ -6755,7 +6790,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6755
6790
|
},
|
|
6756
6791
|
sourceLocation: {
|
|
6757
6792
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6758
|
-
"line":
|
|
6793
|
+
"line": 470,
|
|
6759
6794
|
"column": 3
|
|
6760
6795
|
}
|
|
6761
6796
|
},
|
|
@@ -6782,7 +6817,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6782
6817
|
},
|
|
6783
6818
|
sourceLocation: {
|
|
6784
6819
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6785
|
-
"line":
|
|
6820
|
+
"line": 597,
|
|
6786
6821
|
"column": 3
|
|
6787
6822
|
}
|
|
6788
6823
|
},
|
|
@@ -6809,7 +6844,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6809
6844
|
},
|
|
6810
6845
|
sourceLocation: {
|
|
6811
6846
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6812
|
-
"line":
|
|
6847
|
+
"line": 536,
|
|
6813
6848
|
"column": 3
|
|
6814
6849
|
}
|
|
6815
6850
|
},
|
|
@@ -6836,7 +6871,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6836
6871
|
},
|
|
6837
6872
|
sourceLocation: {
|
|
6838
6873
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6839
|
-
"line":
|
|
6874
|
+
"line": 736,
|
|
6840
6875
|
"column": 3
|
|
6841
6876
|
}
|
|
6842
6877
|
},
|
|
@@ -6863,7 +6898,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6863
6898
|
},
|
|
6864
6899
|
sourceLocation: {
|
|
6865
6900
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6866
|
-
"line":
|
|
6901
|
+
"line": 661,
|
|
6867
6902
|
"column": 3
|
|
6868
6903
|
}
|
|
6869
6904
|
},
|
|
@@ -6890,7 +6925,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6890
6925
|
},
|
|
6891
6926
|
sourceLocation: {
|
|
6892
6927
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6893
|
-
"line":
|
|
6928
|
+
"line": 807,
|
|
6894
6929
|
"column": 3
|
|
6895
6930
|
}
|
|
6896
6931
|
},
|
|
@@ -6917,7 +6952,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6917
6952
|
},
|
|
6918
6953
|
sourceLocation: {
|
|
6919
6954
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6920
|
-
"line":
|
|
6955
|
+
"line": 868,
|
|
6921
6956
|
"column": 3
|
|
6922
6957
|
}
|
|
6923
6958
|
},
|
|
@@ -6944,7 +6979,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6944
6979
|
},
|
|
6945
6980
|
sourceLocation: {
|
|
6946
6981
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6947
|
-
"line":
|
|
6982
|
+
"line": 531,
|
|
6948
6983
|
"column": 3
|
|
6949
6984
|
}
|
|
6950
6985
|
},
|
|
@@ -6971,7 +7006,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6971
7006
|
},
|
|
6972
7007
|
sourceLocation: {
|
|
6973
7008
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
6974
|
-
"line":
|
|
7009
|
+
"line": 731,
|
|
6975
7010
|
"column": 3
|
|
6976
7011
|
}
|
|
6977
7012
|
},
|
|
@@ -6998,7 +7033,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6998
7033
|
},
|
|
6999
7034
|
sourceLocation: {
|
|
7000
7035
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7001
|
-
"line":
|
|
7036
|
+
"line": 465,
|
|
7002
7037
|
"column": 3
|
|
7003
7038
|
}
|
|
7004
7039
|
},
|
|
@@ -7025,7 +7060,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7025
7060
|
},
|
|
7026
7061
|
sourceLocation: {
|
|
7027
7062
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7028
|
-
"line":
|
|
7063
|
+
"line": 924,
|
|
7029
7064
|
"column": 3
|
|
7030
7065
|
}
|
|
7031
7066
|
},
|
|
@@ -7061,7 +7096,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7061
7096
|
},
|
|
7062
7097
|
sourceLocation: {
|
|
7063
7098
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7064
|
-
"line":
|
|
7099
|
+
"line": 512,
|
|
7065
7100
|
"column": 3
|
|
7066
7101
|
}
|
|
7067
7102
|
},
|
|
@@ -7097,7 +7132,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7097
7132
|
},
|
|
7098
7133
|
sourceLocation: {
|
|
7099
7134
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7100
|
-
"line":
|
|
7135
|
+
"line": 647,
|
|
7101
7136
|
"column": 3
|
|
7102
7137
|
}
|
|
7103
7138
|
},
|
|
@@ -7133,7 +7168,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7133
7168
|
},
|
|
7134
7169
|
sourceLocation: {
|
|
7135
7170
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7136
|
-
"line":
|
|
7171
|
+
"line": 573,
|
|
7137
7172
|
"column": 3
|
|
7138
7173
|
}
|
|
7139
7174
|
},
|
|
@@ -7169,7 +7204,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7169
7204
|
},
|
|
7170
7205
|
sourceLocation: {
|
|
7171
7206
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7172
|
-
"line":
|
|
7207
|
+
"line": 783,
|
|
7173
7208
|
"column": 3
|
|
7174
7209
|
}
|
|
7175
7210
|
},
|
|
@@ -7205,7 +7240,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7205
7240
|
},
|
|
7206
7241
|
sourceLocation: {
|
|
7207
7242
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7208
|
-
"line":
|
|
7243
|
+
"line": 711,
|
|
7209
7244
|
"column": 3
|
|
7210
7245
|
}
|
|
7211
7246
|
},
|
|
@@ -7241,7 +7276,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7241
7276
|
},
|
|
7242
7277
|
sourceLocation: {
|
|
7243
7278
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7244
|
-
"line":
|
|
7279
|
+
"line": 844,
|
|
7245
7280
|
"column": 3
|
|
7246
7281
|
}
|
|
7247
7282
|
},
|
|
@@ -7277,7 +7312,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7277
7312
|
},
|
|
7278
7313
|
sourceLocation: {
|
|
7279
7314
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7280
|
-
"line":
|
|
7315
|
+
"line": 905,
|
|
7281
7316
|
"column": 3
|
|
7282
7317
|
}
|
|
7283
7318
|
},
|
|
@@ -7304,7 +7339,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7304
7339
|
},
|
|
7305
7340
|
sourceLocation: {
|
|
7306
7341
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7307
|
-
"line":
|
|
7342
|
+
"line": 460,
|
|
7308
7343
|
"column": 3
|
|
7309
7344
|
}
|
|
7310
7345
|
},
|
|
@@ -7340,7 +7375,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7340
7375
|
},
|
|
7341
7376
|
sourceLocation: {
|
|
7342
7377
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7343
|
-
"line":
|
|
7378
|
+
"line": 477,
|
|
7344
7379
|
"column": 9
|
|
7345
7380
|
}
|
|
7346
7381
|
},
|
|
@@ -7376,7 +7411,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7376
7411
|
},
|
|
7377
7412
|
sourceLocation: {
|
|
7378
7413
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7379
|
-
"line":
|
|
7414
|
+
"line": 612,
|
|
7380
7415
|
"column": 9
|
|
7381
7416
|
}
|
|
7382
7417
|
},
|
|
@@ -7412,7 +7447,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7412
7447
|
},
|
|
7413
7448
|
sourceLocation: {
|
|
7414
7449
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7415
|
-
"line":
|
|
7450
|
+
"line": 543,
|
|
7416
7451
|
"column": 9
|
|
7417
7452
|
}
|
|
7418
7453
|
},
|
|
@@ -7448,7 +7483,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7448
7483
|
},
|
|
7449
7484
|
sourceLocation: {
|
|
7450
7485
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7451
|
-
"line":
|
|
7486
|
+
"line": 743,
|
|
7452
7487
|
"column": 9
|
|
7453
7488
|
}
|
|
7454
7489
|
},
|
|
@@ -7484,7 +7519,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7484
7519
|
},
|
|
7485
7520
|
sourceLocation: {
|
|
7486
7521
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7487
|
-
"line":
|
|
7522
|
+
"line": 674,
|
|
7488
7523
|
"column": 9
|
|
7489
7524
|
}
|
|
7490
7525
|
},
|
|
@@ -7520,7 +7555,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7520
7555
|
},
|
|
7521
7556
|
sourceLocation: {
|
|
7522
7557
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7523
|
-
"line":
|
|
7558
|
+
"line": 814,
|
|
7524
7559
|
"column": 9
|
|
7525
7560
|
}
|
|
7526
7561
|
},
|
|
@@ -7556,7 +7591,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7556
7591
|
},
|
|
7557
7592
|
sourceLocation: {
|
|
7558
7593
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7559
|
-
"line":
|
|
7594
|
+
"line": 875,
|
|
7560
7595
|
"column": 9
|
|
7561
7596
|
}
|
|
7562
7597
|
},
|
|
@@ -7592,7 +7627,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7592
7627
|
},
|
|
7593
7628
|
sourceLocation: {
|
|
7594
7629
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7595
|
-
"line":
|
|
7630
|
+
"line": 958,
|
|
7596
7631
|
"column": 3
|
|
7597
7632
|
}
|
|
7598
7633
|
},
|
|
@@ -7628,7 +7663,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7628
7663
|
},
|
|
7629
7664
|
sourceLocation: {
|
|
7630
7665
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7631
|
-
"line":
|
|
7666
|
+
"line": 979,
|
|
7632
7667
|
"column": 3
|
|
7633
7668
|
}
|
|
7634
7669
|
},
|
|
@@ -7655,7 +7690,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7655
7690
|
},
|
|
7656
7691
|
sourceLocation: {
|
|
7657
7692
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7658
|
-
"line":
|
|
7693
|
+
"line": 699,
|
|
7659
7694
|
"column": 3
|
|
7660
7695
|
}
|
|
7661
7696
|
},
|
|
@@ -7682,7 +7717,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7682
7717
|
},
|
|
7683
7718
|
sourceLocation: {
|
|
7684
7719
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7685
|
-
"line":
|
|
7720
|
+
"line": 505,
|
|
7686
7721
|
"column": 9
|
|
7687
7722
|
}
|
|
7688
7723
|
},
|
|
@@ -7709,7 +7744,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7709
7744
|
},
|
|
7710
7745
|
sourceLocation: {
|
|
7711
7746
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7712
|
-
"line":
|
|
7747
|
+
"line": 640,
|
|
7713
7748
|
"column": 9
|
|
7714
7749
|
}
|
|
7715
7750
|
},
|
|
@@ -7736,7 +7771,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7736
7771
|
},
|
|
7737
7772
|
sourceLocation: {
|
|
7738
7773
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7739
|
-
"line":
|
|
7774
|
+
"line": 566,
|
|
7740
7775
|
"column": 9
|
|
7741
7776
|
}
|
|
7742
7777
|
},
|
|
@@ -7763,7 +7798,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7763
7798
|
},
|
|
7764
7799
|
sourceLocation: {
|
|
7765
7800
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7766
|
-
"line":
|
|
7801
|
+
"line": 802,
|
|
7767
7802
|
"column": 3
|
|
7768
7803
|
}
|
|
7769
7804
|
},
|
|
@@ -7790,7 +7825,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7790
7825
|
},
|
|
7791
7826
|
sourceLocation: {
|
|
7792
7827
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7793
|
-
"line":
|
|
7828
|
+
"line": 776,
|
|
7794
7829
|
"column": 9
|
|
7795
7830
|
}
|
|
7796
7831
|
},
|
|
@@ -7817,7 +7852,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7817
7852
|
},
|
|
7818
7853
|
sourceLocation: {
|
|
7819
7854
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7820
|
-
"line":
|
|
7855
|
+
"line": 704,
|
|
7821
7856
|
"column": 9
|
|
7822
7857
|
}
|
|
7823
7858
|
},
|
|
@@ -7844,7 +7879,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7844
7879
|
},
|
|
7845
7880
|
sourceLocation: {
|
|
7846
7881
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7847
|
-
"line":
|
|
7882
|
+
"line": 837,
|
|
7848
7883
|
"column": 9
|
|
7849
7884
|
}
|
|
7850
7885
|
},
|
|
@@ -7871,7 +7906,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7871
7906
|
},
|
|
7872
7907
|
sourceLocation: {
|
|
7873
7908
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7874
|
-
"line":
|
|
7909
|
+
"line": 898,
|
|
7875
7910
|
"column": 9
|
|
7876
7911
|
}
|
|
7877
7912
|
},
|
|
@@ -7898,7 +7933,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7898
7933
|
},
|
|
7899
7934
|
sourceLocation: {
|
|
7900
7935
|
"file": "packages/dsh-qa-integrations/src/index.ts",
|
|
7901
|
-
"line":
|
|
7936
|
+
"line": 863,
|
|
7902
7937
|
"column": 3
|
|
7903
7938
|
}
|
|
7904
7939
|
}
|
|
@@ -8991,12 +9026,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8991
9026
|
accept(await remote.getConfluence(token));
|
|
8992
9027
|
},
|
|
8993
9028
|
calls: {
|
|
8994
|
-
save: (token, credential, extra, options) =>
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9029
|
+
save: (token, credential, extra, options) => {
|
|
9030
|
+
const email = extra.email;
|
|
9031
|
+
return remote.putConfluenceCredential(token, {
|
|
9032
|
+
instanceId: extra.instanceId,
|
|
9033
|
+
...email.trim() === "" ? {} : { email },
|
|
9034
|
+
token: credential,
|
|
9035
|
+
...options.useServiceCredential ? { useServiceCredential: true } : {}
|
|
9036
|
+
});
|
|
9037
|
+
},
|
|
9000
9038
|
test: (token) => remote.testConfluence(token),
|
|
9001
9039
|
patch: (token, patch) => remote.patchConfluencePolicy(token, patch),
|
|
9002
9040
|
disconnect: (token) => remote.disconnectConfluence(token),
|
|
@@ -9022,6 +9060,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9022
9060
|
if (!(sites.length > 0)) return null;
|
|
9023
9061
|
const needsChoice = sites.length > 1;
|
|
9024
9062
|
const service = serviceConnectOption(state);
|
|
9063
|
+
const server = (instanceId === "" ? sites.length === 1 ? sites[0] : void 0 : sites.find((site) => site.id === instanceId))?.deploymentType === "server";
|
|
9025
9064
|
const sitePicker = needsChoice ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
9026
9065
|
className: "dsh-qa-integrations__field",
|
|
9027
9066
|
children: ["Сайт Confluence", /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
@@ -9041,10 +9080,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9041
9080
|
className: "dsh-qa-integrations__muted",
|
|
9042
9081
|
children: ["Сайт: ", sites[0]?.label ?? ""]
|
|
9043
9082
|
});
|
|
9083
|
+
const deployment = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
9084
|
+
className: "dsh-qa-integrations__muted",
|
|
9085
|
+
children: ["Развёртывание: ", server ? "Server / Data Center" : "Atlassian Cloud"]
|
|
9086
|
+
});
|
|
9044
9087
|
if (state.useService) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9045
9088
|
className: "dsh-qa-integrations__section",
|
|
9046
9089
|
children: [
|
|
9047
9090
|
sitePicker,
|
|
9091
|
+
deployment,
|
|
9048
9092
|
service,
|
|
9049
9093
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9050
9094
|
className: "dsh-qa-integrations__actions",
|
|
@@ -9069,7 +9113,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9069
9113
|
children: [
|
|
9070
9114
|
service,
|
|
9071
9115
|
sitePicker,
|
|
9072
|
-
|
|
9116
|
+
deployment,
|
|
9117
|
+
server ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
9073
9118
|
className: "dsh-qa-integrations__field",
|
|
9074
9119
|
children: ["Почта аккаунта Atlassian", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
9075
9120
|
className: "dsh-qa-integrations__input",
|
|
@@ -9083,27 +9128,27 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9083
9128
|
}),
|
|
9084
9129
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
9085
9130
|
className: "dsh-qa-integrations__field",
|
|
9086
|
-
children: ["Atlassian API token", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
9131
|
+
children: [server ? "Личный токен доступа (PAT)" : "Atlassian API token", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
9087
9132
|
className: "dsh-qa-integrations__input",
|
|
9088
9133
|
type: "password",
|
|
9089
9134
|
autoComplete: "new-password",
|
|
9090
9135
|
value: state.credential,
|
|
9091
9136
|
disabled: state.busy,
|
|
9092
9137
|
onChange: (event) => state.setCredential(event.currentTarget.value),
|
|
9093
|
-
placeholder: "ATATT…"
|
|
9138
|
+
placeholder: server ? "Вставьте личный токен доступа" : "ATATT…"
|
|
9094
9139
|
})]
|
|
9095
9140
|
}),
|
|
9096
9141
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialHelpNote, { help }),
|
|
9097
9142
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9098
9143
|
className: "dsh-qa-integrations__hint",
|
|
9099
|
-
children: "Почта и токен хранятся в зашифрованном виде и после сохранения больше не отображаются."
|
|
9144
|
+
children: server ? "Токен хранится в зашифрованном виде и после сохранения не отображается." : "Почта и токен хранятся в зашифрованном виде и после сохранения больше не отображаются."
|
|
9100
9145
|
}),
|
|
9101
9146
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9102
9147
|
className: "dsh-qa-integrations__actions",
|
|
9103
9148
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
9104
9149
|
className: "dsh-qa-integrations__button dsh-qa-integrations__button--primary",
|
|
9105
9150
|
type: "button",
|
|
9106
|
-
disabled: state.busy || state.credential.trim() === "" || email.trim() === "" || needsChoice && instanceId === "",
|
|
9151
|
+
disabled: state.busy || state.credential.trim() === "" || !server && email.trim() === "" || needsChoice && instanceId === "",
|
|
9107
9152
|
onClick: state.save,
|
|
9108
9153
|
children: "Сохранить и проверить"
|
|
9109
9154
|
}), state.connected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
@@ -9345,12 +9390,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9345
9390
|
accept(await remote.getJira(token));
|
|
9346
9391
|
},
|
|
9347
9392
|
calls: {
|
|
9348
|
-
save: (token, credential, extra, options) =>
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9393
|
+
save: (token, credential, extra, options) => {
|
|
9394
|
+
const email = extra.email;
|
|
9395
|
+
return remote.putJiraCredential(token, {
|
|
9396
|
+
siteId: extra.siteId,
|
|
9397
|
+
...email.trim() === "" ? {} : { email },
|
|
9398
|
+
token: credential,
|
|
9399
|
+
useServiceCredential: options.useServiceCredential || void 0
|
|
9400
|
+
});
|
|
9401
|
+
},
|
|
9354
9402
|
test: (token) => remote.testJira(token),
|
|
9355
9403
|
patch: (token, patch) => remote.patchJiraPolicy(token, patch),
|
|
9356
9404
|
disconnect: (token) => remote.disconnectJira(token),
|
|
@@ -9386,6 +9434,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9386
9434
|
if (!(sites.length > 0)) return null;
|
|
9387
9435
|
const needsChoice = sites.length > 1;
|
|
9388
9436
|
const service = serviceConnectOption(state);
|
|
9437
|
+
const server = (siteId === "" ? sites.length === 1 ? sites[0] : void 0 : sites.find((site) => site.id === siteId))?.deploymentType === "server";
|
|
9389
9438
|
const sitePicker = needsChoice ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
9390
9439
|
className: "dsh-qa-integrations__field",
|
|
9391
9440
|
children: ["Сайт Jira", /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
@@ -9409,10 +9458,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9409
9458
|
" — задан оператором стенда"
|
|
9410
9459
|
]
|
|
9411
9460
|
});
|
|
9461
|
+
const deployment = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
9462
|
+
className: "dsh-qa-integrations__muted",
|
|
9463
|
+
children: ["Развёртывание: ", server ? "Server / Data Center" : "Atlassian Cloud"]
|
|
9464
|
+
});
|
|
9412
9465
|
if (state.useService) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9413
9466
|
className: "dsh-qa-integrations__section",
|
|
9414
9467
|
children: [
|
|
9415
9468
|
sitePicker,
|
|
9469
|
+
deployment,
|
|
9416
9470
|
service,
|
|
9417
9471
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9418
9472
|
className: "dsh-qa-integrations__actions",
|
|
@@ -9437,7 +9491,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9437
9491
|
children: [
|
|
9438
9492
|
service,
|
|
9439
9493
|
sitePicker,
|
|
9440
|
-
|
|
9494
|
+
deployment,
|
|
9495
|
+
server ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
9441
9496
|
className: "dsh-qa-integrations__field",
|
|
9442
9497
|
children: ["Аккаунт Atlassian (e-mail)", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
9443
9498
|
className: "dsh-qa-integrations__input",
|
|
@@ -9451,27 +9506,27 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9451
9506
|
}),
|
|
9452
9507
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
9453
9508
|
className: "dsh-qa-integrations__field",
|
|
9454
|
-
children: ["API-токен Jira", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
9509
|
+
children: [server ? "Личный токен доступа (PAT)" : "API-токен Jira", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
9455
9510
|
className: "dsh-qa-integrations__input",
|
|
9456
9511
|
type: "password",
|
|
9457
9512
|
autoComplete: "new-password",
|
|
9458
9513
|
value: state.credential,
|
|
9459
9514
|
disabled: state.busy,
|
|
9460
9515
|
onChange: (event) => state.setCredential(event.currentTarget.value),
|
|
9461
|
-
placeholder: "ATATT…"
|
|
9516
|
+
placeholder: server ? "Вставьте личный токен доступа" : "ATATT…"
|
|
9462
9517
|
})]
|
|
9463
9518
|
}),
|
|
9464
9519
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialHelpNote, { help }),
|
|
9465
9520
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
9466
9521
|
className: "dsh-qa-integrations__hint",
|
|
9467
|
-
children: "Токен и e-mail хранятся в зашифрованном виде и после сохранения не отображаются."
|
|
9522
|
+
children: server ? "Токен хранится в зашифрованном виде и после сохранения не отображается." : "Токен и e-mail хранятся в зашифрованном виде и после сохранения не отображаются."
|
|
9468
9523
|
}),
|
|
9469
9524
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9470
9525
|
className: "dsh-qa-integrations__actions",
|
|
9471
9526
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
9472
9527
|
className: "dsh-qa-integrations__button dsh-qa-integrations__button--primary",
|
|
9473
9528
|
type: "button",
|
|
9474
|
-
disabled: state.busy || state.credential.trim() === "" || email.trim() === "" || needsChoice && siteId === "",
|
|
9529
|
+
disabled: state.busy || state.credential.trim() === "" || !server && email.trim() === "" || needsChoice && siteId === "",
|
|
9475
9530
|
onClick: state.save,
|
|
9476
9531
|
children: "Сохранить и проверить"
|
|
9477
9532
|
}), state.connected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|