@adobe/aio-lib-customer-profile

中文文档
3.0.2发布于 2025/09/04Apache-2.0TypeScriptCommonJS近 30 天下载 2.4万

Adobe I/O Customer Profile Lib

原始使用文档
文档目录73 节
  1. Installing
  2. Usage
  3. Classes
  4. Functions
  5. CustomerProfileAPI
  6. customerProfileAPI.tenantId : string
  7. customerProfileAPI.iMSOrgId : string
  8. customerProfileAPI.apiKey : string
  9. customerProfileAPI.accessToken : string
  10. customerProfileAPI.sandbox : string
  11. customerProfileAPI.init(tenantId, iMSOrgId, apiKey, accessT…
  12. customerProfileAPI.getProfile([parameters]) ⇒ Promise.<Resp…
  13. customerProfileAPI.getExperienceEvents([parameters]) ⇒ Prom…
  14. customerProfileAPI.listComputedAttributes([parameters]) ⇒ P…
  15. customerProfileAPI.createComputedAttribute([parameters]) ⇒ …
  16. customerProfileAPI.lookupComputedAttribute([parameters]) ⇒ …
  17. customerProfileAPI.updateComputedAttribute([parameters]) ⇒ …
  18. customerProfileAPI.deleteComputedAttribute([parameters]) ⇒ …
  19. customerProfileAPI.getConfigMergePolicies([parameters]) ⇒ P…
  20. customerProfileAPI.postConfigMergePolicies([parameters]) ⇒ …
  21. customerProfileAPI.getConfigMergePoliciesMergePolicyId([par…
  22. customerProfileAPI.putConfigMergePoliciesMergePolicyId([par…
  23. customerProfileAPI.patchConfigMergePoliciesMergePolicyId([p…
  24. customerProfileAPI.deleteConfigMergePoliciesMergePolicyId([…
  25. customerProfileAPI.getAccessEntities([parameters]) ⇒ Promis…
  26. customerProfileAPI.postAccessEntities([parameters]) ⇒ Promi…
  27. customerProfileAPI.deleteAccessEntities([parameters]) ⇒ Pro…
  28. customerProfileAPI.getScanJobsRoute([parameters]) ⇒ Promise…
  29. customerProfileAPI.postScanJobRoute([parameters]) ⇒ Promise…
  30. customerProfileAPI.getScanJobRoute([parameters]) ⇒ Promise.…
  31. customerProfileAPI.cancelScanJobRoute([parameters]) ⇒ Promi…
  32. customerProfileAPI.getSegmentsRoute([parameters]) ⇒ Promise…
  33. customerProfileAPI.postSegmentRoute([parameters]) ⇒ Promise…
  34. customerProfileAPI.getSegmentRoute([parameters]) ⇒ Promise.…
  35. customerProfileAPI.deleteSegmentRoute([parameters]) ⇒ Promi…
  36. customerProfileAPI.patchSegmentRoute([parameters]) ⇒ Promis…
  37. customerProfileAPI.postSegmentConversionRoute([parameters])…
  38. customerProfileAPI.getSegmentJobs([parameters]) ⇒ Promise.<…
  39. customerProfileAPI.postSJRRoute([parameters]) ⇒ Promise.<Re…
  40. customerProfileAPI.getSegmentJobsSegmentJobId([parameters])…
  41. customerProfileAPI.deleteSegmentJobsSegmentJobId([parameter…
  42. customerProfileAPI.postSessionlessPreviewRoute([parameters]…
  43. customerProfileAPI.getSessionlessPreviewStatusRoute([parame…
  44. customerProfileAPI.deleteSessionLessPreviewStatusRoute([par…
  45. customerProfileAPI.getEstimateStatusRoute([parameters]) ⇒ P…
  46. customerProfileAPI.listProjectionConfigurations([parameters…
  47. customerProfileAPI.createProjectionConfiguration([parameter…
  48. customerProfileAPI.getProjectionConfiguration([parameters])…
  49. customerProfileAPI.updateProjectionConfiguration([parameter…
  50. customerProfileAPI.deleteProjectionConfiguration([parameter…
  51. customerProfileAPI.listProjectionDestinations([parameters])…
  52. customerProfileAPI.createProjectionDestination([parameters]…
  53. customerProfileAPI.getProjectionDestination([parameters]) ⇒…
  54. customerProfileAPI.putProjectionDestination([parameters]) ⇒…
  55. customerProfileAPI.deleteProjectionDestination([parameters]…
  56. customerProfileAPI.getConfigEventTypes([parameters]) ⇒ Prom…
  57. customerProfileAPI.postConfigEventTypes([parameters]) ⇒ Pro…
  58. customerProfileAPI.getConfigEventTypesEventTypeId([paramete…
  59. customerProfileAPI.putConfigEventTypesEventTypeId([paramete…
  60. customerProfileAPI.patchConfigEventTypesEventTypeId([parame…
  61. customerProfileAPI.deleteConfigEventTypesEventTypeId([param…
  62. customerProfileAPI.getConfigMacros([parameters]) ⇒ Promise.…
  63. customerProfileAPI.postConfigMacros([parameters]) ⇒ Promise…
  64. customerProfileAPI.getConfigMacrosMacroId([parameters]) ⇒ P…
  65. customerProfileAPI.putConfigMacrosMacroId([parameters]) ⇒ P…
  66. customerProfileAPI.patchConfigMacrosMacroId([parameters]) ⇒…
  67. customerProfileAPI.deleteConfigMacrosMacroId([parameters]) …
  68. customerProfileAPI.getSchedules([parameters]) ⇒ Promise.<Re…
  69. customerProfileAPI.createSchedule([parameters]) ⇒ Promise.<…
  70. customerProfileAPI.getScheduleById([parameters]) ⇒ Promise.…
  71. customerProfileAPI.updateSchedule([parameters]) ⇒ Promise.<…
  72. customerProfileAPI.deleteSchedule([parameters]) ⇒ Promise.<…
  73. customerProfileAPI.listDeleteRequests([parameters]) ⇒ Promi…

Version Downloads/week Node.js CI License Codecov Coverage

Adobe I/O Adobe Experience Platform Realtime Customer Profile SDK

Node JavaScript SDK wrapping the Adobe Experience Platform Realtime Customer Profile API

Installing

$ npm install @adobe/aio-lib-customer-profile

Usage

  1. Initialize the SDK
const sdk = require('@adobe/aio-lib-customer-profile')

async function sdkTest() {
  //initialize sdk
  const client = await sdk.init('<tenant>', '<iMSOrgId>', 'x-api-key', '<valid auth token>', '[sandbox]')
}
  1. Call methods using the initialized SDK
const sdk = require('@adobe/aio-lib-customer-profile')

async function sdkTest() {
  // initialize sdk
  const client = await sdk.init('<tenant>', '<iMSOrgId>', 'x-api-key', '<valid auth token>', '[sandbox]')

  // call methods
  try {
    // get profiles by custom filters
    const result = await client.getSegmentRoute({
        segmentId: 'abc123'
    })
    console.log(result)

  } catch (e) {
    console.error(e)
  }
}

Classes

CustomerProfileAPI

This class provides methods to call your CustomerProfileAPI APIs. Before calling any method initialize the instance by calling the init method on it with valid values for tenantId, apiKey and accessToken

OpenApi

Create dynamic methods from openApi spec file

Functions

init(tenantId, iMSOrgId, apiKey, accessToken, [sandbox]) ⇒ Promise.<CustomerProfileAPI>

Returns a Promise that resolves with a new CustomerProfileAPI object.

CustomerProfileAPI

This class provides methods to call your CustomerProfileAPI APIs. Before calling any method initialize the instance by calling the init method on it with valid values for tenantId, apiKey and accessToken

Kind: global class

customerProfileAPI.tenantId : string

The tenant id

Kind: instance property of CustomerProfileAPI

customerProfileAPI.iMSOrgId : string

The iMSOrgId

Kind: instance property of CustomerProfileAPI

customerProfileAPI.apiKey : string

The api key from your integration

Kind: instance property of CustomerProfileAPI

customerProfileAPI.accessToken : string

The access token from your integration

Kind: instance property of CustomerProfileAPI

customerProfileAPI.sandbox : string

The sandbox name

Kind: instance property of CustomerProfileAPI

customerProfileAPI.init(tenantId, iMSOrgId, apiKey, accessToken, [sandbox]) ⇒ Promise.<CustomerProfileAPI>

Initializes a CustomerProfileAPI object and returns it.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<CustomerProfileAPI> - a CustomerProfileAPI object

ParamTypeDescription
tenantIdstringthe tenant id
iMSOrgIdstringthe iMSOrgId for your integration
apiKeystringthe API key for your integration
accessTokenstringthe access token for your integration
[sandbox]stringsandbox name

customerProfileAPI.getProfile([parameters]) ⇒ Promise.<Response>

Get Profile by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass

customerProfileAPI.getExperienceEvents([parameters]) ⇒ Promise.<Response>

Get ExperienceEvents.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass

customerProfileAPI.listComputedAttributes([parameters]) ⇒ Promise.<Response>

Retrieve a list of computed attributes.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass

customerProfileAPI.createComputedAttribute([parameters]) ⇒ Promise.<Response>

Create a computed attribute.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass

customerProfileAPI.lookupComputedAttribute([parameters]) ⇒ Promise.<Response>

Retrieve a specific computed attribute by its ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.ATTRIBUTE_IDstringThe unique, read-only ID of the computed attribute that is generated by the system when the attribute is created.

customerProfileAPI.updateComputedAttribute([parameters]) ⇒ Promise.<Response>

Update a computed attribute by its ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.ATTRIBUTE_IDstringThe unique, read-only ID of the computed attribute that is generated by the system when the attribute is created.

customerProfileAPI.deleteComputedAttribute([parameters]) ⇒ Promise.<Response>

Delete a computed attribute by its ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.ATTRIBUTE_IDstringThe unique, read-only ID of the computed attribute that is generated by the system when the attribute is created.

customerProfileAPI.getConfigMergePolicies([parameters]) ⇒ Promise.<Response>

Retrieve a list of merge policies.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
[parameters.'x-request-id']stringRequest Id
[parameters.start]stringPage offset - As per created time of resource
[parameters.limit]numberPage Size
[parameters.orderBy]stringModel attribute which will be using for ordering
[parameters.'schema.name']stringSchema class ID
[parameters.default]booleandefault flag

customerProfileAPI.postConfigMergePolicies([parameters]) ⇒ Promise.<Response>

Create a new merge policy.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'Content-Type'stringType of content being sent in the body of the request. Should be 'application/json'.
parameters.'x-profile-instance-id'stringProfile Instance ID
[parameters.'x-request-id']stringRequest Id

customerProfileAPI.getConfigMergePoliciesMergePolicyId([parameters]) ⇒ Promise.<Response>

Lookup a merge policy by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.mergePolicyIdstringMerge policy ID.
[parameters.'x-request-id']stringRequest Id

customerProfileAPI.putConfigMergePoliciesMergePolicyId([parameters]) ⇒ Promise.<Response>

Update a merge policy by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.mergePolicyIdstringMerge policy ID.
parameters.'x-profile-instance-id'stringProfile Instance ID
[parameters.'x-request-id']stringRequest Id

customerProfileAPI.patchConfigMergePoliciesMergePolicyId([parameters]) ⇒ Promise.<Response>

Update one or more attributes of a merge policy specified by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.mergePolicyIdstringMerge policy ID.
parameters.'x-profile-instance-id'stringProfile Instance ID
[parameters.'x-request-id']stringRequest Id

customerProfileAPI.deleteConfigMergePoliciesMergePolicyId([parameters]) ⇒ Promise.<Response>

Delete a merge policy by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.mergePolicyIdstringMerge policy ID.
[parameters.'x-request-id']stringRequest Id

customerProfileAPI.getAccessEntities([parameters]) ⇒ Promise.<Response>

Lookup an entity by ID or namespace.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'schema.name'stringXED schema class name.
[parameters.'relatedSchema.name']stringXDM schema class name that the ExperienceEvent is associated with. Used when looking up ExperienceEvents.
[parameters.entityId]stringID of the entity. For Native XID lookup, use entityId=<XID> and leave entityIdNS absent; For ID:NS lookup, use both entityId and entityIdNS fields.
[parameters.entityIdNS]stringIdentity Namespace code. Used for ID:NS lookup. If this field is used, entityId cannot be empty.
[parameters.relatedEntityId]stringID of the entity that the ExperienceEvents are associated with. Used when looking up ExperienceEvents. For Native XID lookup, use relatedEntityId=<XID> and leave relatedEntityIdNS absent; For ID:NS lookup, use both relatedEntityId and relatedEntityIdNS fields.
[parameters.relatedEntityIdNS]stringIdentity Namespace code of the related entity ID of ExperienceEvent. Used when looking up ExperienceEvents. If this field is used, entityId cannot be empty.
[parameters.fields]stringFields for the model object. By default, all fields will be fetched. Separated by comma.
[parameters.mergePolicyId]stringID of the merge policy. A merge policy includes information for Identity stitching and key-value XDM object merging. If not present, the default merge policy will be used.
[parameters.startTime]numberStart time of Time range filter for ExperienceEvents. Should be at millisecond granularity. Included. Default: From beginning.
[parameters.endTime]numberEnd time of Time range filter for ExperienceEvents. Should be at millisecond granularity. Excluded. Default: To the end.
[parameters.limit]numberNumber of records to return from the result. Only for time-series objects. Default: 1000
[parameters.orderby]stringThe sort order of retrieved ExperienceEvents by timestamp. Syntax: (+/-)timestamp. Default: +timestamp

customerProfileAPI.postAccessEntities([parameters]) ⇒ Promise.<Response>

Lookup multiple entities by IDs or namespaces.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'Content-Type'stringType of content being sent in the body of the request. Should be 'application/json'.

customerProfileAPI.deleteAccessEntities([parameters]) ⇒ Promise.<Response>

Delete an entity by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'schema.name'stringName of the associated XDM schema.
[parameters.entityId]stringID of the entity. For Native XID, use entityId=<XID> and leave entityIdNS absent; For ID:NS, use both entityId and entityIdNS fields.
[parameters.entityIdNS]stringIdentity Namespace code. Used for ID:NS. If this field is used, entityId cannot be empty.
[parameters.mergePolicyId]stringID of the merge policy. A merge policy includes information for Identity stitching and key-value XDM object merging. If not present, the default merge policy will be used.

customerProfileAPI.getScanJobsRoute([parameters]) ⇒ Promise.<Response>

Retrieve a list of all export jobs.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
[parameters.limit]numberLimit the number of export jobs returned in the list.
[parameters.offset]stringOffset the page of results returned (ordered by created time of resource)
[parameters.status]stringFilter the export jobs returned by job status. Possible values are "NEW", "SUCCEEDED", and "FAILED".

customerProfileAPI.postScanJobRoute([parameters]) ⇒ Promise.<Response>

Create a new export job.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'Content-Type'stringType of content being sent in the body of the request. Should be 'application/json'.
[parameters.'x-profile-instance-id']stringProfile Instance ID

customerProfileAPI.getScanJobRoute([parameters]) ⇒ Promise.<Response>

Lookup an export job by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.exportJobIdstringExport job ID

customerProfileAPI.cancelScanJobRoute([parameters]) ⇒ Promise.<Response>

Cancel or delete an export job by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.exportJobIdstringExport job ID

customerProfileAPI.getSegmentsRoute([parameters]) ⇒ Promise.<Response>

Retrieve a list of segment definitions.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'x-request-id'stringUnique ID per request
[parameters.start]numberPage offset - As per created time of resource
[parameters.limit]numberPage size
[parameters.page]numberPage number
[parameters.sort]stringSort parameters

customerProfileAPI.postSegmentRoute([parameters]) ⇒ Promise.<Response>

Create a new segment definition.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'Content-Type'stringType of content being sent in the body of the request. Should be 'application/json'.
parameters.'x-request-id'stringUnique ID per request

customerProfileAPI.getSegmentRoute([parameters]) ⇒ Promise.<Response>

Lookup a segment definition by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.segmentIdstringSegment Definition ID.
parameters.'x-request-id'stringUnique ID per request

customerProfileAPI.deleteSegmentRoute([parameters]) ⇒ Promise.<Response>

Delete a segment definition by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.segmentIdstringSegment Definition ID.
parameters.'x-request-id'stringUnique ID per request

customerProfileAPI.patchSegmentRoute([parameters]) ⇒ Promise.<Response>

Overwrite a segment definition.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.segmentIdstringSegment Definition ID.
parameters.'Content-Type'stringType of content being sent in the body of the request. Should be 'application/json'.
parameters.'x-request-id'stringUnique ID per request

customerProfileAPI.postSegmentConversionRoute([parameters]) ⇒ Promise.<Response>

Convert PQL formatting between pql/text and pql/json.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'Content-Type'stringType of content being sent in the body of the request. Should be 'application/json'.
parameters.'x-request-id'stringUnique ID per request

customerProfileAPI.getSegmentJobs([parameters]) ⇒ Promise.<Response>

Retrieve a list of all segment job requests.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
[parameters.'x-request-id']stringRequest ID
[parameters.start]numberPage Offset - As per created Time of resource
[parameters.limit]numberPage Size
[parameters.status]stringThe job status

customerProfileAPI.postSJRRoute([parameters]) ⇒ Promise.<Response>

Create a new segment job request.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'Content-Type'stringType of content being sent in the body of the request. Should be 'application/json'.
parameters.'x-profile-instance-id'stringProfile Instance ID
[parameters.'x-request-id']stringRequest ID

customerProfileAPI.getSegmentJobsSegmentJobId([parameters]) ⇒ Promise.<Response>

Lookup a segment job request by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.segmentJobIdstringSegment job request ID.
[parameters.'x-request-id']stringRequest ID

customerProfileAPI.deleteSegmentJobsSegmentJobId([parameters]) ⇒ Promise.<Response>

Cancel or delete a segment job request by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.segmentJobIdstringSegment job request ID.
[parameters.'x-request-id']stringRequest ID

customerProfileAPI.postSessionlessPreviewRoute([parameters]) ⇒ Promise.<Response>

Create a new preview job.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'Content-Type'stringType of content being sent in the body of the request. Should be 'application/json'.

customerProfileAPI.getSessionlessPreviewStatusRoute([parameters]) ⇒ Promise.<Response>

Lookup the results of a preview job by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.previewIdstringID of the preview job.
[parameters.offset]stringPage offset
[parameters.limit]numberHow many entries should be present in a page. 1000 if not specified.

customerProfileAPI.deleteSessionLessPreviewStatusRoute([parameters]) ⇒ Promise.<Response>

Cancel or delete a preview job by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.previewIdstringID of the preview job.

customerProfileAPI.getEstimateStatusRoute([parameters]) ⇒ Promise.<Response>

Lookup the results of an estimate job by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.previewIdstringID of the preview job.

customerProfileAPI.listProjectionConfigurations([parameters]) ⇒ Promise.<Response>

Retrieve a list of edge projection configurations. The latest definitions are returned.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'x-gw-ims-authorization'stringGateway IMS service token.
[parameters.schemaName]stringXDM schema name
[parameters.name]stringprojection name
[parameters.'x-user-token']stringUser access token.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a client flow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.createProjectionConfiguration([parameters]) ⇒ Promise.<Response>

Create a new edge projection configuration.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.schemaNamestringXDM schema name
parameters.'x-gw-ims-authorization'stringGateway IMS service token.
[parameters.'x-user-token']stringUser access token.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a client flow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.getProjectionConfiguration([parameters]) ⇒ Promise.<Response>

Lookup an edge projection configuration by ID. The latest definition is returned.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.projectionidstringundefined
parameters.'x-gw-ims-authorization'stringGateway IMS service token.
[parameters.'x-user-token']stringUser access token.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a client flow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.updateProjectionConfiguration([parameters]) ⇒ Promise.<Response>

Create or update an edge projection configuration by ID. Overwrites the entire configuration.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.projectionidstringundefined
parameters.'x-gw-ims-authorization'stringGateway IMS service token.
[parameters.'x-user-token']stringUser access token.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a client flow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.deleteProjectionConfiguration([parameters]) ⇒ Promise.<Response>

Delete an edge projection configuration by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.projectionidstringundefined
parameters.'x-gw-ims-authorization'stringGateway IMS service token.
[parameters.'x-user-token']stringUser access token.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a client flow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.listProjectionDestinations([parameters]) ⇒ Promise.<Response>

Retrieve a list of edge projection destinations. The latest definitions are returned.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.createProjectionDestination([parameters]) ⇒ Promise.<Response>

Create a new edge projection destination.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'x-gw-ims-authorization'stringGateway IMS service token.
[parameters.'x-user-token']stringUser access token.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a client flow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.getProjectionDestination([parameters]) ⇒ Promise.<Response>

Lookup an edge projection destination by ID. The latest definition is returned.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.destinationIdstringundefined
parameters.'x-gw-ims-authorization'stringGateway IMS service token.
[parameters.'x-user-token']stringUser access token.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a client flow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.putProjectionDestination([parameters]) ⇒ Promise.<Response>

Create or update an edge projection destination by ID. Overwrites the entire configuration.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.destinationIdstringundefined
parameters.'x-gw-ims-authorization'stringGateway IMS service token.
[parameters.'x-user-token']stringUser access token.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a client flow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.deleteProjectionDestination([parameters]) ⇒ Promise.<Response>

Delete an edge projection destination by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.destinationIdstringundefined
parameters.'x-gw-ims-authorization'stringGateway IMS service token.
[parameters.'x-user-token']stringUser access token.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a client flow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.getConfigEventTypes([parameters]) ⇒ Promise.<Response>

Retrieve a list of event types.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.
[parameters.start]numberPage offset for the response. Default is 0.
[parameters.limit]numberPage size
[parameters.orderBy]stringThe model attribute to be used for ordering.

customerProfileAPI.postConfigEventTypes([parameters]) ⇒ Promise.<Response>

Create a new event type.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'x-profile-instance-id'stringProfile instance ID.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.getConfigEventTypesEventTypeId([parameters]) ⇒ Promise.<Response>

Lookup an event type by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.eventTypeIdstringEvent type ID.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.putConfigEventTypesEventTypeId([parameters]) ⇒ Promise.<Response>

Overwrite an event type by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.eventTypeIdstringEvent type ID.
parameters.'x-profile-instance-id'stringProfile instance ID.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.patchConfigEventTypesEventTypeId([parameters]) ⇒ Promise.<Response>

Update one or more attributes of an event type by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.eventTypeIdstringEvent type ID.
parameters.'x-profile-instance-id'stringProfile instance ID.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.deleteConfigEventTypesEventTypeId([parameters]) ⇒ Promise.<Response>

Delete an event type by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.eventTypeIdstringEvent type ID.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.getConfigMacros([parameters]) ⇒ Promise.<Response>

Retrieve a list of all macros for your organization.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
[parameters.'x-request-id']stringRequest ID
[parameters.start]stringPage offset (at the created time of resource)
[parameters.limit]numberMaximum number of objects to display on each page.
[parameters.orderBy]stringModel attribute which will be using for ordering.
[parameters.dataSetId]stringDataset ID.
[parameters.schemaClassId]stringSchema class ID.
[parameters.value]stringEvent type value.

customerProfileAPI.postConfigMacros([parameters]) ⇒ Promise.<Response>

Create a new macro.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'x-profile-instance-id'stringProfile Instance ID
[parameters.'x-request-id']stringRequest ID

customerProfileAPI.getConfigMacrosMacroId([parameters]) ⇒ Promise.<Response>

Lookup a macro by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.macroIdstringMacro ID. For example, ca8fe8a8-0f38-478a-9905-fd515d1d2988
[parameters.'x-request-id']stringRequest Id

customerProfileAPI.putConfigMacrosMacroId([parameters]) ⇒ Promise.<Response>

Overwrite a macro by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.macroIdstringMacro ID. For example, ca8fe8a8-0f38-478a-9905-fd515d1d2988
parameters.'x-profile-instance-id'stringProfile Instance ID
[parameters.'x-request-id']stringRequest ID

customerProfileAPI.patchConfigMacrosMacroId([parameters]) ⇒ Promise.<Response>

Update a macro by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.macroIdstringMacro ID. For example, ca8fe8a8-0f38-478a-9905-fd515d1d2988
parameters.'x-profile-instance-id'stringProfile Instance ID.
[parameters.'x-request-id']stringRequest ID.

customerProfileAPI.deleteConfigMacrosMacroId([parameters]) ⇒ Promise.<Response>

Delete a macro by ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.macroIdstringMacro ID. For example, ca8fe8a8-0f38-478a-9905-fd515d1d2988
[parameters.'x-request-id']stringRequest ID.

customerProfileAPI.getSchedules([parameters]) ⇒ Promise.<Response>

Retrieve a list of schedules for your IMS Org

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.
[parameters.start]numberReturn results from a specific page offset. For example, start=3
[parameters.limit]numberLimit response to a specific number of objects. Must be a positive number. For example, limit=10

customerProfileAPI.createSchedule([parameters]) ⇒ Promise.<Response>

Create a schedule, including specifying the time when the schedule should be triggered.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.'Content-Type'stringType of content being sent in the body of the request. Should be 'application/json'.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.getScheduleById([parameters]) ⇒ Promise.<Response>

Lookup a schedule by its ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.SCHEDULE_IDstringThe ID of the schedule against which the operation is being performed.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.updateSchedule([parameters]) ⇒ Promise.<Response>

Update a schedule, including changing the trigger time or enabling/disabling the schedule.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.SCHEDULE_IDstringThe ID of the schedule against which the operation is being performed.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.deleteSchedule([parameters]) ⇒ Promise.<Response>

Delete a schedule by its ID.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
parameters.SCHEDULE_IDstringThe ID of the schedule against which the operation is being performed.
[parameters.'x-request-id']stringOptional header that may be used for debugging purposes when investigating issues with a workflow. The same ID can be used to identify a single request to the service from a flow. A new ID should be created for each request.

customerProfileAPI.listDeleteRequests([parameters]) ⇒ Promise.<Response>

Retrieve a list of all delete requests (Profile System Jobs) created by your organization.

Kind: instance method of CustomerProfileAPI
Returns: Promise.<Response> - the response

ParamTypeDefaultDescription
[parameters]object{}parameters to pass
[parameters.sta

版本与发布记录

@adobe/aio-lib-customer-profile 共发布 13 个版本,首次发布于 2020/03/02;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.0.2latest2025/09/041.2 年前
3.0.12024/02/122 年前
3.0.02024/01/102 年前
2.0.2-pre.2024-01-08.sha-ddb21343next2024/01/082 年前
2.0.22023/09/213 年前
2.0.12023/07/103 年前

关于 @adobe/aio-lib-customer-profile 的常见问题

@adobe/aio-lib-customer-profile 是什么?

Adobe I/O Customer Profile Lib

如何安装 @adobe/aio-lib-customer-profile?

在项目目录运行 npm install @adobe/aio-lib-customer-profile,或使用 pnpm add / yarn add / bun add。

@adobe/aio-lib-customer-profile 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@adobe/aio-lib-customer-profile 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@adobe/aio-lib-customer-profile 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@adobe/aio-lib-customer-profile 可以商用吗?

@adobe/aio-lib-customer-profile 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@adobe/aio-lib-customer-profile 的下载量有多少?

根据 npm 官方下载统计,@adobe/aio-lib-customer-profile 在 2026/10/05 – 2026/11/03 这 30 天内被下载 24,229 次,日均约 808 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@adobe/aio-lib-customer-profile 还在维护吗?

最新版本 3.0.2 发布于 2025/09/04(1.2 年前);至今共发布 13 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/03/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。