web: update for new cached actions
This commit is contained in:
parent
47bde052ca
commit
44e51970e1
366
swagger.yaml
366
swagger.yaml
|
@ -1600,59 +1600,6 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
/flows/cached/:
|
|
||||||
get:
|
|
||||||
operationId: flows_cached_list
|
|
||||||
description: Info about cached flows
|
|
||||||
parameters:
|
|
||||||
- name: ordering
|
|
||||||
in: query
|
|
||||||
description: Which field to use when ordering the results.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
- name: search
|
|
||||||
in: query
|
|
||||||
description: A search term.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
- name: page
|
|
||||||
in: query
|
|
||||||
description: A page number within the paginated result set.
|
|
||||||
required: false
|
|
||||||
type: integer
|
|
||||||
- name: page_size
|
|
||||||
in: query
|
|
||||||
description: Number of results to return per page.
|
|
||||||
required: false
|
|
||||||
type: integer
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: ''
|
|
||||||
schema:
|
|
||||||
required:
|
|
||||||
- count
|
|
||||||
- results
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
count:
|
|
||||||
type: integer
|
|
||||||
next:
|
|
||||||
type: string
|
|
||||||
format: uri
|
|
||||||
x-nullable: true
|
|
||||||
previous:
|
|
||||||
type: string
|
|
||||||
format: uri
|
|
||||||
x-nullable: true
|
|
||||||
results:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
description: ''
|
|
||||||
type: object
|
|
||||||
properties: {}
|
|
||||||
tags:
|
|
||||||
- flows
|
|
||||||
parameters: []
|
|
||||||
/flows/instances/:
|
/flows/instances/:
|
||||||
get:
|
get:
|
||||||
operationId: flows_instances_list
|
operationId: flows_instances_list
|
||||||
|
@ -1740,6 +1687,59 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- flows
|
- flows
|
||||||
parameters: []
|
parameters: []
|
||||||
|
/flows/instances/cached/:
|
||||||
|
get:
|
||||||
|
operationId: flows_instances_cached
|
||||||
|
description: Info about cached flows
|
||||||
|
parameters:
|
||||||
|
- name: flow_uuid
|
||||||
|
in: query
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: name
|
||||||
|
in: query
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: slug
|
||||||
|
in: query
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: designation
|
||||||
|
in: query
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: ordering
|
||||||
|
in: query
|
||||||
|
description: Which field to use when ordering the results.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: search
|
||||||
|
in: query
|
||||||
|
description: A search term.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: page
|
||||||
|
in: query
|
||||||
|
description: A page number within the paginated result set.
|
||||||
|
required: false
|
||||||
|
type: integer
|
||||||
|
- name: page_size
|
||||||
|
in: query
|
||||||
|
description: Number of results to return per page.
|
||||||
|
required: false
|
||||||
|
type: integer
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Generic cache stats for an object
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/Cache'
|
||||||
|
tags:
|
||||||
|
- flows
|
||||||
|
parameters: []
|
||||||
/flows/instances/{slug}/:
|
/flows/instances/{slug}/:
|
||||||
get:
|
get:
|
||||||
operationId: flows_instances_read
|
operationId: flows_instances_read
|
||||||
|
@ -2544,6 +2544,95 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- policies
|
- policies
|
||||||
parameters: []
|
parameters: []
|
||||||
|
/policies/all/cached/:
|
||||||
|
get:
|
||||||
|
operationId: policies_all_cached
|
||||||
|
description: Info about cached policies
|
||||||
|
parameters:
|
||||||
|
- name: bindings__isnull
|
||||||
|
in: query
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: promptstage__isnull
|
||||||
|
in: query
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: ordering
|
||||||
|
in: query
|
||||||
|
description: Which field to use when ordering the results.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: search
|
||||||
|
in: query
|
||||||
|
description: A search term.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: page
|
||||||
|
in: query
|
||||||
|
description: A page number within the paginated result set.
|
||||||
|
required: false
|
||||||
|
type: integer
|
||||||
|
- name: page_size
|
||||||
|
in: query
|
||||||
|
description: Number of results to return per page.
|
||||||
|
required: false
|
||||||
|
type: integer
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Generic cache stats for an object
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/Cache'
|
||||||
|
tags:
|
||||||
|
- policies
|
||||||
|
parameters: []
|
||||||
|
/policies/all/types/:
|
||||||
|
get:
|
||||||
|
operationId: policies_all_types
|
||||||
|
description: Get all creatable policy types
|
||||||
|
parameters:
|
||||||
|
- name: bindings__isnull
|
||||||
|
in: query
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: promptstage__isnull
|
||||||
|
in: query
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: ordering
|
||||||
|
in: query
|
||||||
|
description: Which field to use when ordering the results.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: search
|
||||||
|
in: query
|
||||||
|
description: A search term.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
- name: page
|
||||||
|
in: query
|
||||||
|
description: A page number within the paginated result set.
|
||||||
|
required: false
|
||||||
|
type: integer
|
||||||
|
- name: page_size
|
||||||
|
in: query
|
||||||
|
description: Number of results to return per page.
|
||||||
|
required: false
|
||||||
|
type: integer
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Types of an object that can be created
|
||||||
|
schema:
|
||||||
|
description: ''
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/TypeCreate'
|
||||||
|
tags:
|
||||||
|
- policies
|
||||||
|
parameters: []
|
||||||
/policies/all/{policy_uuid}/:
|
/policies/all/{policy_uuid}/:
|
||||||
get:
|
get:
|
||||||
operationId: policies_all_read
|
operationId: policies_all_read
|
||||||
|
@ -2715,59 +2804,6 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
/policies/cached/:
|
|
||||||
get:
|
|
||||||
operationId: policies_cached_list
|
|
||||||
description: Info about cached policies
|
|
||||||
parameters:
|
|
||||||
- name: ordering
|
|
||||||
in: query
|
|
||||||
description: Which field to use when ordering the results.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
- name: search
|
|
||||||
in: query
|
|
||||||
description: A search term.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
- name: page
|
|
||||||
in: query
|
|
||||||
description: A page number within the paginated result set.
|
|
||||||
required: false
|
|
||||||
type: integer
|
|
||||||
- name: page_size
|
|
||||||
in: query
|
|
||||||
description: Number of results to return per page.
|
|
||||||
required: false
|
|
||||||
type: integer
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: ''
|
|
||||||
schema:
|
|
||||||
required:
|
|
||||||
- count
|
|
||||||
- results
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
count:
|
|
||||||
type: integer
|
|
||||||
next:
|
|
||||||
type: string
|
|
||||||
format: uri
|
|
||||||
x-nullable: true
|
|
||||||
previous:
|
|
||||||
type: string
|
|
||||||
format: uri
|
|
||||||
x-nullable: true
|
|
||||||
results:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
description: ''
|
|
||||||
type: object
|
|
||||||
properties: {}
|
|
||||||
tags:
|
|
||||||
- policies
|
|
||||||
parameters: []
|
|
||||||
/policies/dummy/:
|
/policies/dummy/:
|
||||||
get:
|
get:
|
||||||
operationId: policies_dummy_list
|
operationId: policies_dummy_list
|
||||||
|
@ -8486,6 +8522,14 @@ definitions:
|
||||||
title: Cache count
|
title: Cache count
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
Cache:
|
||||||
|
description: Generic cache stats for an object
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
count:
|
||||||
|
title: Count
|
||||||
|
type: integer
|
||||||
|
readOnly: true
|
||||||
FlowDiagram:
|
FlowDiagram:
|
||||||
description: response of the flow's /diagram/ action
|
description: response of the flow's /diagram/ action
|
||||||
type: object
|
type: object
|
||||||
|
@ -8801,6 +8845,33 @@ definitions:
|
||||||
title: Object type
|
title: Object type
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
verbose_name:
|
||||||
|
title: Verbose name
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
verbose_name_plural:
|
||||||
|
title: Verbose name plural
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
TypeCreate:
|
||||||
|
description: Types of an object that can be created
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
title: Name
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
minLength: 1
|
||||||
|
description:
|
||||||
|
title: Description
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
minLength: 1
|
||||||
|
link:
|
||||||
|
title: Link
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
minLength: 1
|
||||||
PolicyBinding:
|
PolicyBinding:
|
||||||
description: PolicyBinding Serializer
|
description: PolicyBinding Serializer
|
||||||
required:
|
required:
|
||||||
|
@ -9175,6 +9246,14 @@ definitions:
|
||||||
title: Object type
|
title: Object type
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
verbose_name:
|
||||||
|
title: Verbose name
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
verbose_name_plural:
|
||||||
|
title: Verbose name plural
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
result:
|
result:
|
||||||
title: Result
|
title: Result
|
||||||
type: boolean
|
type: boolean
|
||||||
|
@ -9210,6 +9289,14 @@ definitions:
|
||||||
title: Object type
|
title: Object type
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
verbose_name:
|
||||||
|
title: Verbose name
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
verbose_name_plural:
|
||||||
|
title: Verbose name plural
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
action:
|
action:
|
||||||
title: Action
|
title: Action
|
||||||
description: Match created events with this action type. When left empty,
|
description: Match created events with this action type. When left empty,
|
||||||
|
@ -9315,6 +9402,14 @@ definitions:
|
||||||
title: Object type
|
title: Object type
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
verbose_name:
|
||||||
|
title: Verbose name
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
verbose_name_plural:
|
||||||
|
title: Verbose name plural
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
expression:
|
expression:
|
||||||
title: Expression
|
title: Expression
|
||||||
type: string
|
type: string
|
||||||
|
@ -9341,6 +9436,14 @@ definitions:
|
||||||
title: Object type
|
title: Object type
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
verbose_name:
|
||||||
|
title: Verbose name
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
verbose_name_plural:
|
||||||
|
title: Verbose name plural
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
group:
|
group:
|
||||||
title: Group
|
title: Group
|
||||||
type: string
|
type: string
|
||||||
|
@ -9368,6 +9471,14 @@ definitions:
|
||||||
title: Object type
|
title: Object type
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
verbose_name:
|
||||||
|
title: Verbose name
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
verbose_name_plural:
|
||||||
|
title: Verbose name plural
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
password_field:
|
password_field:
|
||||||
title: Password field
|
title: Password field
|
||||||
description: Field key to check, field keys defined in Prompt stages are available.
|
description: Field key to check, field keys defined in Prompt stages are available.
|
||||||
|
@ -9402,6 +9513,14 @@ definitions:
|
||||||
title: Object type
|
title: Object type
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
verbose_name:
|
||||||
|
title: Verbose name
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
verbose_name_plural:
|
||||||
|
title: Verbose name plural
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
password_field:
|
password_field:
|
||||||
title: Password field
|
title: Password field
|
||||||
description: Field key to check, field keys defined in Prompt stages are available.
|
description: Field key to check, field keys defined in Prompt stages are available.
|
||||||
|
@ -9459,6 +9578,14 @@ definitions:
|
||||||
title: Object type
|
title: Object type
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
verbose_name:
|
||||||
|
title: Verbose name
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
verbose_name_plural:
|
||||||
|
title: Verbose name plural
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
days:
|
days:
|
||||||
title: Days
|
title: Days
|
||||||
type: integer
|
type: integer
|
||||||
|
@ -9489,6 +9616,14 @@ definitions:
|
||||||
title: Object type
|
title: Object type
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
verbose_name:
|
||||||
|
title: Verbose name
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
|
verbose_name_plural:
|
||||||
|
title: Verbose name plural
|
||||||
|
type: string
|
||||||
|
readOnly: true
|
||||||
check_ip:
|
check_ip:
|
||||||
title: Check ip
|
title: Check ip
|
||||||
type: boolean
|
type: boolean
|
||||||
|
@ -9641,25 +9776,6 @@ definitions:
|
||||||
title: Verbose name plural
|
title: Verbose name plural
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
TypeCreate:
|
|
||||||
description: Types of an object that can be created
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
title: Name
|
|
||||||
type: string
|
|
||||||
readOnly: true
|
|
||||||
minLength: 1
|
|
||||||
description:
|
|
||||||
title: Description
|
|
||||||
type: string
|
|
||||||
readOnly: true
|
|
||||||
minLength: 1
|
|
||||||
link:
|
|
||||||
title: Link
|
|
||||||
type: string
|
|
||||||
readOnly: true
|
|
||||||
minLength: 1
|
|
||||||
OAuth2Provider:
|
OAuth2Provider:
|
||||||
description: OAuth2Provider Serializer
|
description: OAuth2Provider Serializer
|
||||||
required:
|
required:
|
||||||
|
|
|
@ -40,8 +40,8 @@ export class Flow {
|
||||||
}
|
}
|
||||||
|
|
||||||
static cached(): Promise<number> {
|
static cached(): Promise<number> {
|
||||||
return DefaultClient.fetch<AKResponse<Flow>>(["flows", "cached"]).then(r => {
|
return DefaultClient.fetch<{ count: number }>(["flows", "all", "cached"]).then(r => {
|
||||||
return r.pagination.count;
|
return r.count;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
static adminUrl(rest: string): string {
|
static adminUrl(rest: string): string {
|
||||||
|
|
|
@ -20,8 +20,8 @@ export class Policy implements BaseInheritanceModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
static cached(): Promise<number> {
|
static cached(): Promise<number> {
|
||||||
return DefaultClient.fetch<AKResponse<Policy>>(["policies", "cached"]).then(r => {
|
return DefaultClient.fetch<{ count: number }>(["policies", "all", "cached"]).then(r => {
|
||||||
return r.pagination.count;
|
return r.count;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue