Skip to content

Commit f4661b4

Browse files
Updated entities based on latest GraphQL schema (2023-07-22)
1 parent be507af commit f4661b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+533
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ It abstracts away the complex task of managing low-level details such as sending
1010

1111
For a general introduction to the GraphQL query language please see [graphql.org](https://graphql.org/), and for a 4me specific introduction see [4me GraphQL Training](https://learning.4me.com/integrations_graphql/).
1212

13+
The data entities in the SDK are modeled after the 4me Quality Assurance GraphQL schema, which may include objects or properties that are not yet available in production.
14+
1315
## Client
1416
The `Sdk4meClient` class provides access to all the necessary methods for querying and modifying data. With the `Get` and `Mutation` methods, there are four properties that allow for default behavior customization.
1517
- The `EnumeratorTolerantSerializer` property, when set to true, allows for ignoring unmappable enumerator values and instead returns null or a default value.

Scr/Sdk4me.GraphQL/Entities/AgileBoardCreateInput.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class AgileBoardCreateInput : PropertyChangeSet
99
private string? sourceID;
1010
private string? pictureUri;
1111
private string? description;
12+
private List<AttachmentInput>? descriptionAttachments;
1213
private bool? disabled;
1314
private string? name;
1415
private string? managerId;
@@ -55,6 +56,16 @@ public string? Description
5556
set => description = Set("description", value);
5657
}
5758

59+
/// <summary>
60+
/// The attachments used in the <c>description</c> field.
61+
/// </summary>
62+
[JsonProperty("descriptionAttachments")]
63+
public List<AttachmentInput>? DescriptionAttachments
64+
{
65+
get => descriptionAttachments;
66+
set => descriptionAttachments = Set("descriptionAttachments", value);
67+
}
68+
5869
/// <summary>
5970
/// Whether the board may not be used to place items on.
6071
/// </summary>

Scr/Sdk4me.GraphQL/Entities/AgileBoardUpdateInput.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class AgileBoardUpdateInput : PropertyChangeSet
99
private string? sourceID;
1010
private string? pictureUri;
1111
private string? description;
12+
private List<AttachmentInput>? descriptionAttachments;
1213
private bool? disabled;
1314
private string? name;
1415
private string? managerId;
@@ -57,6 +58,16 @@ public string? Description
5758
set => description = Set("description", value);
5859
}
5960

61+
/// <summary>
62+
/// The attachments used in the <c>description</c> field.
63+
/// </summary>
64+
[JsonProperty("descriptionAttachments")]
65+
public List<AttachmentInput>? DescriptionAttachments
66+
{
67+
get => descriptionAttachments;
68+
set => descriptionAttachments = Set("descriptionAttachments", value);
69+
}
70+
6071
/// <summary>
6172
/// Whether the board may not be used to place items on.
6273
/// </summary>

Scr/Sdk4me.GraphQL/Entities/AppOfferingCreateInput.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public class AppOfferingCreateInput : PropertyChangeSet
1010
private string? uiExtensionId;
1111
private string? compliance;
1212
private string? description;
13+
private List<AttachmentInput>? descriptionAttachments;
1314
private bool? disabled;
1415
private string? features;
1516
private string? name;
@@ -74,6 +75,16 @@ public string? Description
7475
set => description = Set("description", value);
7576
}
7677

78+
/// <summary>
79+
/// The attachments used in the <c>description</c> field.
80+
/// </summary>
81+
[JsonProperty("descriptionAttachments")]
82+
public List<AttachmentInput>? DescriptionAttachments
83+
{
84+
get => descriptionAttachments;
85+
set => descriptionAttachments = Set("descriptionAttachments", value);
86+
}
87+
7788
/// <summary>
7889
/// Whether the app offering may not be used for new instances.
7990
/// </summary>

Scr/Sdk4me.GraphQL/Entities/AppOfferingUpdateInput.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public class AppOfferingUpdateInput : PropertyChangeSet
1010
private string? uiExtensionId;
1111
private string? compliance;
1212
private string? description;
13+
private List<AttachmentInput>? descriptionAttachments;
1314
private bool? disabled;
1415
private string? features;
1516
private string? name;
@@ -76,6 +77,16 @@ public string? Description
7677
set => description = Set("description", value);
7778
}
7879

80+
/// <summary>
81+
/// The attachments used in the <c>description</c> field.
82+
/// </summary>
83+
[JsonProperty("descriptionAttachments")]
84+
public List<AttachmentInput>? DescriptionAttachments
85+
{
86+
get => descriptionAttachments;
87+
set => descriptionAttachments = Set("descriptionAttachments", value);
88+
}
89+
7990
/// <summary>
8091
/// Whether the app offering may not be used for new instances.
8192
/// </summary>

Scr/Sdk4me.GraphQL/Entities/ConfigurationItemCreateInput.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class ConfigurationItemCreateInput : PropertyChangeSet
2929
private string? purchaseValueCurrency;
3030
private RecurrenceInput? recurrence;
3131
private string? remarks;
32+
private List<AttachmentInput>? remarksAttachments;
3233
private ProductCategoryRuleSet? ruleSet;
3334
private string? serialNr;
3435
private string? serviceId;
@@ -288,6 +289,16 @@ public string? Remarks
288289
set => remarks = Set("remarks", value);
289290
}
290291

292+
/// <summary>
293+
/// The attachments used in the <c>remarks</c> field.
294+
/// </summary>
295+
[JsonProperty("remarksAttachments")]
296+
public List<AttachmentInput>? RemarksAttachments
297+
{
298+
get => remarksAttachments;
299+
set => remarksAttachments = Set("remarksAttachments", value);
300+
}
301+
291302
/// <summary>
292303
/// The Rule set field is automatically set to the rule set of product category, except when the CI is a license certificate, in which case the rule set is <c>license_certificate</c>.
293304
/// </summary>

Scr/Sdk4me.GraphQL/Entities/ConfigurationItemUpdateInput.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class ConfigurationItemUpdateInput : PropertyChangeSet
2929
private string? purchaseValueCurrency;
3030
private RecurrenceInput? recurrence;
3131
private string? remarks;
32+
private List<AttachmentInput>? remarksAttachments;
3233
private ProductCategoryRuleSet? ruleSet;
3334
private string? serialNr;
3435
private string? serviceId;
@@ -290,6 +291,16 @@ public string? Remarks
290291
set => remarks = Set("remarks", value);
291292
}
292293

294+
/// <summary>
295+
/// The attachments used in the <c>remarks</c> field.
296+
/// </summary>
297+
[JsonProperty("remarksAttachments")]
298+
public List<AttachmentInput>? RemarksAttachments
299+
{
300+
get => remarksAttachments;
301+
set => remarksAttachments = Set("remarksAttachments", value);
302+
}
303+
293304
/// <summary>
294305
/// The Rule set field is automatically set to the rule set of product category, except when the CI is a license certificate, in which case the rule set is <c>license_certificate</c>.
295306
/// </summary>

Scr/Sdk4me.GraphQL/Entities/ContractCreateInput.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class ContractCreateInput : PropertyChangeSet
1717
private string? name;
1818
private DateOnly? noticeDate;
1919
private string? remarks;
20+
private List<AttachmentInput>? remarksAttachments;
2021
private DateOnly? startDate;
2122
private AgreementStatus? status;
2223
private string? supplierId;
@@ -155,6 +156,16 @@ public string? Remarks
155156
set => remarks = Set("remarks", value);
156157
}
157158

159+
/// <summary>
160+
/// The attachments used in the <c>remarks</c> field.
161+
/// </summary>
162+
[JsonProperty("remarksAttachments")]
163+
public List<AttachmentInput>? RemarksAttachments
164+
{
165+
get => remarksAttachments;
166+
set => remarksAttachments = Set("remarksAttachments", value);
167+
}
168+
158169
/// <summary>
159170
/// The first day during which the contract is active.
160171
/// </summary>

Scr/Sdk4me.GraphQL/Entities/ContractUpdateInput.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class ContractUpdateInput : PropertyChangeSet
1717
private string? name;
1818
private DateOnly? noticeDate;
1919
private string? remarks;
20+
private List<AttachmentInput>? remarksAttachments;
2021
private DateOnly? startDate;
2122
private AgreementStatus? status;
2223
private string? supplierId;
@@ -156,6 +157,16 @@ public string? Remarks
156157
set => remarks = Set("remarks", value);
157158
}
158159

160+
/// <summary>
161+
/// The attachments used in the <c>remarks</c> field.
162+
/// </summary>
163+
[JsonProperty("remarksAttachments")]
164+
public List<AttachmentInput>? RemarksAttachments
165+
{
166+
get => remarksAttachments;
167+
set => remarksAttachments = Set("remarksAttachments", value);
168+
}
169+
159170
/// <summary>
160171
/// The first day during which the contract is active.
161172
/// </summary>

Scr/Sdk4me.GraphQL/Entities/CustomCollectionCreateInput.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class CustomCollectionCreateInput : PropertyChangeSet
99
private string? sourceID;
1010
private string? uiExtensionId;
1111
private string? description;
12+
private List<AttachmentInput>? descriptionAttachments;
1213
private bool? disabled;
1314
private string? name;
1415
private string? reference;
@@ -55,6 +56,16 @@ public string? Description
5556
set => description = Set("description", value);
5657
}
5758

59+
/// <summary>
60+
/// The attachments used in the <c>description</c> field.
61+
/// </summary>
62+
[JsonProperty("descriptionAttachments")]
63+
public List<AttachmentInput>? DescriptionAttachments
64+
{
65+
get => descriptionAttachments;
66+
set => descriptionAttachments = Set("descriptionAttachments", value);
67+
}
68+
5869
/// <summary>
5970
/// Whether the collection may not be used for new custom views.
6071
/// </summary>

0 commit comments

Comments
 (0)