Skip to content

Commit 66a3cf7

Browse files
committed
Merge branch 'master' into added-maestro-examples
2 parents 75d7048 + 69a774f commit 66a3cf7

File tree

16 files changed

+22
-110
lines changed

16 files changed

+22
-110
lines changed

ExamplesAPIType.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ public enum ExamplesApiType
6161
/// </summary>")]
6262
[Description("nav")]
6363
Navigator = 8,
64-
65-
/// <summary>
66-
/// Maestro
67-
/// </summary>")]
68-
[Description("mae")]
69-
Maestro = 9,
7064
}
7165

7266
public static class ExamplesApiTypeExtensions

ExamplesApiTypeExtensions.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,23 @@ public enum ExamplesApiType
5050
[Description("web")]
5151
WebForms = 6,
5252

53-
/// <summary>
54-
/// Maestro API
55-
/// </summary>
56-
[Description("mae")]
57-
Maestro = 7,
58-
5953
/// <summary>
6054
/// Notary API
6155
/// </summary>
6256
[Description("neg")]
63-
Notary = 8,
57+
Notary = 7,
6458

6559
/// <summary>
6660
/// Connected Fields
6761
/// </summary>")]
6862
[Description("cf")]
69-
ConnectedFields = 9,
63+
ConnectedFields = 8,
7064

7165
/// <summary>
7266
/// Navigator
7367
/// </summary>")]
7468
[Description("nav")]
75-
Navigator = 10,
69+
Navigator = 9,
7670
}
7771

7872
public static class ExamplesApiTypeExtensions

JWTAuth.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ public static OAuthToken AuthenticateWithJwt(string api, string clientId, string
5050
});
5151
}
5252

53-
if (apiType == ExamplesApiType.Maestro)
54-
{
55-
scopes.AddRange(new List<string>
56-
{
57-
"aow_manage",
58-
});
59-
}
60-
6153
if (apiType == ExamplesApiType.Monitor)
6254
{
6355
scopes.AddRange(new List<string>

launcher-csharp/Common/RequestItemsService.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,6 @@ public string IdentifyApiOfCodeExample(string eg)
289289
{
290290
currentApiType = ExamplesApiType.Connect.ToString();
291291
}
292-
else if (eg.Contains(ExamplesApiType.Maestro.ToKeywordString()))
293-
{
294-
currentApiType = ExamplesApiType.Maestro.ToString();
295-
}
296292
else if (eg.Contains(ExamplesApiType.WebForms.ToKeywordString()))
297293
{
298294
currentApiType = ExamplesApiType.WebForms.ToString();

launcher-csharp/ConnectedFields/Controllers/Eg001SetConnectedFieldsController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public override IActionResult Get()
3838
string accessToken = this.RequestItemsService.User.AccessToken;
3939
string accountId = this.RequestItemsService.Session.AccountId;
4040
var basePath = this.RequestItemsService.Session.IamBasePath;
41-
4241
var connectedFields = SetConnectedFields.GetConnectedFieldsTabGroupsAsync(
4342
basePath,
4443
accountId,

launcher-csharp/ConnectedFields/Examples/SetConnectedFields.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ public static class SetConnectedFields
1818
{
1919
public static async Task<List<TabInfo>> GetConnectedFieldsTabGroupsAsync(string basePath, string accountId, string accessToken)
2020
{
21+
//ds-snippet-start:ConnectedFields1Step3
2122
var client = CreateAuthenticatedClient(basePath, accessToken);
2223
return await client.ConnectedFields.TabInfo.GetConnectedFieldsTabGroupsAsync(accountId);
24+
//ds-snippet-end:ConnectedFields1Step3
2325
}
2426

27+
//ds-snippet-start:ConnectedFields1Step4
2528
public static List<TabInfo> FilterData(List<TabInfo> connectedFields)
2629
{
2730
return connectedFields
@@ -31,6 +34,8 @@ public static List<TabInfo> FilterData(List<TabInfo> connectedFields)
3134
.ToList();
3235
}
3336

37+
//ds-snippet-end:ConnectedFields1Step4
38+
3439
public static string SendEnvelopeViaEmail(
3540
string basePath,
3641
string accessToken,
@@ -163,7 +168,9 @@ public static EnvelopeDefinition MakeEnvelope(
163168

164169
//ds-snippet-end:ConnectedFields1Step5
165170

171+
//ds-snippet-start:ConnectedFields1Step2
166172
private static IamClient CreateAuthenticatedClient(string basePath, string accessToken) =>
167173
IamClient.Builder().WithServerUrl(basePath).WithAccessToken(accessToken).Build();
174+
//ds-snippet-end:ConnectedFields1Step2
168175
}
169176
}

launcher-csharp/ConnectedFields/Views/Eg001SetConnectedFields/cf001.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<p>
2222
@Html.Raw(@String.Format(ViewBag.SupportingTexts.ViewSourceFile, "<a target='_blank' href=" + @ViewBag.source +
23-
">SendWithThirdPartyNotary.cs</a>"))
23+
">SetConnectedFields.cs</a>"))
2424
</p>
2525

2626
<form class="eg" action="" method="post" data-busy="form">

launcher-csharp/Maestro/Views/Mae001TriggerWorkflow/embed.cshtml

Lines changed: 0 additions & 9 deletions
This file was deleted.

launcher-csharp/Maestro/Views/Mae001TriggerWorkflow/mae001.cshtml

Lines changed: 0 additions & 60 deletions
This file was deleted.

launcher-csharp/Navigator/Examples/NavigatorMethods.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public static class NavigatorMethods
1515
/// Lists all agreements for the specified account using the IAM client.
1616
/// </summary>
1717
/// <returns>AgreementsResponse</returns>
18+
//ds-snippet-start:Navigator1Step3
1819
public static async Task<AgreementsResponse> ListAgreementsWithIamClient(
1920
string basePath, string accessToken, string accountId)
2021
{
@@ -25,26 +26,34 @@ public static async Task<AgreementsResponse> ListAgreementsWithIamClient(
2526
});
2627
}
2728

29+
//ds-snippet-end:Navigator1Step3
30+
2831
/// <summary>
2932
/// Retrieves a specific agreement by its ID using the IAM client.
3033
/// </summary>
3134
/// <returns>Agreement</returns>
35+
//ds-snippet-start:Navigator2Step3
3236
public static async Task<Agreement> GetAgreementWithIamClient(
3337
string basePath, string accessToken, string accountId, string agreementId)
3438
{
3539
var client = CreateAuthenticatedClient(basePath, accessToken);
3640
return await client.Navigator.Agreements.GetAgreementAsync(accountId, agreementId);
3741
}
3842

43+
//ds-snippet-end:Navigator2Step3
44+
3945
/// <summary>
4046
/// Creates an authenticated IAM client.
4147
/// </summary>
48+
//ds-snippet-start:NavigatorCsharpStep2
4249
private static IamClient CreateAuthenticatedClient(string basePath, string accessToken)
4350
{
4451
return IamClient.Builder()
4552
.WithServerUrl(basePath)
4653
.WithAccessToken(accessToken)
4754
.Build();
4855
}
56+
57+
//ds-snippet-end:NavigatorCsharpStep2
4958
}
5059
}

0 commit comments

Comments
 (0)