diff --git a/api.ts b/api.ts index 099848c..a6a57f0 100644 --- a/api.ts +++ b/api.ts @@ -24,7 +24,7 @@ import type { RequestArgs } from './base'; import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** - * + * * @export * @interface ApiProblem */ @@ -32,19 +32,19 @@ export interface ApiProblem { [key: string]: any; /** - * + * * @type {string} * @memberof ApiProblem */ 'title': string; /** - * + * * @type {string} * @memberof ApiProblem */ 'type': string; /** - * + * * @type {string} * @memberof ApiProblem */ @@ -69,7 +69,7 @@ export interface Browser { */ 'version': string | null; /** - * + * * @type {BrowserType} * @memberof Browser */ @@ -95,7 +95,7 @@ export type BrowserType = typeof BrowserType[keyof typeof BrowserType]; /** - * + * * @export * @interface Campaign */ @@ -211,7 +211,7 @@ export interface CartItem { */ 'index': number; /** - * + * * @type {ProductDetails} * @memberof CartItem */ @@ -248,7 +248,7 @@ export interface CartItem { */ export interface CartModified extends EventPayload { /** - * + * * @type {Cart} * @memberof CartModified */ @@ -261,7 +261,7 @@ export interface CartModified extends EventPayload { */ export interface CartViewed extends EventPayload { /** - * + * * @type {Cart} * @memberof CartViewed */ @@ -274,7 +274,7 @@ export interface CartViewed extends EventPayload { */ export interface CheckoutStarted extends EventPayload { /** - * + * * @type {Cart} * @memberof CheckoutStarted */ @@ -293,7 +293,7 @@ export interface CheckoutStarted extends EventPayload { */ export interface ClientDetected extends EventPayload { /** - * + * * @type {WebClient} * @memberof ClientDetected */ @@ -318,13 +318,13 @@ export interface Device { */ 'vendor': string | null; /** - * + * * @type {DeviceCategory} * @memberof Device */ 'category': DeviceCategory; /** - * + * * @type {OperatingSystem} * @memberof Device */ @@ -351,7 +351,7 @@ export type DeviceCategory = typeof DeviceCategory[keyof typeof DeviceCategory]; /** - * + * * @export * @interface Event */ @@ -375,13 +375,13 @@ export interface Event { */ 'timestamp': number; /** - * + * * @type {EventContext} * @memberof Event */ 'context': EventContext | null; /** - * + * * @type {EventPayload} * @memberof Event */ @@ -394,13 +394,13 @@ export interface Event { */ export interface EventContext { /** - * + * * @type {string} * @memberof EventContext */ 'type': string; /** - * + * * @type {{ [key: string]: string | undefined; }} * @memberof EventContext */ @@ -456,82 +456,82 @@ export interface EventOccurred extends EventPayload { */ export interface EventPayload { /** - * + * * @type {string} * @memberof EventPayload */ '@type': string; } /** - * + * * @export * @interface EventResponse */ export interface EventResponse { /** - * + * * @type {Array} * @memberof EventResponse */ 'items': Array; /** - * + * * @type {EventResponseMetadata} * @memberof EventResponse */ 'metadata': EventResponseMetadata; /** - * + * * @type {string} * @memberof EventResponse */ 'nextCursor': string; } /** - * + * * @export * @interface EventResponseMetadata */ export interface EventResponseMetadata { /** - * + * * @type {string} * @memberof EventResponseMetadata */ 'organizationName': string; /** - * + * * @type {string} * @memberof EventResponseMetadata */ 'organizationSlug': string; /** - * + * * @type {string} * @memberof EventResponseMetadata */ 'workspaceName': string; /** - * + * * @type {string} * @memberof EventResponseMetadata */ 'workspaceSlug': string; /** - * + * * @type {string} * @memberof EventResponseMetadata */ 'applicationName': string; /** - * + * * @type {string} * @memberof EventResponseMetadata */ 'applicationSlug': string; } /** - * + * * @export * @enum {string} */ @@ -613,7 +613,7 @@ export interface GoalCompleted extends EventPayload { */ export interface Location { /** - * + * * @type {LocationContinent} * @memberof Location */ @@ -625,7 +625,7 @@ export interface Location { */ 'country': string | null; /** - * + * * @type {Region} * @memberof Location */ @@ -649,13 +649,13 @@ export interface Location { */ 'timezone': string | null; /** - * + * * @type {GeoPoint} * @memberof Location */ 'coordinates': GeoPoint | null; /** - * + * * @type {LocationSource} * @memberof Location */ @@ -689,7 +689,7 @@ export type LocationContinent = typeof LocationContinent[keyof typeof LocationCo */ export interface LocationDetected extends EventPayload { /** - * + * * @type {Location} * @memberof LocationDetected */ @@ -823,7 +823,7 @@ export interface Order { */ 'installments': number | null; /** - * + * * @type {OrderStatus} * @memberof Order */ @@ -844,7 +844,7 @@ export interface OrderItem { */ 'index': number; /** - * + * * @type {ProductDetails} * @memberof OrderItem */ @@ -881,7 +881,7 @@ export interface OrderItem { */ export interface OrderPlaced extends EventPayload { /** - * + * * @type {Order} * @memberof OrderPlaced */ @@ -1032,7 +1032,7 @@ export interface ProductDetails { */ export interface ProductViewed extends EventPayload { /** - * + * * @type {ProductDetails} * @memberof ProductViewed */ @@ -1058,7 +1058,7 @@ export interface Region { 'code': string | null; } /** - * + * * @export * @interface Session */ @@ -1082,13 +1082,13 @@ export interface Session { */ 'parentId'?: string | null; /** - * The flag that indicates whether the user is anonymous. - * @type {boolean} + * The external user ID that is used to identify the user on the application side, unique across the workspace. It is always null for anonymous users. + * @type {string} * @memberof Session */ - 'isAnonymous'?: boolean; + 'externalUserId'?: string | null; /** - * + * * @type {SessionWindow} * @memberof Session */ @@ -1112,19 +1112,19 @@ export interface Session { */ 'landingPageUrl'?: string | null; /** - * + * * @type {Campaign} * @memberof Session */ 'campaign'?: Campaign; /** - * + * * @type {Location} * @memberof Session */ 'location'?: Location; /** - * + * * @type {WebClient} * @memberof Session */ @@ -1136,26 +1136,26 @@ export interface Session { */ 'attributes'?: { [key: string]: any | undefined | null; }; /** - * + * * @type {SessionStatistics} * @memberof Session */ 'statistics'?: SessionStatistics; } /** - * + * * @export * @interface SessionResponse */ export interface SessionResponse { /** - * + * * @type {Array} * @memberof SessionResponse */ 'items': Array; /** - * + * * @type {string} * @memberof SessionResponse */ @@ -1193,13 +1193,13 @@ export interface SessionStatistics { */ export interface SessionWindow { /** - * + * * @type {number} * @memberof SessionWindow */ 'start'?: number; /** - * + * * @type {number} * @memberof SessionWindow */ @@ -1218,13 +1218,13 @@ export interface SlotPersonalized { */ '@type': string; /** - * + * * @type {SlotPersonalizedPersonalization} * @memberof SlotPersonalized */ 'personalization': SlotPersonalizedPersonalization; /** - * + * * @type {SlotPersonalizedMetadata} * @memberof SlotPersonalized */ @@ -1280,7 +1280,7 @@ export interface SlotPersonalizedMetadata { 'variantName': string | null; } /** - * + * * @export * @interface SlotPersonalizedPersonalization */ @@ -1310,14 +1310,14 @@ export interface SlotPersonalizedPersonalization { */ 'contentId': string; /** - * + * * @type {SlotPersonalizedPersonalizationAssignedVariant} * @memberof SlotPersonalizedPersonalization */ 'assignedVariant': SlotPersonalizedPersonalizationAssignedVariant | null; } /** - * + * * @export * @interface SlotPersonalizedPersonalizationAssignedVariant */ @@ -1394,7 +1394,7 @@ export interface TabVisibilityChanged extends EventPayload { */ 'tabId': string; /** - * + * * @type {TabVisibility} * @memberof TabVisibilityChanged */ @@ -1420,7 +1420,7 @@ export interface TestGroupAssigned extends EventPayload { 'groupId': string; } /** - * + * * @export * @interface User */ @@ -1486,7 +1486,7 @@ export interface User { */ 'alternatePhone'?: string | null; /** - * + * * @type {UserAddress} * @memberof User */ @@ -1540,7 +1540,7 @@ export interface User { */ 'lastModifiedTime'?: number; /** - * + * * @type {UserStatistics} * @memberof User */ @@ -1553,56 +1553,56 @@ export interface User { */ export interface UserAddress { /** - * + * * @type {string} * @memberof UserAddress */ 'street'?: string | null; /** - * + * * @type {string} * @memberof UserAddress */ 'district'?: string | null; /** - * + * * @type {string} * @memberof UserAddress */ 'city'?: string | null; /** - * + * * @type {string} * @memberof UserAddress */ 'region'?: string | null; /** - * + * * @type {string} * @memberof UserAddress */ 'country'?: string | null; /** - * + * * @type {string} * @memberof UserAddress */ 'postalCode'?: string | null; } /** - * + * * @export * @interface UserResponse */ export interface UserResponse { /** - * + * * @type {Array} * @memberof UserResponse */ 'items': Array; /** - * + * * @type {string} * @memberof UserResponse */ @@ -1673,13 +1673,13 @@ export interface UserStatistics { */ export interface WebClient { /** - * + * * @type {Browser} * @memberof WebClient */ 'browser': Browser; /** - * + * * @type {Device} * @memberof WebClient */ @@ -1712,12 +1712,12 @@ export interface WebContext extends EventContext { export const ExportApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * - * @param {number} [start] - * @param {number} [end] - * @param {number} [pageSize] - * @param {string} [cursor] - * @param {Array} [events] + * + * @param {number} [start] + * @param {number} [end] + * @param {number} [pageSize] + * @param {string} [cursor] + * @param {Array} [events] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1758,7 +1758,7 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1769,11 +1769,11 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio }; }, /** - * - * @param {number} [start] - * @param {number} [end] - * @param {number} [pageSize] - * @param {string} [cursor] + * + * @param {number} [start] + * @param {number} [end] + * @param {number} [pageSize] + * @param {string} [cursor] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1810,7 +1810,7 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1821,11 +1821,11 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio }; }, /** - * - * @param {number} [start] - * @param {number} [end] - * @param {number} [pageSize] - * @param {string} [cursor] + * + * @param {number} [start] + * @param {number} [end] + * @param {number} [pageSize] + * @param {string} [cursor] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1862,7 +1862,7 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1883,12 +1883,12 @@ export const ExportApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ExportApiAxiosParamCreator(configuration) return { /** - * - * @param {number} [start] - * @param {number} [end] - * @param {number} [pageSize] - * @param {string} [cursor] - * @param {Array} [events] + * + * @param {number} [start] + * @param {number} [end] + * @param {number} [pageSize] + * @param {string} [cursor] + * @param {Array} [events] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1899,11 +1899,11 @@ export const ExportApiFp = function(configuration?: Configuration) { return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** - * - * @param {number} [start] - * @param {number} [end] - * @param {number} [pageSize] - * @param {string} [cursor] + * + * @param {number} [start] + * @param {number} [end] + * @param {number} [pageSize] + * @param {string} [cursor] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1914,11 +1914,11 @@ export const ExportApiFp = function(configuration?: Configuration) { return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** - * - * @param {number} [start] - * @param {number} [end] - * @param {number} [pageSize] - * @param {string} [cursor] + * + * @param {number} [start] + * @param {number} [end] + * @param {number} [pageSize] + * @param {string} [cursor] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1939,7 +1939,7 @@ export const ExportApiFactory = function (configuration?: Configuration, basePat const localVarFp = ExportApiFp(configuration) return { /** - * + * * @param {ExportApiExportEventsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1948,7 +1948,7 @@ export const ExportApiFactory = function (configuration?: Configuration, basePat return localVarFp.exportEvents(requestParameters.start, requestParameters.end, requestParameters.pageSize, requestParameters.cursor, requestParameters.events, options).then((request) => request(axios, basePath)); }, /** - * + * * @param {ExportApiExportSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1957,7 +1957,7 @@ export const ExportApiFactory = function (configuration?: Configuration, basePat return localVarFp.exportSessions(requestParameters.start, requestParameters.end, requestParameters.pageSize, requestParameters.cursor, options).then((request) => request(axios, basePath)); }, /** - * + * * @param {ExportApiExportUsersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1975,35 +1975,35 @@ export const ExportApiFactory = function (configuration?: Configuration, basePat */ export interface ExportApiExportEventsRequest { /** - * + * * @type {number} * @memberof ExportApiExportEvents */ readonly start?: number /** - * + * * @type {number} * @memberof ExportApiExportEvents */ readonly end?: number /** - * + * * @type {number} * @memberof ExportApiExportEvents */ readonly pageSize?: number /** - * + * * @type {string} * @memberof ExportApiExportEvents */ readonly cursor?: string /** - * + * * @type {Array} * @memberof ExportApiExportEvents */ @@ -2017,28 +2017,28 @@ export interface ExportApiExportEventsRequest { */ export interface ExportApiExportSessionsRequest { /** - * + * * @type {number} * @memberof ExportApiExportSessions */ readonly start?: number /** - * + * * @type {number} * @memberof ExportApiExportSessions */ readonly end?: number /** - * + * * @type {number} * @memberof ExportApiExportSessions */ readonly pageSize?: number /** - * + * * @type {string} * @memberof ExportApiExportSessions */ @@ -2052,28 +2052,28 @@ export interface ExportApiExportSessionsRequest { */ export interface ExportApiExportUsersRequest { /** - * + * * @type {number} * @memberof ExportApiExportUsers */ readonly start?: number /** - * + * * @type {number} * @memberof ExportApiExportUsers */ readonly end?: number /** - * + * * @type {number} * @memberof ExportApiExportUsers */ readonly pageSize?: number /** - * + * * @type {string} * @memberof ExportApiExportUsers */ @@ -2088,7 +2088,7 @@ export interface ExportApiExportUsersRequest { */ export class ExportApi extends BaseAPI { /** - * + * * @param {ExportApiExportEventsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2099,7 +2099,7 @@ export class ExportApi extends BaseAPI { } /** - * + * * @param {ExportApiExportSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -2110,7 +2110,7 @@ export class ExportApi extends BaseAPI { } /** - * + * * @param {ExportApiExportUsersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError}