Skip to content

Commit

Permalink
chore:regen
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishu Goel committed Mar 18, 2024
1 parent ca577b7 commit fea0058
Show file tree
Hide file tree
Showing 45 changed files with 1,596 additions and 266 deletions.
44 changes: 34 additions & 10 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
lockVersion: 2.0.0
id: a76d605f-5242-4bd3-8bd6-56a119e8eec5
management:
docChecksum: c4a1c7dbe4bb723c700940bbcaa52687
docChecksum: a88d9b0dd70f8e62dace437f6ebbb75e
docVersion: 1.0.0
speakeasyVersion: 1.207.1
generationVersion: 2.280.6
releaseVersion: 0.4.2
configChecksum: 4748f72cfe8d28dd7aee1b7def67b25f
speakeasyVersion: internal
generationVersion: 2.230.1
releaseVersion: 0.4.3
configChecksum: 15aa1685ee44a06bd2580fa15f224a20
repoURL: https://github.com/epilot-dev/terraform-provider-epilot-entitymapping.git
repoSubDirectory: .
published: true
features:
terraform:
additionalProperties: 0.1.2
constsAndDefaults: 0.1.4
core: 3.10.3
constsAndDefaults: 0.1.2
core: 3.8.1
deprecations: 2.81.1
globalSecurity: 2.81.5
globalSecurity: 2.81.2
globalServerURLs: 2.82.1
retries: 2.81.1
unions: 2.81.9
unions: 2.81.7
generatedFiles:
- internal/sdk/mappings.go
- internal/sdk/sdk.go
Expand Down Expand Up @@ -89,6 +89,8 @@ generatedFiles:
- internal/sdk/pkg/models/operations/getallversions.go
- internal/sdk/pkg/models/operations/getconfig.go
- internal/sdk/pkg/models/operations/getconfigversion.go
- internal/sdk/pkg/models/operations/getmappingconfig.go
- internal/sdk/pkg/models/operations/putmappingconfig.go
- internal/sdk/pkg/models/operations/querymappinghistory.go
- internal/sdk/pkg/models/operations/searchconfigs.go
- internal/sdk/pkg/models/operations/storeconfig.go
Expand All @@ -109,7 +111,6 @@ generatedFiles:
- internal/sdk/pkg/models/shared/sourceconfig.go
- internal/sdk/pkg/models/shared/journeyref.go
- internal/sdk/pkg/models/shared/entityref.go
- internal/sdk/pkg/models/shared/owner.go
- internal/sdk/pkg/models/shared/executemappingresp.go
- internal/sdk/pkg/models/shared/mappingwarning.go
- internal/sdk/pkg/models/shared/mappingfailure.go
Expand All @@ -119,12 +120,35 @@ generatedFiles:
- internal/sdk/pkg/models/shared/executerelationsreq.go
- internal/sdk/pkg/models/shared/relationitem.go
- internal/sdk/pkg/models/shared/mappingconfigsresp.go
- internal/sdk/pkg/models/shared/mappingconfigv2.go
- internal/sdk/pkg/models/shared/mappinghistoryresp.go
- internal/sdk/pkg/models/shared/mappinghistoryentry.go
- internal/sdk/pkg/models/shared/searchmappingreq.go
- internal/sdk/pkg/models/shared/security.go
- internal/provider/type_entity_ref.go
- internal/provider/type_journey_ref.go
- internal/provider/type_config.go
- internal/provider/type_source_config.go
- internal/provider/type_append_value_mapper.go
- internal/provider/type_copy_value_mapper.go
- internal/provider/type_set_value_mapper.go
- internal/provider/type_mapping_attribute.go
- internal/provider/type_one.go
- internal/provider/type_two.go
- internal/provider/type_random_operation.go
- internal/provider/type_uniq.go
- internal/provider/type_operation_object_node.go
- internal/provider/type_operation_node.go
- internal/provider/type_mapping_attribute_v2.go
- internal/provider/type_mapping_attributes.go
- internal/provider/type_source_filter.go
- internal/provider/type_relation_attribute.go
- internal/provider/type_target_config.go
- USAGE.md
- internal/provider/provider.go
- examples/provider/provider.tf
- internal/provider/entitymapping_data_source.go
- internal/provider/entitymapping_data_source_sdk.go
- examples/data-sources/epilot-entitymapping_entity_mapping/data-source.tf
- internal/sdk/pkg/models/operations/options.go
- .gitattributes
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ terraform {
required_providers {
epilot-entitymapping = {
source = "epilot-dev/epilot-entitymapping"
version = "0.4.2"
version = "0.4.3"
}
}
}
Expand Down
240 changes: 240 additions & 0 deletions docs/data-sources/entity_mapping.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "epilot-entitymapping_entity_mapping Data Source - terraform-provider-epilot-entitymapping"
subcategory: ""
description: |-
EntityMapping DataSource
---

# epilot-entitymapping_entity_mapping (Data Source)

EntityMapping DataSource

## Example Usage

```terraform
data "epilot-entitymapping_entity_mapping" "my_entitymapping" {
id = "70542580-2b38-4bfc-af8d-bb90102f9f47"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `id` (String) Mapping Config Id

### Read-Only

- `source` (Attributes) (see [below for nested schema](#nestedatt--source))
- `targets` (Attributes List) (see [below for nested schema](#nestedatt--targets))

<a id="nestedatt--source"></a>
### Nested Schema for `source`

Read-Only:

- `config` (Attributes) (see [below for nested schema](#nestedatt--source--config))
- `type` (String) must be one of ["journey", "entity"]

<a id="nestedatt--source--config"></a>
### Nested Schema for `source.config`

Read-Only:

- `entity_ref` (Attributes) (see [below for nested schema](#nestedatt--source--config--entity_ref))
- `journey_ref` (Attributes) (see [below for nested schema](#nestedatt--source--config--journey_ref))

<a id="nestedatt--source--config--entity_ref"></a>
### Nested Schema for `source.config.entity_ref`

Read-Only:

- `entity_id` (String) id of the source entity to be mapped
- `entity_schema` (String) schema of the source entity


<a id="nestedatt--source--config--journey_ref"></a>
### Nested Schema for `source.config.journey_ref`

Read-Only:

- `journey_id` (String)




<a id="nestedatt--targets"></a>
### Nested Schema for `targets`

Read-Only:

- `allow_failure` (Boolean) Pass it as true, when you don't want failures to interrupt the mapping process.
- `condition_mode` (String) Parsed as JSON.
- `conditions` (String) Parsed as JSON.
- `id` (String) Identifier for target configuration. Useful for later usages when trying to identify which target config to map to.
- `linkback_relation_attribute` (String) Relation attribute on the main entity where the target entity will be linked. Set to false to disable linkback

Default: "mapped_entities"
- `linkback_relation_tags` (List of String) Relation tags (labels) to include in main entity linkback relation attribute
- `mapping_attributes` (Attributes List) Attribute mappings (see [below for nested schema](#nestedatt--targets--mapping_attributes))
- `name` (String) A name for this configuration
- `relation_attributes` (Attributes List) Relation mappings (see [below for nested schema](#nestedatt--targets--relation_attributes))
- `target_schema` (String) Schema of target entity
- `target_unique` (List of String) Unique key for target entity (see upsertEntity of Entity API)

<a id="nestedatt--targets--mapping_attributes"></a>
### Nested Schema for `targets.mapping_attributes`

Read-Only:

- `mapping_attribute` (Attributes) (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute))
- `mapping_attribute_v2` (Attributes) (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute_v2))

<a id="nestedatt--targets--mapping_attributes--mapping_attribute"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute`

Read-Only:

- `append_value_mapper` (Attributes) (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute--append_value_mapper))
- `copy_value_mapper` (Attributes) (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute--copy_value_mapper))
- `set_value_mapper` (Attributes) (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute--set_value_mapper))

<a id="nestedatt--targets--mapping_attributes--mapping_attribute--append_value_mapper"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute.set_value_mapper`

Read-Only:

- `mode` (String) - copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.

must be one of ["copy_if_exists", "append_if_exists", "set_value"]
- `source` (String) JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price
- `target` (String) JSON like target path for the attribute. Eg. last_name
- `target_unique` (List of String) Array of keys which should be used when checking for uniqueness. Eg: [country, city, postal_code]
- `value_json` (String) To be provided only when mapping json objects into a target attribute. Eg array of addresses.


<a id="nestedatt--targets--mapping_attributes--mapping_attribute--copy_value_mapper"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute.set_value_mapper`

Read-Only:

- `mode` (String) - copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.

must be one of ["copy_if_exists", "append_if_exists", "set_value"]
- `source` (String) JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price
- `target` (String) JSON like target path for the attribute. Eg. last_name


<a id="nestedatt--targets--mapping_attributes--mapping_attribute--set_value_mapper"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute.set_value_mapper`

Read-Only:

- `mode` (String) - copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.

must be one of ["copy_if_exists", "append_if_exists", "set_value"]
- `target` (String) JSON like target path for the attribute. Eg. last_name
- `value` (String) Any value to be set: string, number, string[], number[], JSON object, etc. It will override existing values, if any.

Parsed as JSON.



<a id="nestedatt--targets--mapping_attributes--mapping_attribute_v2"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute_v2`

Read-Only:

- `operation` (Attributes) Mapping operation nodes are either primitive values or operation node objects (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute_v2--operation))
- `origin` (String) Origin of an attribute. must be one of ["system_recommendation", "user_manually"]
- `target` (String) Target JSON path for the attribute to set

<a id="nestedatt--targets--mapping_attributes--mapping_attribute_v2--operation"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute_v2.target`

Read-Only:

- `any` (String) Parsed as JSON.
- `operation_object_node` (Attributes) (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute_v2--target--operation_object_node))

<a id="nestedatt--targets--mapping_attributes--mapping_attribute_v2--target--operation_object_node"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute_v2.target.operation_object_node`

Read-Only:

- `additional_properties` (String) Parsed as JSON.
- `append` (List of String) Append to array
- `copy` (String) Copy JSONPath value from source entity context
- `random` (Attributes) (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute_v2--target--operation_object_node--random))
- `set` (String) Parsed as JSON.
- `template` (String) Define handlebars template to output a string
- `uniq` (Attributes) Unique array (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute_v2--target--operation_object_node--uniq))

<a id="nestedatt--targets--mapping_attributes--mapping_attribute_v2--target--operation_object_node--random"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute_v2.target.operation_object_node.uniq`

Read-Only:

- `one` (Attributes) (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute_v2--target--operation_object_node--uniq--one))
- `two` (Attributes) (see [below for nested schema](#nestedatt--targets--mapping_attributes--mapping_attribute_v2--target--operation_object_node--uniq--two))

<a id="nestedatt--targets--mapping_attributes--mapping_attribute_v2--target--operation_object_node--uniq--one"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute_v2.target.operation_object_node.uniq.two`

Read-Only:

- `type` (String) must be one of ["uuid", "nanoid"]


<a id="nestedatt--targets--mapping_attributes--mapping_attribute_v2--target--operation_object_node--uniq--two"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute_v2.target.operation_object_node.uniq.two`

Read-Only:

- `max` (Number) Default: 1
- `min` (Number) Default: 0
- `type` (String) must be one of ["number"]



<a id="nestedatt--targets--mapping_attributes--mapping_attribute_v2--target--operation_object_node--uniq"></a>
### Nested Schema for `targets.mapping_attributes.mapping_attribute_v2.target.operation_object_node.uniq`

Read-Only:

- `array_ofstr` (List of String)
- `boolean` (Boolean)






<a id="nestedatt--targets--relation_attributes"></a>
### Nested Schema for `targets.relation_attributes`

Read-Only:

- `mode` (String) must be one of ["append", "prepend", "set"]
- `origin` (String) Origin of an attribute. must be one of ["system_recommendation", "user_manually"]
- `related_to` (Map of String)
- `source_filter` (Attributes) A filter to identify which source entities to pick as relations from main entity (see [below for nested schema](#nestedatt--targets--relation_attributes--source_filter))
- `target` (String) Target attribute to store the relation in
- `target_tags` (List of String) Relation tags (labels) to set for the stored relations
- `target_tags_include_source` (Boolean) Include all relation tags (labels) present on the main entity relation. Default: false

<a id="nestedatt--targets--relation_attributes--source_filter"></a>
### Nested Schema for `targets.relation_attributes.source_filter`

Read-Only:

- `attribute` (String) Filter by a specific relation attribute on the main entity
- `limit` (Number) Limit relations to maximum number (default, all matched relations)
- `relation_tag` (String) Filter by relation tag (label) on the main entity
- `schema` (String) Filter by specific schema
- `self` (Boolean) Picks main entity as relation (overrides other filters). Default: false
- `tag` (String) Filter by a specific tag on the related entity


2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ terraform {
required_providers {
epilot-entitymapping = {
source = "epilot-dev/epilot-entitymapping"
version = "0.4.2"
version = "0.4.3"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "epilot-entitymapping_entity_mapping" "my_entitymapping" {
id = "70542580-2b38-4bfc-af8d-bb90102f9f47"
}
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
epilot-entitymapping = {
source = "epilot-dev/epilot-entitymapping"
version = "0.4.2"
version = "0.4.3"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
sdkFlattening: true
telemetryEnabled: false
terraform:
version: 0.4.2
version: 0.4.3
author: epilot-dev
imports:
option: openapi
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module github.com/epilot-dev/terraform-provider-epilot-entitymapping

go 1.20
go 1.18

require (
github.com/cenkalti/backoff/v4 v4.2.0
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05
github.com/hashicorp/terraform-plugin-framework v1.3.5
github.com/hashicorp/terraform-plugin-go v0.18.0
github.com/spyzhov/ajson v0.9.0
)

require (
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
github.com/spyzhov/ajson v0.9.0 h1:tF46gJGOenYVj+k9K1U1XpCxVWhmiyY5PsVCAs1+OJ0=
github.com/spyzhov/ajson v0.9.0/go.mod h1:a6oSw0MMb7Z5aD2tPoPO+jq11ETKgXUr2XktHdT8Wt8=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
Expand Down
Loading

0 comments on commit fea0058

Please sign in to comment.