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 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. */