GraphQLRepositoriestimeframe
entities.timeframe
Read timeframe records with the timeframe repository, and change them with the timeframe mutations. Same records as the REST Timeframes entity.
- 5 queries
- 0 mutations
- REST: Timeframes
Queries
Fields of entities { timeframe { … } }.
| Kind | Field | Returns |
|---|---|---|
| QUERY | getById(entityId: ID!)Returns the record with the given id, or null when there is none. Deleted records are returned as well. | TimeframeEntity |
| QUERY | getByIds(entityIds: [ID!]!)Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well. | [TimeframeEntity!]! |
| QUERY | getAll(limit: Int, offset: Int, filter: TimeframeFilterInput, orderBy: [TimeframeOrderByInput!], includeDeleted: Boolean)Returns the records that match the filter, paged with limit and offset. | [TimeframeEntity!]! |
| QUERY | getByCriteria(filter: TimeframeFilterInput, orderBy: [TimeframeOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)Returns the records that match the filter as a cursor-paginated connection. | TimeframeEntityConnection |
| QUERY | getChangedFieldsSinceRevision(id: UUID!, revision: Int!)Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking. | [UUID!]! |
Types
The types this repository uses, each with its fields and their descriptions. Types several repositories share, such as PageInfo and the filter fields, are in the types index.
TimeframeEntity object 12 fields: isDeleteProtected, id, isDeleted, …
Time a lead or opportunity has spent in a pipeline step.
| Field | Type | Description |
|---|---|---|
isDeleteProtected | Boolean! | True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only. |
id | ID! | Unique identifier of entity. |
isDeleted | Boolean | Specifies if the entity is considered deleted. |
modified | DateTime | Last modification time. |
created | DateTime | Creation time. |
lead | LeadEntity | Lead this step-time record belongs to. Set when leadOpptyId resolves to a Lead. |
oppty | OpportunityEntity | Opportunity this step-time record belongs to. Set when leadOpptyId resolves to an Opportunity. |
step | StepEntity | Pipeline step the lead/opportunity entered. |
leadOpptyId | ID! | Id of the lead or opportunity the timeframe belongs to. |
stepId | ID! | Id of the pipeline step. |
timeframe | Int! | Number of seconds the record spent in the step (cumulative across re-entries). |
instancePermissions | [EntityPermsEnum!]! (1 args) | Permissions the current user has on this record, out of the requested ones. |
TimeframeEntityConnection object pageInfo: PageInfo!, edges: [TimeframeEntityEdge]!, totalCount: Int
Paginated list of Timeframe records.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [TimeframeEntityEdge]! | Contains the nodes in this connection. |
totalCount | Int | Total number of items in the connection. |
TimeframeEntityEdge object node: TimeframeEntity, cursor: String!
A Relay edge containing a TimeframeEntity and its cursor.
| Field | Type | Description |
|---|---|---|
node | TimeframeEntity | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
TimeframeFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field
Filter conditions for Timeframe records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.
| Input field | Type | Description |
|---|---|---|
OR | [TimeframeFilterInput!] | Matches records that meet at least one of the listed filters. |
AND | [TimeframeFilterInput!] | Matches records that meet all of the listed filters. |
NOT | TimeframeFilterInput | Matches records that do not meet this filter. |
globalSearchQuery | String | Search term matched against the fields that the global search covers for this entity. |
id | EntityFilterStringField | Unique identifier of entity. |
isDeleted | Boolean | Specifies if the entity is considered deleted. |
modified | EntityFilterDateTimeField | Last modification time. |
created | EntityFilterDateTimeField | Creation time. |
leadOpptyId | EntityFilterStringField | Id of the lead or opportunity the timeframe belongs to. |
stepId | EntityFilterStringField | Id of the pipeline step. |
timeframe | EntityFilterNumberField | Number of seconds the record spent in the step (cumulative across re-entries). |
lead | LeadFilterInput | Lead this step-time record belongs to. Set when leadOpptyId resolves to a Lead. Matches records where a related record meets these conditions. |
oppty | OpportunityFilterInput | Opportunity this step-time record belongs to. Set when leadOpptyId resolves to an Opportunity. Matches records where a related record meets these conditions. |
step | StepFilterInput | Pipeline step the lead/opportunity entered. Matches records where a related record meets these conditions. |
TimeframeOrderByInput input Asc or Desc per field
Sorting of Timeframe records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.
| Input field | Type | Description |
|---|---|---|
id | OrderByEnum | Unique identifier of entity. |
isDeleted | OrderByEnum | Specifies if the entity is considered deleted. |
modified | OrderByEnum | Last modification time. |
created | OrderByEnum | Creation time. |
lead | [LeadOrderByNestedInput!] | Lead this step-time record belongs to. Set when leadOpptyId resolves to a Lead. Sorts by fields of the related record, listed in order of priority. |
oppty | [OpportunityOrderByNestedInput!] | Opportunity this step-time record belongs to. Set when leadOpptyId resolves to an Opportunity. Sorts by fields of the related record, listed in order of priority. |
step | [StepOrderByNestedInput!] | Pipeline step the lead/opportunity entered. Sorts by fields of the related record, listed in order of priority. |
leadOpptyId | OrderByEnum | Id of the lead or opportunity the timeframe belongs to. |
stepId | OrderByEnum | Id of the pipeline step. |
timeframe | OrderByEnum | Number of seconds the record spent in the step (cumulative across re-entries). |