diff --git a/.changeset/thin-brooms-move.md b/.changeset/thin-brooms-move.md new file mode 100644 index 0000000..17f5395 --- /dev/null +++ b/.changeset/thin-brooms-move.md @@ -0,0 +1,5 @@ +--- +'@team-plain/typescript-sdk': minor +--- + +Add `createNote` method to the SDK diff --git a/src/client.ts b/src/client.ts index b9898b0..6dc94cf 100644 --- a/src/client.ts +++ b/src/client.ts @@ -12,6 +12,7 @@ import { CreateAttachmentUploadUrlDocument, CreateCustomerCardConfigDocument, CreateCustomerEventDocument, + CreateNoteDocument, CreateThreadDocument, CreateThreadEventDocument, CreateWebhookTargetDocument, @@ -36,6 +37,7 @@ import { MarkThreadAsDoneDocument, MarkThreadAsTodoDocument, MyWorkspaceDocument, + type NotePartsFragment, type PageInfo, type PageInfoPartsFragment, RemoveCustomerFromCustomerGroupsDocument, @@ -805,4 +807,16 @@ export class PlainClient { return q.webhookTarget; }); } + + /** Create a note on a thread */ + async createNote( + input: VariablesOf['input'] + ): SDKResult { + const res = await request(this.#ctx, { + query: CreateNoteDocument, + variables: { input }, + }); + + return unwrapData(res, (d) => nonNullable(d.createNote.note)); + } } diff --git a/src/graphql/fragments/noteParts.gql b/src/graphql/fragments/noteParts.gql new file mode 100644 index 0000000..10df757 --- /dev/null +++ b/src/graphql/fragments/noteParts.gql @@ -0,0 +1,6 @@ +fragment NoteParts on Note { + __typename + id + markdown + text +} diff --git a/src/graphql/mutations/createNote.gql b/src/graphql/mutations/createNote.gql new file mode 100644 index 0000000..92f0224 --- /dev/null +++ b/src/graphql/mutations/createNote.gql @@ -0,0 +1,10 @@ +mutation createNote($input: CreateNoteInput!) { + createNote(input: $input) { + note { + ...NoteParts + } + error { + ...MutationErrorParts + } + } +} diff --git a/src/graphql/types.ts b/src/graphql/types.ts index f77fff8..7a30555 100644 --- a/src/graphql/types.ts +++ b/src/graphql/types.ts @@ -12,7 +12,6 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; - DateTimeISO: any; }; export type AcceptWorkspaceInviteInput = { @@ -164,6 +163,21 @@ export type Autoresponder = { updatedBy: InternalActor; }; +export type BeforeBreachAction = { + __typename?: 'BeforeBreachAction'; + alertIntegrationId: Scalars['ID']; + beforeBreachMinutes: Scalars['Int']; + createdAt: DateTime; + createdBy: InternalActor; + updatedAt: DateTime; + updatedBy: InternalActor; +}; + +export type BeforeBreachActionInput = { + alertIntegrationId: Scalars['ID']; + beforeBreachMinutes: Scalars['Int']; +}; + export type BooleanInput = { value: Scalars['Boolean']; }; @@ -179,6 +193,61 @@ export type BooleanSetting = { scope: SettingScope; }; +export type BreachAction = BeforeBreachAction | OnBreachAction; + +export type BreachActionInput = { + beforeBreachAction?: InputMaybe; + onBreachAction?: InputMaybe; +}; + +/** + * Represents the times in which you are open for business during a week. If a day is null, it means that day you are not + * open for business. + */ +export type BusinessHours = { + __typename?: 'BusinessHours'; + createdAt: DateTime; + createdBy: InternalActor; + updatedAt: DateTime; + updatedBy: InternalActor; + weekDays: BusinessHoursWeekDays; +}; + +export type BusinessHoursWeekDay = { + __typename?: 'BusinessHoursWeekDay'; + endTime: Time; + startTime: Time; +}; + +export type BusinessHoursWeekDayInput = { + /** The time you close for business on this day as an UTC ISO time. For example: 17:00Z . */ + endTime: Scalars['String']; + /** The time you open for business on this day as an UTC ISO time. For example: 09:00Z . */ + startTime: Scalars['String']; +}; + +export type BusinessHoursWeekDays = { + __typename?: 'BusinessHoursWeekDays'; + friday: Maybe; + monday: Maybe; + saturday: Maybe; + sunday: Maybe; + thursday: Maybe; + tuesday: Maybe; + wednesday: Maybe; +}; + +/** Represents the times in which you are open for business during a week. Only provide the days you are open for business. */ +export type BusinessHoursWeekDaysInput = { + friday?: InputMaybe; + monday?: InputMaybe; + saturday?: InputMaybe; + sunday?: InputMaybe; + thursday?: InputMaybe; + tuesday?: InputMaybe; + wednesday?: InputMaybe; +}; + export type ChangeThreadPriorityInput = { priority: Scalars['Int']; threadId: Scalars['ID']; @@ -266,7 +335,7 @@ export type CompanyEdge = { node: Company; }; -export type CompanyIdentifier = { +export type CompanyIdentifierInput = { /** The domain name of the company (e.g. plain.com). Alternatively, you can provide a full URL (e.g. https://www.plain.com) and we will do our best to extract the domain name. */ companyDomainName?: InputMaybe; /** Plain's internal identifier for the company. */ @@ -290,6 +359,26 @@ export type CompanySearchResultEdge = { node: CompanySearchResult; }; +export type CompanyTierMembership = { + __typename?: 'CompanyTierMembership'; + companyId: Scalars['ID']; + createdAt: DateTime; + createdBy: InternalActor; + id: Scalars['ID']; + updatedAt: DateTime; + updatedBy: InternalActor; +}; + +export type CompleteServiceAuthorizationInput = { + serviceAuthorizationId: Scalars['ID']; +}; + +export type CompleteServiceAuthorizationOutput = { + __typename?: 'CompleteServiceAuthorizationOutput'; + error: Maybe; + serviceAuthorization: Maybe; +}; + export type ComponentBadge = { __typename?: 'ComponentBadge'; badgeColor: Maybe; @@ -539,6 +628,23 @@ export type CreateAttachmentUploadUrlOutput = { error: Maybe; }; +export type CreateCustomFieldSchemaInput = { + dependsOnCustomField?: InputMaybe; + description: Scalars['String']; + enumValues: Array; + isRequired: Scalars['Boolean']; + key: Scalars['String']; + label: Scalars['String']; + order: Scalars['Int']; + type: CustomFieldSchemaType; +}; + +export type CreateCustomFieldSchemaOutput = { + __typename?: 'CreateCustomFieldSchemaOutput'; + customFieldSchema: Maybe; + error: Maybe; +}; + /** * Input type to create a new customer card config. * @@ -663,6 +769,17 @@ export type CreateNoteOutput = { note: Maybe; }; +export type CreateServiceLevelAgreementInput = { + serviceLevelAgreement: ServiceLevelAgreementInput; + tierId: Scalars['ID']; +}; + +export type CreateServiceLevelAgreementOutput = { + __typename?: 'CreateServiceLevelAgreementOutput'; + error: Maybe; + serviceLevelAgreement: Maybe; +}; + export type CreateSnippetInput = { markdown?: InputMaybe; name: Scalars['String']; @@ -718,6 +835,8 @@ export type CreateThreadInput = { labelTypeIds?: InputMaybe>; /** The priority of the thread. Valid values are 0, 1, 2, 3, from most to least urgent, defaults to 2 (normal). */ priority?: InputMaybe; + /** A thread may be assigned to a specific tenant. */ + tenantIdentifier?: InputMaybe; /** The title of the thread. */ title: Scalars['String']; }; @@ -739,6 +858,21 @@ export type CreateThreadOutput = { thread: Maybe; }; +export type CreateTierInput = { + color: Scalars['String']; + defaultPriority?: InputMaybe; + externalId: Scalars['String']; + memberIdentifiers: Array; + name: Scalars['String']; + serviceLevelAgreement?: InputMaybe; +}; + +export type CreateTierOutput = { + __typename?: 'CreateTierOutput'; + error: Maybe; + tier: Maybe; +}; + export type CreateUserAccountInput = { fullName: Scalars['String']; publicName: Scalars['String']; @@ -837,6 +971,78 @@ export type CustomEntry = { type: Maybe; }; +export type CustomField = { + __typename?: 'CustomField'; + booleanValue: Maybe; + createdAt: DateTime; + createdBy: InternalActor; + id: Scalars['ID']; + key: Scalars['String']; + stringValue: Maybe; + threadId: Scalars['ID']; + type: CustomFieldSchemaType; + updatedAt: DateTime; + updatedBy: InternalActor; +}; + +export type CustomFieldConnection = { + __typename?: 'CustomFieldConnection'; + edges: Array; + pageInfo: PageInfo; +}; + +export type CustomFieldEdge = { + __typename?: 'CustomFieldEdge'; + cursor: Scalars['String']; + node: CustomField; +}; + +export type CustomFieldSchema = { + __typename?: 'CustomFieldSchema'; + createdAt: DateTime; + createdBy: InternalActor; + dependsOnCustomField: Maybe; + description: Scalars['String']; + enumValues: Array; + id: Scalars['ID']; + isRequired: Scalars['Boolean']; + key: Scalars['String']; + label: Scalars['String']; + order: Scalars['Int']; + type: CustomFieldSchemaType; + updatedAt: DateTime; + updatedBy: InternalActor; +}; + +export type CustomFieldSchemaChange = { + __typename?: 'CustomFieldSchemaChange'; + changeType: ChangeType; + customFieldSchema: CustomFieldSchema; +}; + +export type CustomFieldSchemaConnection = { + __typename?: 'CustomFieldSchemaConnection'; + edges: Array; + pageInfo: PageInfo; +}; + +export type CustomFieldSchemaEdge = { + __typename?: 'CustomFieldSchemaEdge'; + cursor: Scalars['String']; + node: CustomFieldSchema; +}; + +export type CustomFieldSchemaOrderInput = { + customFieldSchemaId: Scalars['ID']; + order: Scalars['Int']; +}; + +export enum CustomFieldSchemaType { + Bool = 'BOOL', + Enum = 'ENUM', + String = 'STRING' +} + export type CustomTimelineEntryComponent = ComponentBadge | ComponentContainer | ComponentCopyButton | ComponentDivider | ComponentLinkButton | ComponentPlainText | ComponentRow | ComponentSpacer | ComponentText; /** @@ -877,6 +1083,8 @@ export type Customer = { status: Maybe; /** @deprecated Use Thread.statusChangedAt instead */ statusChangedAt: Maybe; + /** A subquery to fetch the customer's tenants. */ + tenantMemberships: CustomerTenantMembershipConnection; updatedAt: DateTime; updatedBy: Actor; }; @@ -896,6 +1104,20 @@ export type CustomerCustomerGroupMembershipsArgs = { last?: InputMaybe; }; + +/** + * The core customer entity. A customer only exists (ideally) once. + * Uniqueness is guaranteed on both of these fields: + * 1. `externalId` if provided + * 2. `email` + */ +export type CustomerTenantMembershipsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + export type CustomerActor = { __typename?: 'CustomerActor'; customer: Customer; @@ -1264,6 +1486,27 @@ export enum CustomerStatus { Snoozed = 'SNOOZED' } +export type CustomerTenantMembership = { + __typename?: 'CustomerTenantMembership'; + createdAt: DateTime; + createdBy: InternalActor; + tenant: Tenant; + updatedAt: DateTime; + updatedBy: InternalActor; +}; + +export type CustomerTenantMembershipConnection = { + __typename?: 'CustomerTenantMembershipConnection'; + edges: Array; + pageInfo: PageInfo; +}; + +export type CustomerTenantMembershipEdge = { + __typename?: 'CustomerTenantMembershipEdge'; + cursor: Scalars['String']; + node: CustomerTenantMembership; +}; + export type CustomersFilter = { /** * Filters customers to those with at least one of the given customer group IDs. @@ -1314,6 +1557,29 @@ export type DeleteApiKeyOutput = { error: Maybe; }; +export type DeleteBusinessHoursOutput = { + __typename?: 'DeleteBusinessHoursOutput'; + error: Maybe; +}; + +export type DeleteCustomFieldInput = { + customFieldId: Scalars['ID']; +}; + +export type DeleteCustomFieldOutput = { + __typename?: 'DeleteCustomFieldOutput'; + error: Maybe; +}; + +export type DeleteCustomFieldSchemaInput = { + customFieldSchemaId: Scalars['ID']; +}; + +export type DeleteCustomFieldSchemaOutput = { + __typename?: 'DeleteCustomFieldSchemaOutput'; + error: Maybe; +}; + export type DeleteCustomerCardConfigInput = { /** The customer card config ID to delete. */ customerCardConfigId: Scalars['ID']; @@ -1372,6 +1638,25 @@ export type DeleteNoteOutput = { note: Maybe; }; +export type DeleteServiceAuthorizationInput = { + serviceAuthorizationId: Scalars['ID']; +}; + +export type DeleteServiceAuthorizationOutput = { + __typename?: 'DeleteServiceAuthorizationOutput'; + error: Maybe; +}; + +export type DeleteServiceLevelAgreementInput = { + serviceLevelAgreementId: Scalars['ID']; +}; + +export type DeleteServiceLevelAgreementOutput = { + __typename?: 'DeleteServiceLevelAgreementOutput'; + error: Maybe; + serviceLevelAgreement: Maybe; +}; + export type DeleteSnippetInput = { snippetId: Scalars['ID']; }; @@ -1391,6 +1676,16 @@ export type DeleteThreadLinkOutput = { error: Maybe; }; +export type DeleteTierInput = { + tierId: Scalars['ID']; +}; + +export type DeleteTierOutput = { + __typename?: 'DeleteTierOutput'; + error: Maybe; + tier: Maybe; +}; + export type DeleteUserAuthSlackIntegrationInput = { slackTeamId: Scalars['String']; }; @@ -1473,6 +1768,17 @@ export type DeletedCustomerEmailActor = { customerId: Scalars['ID']; }; +export type DependsOnCustomFieldInput = { + customFieldSchemaId: Scalars['ID']; + customFieldSchemaValue: Scalars['String']; +}; + +export type DependsOnCustomFieldType = { + __typename?: 'DependsOnCustomFieldType'; + customFieldSchemaId: Scalars['ID']; + customFieldSchemaValue: Scalars['String']; +}; + export type DnsRecord = { __typename?: 'DnsRecord'; isVerified: Scalars['Boolean']; @@ -1631,16 +1937,6 @@ export type FileSize = { megaBytes: Scalars['Float']; }; -export type FinishServiceAuthorizationInput = { - serviceAuthorizationId: Scalars['ID']; -}; - -export type FinishServiceAuthorizationOutput = { - __typename?: 'FinishServiceAuthorizationOutput'; - error: Maybe; - serviceAuthorization: Maybe; -}; - export type ForkThreadInput = { threadId: Scalars['ID']; timelineEntryId: Scalars['ID']; @@ -1837,9 +2133,11 @@ export type Mutation = { assignThread: AssignThreadOutput; changeThreadPriority: ChangeThreadPriorityOutput; changeUserStatus: ChangeUserStatusOutput; + completeServiceAuthorization: CompleteServiceAuthorizationOutput; createApiKey: CreateApiKeyOutput; createAttachmentDownloadUrl: CreateAttachmentDownloadUrlOutput; createAttachmentUploadUrl: CreateAttachmentUploadUrlOutput; + createCustomFieldSchema: CreateCustomFieldSchemaOutput; /** Creates a customer card config. A maximum of 25 card configs can be created. */ createCustomerCardConfig: CreateCustomerCardConfigOutput; /** Create a new customer event. */ @@ -1852,11 +2150,13 @@ export type Mutation = { createMyLinearIntegration: CreateMyLinearIntegrationOutput; createMySlackIntegration: CreateMySlackIntegrationOutput; createNote: CreateNoteOutput; + createServiceLevelAgreement: CreateServiceLevelAgreementOutput; createSnippet: CreateSnippetOutput; createThread: CreateThreadOutput; /** Create a new thread event. */ createThreadEvent: CreateThreadEventOutput; createThreadLink: CreateThreadLinkOutput; + createTier: CreateTierOutput; createUserAccount: CreateUserAccountOutput; createUserAuthSlackIntegration: CreateUserAuthSlackIntegrationOutput; /** Creates a webhook target. */ @@ -1867,6 +2167,9 @@ export type Mutation = { createWorkspaceSlackChannelIntegration: CreateWorkspaceSlackChannelIntegrationOutput; createWorkspaceSlackIntegration: CreateWorkspaceSlackIntegrationOutput; deleteApiKey: DeleteApiKeyOutput; + deleteBusinessHours: DeleteBusinessHoursOutput; + deleteCustomField: DeleteCustomFieldOutput; + deleteCustomFieldSchema: DeleteCustomFieldSchemaOutput; /** Deletes a customer and all of their data stored on Plain. This action cannot be reversed. */ deleteCustomer: DeleteCustomerOutput; /** Deletes a customer card config. */ @@ -1877,8 +2180,11 @@ export type Mutation = { deleteMyLinearIntegration: DeleteMyLinearIntegrationOutput; deleteMySlackIntegration: DeleteMySlackIntegrationOutput; deleteNote: DeleteNoteOutput; + deleteServiceAuthorization: DeleteServiceAuthorizationOutput; + deleteServiceLevelAgreement: DeleteServiceLevelAgreementOutput; deleteSnippet: DeleteSnippetOutput; deleteThreadLink: DeleteThreadLinkOutput; + deleteTier: DeleteTierOutput; deleteUser: DeleteUserOutput; deleteUserAuthSlackIntegration: DeleteUserAuthSlackIntegrationOutput; /** Deletes a webhook target. */ @@ -1888,7 +2194,6 @@ export type Mutation = { deleteWorkspaceInvite: DeleteWorkspaceInviteOutput; deleteWorkspaceSlackChannelIntegration: DeleteWorkspaceSlackChannelIntegrationOutput; deleteWorkspaceSlackIntegration: DeleteWorkspaceSlackIntegrationOutput; - finishServiceAuthorization: FinishServiceAuthorizationOutput; forkThread: ForkThreadOutput; inviteUserToWorkspace: InviteUserToWorkspaceOutput; /** Marks a customer as spam. */ @@ -1905,6 +2210,7 @@ export type Mutation = { removeCustomerFromCustomerGroups: RemoveCustomerFromCustomerGroupsOutput; removeLabels: RemoveLabelsOutput; removeWorkspaceAlternateSupportEmailAddress: RemoveWorkspaceAlternateSupportEmailAddressOutput; + reorderCustomFieldSchemas: ReorderCustomFieldSchemasOutput; /** * Reorders customer card configs. * @@ -1931,6 +2237,7 @@ export type Mutation = { unassignThread: UnassignThreadOutput; /** Removes the spam mark from a customer. */ unmarkCustomerAsSpam: UnmarkCustomerAsSpamOutput; + updateCustomFieldSchema: UpdateCustomFieldSchemaOutput; /** Partially updates a customer card config. */ updateCustomerCardConfig: UpdateCustomerCardConfigOutput; /** Changes the company of a customer. */ @@ -1943,13 +2250,15 @@ export type Mutation = { updateSetting: UpdateSettingOutput; updateSnippet: UpdateSnippetOutput; updateThreadTitle: UpdateThreadTitleOutput; + updateTier: UpdateTierOutput; /** Updates a webhook target. */ updateWebhookTarget: UpdateWebhookTargetOutput; updateWorkspace: UpdateWorkspaceOutput; updateWorkspaceEmailSettings: UpdateWorkspaceEmailSettingsOutput; upsertAutoresponder: UpsertAutoresponderOutput; + upsertBusinessHours: UpsertBusinessHoursOutput; upsertCompany: UpsertCompanyOutput; - upsertCustomTimelineEntry: UpsertCustomTimelineEntryOutput; + upsertCustomField: UpsertCustomFieldOutput; /** Creates or updates a customer. */ upsertCustomer: UpsertCustomerOutput; /** Creates or updates a customer group. */ @@ -2006,6 +2315,11 @@ export type MutationChangeUserStatusArgs = { }; +export type MutationCompleteServiceAuthorizationArgs = { + input: CompleteServiceAuthorizationInput; +}; + + export type MutationCreateApiKeyArgs = { input: CreateApiKeyInput; }; @@ -2021,6 +2335,11 @@ export type MutationCreateAttachmentUploadUrlArgs = { }; +export type MutationCreateCustomFieldSchemaArgs = { + input: CreateCustomFieldSchemaInput; +}; + + export type MutationCreateCustomerCardConfigArgs = { input: CreateCustomerCardConfigInput; }; @@ -2066,6 +2385,11 @@ export type MutationCreateNoteArgs = { }; +export type MutationCreateServiceLevelAgreementArgs = { + input: CreateServiceLevelAgreementInput; +}; + + export type MutationCreateSnippetArgs = { input: CreateSnippetInput; }; @@ -2086,6 +2410,11 @@ export type MutationCreateThreadLinkArgs = { }; +export type MutationCreateTierArgs = { + input: CreateTierInput; +}; + + export type MutationCreateUserAccountArgs = { input: CreateUserAccountInput; }; @@ -2131,6 +2460,16 @@ export type MutationDeleteApiKeyArgs = { }; +export type MutationDeleteCustomFieldArgs = { + input: DeleteCustomFieldInput; +}; + + +export type MutationDeleteCustomFieldSchemaArgs = { + input: DeleteCustomFieldSchemaInput; +}; + + export type MutationDeleteCustomerArgs = { input: DeleteCustomerInput; }; @@ -2156,6 +2495,16 @@ export type MutationDeleteNoteArgs = { }; +export type MutationDeleteServiceAuthorizationArgs = { + input: DeleteServiceAuthorizationInput; +}; + + +export type MutationDeleteServiceLevelAgreementArgs = { + input: DeleteServiceLevelAgreementInput; +}; + + export type MutationDeleteSnippetArgs = { input: DeleteSnippetInput; }; @@ -2166,13 +2515,18 @@ export type MutationDeleteThreadLinkArgs = { }; +export type MutationDeleteTierArgs = { + input: DeleteTierInput; +}; + + export type MutationDeleteUserArgs = { input: DeleteUserInput; }; export type MutationDeleteUserAuthSlackIntegrationArgs = { - input?: InputMaybe; + input: DeleteUserAuthSlackIntegrationInput; }; @@ -2192,7 +2546,7 @@ export type MutationDeleteWorkspaceInviteArgs = { export type MutationDeleteWorkspaceSlackChannelIntegrationArgs = { - input?: InputMaybe; + input: DeleteWorkspaceSlackChannelIntegrationInput; }; @@ -2201,11 +2555,6 @@ export type MutationDeleteWorkspaceSlackIntegrationArgs = { }; -export type MutationFinishServiceAuthorizationArgs = { - input: FinishServiceAuthorizationInput; -}; - - export type MutationForkThreadArgs = { input: ForkThreadInput; }; @@ -2251,6 +2600,11 @@ export type MutationRemoveWorkspaceAlternateSupportEmailAddressArgs = { }; +export type MutationReorderCustomFieldSchemasArgs = { + input: ReorderCustomFieldSchemasInput; +}; + + export type MutationReorderCustomerCardConfigsArgs = { input: ReorderCustomerCardConfigsInput; }; @@ -2316,6 +2670,11 @@ export type MutationUnmarkCustomerAsSpamArgs = { }; +export type MutationUpdateCustomFieldSchemaArgs = { + input: UpdateCustomFieldSchemaInput; +}; + + export type MutationUpdateCustomerCardConfigArgs = { input: UpdateCustomerCardConfigInput; }; @@ -2356,6 +2715,11 @@ export type MutationUpdateThreadTitleArgs = { }; +export type MutationUpdateTierArgs = { + input: UpdateTierInput; +}; + + export type MutationUpdateWebhookTargetArgs = { input: UpdateWebhookTargetInput; }; @@ -2376,13 +2740,18 @@ export type MutationUpsertAutoresponderArgs = { }; +export type MutationUpsertBusinessHoursArgs = { + input: UpsertBusinessHoursInput; +}; + + export type MutationUpsertCompanyArgs = { input: UpsertCompanyInput; }; -export type MutationUpsertCustomTimelineEntryArgs = { - input: UpsertCustomTimelineEntryInput; +export type MutationUpsertCustomFieldArgs = { + input: UpsertCustomFieldInput; }; @@ -2476,6 +2845,23 @@ export type NoteEntry = { text: Scalars['String']; }; +export type OnBreachAction = { + __typename?: 'OnBreachAction'; + alertIntegrationId: Scalars['ID']; + createdAt: DateTime; + createdBy: InternalActor; + updatedAt: DateTime; + updatedBy: InternalActor; +}; + +export type OnBreachActionInput = { + alertIntegrationId: Scalars['ID']; +}; + +export type OptionalDependsOnCustomFieldInput = { + value?: InputMaybe; +}; + export type OptionalStringInput = { value?: InputMaybe; }; @@ -2496,8 +2882,11 @@ export type Permissions = { export type Query = { __typename?: 'Query'; autoresponder: Maybe; + businessHours: Maybe; companies: CompanyConnection; company: Maybe; + customFieldSchema: Maybe; + customFieldSchemas: CustomFieldSchemaConnection; customer: Maybe; customerByEmail: Maybe; /** Get a customer by its external ID. A customer's external ID is unique within a workspace. */ @@ -2566,6 +2955,8 @@ export type Query = { */ threadSlackUsers: SlackUserConnection; threads: ThreadConnection; + tier: Maybe; + tiers: TierConnection; timeSeriesMetric: Maybe; timelineEntries: TimelineEntryConnection; timelineEntry: Maybe; @@ -2612,6 +3003,19 @@ export type QueryCompanyArgs = { }; +export type QueryCustomFieldSchemaArgs = { + customFieldSchemaId: Scalars['ID']; +}; + + +export type QueryCustomFieldSchemasArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + + export type QueryCustomerArgs = { customerId: Scalars['ID']; }; @@ -2829,6 +3233,19 @@ export type QueryThreadsArgs = { }; +export type QueryTierArgs = { + tierId: Scalars['ID']; +}; + + +export type QueryTiersArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + + export type QueryTimeSeriesMetricArgs = { name: Scalars['String']; options?: InputMaybe; @@ -2861,7 +3278,7 @@ export type QueryUserAuthSlackInstallationInfoArgs = { export type QueryUserAuthSlackIntegrationArgs = { - slackTeamId?: InputMaybe; + slackTeamId: Scalars['String']; }; @@ -2929,7 +3346,7 @@ export type QueryWorkspaceSlackChannelInstallationInfoArgs = { export type QueryWorkspaceSlackChannelIntegrationArgs = { - integrationId?: InputMaybe; + integrationId: Scalars['ID']; }; @@ -3000,6 +3417,16 @@ export type RemoveWorkspaceAlternateSupportEmailAddressOutput = { workspaceEmailDomainSettings: Maybe; }; +export type ReorderCustomFieldSchemasInput = { + customFieldSchemaOrders: Array; +}; + +export type ReorderCustomFieldSchemasOutput = { + __typename?: 'ReorderCustomFieldSchemasOutput'; + customFieldSchemas: Maybe>; + error: Maybe; +}; + export type ReorderCustomerCardConfigsInput = { /** An array of ordering updates. */ customerCardConfigOrders: Array; @@ -3173,6 +3600,67 @@ export type ServiceIntegration = { name: Scalars['String']; }; +export type ServiceLevelAgreement = { + __typename?: 'ServiceLevelAgreement'; + breachActions: Array; + createdAt: DateTime; + createdBy: InternalActor; + firstResponseTimeMinutes: Maybe; + id: Scalars['ID']; + updatedAt: DateTime; + updatedBy: InternalActor; +}; + +export type ServiceLevelAgreementInput = { + breachActions: Array; + firstResponseTimeMinutes: Scalars['Int']; +}; + +export type ServiceLevelAgreementStatus = { + __typename?: 'ServiceLevelAgreementStatus'; + firstResponseTime: Maybe; +}; + +export type ServiceLevelObjectiveStatus = ServiceLevelObjectiveStatusAchieved | ServiceLevelObjectiveStatusBreachImminent | ServiceLevelObjectiveStatusBreached | ServiceLevelObjectiveStatusBreaching | ServiceLevelObjectiveStatusPending; + +export type ServiceLevelObjectiveStatusAchieved = { + __typename?: 'ServiceLevelObjectiveStatusAchieved'; + /** The time when this objective was achieved. */ + achievedAt: DateTime; +}; + +export type ServiceLevelObjectiveStatusBreachImminent = { + __typename?: 'ServiceLevelObjectiveStatusBreachImminent'; + /** The time when this objective will breach. */ + breachingAt: DateTime; + /** The number of minutes until this objective breaches. */ + minutesUntilBreach: Scalars['Int']; +}; + +export type ServiceLevelObjectiveStatusBreached = { + __typename?: 'ServiceLevelObjectiveStatusBreached'; + /** The time when this objective breached. */ + breachedAt: DateTime; + /** The time when we completed this breached objective. */ + completedAt: DateTime; +}; + +export type ServiceLevelObjectiveStatusBreaching = { + __typename?: 'ServiceLevelObjectiveStatusBreaching'; + /** The time when this objective breached. */ + breachedAt: DateTime; + /** The elapsed minutes since this objective breached. */ + minutesAfterBreach: Scalars['Int']; +}; + +export type ServiceLevelObjectiveStatusPending = { + __typename?: 'ServiceLevelObjectiveStatusPending'; + /** The time when this objective will breach. */ + breachingAt: DateTime; + /** The number of minutes until this objective breaches. */ + minutesUntilBreach: Scalars['Int']; +}; + /** A union of different types of settings. */ export type Setting = BooleanSetting | StringSetting; @@ -3217,6 +3705,11 @@ export enum SettingScopeType { * An `id` is mandatory and should be a workspace discord integration id (`wsDiscordInt_123`) */ WorkspaceDiscordNotifications = 'WORKSPACE_DISCORD_NOTIFICATIONS', + /** + * Scope for slack support channel settings. + * An `id` is mandatory and should be a workspace slack channel integration id (`wsSlackInt_123`) + */ + WorkspaceSlackChannel = 'WORKSPACE_SLACK_CHANNEL', /** * Scope for slack notifications configured for the whole workspace. * An `id` is mandatory and should be a workspace slack integration id (`wsSlackInt_123`) @@ -3369,6 +3862,7 @@ export type StringSetting = { export type Subscription = { __typename?: 'Subscription'; + customFieldSchemaChanges: CustomFieldSchemaChange; customerCardInstanceChanges: CustomerCardInstanceChangesResult; customerChanges: CustomerChange; threadChanges: ThreadChange; @@ -3469,6 +3963,16 @@ export type TenantSearchResultEdge = { node: TenantSearchResult; }; +export type TenantTierMembership = { + __typename?: 'TenantTierMembership'; + createdAt: DateTime; + createdBy: InternalActor; + id: Scalars['ID']; + tenantId: Scalars['ID']; + updatedAt: DateTime; + updatedBy: InternalActor; +}; + /** Query to search for tenants. */ export type TenantsSearchQuery = { /** @@ -3490,6 +3994,8 @@ export type Thread = { createdAt: DateTime; /** The actor who created this thread. */ createdBy: Actor; + /** The custom fields attached to this thread. */ + customFields: CustomFieldConnection; /** The customer involved in this thread. */ customer: Customer; /** The description of this thread. */ @@ -3514,6 +4020,8 @@ export type Thread = { previewText: Maybe; /** The priority of the thread. Valid values are 0, 1, 2, 3, from most to least urgent. */ priority: Scalars['Int']; + /** If this thread has a linked SLA, this will inform on the status of its objectives. */ + serviceLevelAgreementStatus: Maybe; /** The status of this thread. */ status: ThreadStatus; /** The datetime when the status of this thread was last changed. */ @@ -3528,6 +4036,10 @@ export type Thread = { * A support email address is considered to be involved in a thread when any participant in the thread uses it as their email recipient. */ supportEmailAddresses: Array; + /** The tenant this thread is associated with. */ + tenant: Maybe; + /** The tier this thread is associated with. Tiers mandate the SLAs for this thread. */ + tier: Maybe; /** All of the timeline entries in this thread. */ timelineEntries: TimelineEntryConnection; /** The title of this thread, which allows to quickly identify what it is about. */ @@ -3539,6 +4051,15 @@ export type Thread = { }; +/** A thread represents a conversation with a customer, around a specific topic. */ +export type ThreadCustomFieldsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + + /** A thread represents a conversation with a customer, around a specific topic. */ export type ThreadLinksArgs = { after?: InputMaybe; @@ -3724,6 +4245,7 @@ export type ThreadStatusTransitionedEntry = { export type ThreadsFilter = { assignedToUser?: InputMaybe>; + companyIdentifiers?: InputMaybe>; customerGroupIdentifiers?: InputMaybe>; customerIds?: InputMaybe>; isAssigned?: InputMaybe; @@ -3732,7 +4254,9 @@ export type ThreadsFilter = { priorities?: InputMaybe>; statuses?: InputMaybe>; supportEmailAddresses?: InputMaybe>; + tenantIdentifiers?: InputMaybe>; threadIds?: InputMaybe>; + tierIds?: InputMaybe>; }; /** @@ -3753,10 +4277,70 @@ export type ThreadsSort = { }; export enum ThreadsSortField { + ClosestToBreachSla = 'CLOSEST_TO_BREACH_SLA', CreatedAt = 'CREATED_AT', StatusChangedAt = 'STATUS_CHANGED_AT' } +export type Tier = { + __typename?: 'Tier'; + color: Scalars['String']; + createdAt: DateTime; + createdBy: InternalActor; + defaultPriority: Scalars['Int']; + externalId: Maybe; + id: Scalars['ID']; + memberships: TierMembershipConnection; + name: Scalars['String']; + serviceLevelAgreement: Maybe; + updatedAt: DateTime; + updatedBy: InternalActor; +}; + + +export type TierMembershipsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + +export type TierConnection = { + __typename?: 'TierConnection'; + edges: Array; + pageInfo: PageInfo; +}; + +export type TierEdge = { + __typename?: 'TierEdge'; + cursor: Scalars['String']; + node: Tier; +}; + +export type TierMemberIdentifierInput = { + companyId?: InputMaybe; + tenantId?: InputMaybe; +}; + +export type TierMembership = CompanyTierMembership | TenantTierMembership; + +export type TierMembershipConnection = { + __typename?: 'TierMembershipConnection'; + edges: Array; + pageInfo: PageInfo; +}; + +export type TierMembershipEdge = { + __typename?: 'TierMembershipEdge'; + cursor: Scalars['String']; + node: TierMembership; +}; + +export type Time = { + __typename?: 'Time'; + iso8601: Scalars['String']; +}; + export type TimeSeriesMetric = { __typename?: 'TimeSeriesMetric'; series: Array; @@ -3786,9 +4370,10 @@ export enum TimeSeriesMetricIntervalUnit { export type TimeSeriesMetricOptions = { dimension?: InputMaybe; - from?: InputMaybe; + /** Defaults to 24 hours ago. */ + from?: InputMaybe; interval?: InputMaybe; - to?: InputMaybe; + to?: InputMaybe; }; export type TimeSeriesSeries = { @@ -3863,6 +4448,22 @@ export type UnmarkCustomerAsSpamOutput = { error: Maybe; }; +export type UpdateCustomFieldSchemaInput = { + customFieldSchemaId: Scalars['ID']; + dependsOnCustomField?: InputMaybe; + description?: InputMaybe; + enumValues?: InputMaybe>; + isRequired?: InputMaybe; + label?: InputMaybe; + order?: InputMaybe; +}; + +export type UpdateCustomFieldSchemaOutput = { + __typename?: 'UpdateCustomFieldSchemaOutput'; + customFieldSchema: Maybe; + error: Maybe; +}; + /** For constraints and details on the fields see the `CustomerCardConfig` type. */ export type UpdateCustomerCardConfigInput = { /** If provided, will replace the existing API headers. Requires the `customerCardConfigApiDetails:edit` permission. */ @@ -3892,7 +4493,7 @@ export type UpdateCustomerCardConfigOutput = { export type UpdateCustomerCompanyInput = { /** The identifier of the company we want to update the customer with. Pass null if you want to remove the company from the customer. */ - companyIdentifier?: InputMaybe; + companyIdentifier?: InputMaybe; /** The identifier of the customer we want to update the company for. */ customerId: Scalars['ID']; }; @@ -3987,6 +4588,20 @@ export type UpdateThreadTitleOutput = { thread: Maybe; }; +export type UpdateTierInput = { + color?: InputMaybe; + defaultPriority?: InputMaybe; + externalId?: InputMaybe; + name?: InputMaybe; + tierId: Scalars['ID']; +}; + +export type UpdateTierOutput = { + __typename?: 'UpdateTierOutput'; + error: Maybe; + tier: Maybe; +}; + export type UpdateWebhookTargetInput = { description?: InputMaybe; eventSubscriptions?: InputMaybe>; @@ -4041,9 +4656,20 @@ export type UpsertAutoresponderOutput = { result: Maybe; }; +export type UpsertBusinessHoursInput = { + weekDays?: InputMaybe; +}; + +export type UpsertBusinessHoursOutput = { + __typename?: 'UpsertBusinessHoursOutput'; + businessHours: Maybe; + error: Maybe; + result: Maybe; +}; + export type UpsertCompanyInput = { domainName: Scalars['String']; - identifier: CompanyIdentifier; + identifier: CompanyIdentifierInput; name: Scalars['String']; }; @@ -4054,36 +4680,23 @@ export type UpsertCompanyOutput = { result: Maybe; }; -export type UpsertCustomTimelineEntryInput = { - attachmentIds?: InputMaybe>; - /** - * When true, this will change the customer's status to "Active". This is useful if you are using custom timeline - * entries for contact form submissions or other events which require some attention. - * - * Defaults to false. - */ - changeCustomerStatusToActive?: InputMaybe; - components: Array; - customerId: Scalars['ID']; - expiresAt?: InputMaybe; - externalId?: InputMaybe; - /** - * When true, this will send a notification for the customer when the custom timeline entry is created. It will only - * send the notification if the user has enabled the matching notification setting. - * - * Defaults to false. - */ - sendCustomTimelineEntryCreatedNotification?: InputMaybe; - timestamp?: InputMaybe; - title: Scalars['String']; - type?: InputMaybe; +export type UpsertCustomFieldIdentifier = { + key: Scalars['String']; + threadId: Scalars['ID']; +}; + +export type UpsertCustomFieldInput = { + booleanValue?: InputMaybe; + identifier: UpsertCustomFieldIdentifier; + stringValue?: InputMaybe; + type: CustomFieldSchemaType; }; -export type UpsertCustomTimelineEntryOutput = { - __typename?: 'UpsertCustomTimelineEntryOutput'; +export type UpsertCustomFieldOutput = { + __typename?: 'UpsertCustomFieldOutput'; + customField: Maybe; error: Maybe; result: Maybe; - timelineEntry: Maybe; }; export type UpsertCustomerGroupInput = { @@ -4119,6 +4732,7 @@ export type UpsertCustomerOnCreateInput = { externalId?: InputMaybe; fullName: Scalars['String']; shortName?: InputMaybe; + tenantIdentifiers?: InputMaybe>; }; export type UpsertCustomerOnUpdateInput = { @@ -4584,6 +5198,8 @@ export type MachineUserPartsFragment = { __typename: 'MachineUser', id: string, export type MutationErrorPartsFragment = { __typename: 'MutationError', message: string, type: MutationErrorType, code: string, fields: Array<{ __typename?: 'MutationFieldError', field: string, message: string, type: MutationFieldErrorType }> }; +export type NotePartsFragment = { __typename: 'Note', id: string, markdown: string | null, text: string }; + export type PageInfoPartsFragment = { __typename?: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }; export type SystemActorPartsFragment = { __typename: 'SystemActor', systemId: string }; @@ -4670,6 +5286,13 @@ export type CreateCustomerEventMutationVariables = Exact<{ export type CreateCustomerEventMutation = { __typename?: 'Mutation', createCustomerEvent: { __typename?: 'CreateCustomerEventOutput', customerEvent: { __typename: 'CustomerEvent', id: string, customerId: string, title: string, createdAt: { __typename: 'DateTime', iso8601: string, unixTimestamp: string }, createdBy: { __typename: 'CustomerActor', customerId: string } | { __typename: 'DeletedCustomerActor', customerId: string } | { __typename: 'MachineUserActor', machineUserId: string } | { __typename: 'SystemActor', systemId: string } | { __typename: 'UserActor', userId: string }, updatedAt: { __typename: 'DateTime', iso8601: string, unixTimestamp: string }, updatedBy: { __typename: 'CustomerActor', customerId: string } | { __typename: 'DeletedCustomerActor', customerId: string } | { __typename: 'MachineUserActor', machineUserId: string } | { __typename: 'SystemActor', systemId: string } | { __typename: 'UserActor', userId: string } } | null, error: { __typename: 'MutationError', message: string, type: MutationErrorType, code: string, fields: Array<{ __typename?: 'MutationFieldError', field: string, message: string, type: MutationFieldErrorType }> } | null } }; +export type CreateNoteMutationVariables = Exact<{ + input: CreateNoteInput; +}>; + + +export type CreateNoteMutation = { __typename?: 'Mutation', createNote: { __typename?: 'CreateNoteOutput', note: { __typename: 'Note', id: string, markdown: string | null, text: string } | null, error: { __typename: 'MutationError', message: string, type: MutationErrorType, code: string, fields: Array<{ __typename?: 'MutationFieldError', field: string, message: string, type: MutationFieldErrorType }> } | null } }; + export type CreateThreadMutationVariables = Exact<{ input: CreateThreadInput; }>; @@ -4933,6 +5556,7 @@ export const EmailActorPartsFragmentDoc = {"kind":"Document","definitions":[{"ki export const EmailParticipantPartsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailParticipantParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"emailActor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerEmailActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserEmailActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SupportEmailAddressEmailActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"supportEmailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerEmailActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}}]}}]} as unknown as DocumentNode; export const EmailPartsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Email"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"inReplyToEmailId"}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailParticipantParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailParticipantParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"additionalRecipients"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailParticipantParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hiddenRecipients"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailParticipantParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"textContent"}},{"kind":"Field","name":{"kind":"Name","value":"markdownContent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AttachmentParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerEmailActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserEmailActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SupportEmailAddressEmailActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"supportEmailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerEmailActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FileSizeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FileSize"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"kiloBytes"}},{"kind":"Field","name":{"kind":"Name","value":"megaBytes"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DateTimeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"iso8601"}},{"kind":"Field","name":{"kind":"Name","value":"unixTimestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailParticipantParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailParticipant"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"emailActor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AttachmentParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Attachment"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fileName"}},{"kind":"Field","name":{"kind":"Name","value":"fileSize"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FileSizeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fileExtension"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}}]}}]} as unknown as DocumentNode; export const MutationErrorPartsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MutationErrorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]} as unknown as DocumentNode; +export const NotePartsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NoteParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Note"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"text"}}]}}]} as unknown as DocumentNode; export const PageInfoPartsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageInfoParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]} as unknown as DocumentNode; export const ThreadEventPartsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ThreadEventParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ThreadEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SystemActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"systemId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MachineUserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"machineUserId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedCustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DateTimeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"iso8601"}},{"kind":"Field","name":{"kind":"Name","value":"unixTimestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Actor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CustomerActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SystemActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MachineUserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedCustomerActorParts"}}]}}]}}]} as unknown as DocumentNode; export const LabelTypePartsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LabelTypeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LabelType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isArchived"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"archivedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SystemActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"systemId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MachineUserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"machineUserId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedCustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DateTimeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"iso8601"}},{"kind":"Field","name":{"kind":"Name","value":"unixTimestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Actor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CustomerActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SystemActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MachineUserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedCustomerActorParts"}}]}}]}}]} as unknown as DocumentNode; @@ -4954,6 +5578,7 @@ export const ChangeThreadPriorityDocument = {"kind":"Document","definitions":[{" export const CreateAttachmentUploadUrlDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createAttachmentUploadUrl"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateAttachmentUploadUrlInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createAttachmentUploadUrl"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attachmentUploadUrl"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AttachmentUploadUrlParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"error"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MutationErrorParts"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FileSizeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FileSize"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"kiloBytes"}},{"kind":"Field","name":{"kind":"Name","value":"megaBytes"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DateTimeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"iso8601"}},{"kind":"Field","name":{"kind":"Name","value":"unixTimestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AttachmentParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Attachment"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fileName"}},{"kind":"Field","name":{"kind":"Name","value":"fileSize"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FileSizeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fileExtension"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AttachmentUploadUrlParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AttachmentUploadUrl"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"attachment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AttachmentParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"uploadFormUrl"}},{"kind":"Field","name":{"kind":"Name","value":"uploadFormData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MutationErrorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]} as unknown as DocumentNode; export const CreateCustomerCardConfigDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createCustomerCardConfig"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateCustomerCardConfigInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCustomerCardConfig"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customerCardConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CustomerCardConfigParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"error"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MutationErrorParts"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DateTimeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"iso8601"}},{"kind":"Field","name":{"kind":"Name","value":"unixTimestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CustomerCardConfigParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerCardConfig"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTimeToLiveSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"apiUrl"}},{"kind":"Field","name":{"kind":"Name","value":"order"}},{"kind":"Field","name":{"kind":"Name","value":"apiHeaders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MutationErrorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]} as unknown as DocumentNode; export const CreateCustomerEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createCustomerEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateCustomerEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCustomerEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customerEvent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CustomerEventParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"error"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MutationErrorParts"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DateTimeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"iso8601"}},{"kind":"Field","name":{"kind":"Name","value":"unixTimestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SystemActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"systemId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MachineUserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"machineUserId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedCustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Actor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CustomerActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SystemActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MachineUserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedCustomerActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CustomerEventParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MutationErrorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]} as unknown as DocumentNode; +export const CreateNoteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createNote"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateNoteInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createNote"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"note"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NoteParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"error"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MutationErrorParts"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NoteParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Note"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}},{"kind":"Field","name":{"kind":"Name","value":"text"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MutationErrorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]} as unknown as DocumentNode; export const CreateThreadDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateThreadInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"thread"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ThreadParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"error"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MutationErrorParts"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DateTimeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"iso8601"}},{"kind":"Field","name":{"kind":"Name","value":"unixTimestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SystemActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"systemId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MachineUserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"machineUserId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedCustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Actor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CustomerActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SystemActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MachineUserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedCustomerActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LabelTypeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LabelType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isArchived"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"archivedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LabelParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Label"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"labelType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LabelTypeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fullName"}},{"kind":"Field","name":{"kind":"Name","value":"publicName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MachineUserParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fullName"}},{"kind":"Field","name":{"kind":"Name","value":"publicName"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SystemParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"System"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ThreadAssigneeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ThreadAssignee"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MachineUserParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"System"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SystemParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ThreadParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Thread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"externalId"}},{"kind":"Field","name":{"kind":"Name","value":"customer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"statusChangedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"previewText"}},{"kind":"Field","name":{"kind":"Name","value":"priority"}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LabelParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"assignedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"assignedTo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ThreadAssigneeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MutationErrorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]} as unknown as DocumentNode; export const CreateThreadEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createThreadEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateThreadEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createThreadEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"threadEvent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ThreadEventParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"error"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MutationErrorParts"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DateTimeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"iso8601"}},{"kind":"Field","name":{"kind":"Name","value":"unixTimestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SystemActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"systemId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MachineUserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"machineUserId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedCustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Actor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CustomerActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SystemActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MachineUserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedCustomerActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ThreadEventParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ThreadEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MutationErrorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]} as unknown as DocumentNode; export const CreateWebhookTargetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createWebhookTarget"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateWebhookTargetInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createWebhookTarget"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"webhookTarget"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WebhookTargetParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"error"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MutationErrorParts"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DateTimeParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"iso8601"}},{"kind":"Field","name":{"kind":"Name","value":"unixTimestamp"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SystemActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"systemId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MachineUserActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"machineUserId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DeletedCustomerActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"customerId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Actor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CustomerActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SystemActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SystemActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MachineUserActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MachineUserActorParts"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DeletedCustomerActor"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DeletedCustomerActorParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WebhookTargetEventSubscriptionParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WebhookTargetEventSubscription"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WebhookTargetParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WebhookTarget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"isEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DateTimeParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActorParts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"eventSubscriptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WebhookTargetEventSubscriptionParts"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MutationErrorParts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"field"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]} as unknown as DocumentNode; diff --git a/src/index.ts b/src/index.ts index 072db71..1379d7a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -97,6 +97,7 @@ export type { CreateAttachmentDownloadUrlInput, CreateCustomerCardConfigInput, CreateCustomerEventInput, + CreateNoteInput, CreateThreadInput, ComponentInput, EventComponentInput, @@ -113,7 +114,6 @@ export type { SnoozeThreadInput, UpdateCustomerCardConfigInput, UpsertCustomerInput, - UpsertCustomTimelineEntryInput, CreateWebhookTargetInput, DeleteWebhookTargetInput, UpdateWebhookTargetInput,