From a8fb1089d985c6a30d9a37c13056638fd5386762 Mon Sep 17 00:00:00 2001 From: preslavmihaylov Date: Fri, 26 Apr 2024 17:13:35 +0300 Subject: [PATCH 1/2] regenerate gql types after schema change for addMembersToTiers and removeMembersFromTier --- src/graphql/types.ts | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/src/graphql/types.ts b/src/graphql/types.ts index 2a68007..f6541f5 100644 --- a/src/graphql/types.ts +++ b/src/graphql/types.ts @@ -61,7 +61,7 @@ export type AddLabelsOutput = { export type AddMembersToTierInput = { memberIdentifiers: Array; - tierId: Scalars['ID']; + tierIdentifier: TierIdentifierInput; }; export type AddMembersToTierOutput = { @@ -1933,6 +1933,10 @@ export type ForkThreadOutput = { thread: Maybe; }; +export type IntArrayInput = { + value: Array; +}; + export type IntInput = { value: Scalars['Int']; }; @@ -2236,6 +2240,7 @@ export type Mutation = { updateCustomerGroup: UpdateCustomerGroupOutput; updateLabelType: UpdateLabelTypeOutput; updateMachineUser: UpdateMachineUserOutput; + updateServiceLevelAgreement: UpdateServiceLevelAgreementOutput; /** Updates a setting. */ updateSetting: UpdateSettingOutput; updateSnippet: UpdateSnippetOutput; @@ -2718,6 +2723,11 @@ export type MutationUpdateMachineUserArgs = { }; +export type MutationUpdateServiceLevelAgreementArgs = { + input: UpdateServiceLevelAgreementInput; +}; + + export type MutationUpdateSettingArgs = { input: UpdateSettingInput; }; @@ -3452,7 +3462,6 @@ export type RemoveLabelsOutput = { export type RemoveMembersFromTierInput = { memberIdentifiers: Array; - tierId?: InputMaybe; }; export type RemoveMembersFromTierOutput = { @@ -4756,6 +4765,25 @@ export type UpdateMachineUserOutput = { machineUser: Maybe; }; +export type UpdateServiceLevelAgreementInput = { + /** The actions to take when the SLA is about to breach and when it breaches. */ + breachActions?: InputMaybe>; + /** This SLA will breach if it does not receive a first response within this many minutes. */ + firstResponseTimeMinutes?: InputMaybe; + /** The ID of the SLA to update. */ + serviceLevelAgreementId: Scalars['ID']; + /** This SLA can only be applied to a thread if it has one of these priority values. If not provided, it defaults to all priorities (0, 1, 2 and 3). */ + threadPriorityFilter?: InputMaybe; + /** If true, the SLA will only be tracked during your workspace's business hours. If false, the SLA will tracked 24/7. */ + useBusinessHoursOnly?: InputMaybe; +}; + +export type UpdateServiceLevelAgreementOutput = { + __typename?: 'UpdateServiceLevelAgreementOutput'; + error: Maybe; + serviceLevelAgreement: Maybe; +}; + /** An input provided to the `updateSetting` mutation. */ export type UpdateSettingInput = { /** A code for the setting. */ From 8e4d2307a7f6430d70c850aa136bd0d7454eb9fd Mon Sep 17 00:00:00 2001 From: preslavmihaylov Date: Fri, 26 Apr 2024 17:19:21 +0300 Subject: [PATCH 2/2] add changeset --- .changeset/tidy-birds-beam.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/tidy-birds-beam.md diff --git a/.changeset/tidy-birds-beam.md b/.changeset/tidy-birds-beam.md new file mode 100644 index 0000000..1671671 --- /dev/null +++ b/.changeset/tidy-birds-beam.md @@ -0,0 +1,5 @@ +--- +'@team-plain/typescript-sdk': patch +--- + +Update schema for tier membership endpoints