@ninetailed/experience.js-shared
Advanced tools
Comparing version 7.3.2 to 7.4.0
@@ -31,3 +31,3 @@ export * from './lib/types/Endpoints/CreateProfile'; | ||
export { NinetailedApiClient, FEATURES } from './lib/api/NinetailedApiClient'; | ||
export type { NinetailedApiClientOptions, Feature, } from './lib/api/NinetailedApiClient'; | ||
export type { NinetailedApiClientOptions, GetProfileRequestOptions, CreateProfileRequestOptions, UpsertProfileRequestOptions, UpdateProfileRequestOptions, UpsertManyProfilesRequestOptions, Feature, } from './lib/api/NinetailedApiClient'; | ||
export type { FetchImpl } from './lib/api/FetchImpl'; | ||
@@ -34,0 +34,0 @@ export { fetchTimeout } from './lib/api/fetch-timeout'; |
@@ -609,3 +609,3 @@ import { z } from 'zod'; | ||
name: 'Ninetailed React Analytics SDK', | ||
version: "7.3.2" | ||
version: "7.4.0" | ||
}, | ||
@@ -612,0 +612,0 @@ userAgent: ctx.userAgent, |
@@ -84,3 +84,7 @@ import { ProfileWithSelectedVariants } from '../types/SelectedVariantInfo/ProfileWithSelectedVariants'; | ||
}; | ||
type GetProfileRequestOptions = Omit<RequestOptions, 'preflight' | 'plainText'>; | ||
export type CreateProfileRequestOptions = RequestOptions; | ||
export type UpsertProfileRequestOptions = RequestOptions; | ||
export type UpdateProfileRequestOptions = RequestOptions; | ||
export type GetProfileRequestOptions = Omit<RequestOptions, 'preflight' | 'plainText'>; | ||
export type UpsertManyProfilesRequestOptions = Pick<RequestOptions, 'timeout' | 'enabledFeatures'>; | ||
export declare class NinetailedApiClient { | ||
@@ -93,3 +97,3 @@ private readonly clientId; | ||
private logRequestError; | ||
upsertProfile({ profileId, events }: UpsertProfileParams, options?: RequestOptions): Promise<ProfileWithSelectedVariants>; | ||
upsertProfile({ profileId, events }: UpsertProfileParams, options?: UpsertProfileRequestOptions): Promise<ProfileWithSelectedVariants>; | ||
private retryRequest; | ||
@@ -103,3 +107,3 @@ private makeProfileMutationRequest; | ||
*/ | ||
createProfile({ events }: CreateProfileParams, options?: RequestOptions): Promise<ProfileWithSelectedVariants>; | ||
createProfile({ events }: CreateProfileParams, options?: CreateProfileRequestOptions): Promise<ProfileWithSelectedVariants>; | ||
/** | ||
@@ -109,3 +113,3 @@ * Updates a profile with the given profileId. | ||
*/ | ||
updateProfile({ profileId, events }: UpdateProfileParams, options?: RequestOptions): Promise<ProfileWithSelectedVariants>; | ||
updateProfile({ profileId, events }: UpdateProfileParams, options?: UpdateProfileRequestOptions): Promise<ProfileWithSelectedVariants>; | ||
/** | ||
@@ -118,3 +122,3 @@ * Sends multiple events to the Ninetailed API. | ||
*/ | ||
upsertManyProfiles({ events }: UpsertManyProfileParams, options?: Pick<RequestOptions, 'timeout' | 'enabledFeatures'>): Promise<{ | ||
upsertManyProfiles({ events }: UpsertManyProfileParams, options?: UpsertManyProfilesRequestOptions): Promise<{ | ||
location: { | ||
@@ -121,0 +125,0 @@ coordinates?: { |
{ | ||
"name": "@ninetailed/experience.js-shared", | ||
"version": "7.3.2", | ||
"version": "7.4.0", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "@ninetailed/testing-utils": "*" |
Sorry, the diff of this file is not supported yet
148383
4123