Search
Preparing search index...
The search index is not available
@devowl-wp/utils
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"wordpress-plugins/real-cookie-banner/src/public/ts/models/tcfVendorConfigurationModel"
TcfVendorConfigurationModel
Class TcfVendorConfigurationModel
Hierarchy
AbstractPost
<
TcfVendorConfigurationCollection
,
Omit
<
TcfVendorConfigurationMeta
,
"restrictivePurposes"
>
&
{
restrictivePurposes
:
string
}
,
{
blocker
:
false
|
number
;
vendor
:
TcfVendor
[
"data"
]
}
>
TcfVendorConfigurationModel
Index
Constructors
constructor
Properties
annotated
busy
collection
data
delete
patch
persist
vendor
Model
Accessors
has
Vendor
key
restrictive
Purposes
stats
Methods
after
Delete
after
Patch
after
Persist
from
Response
set
Meta
set
Status
transform
Data
For
Patch
transform
Data
For
Persist
annotate
Constructors
constructor
new
Tcf
Vendor
Configuration
Model
(
collection
:
TcfVendorConfigurationModel
[
"collection"
]
, data
?:
Partial
<
TcfVendorConfigurationModel
[
"data"
]
>
)
:
TcfVendorConfigurationModel
Parameters
collection:
TcfVendorConfigurationModel
[
"collection"
]
Default value
data:
Partial
<
TcfVendorConfigurationModel
[
"data"
]
>
= {}
Returns
TcfVendorConfigurationModel
Properties
Optional
Readonly
annotated
annotated
:
AnnotateDefinition
busy
busy
:
boolean
= false
collection
collection
:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"collection"
]
data
data
:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"properties"
]
delete
delete
:
(
params
?:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"delete"
]
[
"parameters"
]
)
=>
CancellablePromise
<
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"delete"
]
[
"response"
]
>
= flow(function* (this: ClientModel<any>, params) {if (!this.annotated.delete) {throw new Error("There is no delete method allowed");}this.busy = true;try {const {delete: { path, method },namespace} = this.annotated;const response: T["delete"]["response"] = yield this.annotated.request<T["delete"]["parameters"],T["delete"]["parameters"],T["delete"]["response"]>({location: {path,method: method || ERouteHttpVerb.DELETE,namespace},params: {...{ [this.annotated.keyId]: this.key },...(params || {})}});this.collection.entries.delete(this.key);this.afterDelete();return response;} catch (e) {console.log(e);throw e;} finally {this.busy = false;}})
Type declaration
(
params
?:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"delete"
]
[
"parameters"
]
)
:
CancellablePromise
<
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"delete"
]
[
"response"
]
>
Parameters
Optional
params:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"delete"
]
[
"parameters"
]
Returns
CancellablePromise
<
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"delete"
]
[
"response"
]
>
patch
patch
:
(
params
?:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"patch"
]
[
"parameters"
]
)
=>
CancellablePromise
<
void
>
= flow(function* (this: ClientModel<any>,params) {if (!this.annotated.patch) {throw new Error("There is no patch method allowed");}this.busy = true;try {const {patch: { path, method },namespace} = this.annotated;const response: T["patch"]["response"] = yield this.annotated.request<T["patch"]["request"],T["patch"]["parameters"],T["patch"]["response"]>({location: {path,method: method || ERouteHttpVerb.PATCH,namespace},request: this.transformDataForPatch(),params: {...{ [this.annotated.keyId]: this.key },...(params || {})}});this.fromResponse(response);this.afterPatch();} catch (e) {console.log(e);throw e;} finally {this.busy = false;}})
Type declaration
(
params
?:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"patch"
]
[
"parameters"
]
)
:
CancellablePromise
<
void
>
Parameters
Optional
params:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"patch"
]
[
"parameters"
]
Returns
CancellablePromise
<
void
>
persist
persist
:
(
params
?:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"create"
]
[
"parameters"
]
)
=>
CancellablePromise
<
void
>
= flow(function* (this: ClientModel<any>,params) {if (!this.annotated.create) {throw new Error("There is no persist method allowed");}this.busy = true;try {const {create: { path, method },namespace} = this.annotated;const response: T["create"]["response"] = yield this.annotated.request<T["create"]["request"],T["create"]["parameters"],T["create"]["response"]>({location: {path,method: method || ERouteHttpVerb.POST,namespace},request: this.transformDataForPersist(),params: params || {}});this.fromResponse(response);this.collection.entries.set(this.key, this);this.afterPersist();} catch (e) {console.log(e);throw e;} finally {this.busy = false;}})
Type declaration
(
params
?:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"create"
]
[
"parameters"
]
)
:
CancellablePromise
<
void
>
Parameters
Optional
params:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"create"
]
[
"parameters"
]
Returns
CancellablePromise
<
void
>
Optional
vendor
Model
vendor
Model
:
TcfVendor
Accessors
has
Vendor
get
hasVendor
(
)
:
boolean
In some cases, vendors can be abandoned by the GVL.
Returns
boolean
key
get
key
(
)
:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"key"
]
Returns
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"key"
]
restrictive
Purposes
get
restrictivePurposes
(
)
:
TcfVendorConfigurationRestrictivePurposes
Returns
TcfVendorConfigurationRestrictivePurposes
stats
get
stats
(
)
:
{
activeFeatures
:
number
;
activePurposes
:
number
;
legIntPurposes
:
number
}
Returns
{
activeFeatures
:
number
;
activePurposes
:
number
;
legIntPurposes
:
number
}
active
Features
:
number
active
Purposes
:
number
leg
Int
Purposes
:
number
Methods
after
Delete
after
Delete
(
)
:
void
Returns
void
after
Patch
after
Patch
(
)
:
void
Returns
void
after
Persist
after
Persist
(
)
:
void
Returns
void
from
Response
from
Response
(
response
:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"properties"
]
)
:
this
Parameters
response:
{
collection
:
TcfVendorConfigurationCollection
;
delete
:
{
parameters
:
{
force
?:
boolean
;
id
?:
number
}
;
response
:
(
PostProperties
&
Data
&
{
meta
:
Meta
}
)
|
{
deleted
:
true
;
previous
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
}
;
key
:
number
;
patch
:
{
parameters
:
{
id
?:
number
}
}
;
properties
:
PostProperties
&
Data
&
{
meta
:
Meta
}
}
[
"properties"
]
Returns
this
set
Meta
set
Meta
(
meta
:
TcfVendorConfigurationModel
[
"data"
]
[
"meta"
]
)
:
void
Parameters
meta:
TcfVendorConfigurationModel
[
"data"
]
[
"meta"
]
Returns
void
set
Status
set
Status
(
status
:
PostStatus
)
:
void
Parameters
status:
PostStatus
Returns
void
transform
Data
For
Patch
transform
Data
For
Patch
(
)
:
any
Returns
any
transform
Data
For
Persist
transform
Data
For
Persist
(
)
:
any
Returns
any
Static
Optional
annotate
annotate<T>
(
annotate
:
AnnotateDefinition
)
:
(Anonymous function)
Type parameters
T
:
{
constructor
:
any
}
Parameters
annotate:
AnnotateDefinition
Returns
(Anonymous function)
Globals
"wordpress-
plugins/real-
cookie-
banner/src/public/ts/models/tcf
Vendor
Configuration
Model"
Tcf
Vendor
Configuration
Model
constructor
annotated
busy
collection
data
delete
patch
persist
vendor
Model
has
Vendor
key
restrictive
Purposes
stats
after
Delete
after
Patch
after
Persist
from
Response
set
Meta
set
Status
transform
Data
For
Patch
transform
Data
For
Persist
annotate
Generated using
TypeDoc
In some cases, vendors can be abandoned by the GVL.