Skip to content

Commit

Permalink
Updated API from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Apr 5, 2024
1 parent a374474 commit a9d748d
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
14 changes: 14 additions & 0 deletions api-specs/api/types/common/Attribution.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#%RAML 1.0 DataType
(package): Common
displayName: Attribution
type: object
description: Indicates the source and method that indirectly created or modified the resource. This is present on resources created or updated after 1 April 2024.
properties:
clientId?:
type: string
description: |
`id` of the [API Client](ctp:api:type:ApiClient) that created or modified the resource.
source:
type: AttributionSource
description: |
Method used to initiate the creation or modification of the resource.
10 changes: 10 additions & 0 deletions api-specs/api/types/common/AttributionSource.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#%RAML 1.0 DataType
(package): Common
displayName: AttributionSource
type: string
enum:
- Import
- Export
(enumDescriptions):
Import: Resource was created or updated during import.
Export: Resource was created or updated during export.
4 changes: 4 additions & 0 deletions api-specs/api/types/common/CreatedBy.raml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ properties:
type: string
description: |
Indicates the [anonymous session](ctp:api:type:AnonymousSession) during which the resource was created.
attributedTo?:
type: Attribution
description: |
Indicates if the resource was created indirectly.
associate?:
type: CustomerReference
description: |
Expand Down
4 changes: 4 additions & 0 deletions api-specs/api/types/common/LastModifiedBy.raml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ properties:
type: string
description: |
Indicates the [anonymous session](ctp:api:type:AnonymousSession) during which the resource was modified.
attributedTo?:
type: Attribution
description: |
Indicates if the resource was modified indirectly.
associate?:
type: CustomerReference
description: |
Expand Down
2 changes: 2 additions & 0 deletions api-specs/api/types/types.raml
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ Asset: !include common/Asset.raml
AssetDimensions: !include common/AssetDimensions.raml
AssetDraft: !include common/AssetDraft.raml
AssetSource: !include common/AssetSource.raml
Attribution: !include common/Attribution.raml
AttributionSource: !include common/AttributionSource.raml
BaseAddress: !include common/BaseAddress.raml
BaseResource: !include common/BaseResource.raml
CentPrecisionMoney: !include common/CentPrecisionMoney.raml
Expand Down
12 changes: 12 additions & 0 deletions api-specs/graphql/schema.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,17 @@ input AttributeTypeDraft {
ltext: SimpleAttributeTypeDraft
}

type Attribution {
clientId: String
source: AttributionSource!
userRef: Reference
}

enum AttributionSource {
Export
Import
}

"AuthenticationMode values."
enum AuthenticationMode {
ExternalAuth
Expand Down Expand Up @@ -4672,6 +4683,7 @@ type Initiator {
isPlatformClient: Boolean
externalUserId: String
anonymousId: String
attributedTo: Attribution
clientId: String
customerRef: Reference
userRef: Reference
Expand Down

0 comments on commit a9d748d

Please sign in to comment.