Skip to content

Commit 469a5d0

Browse files
committed
Update Identity Readme and migration
Update Identity Readme and migration
1 parent bb4a63f commit 469a5d0

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

docs/migration.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,17 +318,25 @@ ACPIdentity.getExperienceCloudId(): Promise<?string>
318318
Identity.getExperienceCloudId(): Promise<string>
319319
```
320320

321-
322321
#### syncIdentifier
323322
- ACP (2.x)
324323
```javascript
325-
ACPIdentity.syncIdentifiers(identifiers?: { string: string })
324+
ACPIdentity.syncIdentifier(identifierType: String, identifier: String, authenticationState: string)
326325
```
327326
- [AEP (1.x)](https://github.com/adobe/aepsdk-react-native/tree/main/packages/core#syncidentifier)
328327
```typescript
329-
Identity.syncIdentifiers(identifiers?: Record<string, string>)
328+
Identity.syncIdentifier(identifierType: String, identifier: String, authenticationState: MobileVisitorAuthenticationState)
330329
```
331330

331+
#### syncIdentifiers
332+
- ACP (2.x)
333+
```javascript
334+
ACPIdentity.syncIdentifiers(identifiers?: { string: string })
335+
```
336+
- [AEP (1.x)](https://github.com/adobe/aepsdk-react-native/tree/main/packages/core#syncidentifiers)
337+
```typescript
338+
Identity.syncIdentifiers(identifiers?: Record<string, string>)
339+
```
332340

333341
#### syncIdentifiersWithAuthState
334342
- ACP (2.x)
@@ -340,7 +348,6 @@ ACPIdentity.syncIdentifiersWithAuthState(identifiers?: { string: string }, authe
340348
Identity.syncIdentifiersWithAuthState(identifiers: Record<string, string> | null, authenticationState: MobileVisitorAuthenticationState)
341349
```
342350

343-
344351
#### setAdvertisingIdentifier
345352
- ACP (2.x)
346353
```javascript

packages/core/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ This function appends Adobe visitor information to the query component of the sp
273273
**Syntax**
274274

275275
```typescript
276-
appendVisitorInfoForURL(baseURL?: String): Promise<?string>
276+
appendVisitorInfoForURL(baseURL?: String): Promise<string>
277277
```
278278

279279
**Example**
@@ -305,7 +305,7 @@ This function returns an appropriately formed string that contains the Experienc
305305
**Syntax**
306306

307307
```typescript
308-
getUrlVariables(): Promise<?string>
308+
getUrlVariables(): Promise<string>
309309
```
310310

311311
**Example**
@@ -321,7 +321,7 @@ This function returns all customer identifiers that were previously synced with
321321
**Syntax**
322322

323323
```typescript
324-
getIdentifiers(): Promise<Array<?VisitorID>>
324+
getIdentifiers(): Promise<Array<VisitorID>>
325325
```
326326

327327
**Example**
@@ -337,7 +337,7 @@ This function retrieves the Adobe Experience Cloud ID (ECID) that was generated
337337
**Syntax**
338338

339339
```typescript
340-
getExperienceCloudId(): Promise<?string>
340+
getExperienceCloudId(): Promise<string>
341341
```
342342

343343
**Example**
@@ -353,7 +353,7 @@ The `syncIdentifier`, `syncIdentifiers` and `syncIdentifiersWithAuthState` funct
353353
**Syntax**
354354

355355
```typescript
356-
syncIdentifier(identifierType: String, identifier: String, authenticationState: string)
356+
syncIdentifier(identifierType: String, identifier: String, authenticationState: MobileVisitorAuthenticationState)
357357
```
358358

359359
**Example**
@@ -406,7 +406,7 @@ Submits a generic event containing the provided IDFA with event type `generic.id
406406
**Syntax**
407407

408408
```typescript
409-
setAdvertisingIdentifier(advertisingIdentifier?: String)
409+
setAdvertisingIdentifier(advertisingIdentifier?: string)
410410
```
411411

412412
**Example**
@@ -422,7 +422,7 @@ Submits a generic event containing the provided push token with event type `gene
422422
**Syntax**
423423

424424
```typescript
425-
setPushIdentifier(pushIdentifier?: String)
425+
setPushIdentifier(pushIdentifier?: string)
426426
```
427427

428428
**Example**

0 commit comments

Comments
 (0)