Added feed types

This commit is contained in:
autonomic 2021-11-27 12:12:21 +01:00
parent 66109bfd94
commit c36da186ba
10 changed files with 407 additions and 0 deletions

View File

@ -0,0 +1,71 @@
uuid: 2285dbe0-b1c3-418b-b7cc-0a704bb857c0
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.project.field_contract_signed_date
- opencase_cases.oc_case_type.project
module:
- opencase_cases
id: cav_projects_2
label: 'CAV Projects 2'
description: ''
help: ''
import_period: -1
fetcher: upload
fetcher_configuration:
allowed_extensions: 'txt csv tsv xml opml'
directory: 'private://feeds'
parser: csv
parser_configuration:
delimiter: ','
no_headers: false
line_limit: 100
processor: 'entity:oc_case'
processor_configuration:
langcode: en
update_existing: 0
update_non_existent: _delete
expire: -1
owner_feed_author: false
owner_id: 0
authorize: true
skip_hash_check: false
values:
type: project
custom_sources:
client:
label: CLIENT
value: CLIENT
machine_name: client
project:
label: PROJECT
value: PROJECT
machine_name: project
project_date:
label: 'PROJECT DATE'
value: 'PROJECT DATE'
machine_name: project_date
mappings:
-
target: name
map:
value: project
unique: { }
settings: { }
-
target: client
map:
target_id: client
settings:
language: null
reference_by: name
autocreate: false
feeds_item: false
-
target: field_contract_signed_date
map:
value: project_date
settings:
language: null
timezone: UTC

View File

@ -0,0 +1,81 @@
uuid: 8e347001-5784-40b1-b6e1-3ff3b8773dd3
langcode: en
status: true
dependencies:
config:
- opencase_cases.oc_case_fee_type.project_fee
module:
- opencase_cases
id: csv_fee_categories_and_fees
label: 'CSV Fee Categories and Fees'
description: ''
help: ''
import_period: -1
fetcher: upload
fetcher_configuration:
allowed_extensions: 'txt csv tsv xml opml'
directory: 'private://feeds'
parser: csv
parser_configuration:
delimiter: ','
no_headers: false
line_limit: 100
processor: 'entity:oc_case_fee'
processor_configuration:
langcode: en
update_existing: 0
update_non_existent: _keep
expire: -1
owner_feed_author: false
owner_id: 0
authorize: true
skip_hash_check: false
values:
type: project_fee
custom_sources:
fee_category:
label: 'FEE CATEGORY'
value: 'FEE CATEGORY'
machine_name: fee_category
fee_amount:
label: 'FEE AMOUNT'
value: 'FEE AMOUNT'
machine_name: fee_amount
project:
label: PROJECT
value: PROJECT
machine_name: project
name:
label: NAME
value: NAME
machine_name: name
mappings:
-
target: oc_fee_category
map:
target_id: fee_category
settings:
language: null
reference_by: name
autocreate: false
-
target: amount
map:
value: fee_amount
unique: { }
settings: { }
-
target: oc_case
map:
target_id: project
settings:
language: null
reference_by: name
autocreate: false
feeds_item: false
-
target: name
map:
value: name
unique: { }
settings: { }

View File

@ -0,0 +1,103 @@
uuid: fcae341e-1c7d-4a25-8cd5-dfc78d13a941
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.training.field_date_of_training
- field.field.oc_case.training.field_number_of_participants
- field.field.oc_case.training.field_training_type
- opencase_cases.oc_case_type.training
module:
- opencase_cases
id: csv_training_entities
label: 'CSV Training entities'
description: ''
help: ''
import_period: 0
fetcher: upload
fetcher_configuration:
allowed_extensions: 'txt csv tsv xml opml'
directory: 'private://feeds'
parser: csv
parser_configuration:
delimiter: ','
no_headers: false
line_limit: 100
processor: 'entity:oc_case'
processor_configuration:
langcode: en
update_existing: 0
update_non_existent: _delete
expire: -1
owner_feed_author: false
owner_id: 0
authorize: true
skip_hash_check: false
values:
type: training
custom_sources:
client:
label: CLIENT
value: CLIENT
machine_name: client
training_name:
label: 'TRAINING NAME'
value: 'TRAINING NAME'
machine_name: training_name
training_type:
label: 'TRAINING TYPE'
value: 'TRAINING TYPE'
machine_name: training_type
date_of_training:
label: 'DATE OF TRAINING'
value: 'DATE OF TRAINING'
machine_name: date_of_training
number_of_participants:
label: 'NUMBER OF PARTICIPANTS'
value: 'NUMBER OF PARTICIPANTS'
machine_name: number_of_participants
notes:
label: NOTES
value: NOTES
machine_name: notes
mappings:
-
target: client
map:
target_id: client
settings:
language: null
reference_by: name
autocreate: false
feeds_item: false
-
target: name
map:
value: training_name
unique: { }
settings: { }
-
target: field_training_type
map:
value: training_type
settings:
language: null
-
target: field_date_of_training
map:
value: date_of_training
settings:
language: null
timezone: UTC
-
target: field_number_of_participants
map:
value: number_of_participants
unique: { }
settings:
language: null
-
target: notes
map:
value: notes
settings: { }

View File

@ -0,0 +1,23 @@
uuid: 8ea56c44-d41d-4b54-8e94-3436d9a0bfed
langcode: en
status: true
dependencies:
config:
- field.storage.node.feeds_item
- node.type.article
module:
- feeds
id: node.article.feeds_item
field_name: feeds_item
entity_type: node
bundle: article
label: 'Feeds item'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:feeds_feed'
handler_settings: { }
field_type: feeds_item

View File

@ -0,0 +1,23 @@
uuid: 257f2c44-7371-495b-a41d-df7b433bc33d
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.feeds_item
- opencase_cases.oc_case_type.project
module:
- feeds
id: oc_case.project.feeds_item
field_name: feeds_item
entity_type: oc_case
bundle: project
label: 'Feeds item'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:feeds_feed'
handler_settings: { }
field_type: feeds_item

View File

@ -0,0 +1,23 @@
uuid: 6a88f0d0-60ac-4c8b-b2c5-66a12c101df8
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.feeds_item
- opencase_cases.oc_case_type.training
module:
- feeds
id: oc_case.training.feeds_item
field_name: feeds_item
entity_type: oc_case
bundle: training
label: 'Feeds item'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:feeds_feed'
handler_settings: { }
field_type: feeds_item

View File

@ -0,0 +1,23 @@
uuid: e4ac2e15-209e-4598-83df-07937bae60d6
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case_fee.feeds_item
- opencase_cases.oc_case_fee_type.project_fee
module:
- feeds
id: oc_case_fee.project_fee.feeds_item
field_name: feeds_item
entity_type: oc_case_fee
bundle: project_fee
label: 'Feeds item'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:feeds_feed'
handler_settings: { }
field_type: feeds_item

View File

@ -0,0 +1,20 @@
uuid: 0813e771-9112-4a4a-a6aa-e25f8d4e6104
langcode: en
status: true
dependencies:
module:
- feeds
- node
id: node.feeds_item
field_name: feeds_item
entity_type: node
type: feeds_item
settings:
target_type: feeds_feed
module: feeds
locked: false
cardinality: 1
translatable: false
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,20 @@
uuid: afe9a9ff-1fe9-42a5-aeae-52dfd8d4108b
langcode: en
status: true
dependencies:
module:
- feeds
- opencase_cases
id: oc_case.feeds_item
field_name: feeds_item
entity_type: oc_case
type: feeds_item
settings:
target_type: feeds_feed
module: feeds
locked: false
cardinality: 1
translatable: false
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,20 @@
uuid: fefe2f90-556a-4806-b2a5-04e276bf6fca
langcode: en
status: true
dependencies:
module:
- feeds
- opencase_cases
id: oc_case_fee.feeds_item
field_name: feeds_item
entity_type: oc_case_fee
type: feeds_item
settings:
target_type: feeds_feed
module: feeds
locked: false
cardinality: 1
translatable: false
indexes: { }
persist_with_no_fields: false
custom_storage: false