/* tslint:disable */ /* eslint-disable */ /** * Caraer API Documentation * This documentation provides an overview of the Caraer API, including authentication methods, endpoint details, data models, and integration guidelines for building on the Caraer platform. * * The version of the OpenAPI document: 2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from './common'; import type { RequestArgs } from './base'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** * A user, team, or app that can receive record access on an object. */ export interface AccessGrantTargetDTO { /** * UUID of the principal */ 'uuid'?: string; /** * Primary display label */ 'label'?: string; /** * Secondary line (e.g. email) */ 'subtitle'?: string; } export interface AdvancedRecordQueryPlan { 'version'?: number; 'mainObject'?: string; 'mainObjects'?: Array; 'query'?: string; 'filter'?: Filter; 'sort'?: Set; 'show'?: Set; 'strategy'?: AdvancedRecordQueryPlanStrategyEnum; 'anchorRecordUuid'?: string; 'criteria'?: Array; 'graphTraversals'?: Array; 'scoreWeights'?: { [key: string]: number; }; 'includeEvidence'?: boolean; 'maxTraversalDepth'?: number; 'page'?: number; 'limit'?: number; } export const AdvancedRecordQueryPlanStrategyEnum = { Auto: 'AUTO', Structured: 'STRUCTURED', Lexical: 'LEXICAL', Semantic: 'SEMANTIC', Hybrid: 'HYBRID', Graph: 'GRAPH', } as const; export type AdvancedRecordQueryPlanStrategyEnum = typeof AdvancedRecordQueryPlanStrategyEnum[keyof typeof AdvancedRecordQueryPlanStrategyEnum]; /** * Advanced record query. Provide either question or plan, not both. */ export interface AdvancedRecordQueryRequest { /** * Natural-language question to plan and execute. */ 'question'?: string; /** * Validated declarative query plan. */ 'plan'?: AdvancedRecordQueryPlan; /** * Optional main object hint. Use mainObjects for multi-type queries. */ 'mainObject'?: string; /** * Optional object list for multi-type queries (e.g. candidate and vacancy together). */ 'mainObjects'?: Array; 'strategy'?: AdvancedRecordQueryRequestStrategyEnum; 'page'?: number; 'limit'?: number; 'preview'?: string; 'parse'?: any; 'archived'?: boolean; /** * When true, include normalized plan, scores, and evidence. */ 'explain'?: boolean; 'recordReturnFormat'?: string; } export const AdvancedRecordQueryRequestStrategyEnum = { Auto: 'AUTO', Structured: 'STRUCTURED', Lexical: 'LEXICAL', Semantic: 'SEMANTIC', Hybrid: 'HYBRID', Graph: 'GRAPH', } as const; export type AdvancedRecordQueryRequestStrategyEnum = typeof AdvancedRecordQueryRequestStrategyEnum[keyof typeof AdvancedRecordQueryRequestStrategyEnum]; /** * Advanced record query response with scores and evidence. */ export interface AdvancedRecordQueryResponse { 'data'?: Array; 'results'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; 'plan'?: AdvancedRecordQueryPlan; 'confidence'?: number; 'warnings'?: Array; 'diagnostics'?: { [key: string]: any | null; }; } export interface AdvancedRecordQueryResultItem { 'record'?: any; 'recordUuid'?: string; 'objectName'?: string; 'scores'?: ScoreBreakdown; 'criteria'?: Array; 'supportingEvidence'?: Array; 'contradictingEvidence'?: Array; } /** * Batch aggregation request for loading a dashboard. */ export interface AggregateBatchRequest { 'requests'?: Array; } /** * Aggregation request for analytics charts over Neo4j records. */ export interface AggregateRequest { 'xaxis'?: AnalyticsAxisConfig; 'yaxis'?: AnalyticsAxisConfig; /** * Optional client widget id, echoed in batch responses. */ 'id'?: string; 'mainObject'?: string; 'filter'?: Filter; 'query'?: string; 'xAxis'?: AnalyticsAxisConfig; 'yAxis'?: AnalyticsAxisConfig; 'series'?: AnalyticsSeriesConfig; /** * Optional top-N series limit. For additive metrics (count, countDistinct, sum), keeps the N series with the highest total Y. Null or <= 0 means no truncation. */ 'limit'?: number; 'sort'?: string; /** * When true, omit null/blank/(empty) category buckets from the response. Useful for bar and pie charts grouped by optional properties. */ 'excludeEmptyValues'?: boolean; } export interface AnalyticsAxisConfig { 'property'?: AnalyticsPropertyRef; 'timeBucket'?: string; 'timeZone'?: string; 'windowDays'?: number; 'binCount'?: number; 'metric'?: string; 'label'?: string; } export interface AnalyticsComparisonMetric { 'key'?: string; 'label'?: string; 'mainObject'?: string; 'filter'?: Filter; 'yAxis'?: AnalyticsAxisConfig; } export interface AnalyticsDashboardConfig { 'version'?: number; 'columns'?: number; 'widgets'?: Array; } export interface AnalyticsPropertyRef { 'object'?: string; 'relation'?: string; 'propertyName'?: string; } export interface AnalyticsReferenceLine { 'value'?: number; 'label'?: string; 'color'?: string; } export interface AnalyticsSeriesConfig { 'groupBy'?: AnalyticsPropertyRef; } export interface AnalyticsTrendConfig { 'property'?: AnalyticsPropertyRef; 'windowDays'?: number; } export interface AnalyticsWidgetConfig { 'id'?: string; 'title'?: string; 'chartType'?: string; 'mainObject'?: string; 'x'?: number; 'y'?: number; 'w'?: number; 'h'?: number; 'filter'?: Filter; 'xAxis'?: AnalyticsAxisConfig; 'yAxis'?: AnalyticsAxisConfig; 'series'?: AnalyticsSeriesConfig; 'comparisonMetrics'?: Array; 'trend'?: AnalyticsTrendConfig; 'limit'?: number; 'sort'?: string; 'excludeEmptyValues'?: boolean; 'style'?: AnalyticsWidgetStyle; } export interface AnalyticsWidgetStyle { 'showLegend'?: boolean; 'showGrid'?: boolean; 'showValueLabels'?: boolean; 'barOrientation'?: string; 'barGrouping'?: string; 'colors'?: { [key: string]: string; }; 'referenceLines'?: Array; } /** * Data transfer object for an app bar (location-specific settings and action config) */ export interface AppBarDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Bar location: RECORD_PREVIEW, RECORD_OVERVIEW, RECORD_DETAIL, TOOL_BAR, TRAIT_BAR, RECORD_TRAIT */ 'location'?: AppBarDTOLocationEnum; /** * URL for iframe-based locations (supports {recordUuid}, {object}, {viewId}, {trait}, {companyUuid} placeholders) */ 'iframeUrl'?: string; /** * Optional icon name/key for this app bar */ 'icon'?: string; /** * Description shown under the dialog title for action-based bars */ 'description'?: string; /** * Tooltip label for buttons and sidebar entries */ 'tooltipLabel'?: string; /** * Primary button label in the action dialog */ 'actionLabel'?: string; /** * JSON array of AppSettingFieldSchema (field definitions for action locations) */ 'settingsSchema'?: Array; /** * Webhook configuration for action-based locations */ 'webhook'?: SubscribeWebhookDTO; } export const AppBarDTOLocationEnum = { RecordPreview: 'RECORD_PREVIEW', RecordOverview: 'RECORD_OVERVIEW', RecordDetail: 'RECORD_DETAIL', ToolBar: 'TOOL_BAR', TraitBar: 'TRAIT_BAR', RecordTrait: 'RECORD_TRAIT', } as const; export type AppBarDTOLocationEnum = typeof AppBarDTOLocationEnum[keyof typeof AppBarDTOLocationEnum]; /** * Request body for creating an iframe session token */ export interface AppBarIframeSessionRequest { /** * Object name in context */ 'object'?: string; /** * UUID of the record in context */ 'recordUuid'?: string; /** * View ID in context */ 'viewId'?: string; /** * Trait name in context */ 'trait'?: string; /** * Current view data for rebuilding the active index */ 'viewData'?: { [key: string]: any | null; }; } /** * Request body for validating an iframe session token */ export interface AppBarIframeSessionValidateRequest { /** * Opaque iframe session token from the iframe URL */ 'token'?: string; } /** * Request body for triggering an action-based app bar */ export interface AppBarTriggerRequest { /** * UUID of the record in context */ 'recordUuid'?: string; /** * Object name in context */ 'object'?: string; /** * View ID in context */ 'viewId'?: string; /** * Trait name in context */ 'trait'?: string; /** * Current view data for rebuilding the active index */ 'viewData'?: { [key: string]: any | null; }; /** * Values for settingsSchema fields supplied at trigger time */ 'settingsValues'?: { [key: string]: any | null; }; } export interface AppBarVisibilityEntry { 'objects'?: Array; 'suites'?: Array; 'traits'?: Array; } export interface AppConnectionStatusDTO { 'id'?: string; 'name'?: string; 'label'?: string; 'preset'?: string; 'logo'?: string; 'connected'?: boolean; 'ownerType'?: string; 'ownerUserUuid'?: string; 'accountLabel'?: string; 'connectedAt'?: number; } /** * Full app payload (AppCreatorDTO) to apply */ export interface AppDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Indicates whether this app is private (only available to the creator\'s company) */ 'privateApp'?: boolean; /** * Whether to hide the API token field in marketplace installer UI. Defaults to true when omitted. Private apps show the key regardless. */ 'hideApiKeyField'?: boolean; /** * Additional details and specifications about the application */ 'details'?: AppDetailsDTO; /** * App bars (location-specific configuration and actions) */ 'appBars'?: Array; /** * Serverless functions owned by this app */ 'serverlessFunctions'?: Array; /** * Webhook triggered when the app is installed */ 'installWebhook'?: SubscribeWebhookDTO; /** * Webhook triggered when the app is uninstalled */ 'uninstallWebhook'?: SubscribeWebhookDTO; /** * Webhook triggered when the app installation token is rotated */ 'rotateWebhook'?: SubscribeWebhookDTO; /** * Webhook triggered when an already installed app is saved again */ 'updateWebhook'?: SubscribeWebhookDTO; /** * JSON array of AppSettingFieldSchema (app-level setting field definitions) */ 'settingsSchema'?: Array; /** * Optional UI grouping of settingsSchema fields into installer cards */ 'settingsSections'?: Array; /** * External OAuth providers installers can Connect (name/logo only; no secrets) */ 'externalOAuthProviders'?: Array; /** * Webhook rate limit per minute */ 'webhookRateLimitPerMinute'?: number; /** * App job enqueue rate limit per minute per installation */ 'jobRateLimitPerMinute'?: number; /** * Publish and review state for the app in the marketplace (creator view) */ 'appPublish'?: AppPublishDTO; /** * Installation link (company–app) with token, scopes, and per-installation settingsValues; present when includeSettings is true */ 'hasApp'?: HasAppDTO; /** * URL to the application\'s image or icon (derived from details.image) */ 'image'?: string; /** * URL where the application can be accessed (derived from details.url) */ 'url'?: string; /** * Category the application belongs to (derived from details.category) */ 'category'?: string; /** * Whether the app is installed for the current company */ 'installed'?: boolean; /** * Required scopes requested by the app (macro patterns or concrete scope strings). */ 'requiredScopes'?: Array; /** * Resolved concrete required scopes derived from requiredScopes and dynamic availableScopes. */ 'resolvedRequiredScopes'?: Array; /** * Authentication method for this app (API_KEY default, OAUTH2 for OAuth 2.0) */ 'authMethod'?: AppDTOAuthMethodEnum; /** * OAuth 2.0 client identifier (OAuth apps only) */ 'oauthClientId'?: string; /** * OAuth 2.0 client secret; only returned once on create or secret rotation */ 'oauthClientSecret'?: string; /** * Whether an OAuth client secret is stored for this app (plain value is not re-readable) */ 'oauthClientSecretConfigured'?: boolean; /** * Registered OAuth redirect URIs (OAuth apps only) */ 'oauthRedirectUris'?: Array; /** * OAuth authorization endpoint URL */ 'oauthAuthorizeUrl'?: string; /** * OAuth token endpoint URL */ 'oauthTokenUrl'?: string; /** * External URL where end users install this app (e.g. ChatGPT connector page) */ 'installUrl'?: string; /** * Square brandmark URL used in compact app surfaces */ 'brandmark'?: string; /** * Internal app description used in Caraer admin views */ 'description'?: string; /** * App platform version: 1 = legacy per-function Cloud Functions; 2 = one container per app */ 'platformVersion'?: number; /** * Serverless runtime for platform V2 apps (nodejs22 or python312) */ 'runtime'?: string; /** * Base HTTPS URL of the V2 app container runtime */ 'runtimeBaseUrl'?: string; /** * Last deployed runtime revision id */ 'runtimeRevision'?: string; /** * V2 runtime status: PENDING, PROVISIONING, READY, FAILED */ 'runtimeStatus'?: string; /** * Last V2 runtime error message when FAILED */ 'runtimeError'?: string; /** * Monotonic generation for async runtime jobs */ 'runtimeGeneration'?: number; } export const AppDTOAuthMethodEnum = { ApiKey: 'API_KEY', Oauth2: 'OAUTH2', } as const; export type AppDTOAuthMethodEnum = typeof AppDTOAuthMethodEnum[keyof typeof AppDTOAuthMethodEnum]; /** * Detailed DTO representing an application with all available configuration and visibility metadata for the current company context */ export interface AppDetailsDTO { 'title'?: string; /** * Short marketplace description shown on app cards and detail pages */ 'description'?: string; 'image'?: string; /** * Hex accent color (#RRGGBB) for installed app-bar action buttons and toolbar icons */ 'brandColor'?: string; /** * Hex text color (#RRGGBB) for text on brand-colored marketplace UI elements */ 'textColor'?: string; 'url'?: string; /** * Main marketplace category key from GET /api/v2/apps/categories */ 'category'?: string; /** * Selected subcategory keys under the main category */ 'subcategories'?: Array; 'privacyPolicy'?: string; 'termsAndConditions'?: string; 'processingAgreement'?: string; 'disclaimer'?: string; /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; } /** * Third-party OAuth provider declared on an app */ export interface AppExternalOAuthProviderDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Ignored. Set authorizeUrl and tokenUrl explicitly. * @deprecated */ 'preset'?: string; /** * Optional logo URL shown on the Connect button */ 'logo'?: string; 'authorizeUrl'?: string; 'tokenUrl'?: string; 'clientId'?: string; 'clientSecret'?: string; 'hasClientSecret'?: boolean; 'scopes'?: Array; 'pkce'?: boolean; 'connectionOwner'?: string; } /** * Lightweight external OAuth provider summary (no secrets) */ export interface AppExternalOAuthProviderSummaryDTO { 'name'?: string; 'label'?: string; 'logo'?: string; 'connectionOwner'?: string; } /** * Public inbound route into an app function */ export interface AppInboundRouteDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; 'authMode'?: string; 'enqueue'?: boolean; 'hasSharedSecret'?: boolean; 'sharedSecret'?: string; 'serverlessFunction'?: ServerlessFunctionRefDTO; } export interface AppOAuthStartResponseDTO { 'authorizeUrl'?: string; } /** * Publish and review state for a public app in the marketplace */ export interface AppPublishDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Publish state: DRAFT, SUBMITTED, IN_REVIEW, APPROVED, PUBLISHED, REJECTED, CHANGES_REQUESTED */ 'publishState'?: string; /** * Timestamp when developer submitted for review */ 'submittedAt'?: number; /** * Timestamp when review was completed */ 'reviewedAt'?: number; /** * Timestamp when app went live in marketplace */ 'publishedAt'?: number; /** * Feedback shown to developer (e.g. rejection reason) */ 'feedback'?: string; /** * Internal reviewer notes. Only returned for SUPER_ADMIN callers; never exposed to app creators. */ 'reviewerNotes'?: string; } /** * Settings required to uninstall the application */ export interface AppRequest { /** * A map of configuration settings. The keys are strings representing the setting names, and the values represent the setting values, which can be different types. */ 'settings'?: Array; } /** * App schedule definition (cron → function) */ export interface AppScheduleDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; 'schedule'?: string; 'enabled'?: boolean; 'payloadTemplate'?: string; 'serverlessFunction'?: ServerlessFunctionRefDTO; } export interface AppSettingActionSource { 'type'?: string; 'serverlessFunctionUuid'?: string; 'serverlessFunctionName'?: string; 'enqueue'?: boolean; } export interface AppSettingCondition { 'field'?: string; 'operator'?: string; 'value'?: any; } export interface AppSettingFieldMappingStructure { 'objectName'?: string; 'targetKind'?: string; 'items'?: Array; 'recordTarget'?: boolean; } export interface AppSettingFieldMappingStructureItem { 'fieldLabel'?: string; 'fieldName'?: string; 'fieldHelpText'?: string; 'isRequired'?: boolean; 'allowedPropertyTypes'?: Array; 'allowedPropertyFormats'?: Array; 'propertyName'?: string; 'recordUuid'?: string; } export interface AppSettingFieldSchema { 'name'?: string; 'label'?: string; 'type'?: string; 'required'?: boolean; 'helpText'?: string; 'options'?: Array; 'optionsSource'?: AppSettingOptionsSource; 'actionSource'?: AppSettingActionSource; 'defaultValue'?: any; 'hidden'?: boolean; 'advanced'?: boolean; 'filterTraits'?: Array; 'visibleWhen'?: Array; 'itemFields'?: Array; 'min'?: number; 'max'?: number; 'itemLabel'?: string; 'value'?: any; 'hasValue'?: boolean; 'mappingValue'?: AppSettingFieldMappingStructure; 'valueScope'?: string; 'action'?: boolean; } export interface AppSettingOptionsSource { 'type'?: string; 'serverlessFunctionUuid'?: string; 'serverlessFunctionName'?: string; 'dependsOn'?: Array; 'searchable'?: boolean; 'minQueryLength'?: number; } export interface AppSettingsSection { 'title'?: string; 'subtitle'?: string; 'settings'?: Array; } /** * The billing settings of the company. */ export interface BillingSettingsDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * The email address of the billing contact. */ 'billingEmail'?: string; /** * The address of the billing contact. */ 'address'?: string; /** * The city of the billing contact. */ 'city'?: string; /** * The state of the billing contact. */ 'state'?: string; /** * The zip code of the billing contact. */ 'zip'?: string; /** * The country of the billing contact. */ 'country'?: string; } /** * Payload of a bulk delete records response. */ export interface BulkDeleteRecordsData { /** * UUIDs that were successfully deleted. */ 'uuids'?: Array; } /** * Request to archive, anonymize, or permanently delete multiple records. */ export interface BulkDeleteRecordsRequest { /** * Record UUIDs to delete. */ 'uuids': Array; /** * Deletion mode: \'archive\', \'anonymize\', or \'delete\'. */ 'mode': string; } /** * Response for a bulk delete records operation. */ export interface BulkDeleteRecordsResponse { /** * Result message. */ 'message'?: string; /** * Successfully deleted record UUIDs. */ 'data'?: BulkDeleteRecordsData; /** * Per-record errors when one or more items failed. */ 'errors'?: Array; } /** * Validation or processing errors for a single record in a bulk edit operation. */ export interface BulkEditRecordErrorItem { /** * UUID of the record that failed, if known. */ 'uuid'?: string; /** * Client reference echoed from the request, if provided. */ 'clientRef'?: string; /** * Summary message for this record\'s failure. */ 'message'?: string; /** * Field-level validation errors. */ 'errors'?: Array; } /** * A single record to create or update in a bulk edit request. */ export interface BulkEditRecordItem { /** * UUID of an existing record to update. Omit to create a new record. */ 'uuid'?: string; /** * Client-side reference for matching the item back after create (e.g. row-3). */ 'clientRef'?: string; /** * Property values to set on the record. */ 'properties'?: { [key: string]: any | null; }; /** * Relations to create or merge after the record is saved. Same shape as createOrUpdate. */ 'relations'?: Array; } /** * A successfully saved record from a bulk edit operation. */ export interface BulkEditRecordResultItem { /** * UUID of the saved record. */ 'uuid'?: string; /** * Client reference echoed from the request, if provided. */ 'clientRef'?: string; /** * True when the record was created; false when updated. */ 'created'?: boolean; } /** * Payload of a bulk edit records response. */ export interface BulkEditRecordsData { /** * Successfully saved records. */ 'records'?: Array; } /** * Request to create or update multiple records in one operation. */ export interface BulkEditRecordsRequest { /** * Records to create or update. */ 'records'?: Array; } /** * Response for a bulk create/update records operation. */ export interface BulkEditRecordsResponse { /** * Result message. */ 'message'?: string; /** * Successfully saved records. */ 'data'?: BulkEditRecordsData; /** * Per-record errors when one or more items failed validation. */ 'errors'?: Array; } export interface CRUD { 'sessionType'?: CRUDSessionTypeEnum; 'httpSessionId'?: string; 'turnOffMetaRelationships'?: boolean; } export const CRUDSessionTypeEnum = { Main: 'MAIN', User: 'USER', } as const; export type CRUDSessionTypeEnum = typeof CRUDSessionTypeEnum[keyof typeof CRUDSessionTypeEnum]; export interface CalendarBootstrapDTO { 'defaultCalendar'?: CalendarRecordDTO; 'calendars'?: Array; 'backfilled'?: number; 'teamCalendarsCreated'?: number; 'companyCalendarCreated'?: boolean; } export interface CalendarCreateRequest { 'title'?: string; 'color'?: string; 'teamUuid'?: string; 'company'?: boolean; } export interface CalendarRecordDTO { 'default'?: boolean; 'uuid'?: string; 'title'?: string; 'color'?: string; 'colorHex'?: string; 'isDefault'?: boolean; 'ownerUuid'?: string; 'ownerName'?: string; 'ownedByCurrentUser'?: boolean; 'teamUuid'?: string; 'teamName'?: string; 'companyCalendar'?: boolean; 'companyName'?: string; 'members'?: Array; } export interface CalendarTeamMemberDTO { 'uuid'?: string; 'label'?: string; 'objectName'?: string; 'hasUserTrait'?: boolean; } export interface CalendarTeamOptionDTO { 'uuid'?: string; 'name'?: string; 'members'?: Array; } export interface CaraerErrorType { /** * The error message providing details about the failure. */ 'message': string; /** * The type of error. */ 'type': CaraerErrorTypeTypeEnum; /** * A suggestion on how to correct the error. */ 'correctionSuggestion': string; } export const CaraerErrorTypeTypeEnum = { Validation: 'VALIDATION', NotFound: 'NOT_FOUND', Test: 'TEST', RelationNotAllowed: 'RELATION_NOT_ALLOWED', InvalidValue: 'INVALID_VALUE', General: 'GENERAL', InvalidFileType: 'INVALID_FILE_TYPE', InternalServerError: 'INTERNAL_SERVER_ERROR', CaraerError: 'CARAER_ERROR', InvalidEmail: 'INVALID_EMAIL', InvalidDate: 'INVALID_DATE', } as const; export type CaraerErrorTypeTypeEnum = typeof CaraerErrorTypeTypeEnum[keyof typeof CaraerErrorTypeTypeEnum]; /** * Data transfer object representing a Caraer object with its configuration, properties, relations, and views */ export interface CaraerObjectDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * Unique identifier name for the object */ 'name'?: string; /** * Display label for the object */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering objects */ 'index'?: number; /** * Plural form of the object\'s name, used for display purposes */ 'plural'?: string; /** * Detailed description of the object\'s purpose and usage */ 'description'?: string; /** * Collection of group names this object belongs to */ 'groups'?: Array; /** * Icon identifier for visual representation of the object */ 'icon'?: string; /** * Name of the default trait applied to this object */ 'defaultTrait'?: string; /** * List of trait names associated with this object */ 'traits'?: Array; /** * List of view configurations for displaying this object */ 'views'?: Array; /** * List of properties defined for this object */ 'properties'?: Array; /** * List of relations this object has with other objects */ 'relations'?: Array; /** * List of suite names this object belongs to */ 'suites'?: Array; /** * List of objects this object extends to */ 'extendsTo'?: Array; /** * When false, the object schema cannot be updated or deleted via the API */ 'editable'?: boolean; } export interface CmsEnvironmentDTO { 'uuid'?: string; 'key'?: string; 'label'?: string; 'routing'?: string; 'slugPrefix'?: string; 'hostLabel'?: string; 'requiresAuth'?: boolean; 'htmlLang'?: string; 'default'?: boolean; } export interface CmsModuleDTO { 'uuid'?: string; 'name'?: string; 'label'?: string; 'ref'?: string; 'kind'?: string; 'description'?: string; 'category'?: string; 'icon'?: string; 'preview'?: string; 'appUuid'?: string; 'appName'?: string; 'appLabel'?: string; 'packageName'?: string; 'version'?: string; 'retired'?: boolean; 'fields'?: Array; 'frameworks'?: { [key: string]: string; }; } export interface CmsPageDTO { 'uuid'?: string; 'title'?: string; 'slug'?: string; 'locale'?: string; 'environment'?: string; 'state'?: string; 'published'?: boolean; 'document'?: CmsPageDocument; 'record'?: RecordSummary; 'protection'?: { [key: string]: any | null; }; 'locales'?: Array; 'publishAt'?: number; 'unpublishAt'?: number; } export interface CmsPageDocument { 'version'?: number; 'revision'?: number; 'modules'?: Array; 'seo'?: { [key: string]: any | null; }; 'title'?: string; 'slug'?: string; 'excerpt'?: string; 'css'?: string; 'headJs'?: string; 'bodyJs'?: string; } export interface CmsPageModuleInstance { 'id'?: string; 'module'?: string; 'fields'?: { [key: string]: any | null; }; 'hidden'?: boolean; } export interface CmsPagePatch { 'op'?: string; 'moduleId'?: string; 'ref'?: string; 'field'?: string; 'value'?: any; 'fields'?: { [key: string]: any | null; }; 'module'?: CmsPageModuleInstance; 'index'?: number; 'toIndex'?: number; 'hidden'?: boolean; 'modules'?: Array; 'seo'?: { [key: string]: any | null; }; } export interface CmsPagePatchRequest { 'locale'?: string; 'patches'?: Array; 'expectedRevision'?: number; } export interface CmsPublicMenuDTO { 'location'?: string; 'title'?: string; 'items'?: Array; } /** * A DTO representing a company with its various settings and details. */ export interface CompanyDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * The details of the company. */ 'details'?: CompanyDetailsDTO; /** * The digital identity of the company. */ 'digitalIdentity'?: DigitalIdentityDTO; /** * The website settings of the company. */ 'websiteSettings'?: WebsiteSettingsDTO; /** * The billing settings of the company. */ 'billingSettings'?: BillingSettingsDTO; /** * Which CMS serves this company: 1 = WerkenBij, 2 = caraer-web */ 'cmsVersion'?: number; /** * Origin of the v2 sidecar site while the live hostname is still v1 */ 'cmsV2PreviewOrigin'?: string; 'cmsV2ProjectId'?: string; 'cmsV1ProjectId'?: string; } /** * A DTO representing the details of a company. */ export interface CompanyDetailsDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * The twitter/X url of the company. */ 'twitter'?: string; /** * The linkedin url of the company. */ 'linkedIn'?: string; /** * The facebook url of the company. */ 'facebook'?: string; /** * The youtube url of the company. */ 'youtube'?: string; /** * The instagram url of the company. */ 'instagram'?: string; /** * The address of the company. */ 'address'?: string; /** * The city of the company. */ 'city'?: string; /** * The state of the company. */ 'state'?: string; /** * The zip code of the company. */ 'zip'?: string; /** * The country of the company. */ 'country'?: string; /** * The phone number of the company. */ 'phone'?: string; /** * The email of the company. */ 'email'?: string; /** * The website of the company. */ 'website'?: string; /** * The unsubscribe link of the company. */ 'unsubscribeLink'?: string; /** * The cookie policy of the company. */ 'cookiePolicy'?: string; /** * The privacy policy of the company. */ 'privacyPolicy'?: string; /** * The terms and conditions of the company. */ 'termsAndConditions'?: string; /** * The disclaimer of the company. */ 'disclaimer'?: string; } export interface CopyPropertiesToObjectRequest { 'propertyUuids'?: Array; } export interface CopyPropertyToEnvironmentsRequest { 'objectUuid'?: string; /** * @deprecated */ 'propertyUuid'?: string; 'propertyUuids'?: Array; 'environments'?: Array; 'fillCopiedValues'?: boolean; } /** * DTO representing a request to create a new company, including the company\'s name and subdomain. */ export interface CreateCompanyRequest { /** * The name of the company to be created. */ 'name'?: string; /** * The desired subdomain for the company. This will be used for company-specific URLs. */ 'subdomain'?: string; /** * The company name. */ 'companyName'?: string; /** * The copy database id. */ 'copyDatabaseId'?: string; /** * Whether to include records in the company. */ 'includeRecords'?: boolean; } /** * Request body for creating (or fetching an existing) developer project for an app. */ export interface CreateDeveloperProjectRequest { /** * UUID of the app to link this project to. */ 'appUuid'?: string; /** * Project name. */ 'name'?: string; /** * Optional human-readable label for the project. */ 'label'?: string; } /** * Request body for creating a developer sandbox. */ export interface CreateDeveloperSandboxRequest { /** * Sandbox name. */ 'name'?: string; /** * Optional human-readable label for the sandbox. */ 'label'?: string; } export interface CreateOrUpdateEnvironmentRequest { 'environment'?: string; 'webpageObjects'?: Array; } /** * Private app creation request with label and optional description */ export interface CreatePrivateAppRequest { /** * The display label for the private app. */ 'label': string; /** * Optional description text for the app. */ 'description'?: string; /** * Authentication method (API_KEY default, OAUTH2 for OAuth 2.0) */ 'authMethod'?: CreatePrivateAppRequestAuthMethodEnum; /** * Registered OAuth redirect URIs (required when authMethod is OAUTH2) */ 'oauthRedirectUris'?: Array; /** * Ignored; new private apps are always platform version 2 (async container runtime). */ 'platformVersion'?: number; /** * Serverless runtime for the app: nodejs22 or python312. Defaults to nodejs22. */ 'runtime'?: string; } export const CreatePrivateAppRequestAuthMethodEnum = { ApiKey: 'API_KEY', Oauth2: 'OAUTH2', } as const; export type CreatePrivateAppRequestAuthMethodEnum = typeof CreatePrivateAppRequestAuthMethodEnum[keyof typeof CreatePrivateAppRequestAuthMethodEnum]; /** * Request body for uploading a developer project build archive. */ export interface CreateProjectBuildRequest { /** * Base64-encoded zip archive containing caraer.project.json and src/app. */ 'archiveBase64'?: string; /** * Original archive filename, for traceability. */ 'filename'?: string; /** * Deploy target: production or sandbox. */ 'target'?: string; /** * Semantic version for this build (MAJOR.MINOR.PATCH). Auto-bumped when omitted. */ 'version'?: string; /** * Release notes for this build. */ 'releaseNotes'?: string; } /** * Response for a successful resource creation operation. */ export interface CreateResponse { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: any; } /** * Response for a successful resource creation operation. */ export interface CreateResponseAppExternalOAuthProviderDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: AppExternalOAuthProviderDTO; } /** * Response for a successful resource creation operation. */ export interface CreateResponseAppInboundRouteDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: AppInboundRouteDTO; } /** * Response for a successful resource creation operation. */ export interface CreateResponseAppScheduleDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: AppScheduleDTO; } /** * Response for a successful resource creation operation. */ export interface CreateResponseCalendarRecordDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: CalendarRecordDTO; } /** * Response for a successful resource creation operation. */ export interface CreateResponseFeedDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: FeedDTO; } /** * Success response (CreateResponseMapStringString). */ export interface CreateResponseMapStringString { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Response for a successful resource creation operation. */ export interface CreateResponseSignedUrlResultDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: SignedUrlResultDTO; } export interface CreateSignedUrlRequest { 'ttlSeconds'?: number; } export interface CriterionScore { 'criterion'?: string; 'score'?: number; 'weight'?: number; 'rationale'?: string; 'supportingEvidence'?: Array; 'contradictingEvidence'?: Array; } /** * Request DTO for searching records across multiple objects. */ export interface CrossObjectRecordSearchRequest { /** * Free-text search query. */ 'query'?: string; /** * Event (or source) object UUID used with relationName to resolve target objects. */ 'fromObjectUuid'?: string; /** * Relation name whose connected target objects are searched (e.g. attendees). */ 'relationName'?: string; /** * Object UUIDs to search. Used on their own when relationName is omitted; combined with relationName they narrow the relation\'s target objects. */ 'objectUuids'?: Array; /** * Object internal names to search. Behaves like objectUuids and may be combined with it. */ 'objectNames'?: Array; /** * Preview template name. */ 'preview'?: string; /** * Page number (1-based). */ 'page'?: number; /** * Maximum records returned. */ 'limit'?: number; /** * Optional record UUID to exclude from results. */ 'excludeRecordUuid'?: string; } export interface Currency extends PropertyFormat { } export interface CurrencyRange extends PropertyFormat { } /** * Cursor location */ export interface CursorLocation { 'x'?: number; 'y'?: number; 'z'?: number; } export interface CustomFontDTO { 'familyName'?: string; 'variants'?: Array; } export interface DateRange extends PropertyFormat { } /** * Response class representing the result of a delete operation. */ export interface DeleteResponse { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: any; } /** * Response class representing the result of a delete operation. */ export interface DeleteResponseFeedDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: FeedDTO; } /** * Response class representing the result of a delete operation. */ export interface DeleteResponseString { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: string; } /** * Response class representing the result of a delete operation. */ export interface DeleteResponseVoid { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: any; } /** * Request body for deploying a developer project build. */ export interface DeployBuildRequest { /** * Deploy target: production or sandbox. Defaults to the build\'s target. */ 'target'?: string; /** * When true, soft-delete remote functions/webhooks/schedules/inbound routes/OAuth providers that are absent from the build archive. Defaults to false. */ 'prune'?: boolean; } /** * Developer sandbox: a Neo4j DB clone of the owning company. Activate via X-Caraer-Sandbox-Uuid; company identity stays the owner. */ export interface DeveloperSandboxDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * UUID of the owning company — send this as X-Caraer-Company-Uuid */ 'ownerCompanyUuid'?: string; /** * Neo4j database id of the sandbox clone */ 'databaseId'?: string; } /** * Approve a pending device-code login (authenticated browser session) */ export interface DeviceApproveRequest { /** * User-facing code shown by the CLI */ 'userCode': string; } /** * Poll a device-code login session */ export interface DevicePollRequest { /** * Device code returned by /auth/device/start */ 'deviceCode': string; } /** * A DTO representing the digital identity of a company. */ export interface DigitalIdentityDTO { /** * The primary color of the company in light mode. */ 'lightPrimaryColor'?: string; /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * The font color of the company in light mode. */ 'lightFontColor'?: string; /** * The secondary color of the company in light mode. */ 'lightSecondaryColor'?: string; /** * The primary 100 color of the company in light mode. */ 'lightPrimary100Color'?: string; /** * The accent color of the company in light mode. */ 'lightAccentColor'?: string; /** * The lightPrimary50Color of the company. */ 'lightPrimary50Color'?: string; /** * The lightPrimary200Color of the company. */ 'lightPrimary200Color'?: string; /** * The lightPrimary300Color of the company. */ 'lightPrimary300Color'?: string; /** * The lightPrimary400Color of the company. */ 'lightPrimary400Color'?: string; /** * The lightPrimary600Color of the company. */ 'lightPrimary600Color'?: string; /** * The lightPrimary700Color of the company. */ 'lightPrimary700Color'?: string; /** * The lightPrimary800Color of the company. */ 'lightPrimary800Color'?: string; /** * The lightPrimary900Color of the company. */ 'lightPrimary900Color'?: string; /** * The lightSecondary50Color of the company. */ 'lightSecondary50Color'?: string; /** * The lightSecondary100Color of the company. */ 'lightSecondary100Color'?: string; /** * The lightSecondary200Color of the company. */ 'lightSecondary200Color'?: string; /** * The lightSecondary300Color of the company. */ 'lightSecondary300Color'?: string; /** * The lightSecondary400Color of the company. */ 'lightSecondary400Color'?: string; /** * The lightSecondary600Color of the company. */ 'lightSecondary600Color'?: string; /** * The lightSecondary700Color of the company. */ 'lightSecondary700Color'?: string; /** * The lightSecondary800Color of the company. */ 'lightSecondary800Color'?: string; /** * The lightSecondary900Color of the company. */ 'lightSecondary900Color'?: string; /** * The lightAccent50Color of the company. */ 'lightAccent50Color'?: string; /** * The lightAccent100Color of the company. */ 'lightAccent100Color'?: string; /** * The lightAccent200Color of the company. */ 'lightAccent200Color'?: string; /** * The lightAccent300Color of the company. */ 'lightAccent300Color'?: string; /** * The lightAccent400Color of the company. */ 'lightAccent400Color'?: string; /** * The lightAccent600Color of the company. */ 'lightAccent600Color'?: string; /** * The lightAccent700Color of the company. */ 'lightAccent700Color'?: string; /** * The lightAccent800Color of the company. */ 'lightAccent800Color'?: string; /** * The lightAccent900Color of the company. */ 'lightAccent900Color'?: string; /** * The black color of the company in light mode. */ 'lightBlackColor'?: string; /** * The gray 900 color of the company in light mode. */ 'lightGray900Color'?: string; /** * The gray 800 color of the company in light mode. */ 'lightGray800Color'?: string; /** * The gray 700 color of the company in light mode. */ 'lightGray700Color'?: string; /** * The gray 600 color of the company in light mode. */ 'lightGray600Color'?: string; /** * The gray 500 color of the company in light mode. */ 'lightGray500Color'?: string; /** * The gray 400 color of the company in light mode. */ 'lightGray400Color'?: string; /** * The gray 300 color of the company in light mode. */ 'lightGray300Color'?: string; /** * The gray 200 color of the company in light mode. */ 'lightGray200Color'?: string; /** * The gray 100 color of the company in light mode. */ 'lightGray100Color'?: string; /** * The gray 50 color of the company in light mode. */ 'lightGray50Color'?: string; /** * The white color of the company in light mode. */ 'lightWhiteColor'?: string; /** * The background color of the company in light mode. */ 'lightBackgroundColor'?: string; /** * The destructive color of the company in light mode. */ 'lightDestructiveColor'?: string; /** * The font color of the company in dark mode. */ 'darkFontColor'?: string; /** * The primary color of the company in dark mode. */ 'darkPrimaryColor'?: string; /** * The secondary color of the company in dark mode. */ 'darkSecondaryColor'?: string; /** * The primary 100 color of the company in dark mode. */ 'darkPrimary100Color'?: string; /** * The accent color of the company in dark mode. */ 'darkAccentColor'?: string; /** * The darkPrimary50Color of the company. */ 'darkPrimary50Color'?: string; /** * The darkPrimary200Color of the company. */ 'darkPrimary200Color'?: string; /** * The darkPrimary300Color of the company. */ 'darkPrimary300Color'?: string; /** * The darkPrimary400Color of the company. */ 'darkPrimary400Color'?: string; /** * The darkPrimary600Color of the company. */ 'darkPrimary600Color'?: string; /** * The darkPrimary700Color of the company. */ 'darkPrimary700Color'?: string; /** * The darkPrimary800Color of the company. */ 'darkPrimary800Color'?: string; /** * The darkPrimary900Color of the company. */ 'darkPrimary900Color'?: string; /** * The darkSecondary50Color of the company. */ 'darkSecondary50Color'?: string; /** * The darkSecondary100Color of the company. */ 'darkSecondary100Color'?: string; /** * The darkSecondary200Color of the company. */ 'darkSecondary200Color'?: string; /** * The darkSecondary300Color of the company. */ 'darkSecondary300Color'?: string; /** * The darkSecondary400Color of the company. */ 'darkSecondary400Color'?: string; /** * The darkSecondary600Color of the company. */ 'darkSecondary600Color'?: string; /** * The darkSecondary700Color of the company. */ 'darkSecondary700Color'?: string; /** * The darkSecondary800Color of the company. */ 'darkSecondary800Color'?: string; /** * The darkSecondary900Color of the company. */ 'darkSecondary900Color'?: string; /** * The darkAccent50Color of the company. */ 'darkAccent50Color'?: string; /** * The darkAccent100Color of the company. */ 'darkAccent100Color'?: string; /** * The darkAccent200Color of the company. */ 'darkAccent200Color'?: string; /** * The darkAccent300Color of the company. */ 'darkAccent300Color'?: string; /** * The darkAccent400Color of the company. */ 'darkAccent400Color'?: string; /** * The darkAccent600Color of the company. */ 'darkAccent600Color'?: string; /** * The darkAccent700Color of the company. */ 'darkAccent700Color'?: string; /** * The darkAccent800Color of the company. */ 'darkAccent800Color'?: string; /** * The darkAccent900Color of the company. */ 'darkAccent900Color'?: string; /** * The black color of the company in dark mode. */ 'darkBlackColor'?: string; /** * The gray 900 color of the company in dark mode. */ 'darkGray900Color'?: string; /** * The gray 800 color of the company in dark mode. */ 'darkGray800Color'?: string; /** * The gray 700 color of the company in dark mode. */ 'darkGray700Color'?: string; /** * The gray 600 color of the company in dark mode. */ 'darkGray600Color'?: string; /** * The gray 500 color of the company in dark mode. */ 'darkGray500Color'?: string; /** * The gray 400 color of the company in dark mode. */ 'darkGray400Color'?: string; /** * The gray 300 color of the company in dark mode. */ 'darkGray300Color'?: string; /** * The gray 200 color of the company in dark mode. */ 'darkGray200Color'?: string; /** * The gray 100 color of the company in dark mode. */ 'darkGray100Color'?: string; /** * The gray 50 color of the company in dark mode. */ 'darkGray50Color'?: string; /** * The white color of the company in dark mode. */ 'darkWhiteColor'?: string; /** * The background color of the company in dark mode. */ 'darkBackgroundColor'?: string; /** * The destructive color of the company in dark mode. */ 'darkDestructiveColor'?: string; } export interface Duration extends PropertyFormat { } export interface Email extends PropertyFormat { } export interface EngagementBatchRequest { 'visitorId'?: string; 'sessionId'?: string; 'events'?: Array; } /** * Defines the structure of error responses returned by the API. */ export interface ErrorResponse { /** * The error message providing details about the failure. */ 'message'?: string; /** * A list of error types providing further details about the error. */ 'errors'?: Array; /** * The HTTP status code associated with the error. */ 'status'?: number; 'stackTrace'?: string; /** * Roles the caller is missing when the failure is an authorization error. */ 'roles'?: Array; /** * Scopes the caller is missing when the failure is an authorization error. */ 'scopes'?: Array; /** * Request correlation ID for support and log tracing. */ 'requestId'?: string; } export const ErrorResponseRolesEnum = { User: 'USER', Admin: 'ADMIN', Reseller: 'RESELLER', Developer: 'DEVELOPER', SuperAdmin: 'SUPER_ADMIN', } as const; export type ErrorResponseRolesEnum = typeof ErrorResponseRolesEnum[keyof typeof ErrorResponseRolesEnum]; export interface EventRsvpRequest { /** * Participation status on the attendees edge */ 'partstat': EventRsvpRequestPartstatEnum; /** * Series scope for recurring events. Defaults to this. */ 'scope'?: EventRsvpRequestScopeEnum; } export const EventRsvpRequestPartstatEnum = { NeedsAction: 'needs_action', Accepted: 'accepted', Declined: 'declined', Tentative: 'tentative', } as const; export type EventRsvpRequestPartstatEnum = typeof EventRsvpRequestPartstatEnum[keyof typeof EventRsvpRequestPartstatEnum]; export const EventRsvpRequestScopeEnum = { This: 'this', ThisAndFuture: 'this_and_future', All: 'all', } as const; export type EventRsvpRequestScopeEnum = typeof EventRsvpRequestScopeEnum[keyof typeof EventRsvpRequestScopeEnum]; export interface ExistingWidgetSummary { 'xproperty'?: string; 'yproperty'?: string; 'ymetric'?: string; 'title'?: string; 'chartType'?: string; 'xProperty'?: string; 'yMetric'?: string; 'yProperty'?: string; } /** * Request to extend a record */ export interface ExtendRecordRequest { /** * The objects to extend the record into */ 'objects'?: Set; } export interface FeedDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; 'slug'?: string; 'format'?: string; 'mainObject'?: string; 'isPublic'?: boolean; 'publicToken'?: string; 'filter'?: any; 'filterJson'?: string; 'mapping'?: any; 'mappingJson'?: string; 'parseRecord'?: boolean; 'rootElement'?: string; 'itemElement'?: string; 'cacheTtlSeconds'?: number; 'active'?: boolean; } export interface FileListItemDTO { 'key'?: string; 'name'?: string; 'size'?: number; 'lastModified'?: number; 'contentType'?: string; } export interface FilledProperty { 'name'?: string; 'value'?: any; 'type'?: string; 'icon'?: string; 'label'?: string; } /** * DTO representing a filter composed of filter groups for querying records. The filter groups are combined using a logical OR operation. The filter items within each group are combined using a logical AND operation. */ export interface Filter { /** * A collection of filter groups. */ 'groups'?: Set; } /** * A DTO that defines a group of filter items used for record filtering. */ export interface FilterGroup { /** * A set of filter items included in the group. */ 'items'?: FilterItem; } /** * DTO representing a filter used in querying records. */ export interface FilterItem { /** * The name of the object to which this pagination item belongs. */ 'object'?: string; /** * The relationship between objects. */ 'relation'?: string; /** * Optional relation direction: outgoing (related→main), incoming (main→related), or omit for undirected. */ 'relationDirection'?: string; /** * The name of the property within the object. */ 'property'?: string; /** * Specifies whether the relation is included. */ 'relationIncluded'?: boolean; /** * Defines the operator used in the filter. Available operators are defined in the API documentation. */ 'operator'?: string; /** * Represents the value to filter against. */ 'value'?: any; /** * When true, filter fields contain smart content placeholders resolved at runtime. */ 'smartContent'?: boolean; /** * When true, propertyName refers to a property stored on the relation edge itself (declared on the relation schema, e.g. partstat on attendees) instead of a property of the related record. Requires relation and propertyName. */ 'edgeProperty'?: boolean; } /** * Request DTO for paginated data flow with filters, sorting, displayed items, and related information. */ export interface FlowPaginationRequest { 'crud'?: CRUD; 'showItems'?: Set; /** * The page index (one-based) to request. */ 'page'?: number; /** * The number of records to retrieve per page. */ 'limit'?: number; /** * Filters applied to the query. */ 'filter'?: Filter; /** * Sorting options for the query. */ 'sort'?: Set; /** * Specifies what data to show in the response. */ 'show'?: Array; /** * A free-text search query applied to the records. */ 'query'?: string; /** * Preview information for the records, if supported. */ 'preview'?: string; /** * The main object for categorization or context. */ 'mainObject'?: string; /** * Column name for sorting or filtering data */ 'column'?: string; /** * UUID of the property used in the request */ 'property'?: string; } export interface FontVariantDTO { 'weight'?: number; 'style'?: string; 'url'?: string; } /** * Data transfer object representing a form with its associated properties and structure */ export interface FormDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * The associated Caraer object that this form belongs to */ 'object'?: CaraerObjectDTO; /** * List of form items that make up the form\'s structure. Each grid represents a section or group of form elements */ 'grids'?: Array; /** * Descriptive text providing additional information about the form */ 'description'?: string; /** * The styling of the form. Can be \'standard\', \'underline\' or \'plain\' */ 'styling'?: string; /** * List of lead scoring rules associated with this form. Used to evaluate and score form submissions */ 'leadscores'?: Array; /** * List of form relations that define the relationships between this form conversion record and other records in the system */ 'relations'?: Array; /** * Indicates if the form should be displayed as a step-by-step wizard interface */ 'wizard'?: boolean; /** * Metadata associated with the form */ 'metadata'?: { [key: string]: string; }; /** * Thank you message to be displayed after the form is submitted */ 'thankYouMessage'?: string; /** * Redirect URL to be displayed after the form is submitted */ 'redirectUrl'?: string; } /** * Represents a section or group within a form, containing a grid of form elements */ export interface FormItemDTO { 'aiprompt'?: string; /** * The title or heading of this form section */ 'title'?: string; /** * Additional descriptive text explaining the purpose or instructions for this section */ 'description'?: string; /** * The type of form section (e.g., \'grid\', \'section\', etc.) */ 'type'?: string; /** * The AI prompt for the form section. Only applicable to steps. */ 'AIPrompt'?: string; /** * A two-dimensional array representing the layout of form elements. Each inner list represents a row of elements */ 'grid'?: Array>; } /** * Data transfer object representing a form relation */ export interface FormRelationDTO { /** * The type of the form relation. The options are: CONVERSION_PAGE_RECORD, RELATED_RECORD_TO_CONVERSION_PAGE_RECORD, STATIC */ 'type'?: string; /** * The relation to be created. */ 'relation'?: RelationDTO; /** * The related relation associated with conversion page record */ 'relatedRelation'?: RelationDTO; /** * The related object associated with conversion page record or for static */ 'relatedObject'?: CaraerObjectDTO; /** * UUID of the record for the static connection. */ 'recordUuid'?: string; /** * The connection type for the related object. The options are: PRIMARY, ALL */ 'relatedObjectConnection'?: string; } /** * Data transfer object representing a form with its associated properties and structure */ export interface FormWithAiPromptDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * The associated Caraer object that this form belongs to */ 'object'?: CaraerObjectDTO; /** * List of form items that make up the form\'s structure. Each grid represents a section or group of form elements */ 'grids'?: Array; /** * Descriptive text providing additional information about the form */ 'description'?: string; /** * The styling of the form. Can be \'standard\', \'underline\' or \'plain\' */ 'styling'?: string; /** * List of lead scoring rules associated with this form. Used to evaluate and score form submissions */ 'leadscores'?: Array; /** * List of form relations that define the relationships between this form conversion record and other records in the system */ 'relations'?: Array; /** * Indicates if the form should be displayed as a step-by-step wizard interface */ 'wizard'?: boolean; /** * Metadata associated with the form */ 'metadata'?: { [key: string]: string; }; /** * Thank you message to be displayed after the form is submitted */ 'thankYouMessage'?: string; /** * Redirect URL to be displayed after the form is submitted */ 'redirectUrl'?: string; /** * AI prompt to be used for the form */ 'aiPrompt'?: string; } export interface GraphPathEvidence { 'path'?: Array<{ [key: string]: any | null; }>; 'summary'?: string; 'relation'?: string; 'targetObject'?: string; 'recordUuid'?: string; } export interface GraphTraversalSpec { 'relation'?: string; 'targetObject'?: string; 'direction'?: string; 'maxDepth'?: number; 'includeLifecycle'?: boolean; 'includeActivities'?: boolean; 'perRelationLimit'?: number; } /** * Represents a single cell within a form grid, which can contain a property, text, nested form, or other form elements */ export interface GridItemDTO { /** * The property associated with this grid item, typically representing a form field or input */ 'property'?: PropertyDTO; /** * Static text content to be displayed in this grid cell */ 'text'?: string; /** * A nested form that can be embedded within this grid cell */ 'form'?: FormDTO; /** * The text of the submit button for this grid item */ 'submitButton'?: string; /** * Configuration settings for this grid item, including display and validation rules */ 'settings'?: GridItemSettingsDTO; /** * The value of this grid item, used for form submissions */ 'value'?: string; } /** * Configuration settings for a grid item in a form, including property settings and form-related settings */ export interface GridItemSettingsDTO { /** * Defines the relationship between this form field and other entities or forms */ 'relation'?: RelationDTO; /** * UUID of a record to be pre-filled in this form field */ 'record'?: ModelRecord; 'aiprompt'?: string; /** * The display label for the form field */ 'label'?: string; /** * The default value to be pre-filled in the form field */ 'defaultValue'?: string; /** * Indicates whether this field must be filled out before form submission */ 'isRequired'?: boolean; /** * Indicates whether this field should be hidden from view */ 'hidden'?: boolean; /** * The placeholder text for the form field */ 'placeholder'?: string; /** * The help text for the form field */ 'helpText'?: string; /** * The AI prompt for the form field. Only applicable to text fields. */ 'AIPrompt'?: string; /** * The styling for the form field. Can be \'dropdown\', \'grid\' or \'boxes\' */ 'styling'?: string; /** * Whether the form field should be stretched to the full width of the form */ 'stretch'?: boolean; /** * The alignment of the form field. Can be \'left\', \'center\' or \'right\' */ 'align'?: string; /** * The minimum value for the slider field */ 'rangeMin'?: number; /** * The maximum value for the slider field */ 'rangeMax'?: number; } /** * Installation link between a company and an app (per-installation settings and token) */ export interface HasAppDTO { /** * Unique identifier for the installation relationship */ 'uuid'?: string; /** * Installation token */ 'token'?: string; /** * Scopes granted to this installation */ 'scopes'?: Array; /** * Per-installation app setting values (JSON object keyed by setting name) */ 'settingsValues'?: string; /** * Per-object record filters for this installation (object name → filter) */ 'filters'?: { [key: string]: Filter; }; /** * Per-app-bar placement config keyed by app bar UUID */ 'appBarVisibility'?: { [key: string]: AppBarVisibilityEntry; }; /** * Whether OAuth tokens have been issued for this installation */ 'oauthConnected'?: boolean; /** * OAuth access token expiry (epoch ms), if connected via OAuth */ 'oauthAccessTokenExpiresAt'?: number; } /** * Optional initial configuration settings */ export interface InstallAppRequest { /** * Optional initial configuration settings (key-value via AppSettingFieldSchema name/value). */ 'settings'?: Array; /** * Optional scopes to grant to the app. */ 'scopes'?: Array; /** * Optional per-object record filters for this installation (object name → filter). */ 'filters'?: { [key: string]: Filter; }; /** * Optional per-app-bar placement config keyed by app bar UUID. */ 'appBarVisibility'?: { [key: string]: AppBarVisibilityEntry; }; } export interface Item { 'id'?: string; 'title'?: string; 'body'?: string; 'type'?: string; 'icon'?: string; 'actionTitle'?: string; 'action'?: string; 'data'?: { [key: string]: any | null; }; 'sender'?: string; 'company'?: string; 'targetUserUuid'?: string; 'createdAt'?: string; 'updatedAt'?: string; 'readAt'?: string; 'sourceAppUuid'?: string; 'appLogo'?: string; } /** * DTO representing a lead score rule */ export interface Leadscore { /** * The name of the object to which this pagination item belongs. */ 'object'?: string; /** * The relationship between objects. */ 'relation'?: string; /** * Optional relation direction: outgoing (related→main), incoming (main→related), or omit for undirected. */ 'relationDirection'?: string; /** * The name of the property within the object. */ 'property'?: string; /** * Specifies whether the relation is included. */ 'relationIncluded'?: boolean; /** * Defines the operator used in the filter. Available operators are defined in the API documentation. */ 'operator'?: string; /** * Represents the value to filter against. */ 'value'?: any; /** * When true, filter fields contain smart content placeholders resolved at runtime. */ 'smartContent'?: boolean; /** * When true, propertyName refers to a property stored on the relation edge itself (declared on the relation schema, e.g. partstat on attendees) instead of a property of the related record. Requires relation and propertyName. */ 'edgeProperty'?: boolean; /** * Whether the value is a smart value */ 'smart_value'?: boolean; /** * The score to assign if the rule is met */ 'score'?: number; } export interface LinkedProperty extends PropertyFormat { 'linkedProperty'?: PropertyDTO; } /** * Request to load dynamic options for a SINGLE_SELECT or MULTI_SELECT setting field. */ export interface LoadAppSettingOptionsRequest { /** * Name of the setting field to load options for. */ 'fieldName': string; /** * Optional search query typed by the installer. */ 'query'?: string; /** * Current draft settings schema with values from the installer UI. */ 'settingsSchema': Array; /** * When loading options for an app bar field, the app bar UUID. */ 'appBarUuid'?: string; /** * Record in context when the options field is on an action dialog. */ 'recordUuid'?: string; /** * Object name in context when the options field is on an action dialog. */ 'object'?: string; } export interface Location extends PropertyFormat { } export interface LoginRequest { 'email': string; 'password': string; } /** * A map marker from one source: custom lat/lng, a page location property, or an object */ export interface MapLocationDTO { 'latitude'?: number; 'longitude'?: number; /** * UUID of a location property */ 'propertyUuid'?: string; /** * Name of a location property (fallback if uuid missing) */ 'propertyName'?: string; /** * When set, resolve markers from published records of this object. Exclusive with propertyUuid and custom lat/lng. */ 'objectUuid'?: string; /** * Object name fallback when uuid is missing */ 'objectName'?: string; /** * FontAwesome icon key for the marker */ 'icon'?: string; /** * Marker icon color (hex or rgba) */ 'iconColor'?: string; /** * Marker pin background fill color (hex or rgba) */ 'iconBackgroundColor'?: string; /** * Marker pin size in CSS pixels */ 'markerSize'?: number; /** * Marker glyph size in CSS pixels */ 'iconSize'?: number; /** * Text shown when hovering the marker (supports smart content) */ 'label'?: string; /** * UUID of a property whose value is shown as hover text */ 'labelPropertyUuid'?: string; /** * Name of a property whose value is shown as hover text */ 'labelPropertyName'?: string; /** * UUID of the preview shown when hovering a bound marker */ 'hoverPreviewUuid'?: string; /** * Name of the preview shown when hovering a bound marker */ 'hoverPreviewName'?: string; /** * Record this concrete public marker was resolved from */ 'recordUuid'?: string; /** * Marker click target: liveUrl, custom, or unset */ 'clickLinkType'?: string; /** * Custom URL used when clickLinkType is custom */ 'clickLinkUrl'?: string; /** * Open the marker link in a new tab */ 'clickLinkOpenInNewWindow'?: boolean; /** * Resolved public URL for this concrete marker */ 'href'?: string; /** * Properties exposed as public filters for object-bound markers */ 'filterProperties'?: Array; /** * Resolved property values used to filter this concrete marker */ 'filterValues'?: { [key: string]: any | null; }; } export interface MapMarkerPreviewRequest { 'recordUuid'?: string; 'previewUuid'?: string; 'previewName'?: string; } export interface MappingDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; 'sourceUrl'?: string; 'syncRate'?: number; 'active'?: boolean; 'mappingItems'?: Array; 'object'?: CaraerObjectDTO; 'unpublishWhenNotInSource'?: boolean; } export interface MappingItemDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; 'sourceField'?: string; 'targetObject'?: CaraerObjectDTO; 'targetProperty'?: PropertyDTO; 'conversionFunction'?: string; } /** * Request to migrate an existing V1 app to platform V2 (shared container runtime) */ export interface MigrateAppToV2Request { /** * Required when functions disagree or none set: nodejs22 or python312 */ 'runtime'?: string; } export interface ModelDate extends PropertyFormat { } export interface ModelFile extends PropertyFormat { } export interface ModelRecord { 'name': string; 'label'?: string; 'createdAt'?: number; 'updatedAt'?: number; 'deletedAt'?: number; 'createdByUuid'?: string; 'updatedByUuid'?: string; 'deletedByUuid'?: string; 'index'?: number; 'complete'?: boolean; 'deleted'?: boolean; 'uuid': string; 'properties'?: Array; 'objects'?: { [key: string]: any | null; }; 'user'?: PublicUserDTO; } export interface MultiFile extends PropertyFormat { } export interface MultiLine extends PropertyFormat { } export interface MultiSelect extends PropertyFormat { } export interface MultiValueMapStringString { [key: string]: Array | any; 'all'?: { [key: string]: string; }; 'empty'?: boolean; } export interface NotFoundError { 'cause'?: NotFoundErrorCause; 'stackTrace'?: Array; /** * The error message providing details about the failure. */ 'errors'?: Array; /** * The HTTP status code associated with the error. */ 'code'?: number; /** * A suggestion on how to correct the error. */ 'correctionSuggestion': string; /** * The error message providing details about the failure. */ 'message': string; 'suppressed'?: Array; 'localizedMessage'?: string; 'resourceKind'?: string; 'identifier'?: string; 'identifierType'?: string; 'referencedBy'?: Array; } export interface NotFoundErrorCause { 'stackTrace'?: Array; 'message'?: string; 'localizedMessage'?: string; } export interface NotFoundErrorCauseStackTraceInner { 'classLoaderName'?: string; 'moduleName'?: string; 'moduleVersion'?: string; 'methodName'?: string; 'fileName'?: string; 'lineNumber'?: number; 'className'?: string; 'nativeMethod'?: boolean; } export interface NotificationInboxDTO { 'notifications'?: Array; 'unreadCount'?: number; } export interface Number extends PropertyFormat { } export interface NumberRange extends PropertyFormat { } export interface OAuthRegistrationRequest { 'redirect_uris'?: Array; 'client_name'?: string; 'token_endpoint_auth_method'?: string; 'application_type'?: string; } /** * Users, teams, and installed apps available for object access grants. */ export interface ObjectAccessGrantCandidatesDTO { /** * Company users with HAS_ACCESS_TO */ 'users'?: Array; /** * Teams in the tenant */ 'teams'?: Array; /** * Apps installed for the current company */ 'apps'?: Array; } /** * Request to grant record-level access on an object to users, teams, and apps. */ export interface ObjectAccessGrantRequestDTO { /** * User grants */ 'users'?: ObjectAccessGrantSectionDTO; /** * Team grants */ 'teams'?: ObjectAccessGrantSectionDTO; /** * Installed app grants */ 'apps'?: ObjectAccessGrantSectionDTO; } /** * Access grant selection for one principal type (users, teams, or apps). */ export interface ObjectAccessGrantSectionDTO { /** * UUIDs to grant access to */ 'uuids'?: Array; /** * Record scopes applied to every selected UUID */ 'globalScopes'?: Array; /** * Per-UUID scope overrides merged with globalScopes */ 'overrides'?: { [key: string]: Array; }; } /** * Data transfer object representing a webpage content */ export interface PageContentDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Category of the content */ 'category'?: string; /** * Unique identifier for the parent content */ 'parentUuid'?: string; /** * Type of the content (\'box\' or \'component\') */ 'type'?: string; /** * Display of the content for box (\'column\', \'row\' or \'wrap\') and for component () */ 'display'?: string; /** * Text content of the content */ 'text'?: string; /** * Direct CSS for this content node, scoped to data-component-uuid at render time */ 'customCss'?: string; /** * Styling of the content */ 'styling'?: PageContentStylingDTO; /** * Settings for the content */ 'settings'?: PageContentSettingsDTO; /** * Children of the content */ 'children'?: Array; /** * Module storage scope: company or personal */ 'scope'?: string; /** * Module kind: content (section/component) or page (full page design) */ 'moduleKind'?: string; /** * Page-level custom CSS for page modules */ 'pageCustomCss'?: string; /** * Page-level custom JS for the head for page modules */ 'pageCustomJsHead'?: string; /** * Page-level custom JS for the body for page modules */ 'pageCustomJsBody'?: string; /** * Sidebar preview UUID for page modules */ 'sidebarUuid'?: string; /** * Sidebar relation UUID for page modules */ 'sidebarRelationUuid'?: string; /** * Sidebar object UUID for page modules */ 'sidebarObjectUuid'?: string; } /** * Data transfer object representing the settings for a content */ export interface PageContentSettingsDTO { /** * The form associated with the content */ 'form'?: FormDTO; /** * The icon to display when the accordion is open */ 'openIcon'?: string; /** * The icon to display when the accordion is closed */ 'closeIcon'?: string; /** * The alt text of the image */ 'alt'?: string; /** * The key of the image */ 'key'?: string; /** * Whether the video should play automatically */ 'playVideo'?: boolean; /** * Whether the image should start muted */ 'startMuted'?: boolean; /** * Whether the video should loop */ 'loopVideo'?: boolean; /** * The start offset of the video */ 'startOffset'?: number; /** * The link of the button */ 'link'?: string; /** * The style of the button. Primary, secondary, tertiary or custom */ 'style'?: string; /** * Optional CTA tracking identifier for CMS buttons */ 'ctaId'?: string; /** * Whether the link should open in a new window */ 'openInNewWindow'?: boolean; /** * The slider type. Dots, arrows and swipe */ 'sliderType'?: string; /** * The carousel speed. */ 'carouselSpeed'?: number; /** * Whether carousel prev/next controls are shown */ 'enableControls'?: boolean; /** * The object of the previews */ 'previewObject'?: CaraerObjectDTO; /** * The previews associated with the layouts */ 'previews'?: { [key: string]: PreviewDTO; }; /** * The order of preview layouts */ 'previewLayoutOrder'?: Array; /** * The filter associated with the settings */ 'filter'?: Filter; /** * The order by property associated with the settings */ 'orderBy'?: PropertyDTO; /** * The order by direction associated with the settings. ASC or DESC, default is ASC */ 'orderByDirection'?: string; /** * Whether the previews should be shown as webpages */ 'asWebpages'?: boolean; /** * Whether the previews should loop */ 'loop'?: boolean; /** * The limit associated with the settings */ 'limit'?: number; /** * The group by property associated with the settings */ 'groupBy'?: PropertyDTO; /** * Whether the previews should be hidden when there are no results */ 'hideOnNoResults'?: boolean; /** * The type of the filter block. left_bar or top_search */ 'filterType'?: string; /** * The single result string of the filter block */ 'searchResultSingleString'?: string; /** * The Plural result string of the filter block */ 'searchResultPluralString'?: string; /** * The no results string of the filter block */ 'noResultsString'?: string; /** * Whether the search field should be enabled */ 'searchFieldEnabled'?: boolean; /** * The placeholder of the search field */ 'searchFieldPlaceholder'?: string; /** * Whether the filter block should be enabled */ 'filterBlockEnabled'?: boolean; /** * The title of the filter block */ 'filterTitle'?: string; /** * The subtitle of the filter block */ 'filterSubtitle'?: string; /** * The properties of the filter block */ 'filterProperties'?: Array; /** * Whether the filter tiles should be enabled */ 'enableFilterTiles'?: boolean; /** * Whether the filter query should be enabled */ 'enableFilterQuery'?: boolean; /** * Whether the remove all filters button should be enabled */ 'enableRemoveAllFiltersButton'?: boolean; /** * Whether the CTA should be enabled */ 'ctaEnabled'?: boolean; /** * The title of the CTA */ 'ctaTitle'?: string; /** * The text of the CTA */ 'ctaText'?: string; /** * The button text of the CTA */ 'ctaButtonText'?: string; /** * The button link of the CTA */ 'ctaButtonLink'?: string; /** * The platforms shown in the share component */ 'platforms'?: Array; /** * Latitude for the map component */ 'mapLatitude'?: number; /** * Longitude for the map component */ 'mapLongitude'?: number; /** * Multiple map markers */ 'mapLocations'?: Array; /** * Show a public distance-from-location filter on this map */ 'distanceFilterEnabled'?: boolean; /** * Show a public contains filter for city, street, or postcode on this map */ 'locationContainsFilterEnabled'?: boolean; } export interface PageContentStylingDTO { /** * The style set for all devices */ 'all'?: StyleSetDTO; /** * The style set for the mobile device */ 'mobile'?: StyleSetDTO; /** * The style set for the tablet device */ 'tablet'?: StyleSetDTO; /** * The style set for the desktop device */ 'desktop'?: StyleSetDTO; } /** * Pagination and filtering options for the request */ export interface PaginationRequest { /** * A list of key-value pairs representing filter criteria for the request. Keys represent fields to filter by, operator can be any of the following: \'=\', \'>\', \'<\', \'>=\', \'<=\', (not) \'in\', \'(not) contains\', \'(not) startswith\', \'(not) endswith\', \'(not) isnull\'. */ 'filters'?: Array<{ [key: string]: any | null; }>; /** * A list of key-value pairs representing sorting criteria. Keys represent fields to sort by, and values define the sort direction (e.g., \'asc\' or \'desc\'). */ 'sort'?: Array<{ [key: string]: string; }>; /** * A list of field names specifying which fields to include in the response. */ 'show'?: Array; /** * The maximum number of items to retrieve per page. */ 'limit'?: number; /** * The page number to retrieve in the paginated response (1-based index). */ 'page'?: number; /** * Optional search query to filter results. This will apply to all properties on the entity. */ 'query'?: string; } /** * Paginated response (PaginationResponseAppDTO). */ export interface PaginationResponseAppDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponseCaraerObjectDTO). */ export interface PaginationResponseCaraerObjectDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Response object for paginated data. */ export interface PaginationResponseCompanyDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data returned in the current page of the pagination. */ 'data'?: Array; /** * The total number of items available. */ 'total'?: number; /** * The current page number (starts from 1). */ 'page'?: number; /** * The number of items displayed per page. */ 'perPage'?: number; /** * The last page number available for the pagination. */ 'lastPage'?: number; } /** * Response object for paginated data. */ export interface PaginationResponseFeedDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data returned in the current page of the pagination. */ 'data'?: Array; /** * The total number of items available. */ 'total'?: number; /** * The current page number (starts from 1). */ 'page'?: number; /** * The number of items displayed per page. */ 'perPage'?: number; /** * The last page number available for the pagination. */ 'lastPage'?: number; } /** * Paginated response (PaginationResponseFormDTO). */ export interface PaginationResponseFormDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Response object for paginated data. */ export interface PaginationResponseMapStringObject { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data returned in the current page of the pagination. */ 'data'?: Array<{ [key: string]: any | null; }>; /** * The total number of items available. */ 'total'?: number; /** * The current page number (starts from 1). */ 'page'?: number; /** * The number of items displayed per page. */ 'perPage'?: number; /** * The last page number available for the pagination. */ 'lastPage'?: number; } /** * Paginated response (PaginationResponseObject). */ export interface PaginationResponseObject { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponsePageContentDTO). */ export interface PaginationResponsePageContentDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Response object for paginated data. */ export interface PaginationResponsePreviewDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data returned in the current page of the pagination. */ 'data'?: Array; /** * The total number of items available. */ 'total'?: number; /** * The current page number (starts from 1). */ 'page'?: number; /** * The number of items displayed per page. */ 'perPage'?: number; /** * The last page number available for the pagination. */ 'lastPage'?: number; } /** * Paginated response (PaginationResponsePropertyCalculationTypeDTO). */ export interface PaginationResponsePropertyCalculationTypeDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponsePropertyDTO). */ export interface PaginationResponsePropertyDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponsePropertyFormat). */ export interface PaginationResponsePropertyFormat { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Response object for paginated data. */ export interface PaginationResponsePropertyOption { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data returned in the current page of the pagination. */ 'data'?: Array; /** * The total number of items available. */ 'total'?: number; /** * The current page number (starts from 1). */ 'page'?: number; /** * The number of items displayed per page. */ 'perPage'?: number; /** * The last page number available for the pagination. */ 'lastPage'?: number; } /** * Paginated response (PaginationResponsePublicEnvironmentDTO). */ export interface PaginationResponsePublicEnvironmentDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Response object for paginated data. */ export interface PaginationResponsePublicFormDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data returned in the current page of the pagination. */ 'data'?: Array; /** * The total number of items available. */ 'total'?: number; /** * The current page number (starts from 1). */ 'page'?: number; /** * The number of items displayed per page. */ 'perPage'?: number; /** * The last page number available for the pagination. */ 'lastPage'?: number; } /** * Paginated response (PaginationResponseRelationDTO). */ export interface PaginationResponseRelationDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponseSavedFilterDTO). */ export interface PaginationResponseSavedFilterDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponseServerlessFunctionDTO). */ export interface PaginationResponseServerlessFunctionDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponseSubscribeWebhookDTO). */ export interface PaginationResponseSubscribeWebhookDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponseSyncDTO). */ export interface PaginationResponseSyncDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponseTraitDTO). */ export interface PaginationResponseTraitDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponseViewDTO). */ export interface PaginationResponseViewDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Paginated response (PaginationResponseWebMenuDTO). */ export interface PaginationResponseWebMenuDTO { 'message'?: string; 'data'?: Array; 'total'?: number; 'page'?: number; 'perPage'?: number; 'lastPage'?: number; } /** * Response object for paginated data. */ export interface PaginationResponseWebpageAccessGrantDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data returned in the current page of the pagination. */ 'data'?: Array; /** * The total number of items available. */ 'total'?: number; /** * The current page number (starts from 1). */ 'page'?: number; /** * The number of items displayed per page. */ 'perPage'?: number; /** * The last page number available for the pagination. */ 'lastPage'?: number; } export interface Phone extends PropertyFormat { } /** * Data transfer object representing a preview entity */ export interface PreviewDTO { /** * Description of the preview */ 'description'?: string; /** * The Caraer object associated with this preview */ 'object'?: CaraerObjectDTO; /** * UUID of the associated record */ 'recordUuid'?: string; /** * Indicates whether this preview is the primary one */ 'primary'?: boolean; /** * Values stored on the relation edge for properties declared on the relation schema. Only present when the preview was loaded through such a relation. */ 'edgeProperties'?: { [key: string]: any | null; }; /** * Rows of the preview grid */ 'grid'?: Array>; /** * Preview type */ 'previewType'?: string; /** * Profile image property */ 'profileImage'?: PropertyDTO; /** * Profile image position (top, left, right, bottom, background) */ 'profileImagePosition'?: string; /** * Style set for the profile image */ 'profileImageStyling'?: PageContentStylingDTO; /** * First initial property */ 'firstInitialProperty'?: PropertyDTO; /** * Second initial property */ 'secondInitialProperty'?: PropertyDTO; /** * Value of the profile image */ 'profileImageValue'?: string; /** * Value of the first initial property */ 'firstInitialPropertyValue'?: string; /** * Value of the second initial property */ 'secondInitialPropertyValue'?: string; /** * Custom CSS styles for the preview */ 'customCss'?: string; /** * URL of the preview */ 'url'?: string; /** * The styling of the preview */ 'styling'?: PageContentStylingDTO; /** * Property name used for server-side list sorting */ 'sortProperty'?: string; /** * Raw stored value of the sort property for this record */ 'sortValue'?: any; /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; } /** * Data Transfer Object for PreviewItem, used for transferring preview details. */ export interface PreviewItemDTO { /** * The property details associated with the preview item. */ 'property'?: PropertyDTO; /** * The text content associated with the preview item. */ 'text'?: string; /** * The value associated with the preview item. This can hold custom data. */ 'value'?: any; /** * The related object information for the preview item. */ 'relatedObject'?: PreviewRelatedObjectDTO; /** * The related object value associated with this preview item. */ 'relatedObjectValue'?: any; /** * Whether the preview item is a divider. (solid, dashed, dotted, spacer) */ 'divider'?: string; /** * The button text associated with the preview item. */ 'buttonText'?: string; /** * The button url associated with the preview item. */ 'buttonUrl'?: string; /** * The button text value associated with the preview item. */ 'buttonTextValue'?: any; /** * The button value associated with the preview item. */ 'buttonUrlValue'?: any; /** * The settings associated with the preview item. */ 'settings'?: PreviewItemSettingsDTO; /** * The styling associated with the preview item. */ 'styling'?: PageContentStylingDTO; } /** * Data Transfer Object for PreviewItemSettings, used for transferring preview item settings. */ export interface PreviewItemSettingsDTO { /** * Whether the preview item should show the icon. */ 'showIcon'?: boolean; /** * The padding of the icon. */ 'iconPadding'?: number; /** * The color of the icon. */ 'iconColor'?: string; /** * The size of the icon. */ 'iconSize'?: number; /** * The default value of the preview item. */ 'defaultValue'?: string; /** * Whether this preview property is editable inline. */ 'editable'?: boolean; /** * The help text of the preview item. */ 'helpText'?: string; /** * The paragraph of the preview item p, h1, h2, h3, h4, h5, h6. */ 'paragraph'?: string; /** * Whether the preview item should show the color of the select option. */ 'showColor'?: boolean; /** * Whether the preview item should show the border around the select option. */ 'showBorder'?: boolean; /** * What type the button should be (primary, secondary or tertiary) */ 'buttonType'?: string; /** * Whether to show the favicon of the button URL. */ 'showFavicon'?: boolean; } /** * Data transfer object representing a PreviewRelatedObject, constructed using related object and relation data. */ export interface PreviewRelatedObjectDTO { /** * The related object data. */ 'object'?: CaraerObjectDTO; /** * The type of relation between objects. */ 'relation'?: RelationDTO; } export interface Progress extends PropertyFormat { 'checkboxProperty'?: PropertyDTO; } /** * Data transfer object for a developer project build artifact. */ export interface ProjectBuildDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * UUID of the owning developer project */ 'projectUuid'?: string; /** * PENDING, READY, or FAILED */ 'status'?: string; /** * production or sandbox */ 'target'?: string; /** * GCS object path of the uploaded build archive */ 'artifactGcsPath'?: string; /** * Parsed build manifest (functions, webhooks, app fields), serialized as JSON */ 'manifestJson'?: string; /** * Error message if the build failed */ 'errorMessage'?: string; /** * Semantic version for this build */ 'version'?: string; /** * Release notes for this build */ 'releaseNotes'?: string; } /** * Data transfer object for a developer project deploy. */ export interface ProjectDeployDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * UUID of the owning developer project */ 'projectUuid'?: string; /** * UUID of the build that was deployed */ 'buildUuid'?: string; /** * Semantic version of the deployed build */ 'version'?: string; /** * PENDING, SUCCEEDED, FAILED, or PARTIAL */ 'status'?: string; /** * production or sandbox */ 'target'?: string; /** * Per-component reconciliation results (app, functions, webhooks), serialized as JSON */ 'resultsJson'?: string; /** * Unix timestamp (ms) when this deploy was activated */ 'activatedAt'?: number; } /** * Data transfer object representing a property with its configuration and metadata */ export interface PropertyDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name identifier of the property */ 'name'?: string; /** * Display label for the property */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Detailed description of the property\'s purpose and usage */ 'description'?: string; /** * The data type of the property (e.g., \'string\', \'number\', \'date\', etc.) */ 'type'?: string; /** * List of predefined options for properties that support selection */ 'options'?: Array; /** * Group name for organizing related properties */ 'group'?: string; 'format'?: PropertyDTOFormat; /** * Collection of validation rules applied to the property */ 'rules'?: Array; /** * Indicates if the property value cannot be modified after initial creation */ 'immutable'?: boolean; /** * Indicates if the property should be hidden from view */ 'hidden'?: boolean; /** * When true, property value changes are tracked as lifecycle records */ 'lifecycleActive'?: boolean; /** * When this filter matches the record being saved, the property becomes required */ 'requiredFilter'?: Filter; /** * Indicates if the property should be excluded from public APIs */ 'nonPublic'?: boolean; /** * Indicates if the property should be indexed for searching */ 'indexed'?: boolean; /** * Indicates if the property value can be modified */ 'editable'?: boolean; /** * Additional format-specific settings for the property */ 'formatSettings'?: { [key: string]: any | null; }; /** * Information about where this property is used in the system */ 'usedIn'?: UsedInResult; /** * Icon identifier for visual representation of the property */ 'icon'?: string; /** * Indicates if the property can be used in webpages */ 'webpagePublic'?: boolean; /** * Indicates if the property can be embedded in other properties * @deprecated */ 'embeddable'?: boolean; /** * When true, exclude from advanced query evidence */ 'sensitive'?: boolean; /** * The minimum and maximum value of the property */ 'minAndMaxValue'?: Tuple2LongLong; /** * Indicates if the property is pinned by the logged-in user */ 'pinned'?: boolean; } /** * @type PropertyDTOFormat * Format configuration for the property\'s display and validation */ export type PropertyDTOFormat = Currency | CurrencyRange | DateRange | Duration | Email | LinkedProperty | Location | ModelDate | ModelFile | MultiFile | MultiLine | MultiSelect | Number | NumberRange | Phone | Progress | Recurrence | SingleCheckbox | SingleLine | SingleSelect | Structure | Tag | Url; export interface PropertyFormat { 'label'?: string; 'name'?: string; 'icon'?: string; 'type'?: string; 'settings'?: Array; 'filters'?: Array; 'rules'?: Array; } export interface PropertyOption { 'name'?: string; 'label'?: string; 'icon'?: string; 'color'?: string; 'disabled'?: boolean; 'completed'?: boolean; 'usedIn'?: UsedInResult; } /** * Data transfer object representing a form with its associated properties and structure */ export interface PublicFormDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * The associated Caraer object that this form belongs to */ 'object'?: CaraerObjectDTO; /** * List of form items that make up the form\'s structure. Each grid represents a section or group of form elements */ 'grids'?: Array; /** * Descriptive text providing additional information about the form */ 'description'?: string; /** * The styling of the form. Can be \'standard\', \'underline\' or \'plain\' */ 'styling'?: string; /** * Indicates if the form should be displayed as a step-by-step wizard interface */ 'wizard'?: boolean; /** * Metadata associated with the form */ 'metadata'?: { [key: string]: string; }; /** * Thank you message to be displayed after the form is submitted */ 'thankYouMessage'?: string; /** * Redirect URL to be displayed after the form is submitted */ 'redirectUrl'?: string; } export interface PublicUserDTO { 'uuid'?: string; 'email'?: string; 'firstname'?: string; 'lastname'?: string; 'initials'?: string; 'scopes'?: Array; 'filters'?: { [key: string]: Filter; }; 'role'?: string; 'record'?: ModelRecord; } export interface QueryEvidence { 'type'?: string; 'polarity'?: string; 'summary'?: string; 'sourceObject'?: string; 'sourceRecordUuid'?: string; 'relation'?: string; 'timestamp'?: number; 'recencyWeight'?: number; 'confidence'?: number; 'properties'?: { [key: string]: any | null; }; 'paths'?: Array; } /** * Data Transfer Object for representing a record with dynamic properties. */ export interface RecordDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Property values as a name→value map, or a LEGACY array of {name,type,value} objects (same shape as LEGACY GET responses). */ 'properties'?: { [key: string]: any | null; }; /** * The user of the record if the user trait is enabled. */ 'user'?: PublicUserDTO; /** * Relations to create or merge after the record is saved. Each item links to an existing record (uuid) or creates a nested record first. */ 'relations'?: Array; } /** * Contains pagination details and optional query parameters such as filter, sort, and show options. */ export interface RecordPaginationRequest { /** * The page index (one-based) to request. */ 'page'?: number; /** * The number of records to retrieve per page. */ 'limit'?: number; /** * Filters applied to the query. */ 'filter'?: object; /** * Sorting options for the query. */ 'sort'?: Array; /** * Specifies what data to show in the response. */ 'show'?: Array; /** * A free-text search query applied to the records. */ 'query'?: string; /** * Preview information for the records, if supported. */ 'preview'?: string; /** * The main object for categorization or context. */ 'mainObject'?: string; /** * The column to group the records by. */ 'column'?: string; } /** * Relation to create when saving a record */ export interface RecordRelationRequestDTO { /** * Name of the relation type */ 'relationName': string; /** * UUID of an existing record to link to */ 'uuid'?: string; /** * Properties to update on the existing record referenced by uuid before linking */ 'properties'?: { [key: string]: any | null; }; /** * Values for properties declared on the relation schema, stored on the relation edge itself (not on either record). Omit to leave existing edge values untouched; a null value clears a key. */ 'edgeProperties'?: { [key: string]: any | null; }; /** * Nested record to create or update (by uuid or unique properties) before linking */ 'record'?: RecordDTO; /** * Object name for nested record create when relation allows multiple target types */ 'objectName'?: string; /** * When true, marks this relation edge as primary */ 'primary'?: boolean; /** * When true, MERGE relation edge instead of CREATE */ 'merge'?: boolean; } export interface RecordSummary { 'uuid'?: string; 'object'?: string; 'properties'?: { [key: string]: any | null; }; 'parsedProperties'?: { [key: string]: any | null; }; } export interface Recurrence extends PropertyFormat { } export interface Reference { 'kind'?: string; 'identifier'?: string; 'label'?: string; 'field'?: string; } /** * Exchange a refresh token for a new access token */ export interface RefreshTokenRequest { /** * Refresh token issued by device poll / refresh */ 'refreshToken': string; } export interface RegisterRequest { 'email': string; 'password': string; 'firstname': string; 'lastname': string; } /** * Data transfer object representing a relation between Caraer objects */ export interface RelationDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * Unique identifier name for the relation */ 'name'?: string; /** * Display label for the relation */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Detailed description of the relation\'s purpose and usage */ 'description'?: string; /** * Set of Caraer objects that are part of this relation */ 'objects'?: Set; /** * Whether the relation is immutable */ 'immutable'?: boolean; /** * Whether the relation is editable */ 'editable'?: boolean; } /** * Optional relation edge payload */ export interface RelationEdgeRequestDTO { /** * Values for properties declared on the relation schema, stored on the edge itself. A null value clears that key. */ 'edgeProperties'?: { [key: string]: any | null; }; /** * When true, marks this relation edge as primary. Overrides the primary query parameter. */ 'primary'?: boolean; } export interface ResetPasswordRequest { 'email'?: string; 'token'?: string; 'password'?: string; } /** * Represents the response returned when a restore operation is performed successfully. */ export interface RestoreResponse { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: any; } /** * Represents the response returned when a restore operation is performed successfully. */ export interface RestoreResponseCaraerObjectDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: CaraerObjectDTO; } /** * Represents the response returned when a restore operation is performed successfully. */ export interface RestoreResponseSavedFilterDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: SavedFilterDTO; } /** * Represents the response returned when a restore operation is performed successfully. */ export interface RestoreResponseTeamDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: TeamDTO; } /** * Represents the response returned when a restore operation is performed successfully. */ export interface RestoreResponseViewDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: ViewDTO; } /** * Review request with feedback, reviewer notes, and publish state */ export interface ReviewRequest { /** * Feedback shown to the developer. */ 'feedback'?: string; /** * Internal notes for reviewers (not shown to the developer). */ 'reviewerNotes'?: string; /** * Publish state after review: APPROVED, REJECTED, CHANGES_REQUESTED. */ 'publishState'?: string; } /** * Request body for generating a sample webhook payload from a record and event type. */ export interface SamplePayloadRequest { /** * UUID of the record to base the sample payload on. */ 'recordUuid'?: string; /** * Event type to simulate (created, updated, deleted, etc.). */ 'eventType'?: string; } /** * DTO representing a property to be saved */ export interface SavePropertyDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The internal name of the property */ 'name'?: string; /** * The display label of the property */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * A brief description of the property */ 'description'?: string; /** * The data type of the property */ 'type'?: string; /** * List of available options for the property */ 'options'?: Array; /** * The group to which this property belongs */ 'group'?: string; /** * Property format type */ 'format'?: string; /** * Collection of rules applied to the property */ 'rules'?: Array; /** * Indicates if the property is hidden by default */ 'hidden'?: boolean; /** * When true, property value changes are tracked as lifecycle records */ 'lifecycleActive'?: boolean; /** * When this filter matches the record being saved, the property becomes required */ 'requiredFilter'?: Filter; /** * Indicates if the property is not accessible publicly */ 'nonPublic'?: boolean; /** * Indicates if the property is indexed */ 'indexed'?: boolean; /** * Settings to configure the format of the property */ 'formatSettings'?: { [key: string]: any | null; }; /** * Indicates if the property is immutable */ 'immutable'?: boolean; /** * Indicates if the property can be edited */ 'editable'?: boolean; /** * The icon associated with the property */ 'icon'?: string; /** * Indicates if the property is webpage public */ 'webpagePublic'?: boolean; /** * Deprecated. Use sensitive instead. * @deprecated */ 'embeddable'?: boolean; /** * When true, exclude from advanced query evidence */ 'sensitive'?: boolean; } /** * Data transfer object representing a saved filter configuration */ export interface SavedFilterDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name identifier of the saved filter */ 'name': string; /** * Display label for the saved filter */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Description of what this saved filter is used for */ 'description'?: string; /** * The main object for the saved filter */ 'mainObject'?: string; /** * The filter definition used when querying records */ 'filter'?: Filter; } export interface ScoreBreakdown { 'overall'?: number; 'structured'?: number; 'lexical'?: number; 'semantic'?: number; 'graph'?: number; 'evidenceAdjustment'?: number; 'confidence'?: number; 'components'?: { [key: string]: number; }; } /** * Request DTO for searching records. */ export interface SearchRequest { /** * The query to search for. */ 'query'?: string; /** * The UUID of the object to search in. */ 'objectUuid'?: string; /** * The limit of the search. */ 'limit'?: number; /** * The page of the search. */ 'page'?: number; /** * The preview of the search. */ 'preview'?: string; } /** * Request body for sending an in-app notification in a company */ export interface SendNotificationRequest { /** * Optional. Aim this notification at one user in the company. Omit to notify every user who has access to the company. */ 'targetUserUuid'?: string; /** * Notification title */ 'title': string; /** * Notification body (supports Markdown for links) */ 'body': string; /** * Notification type identifier */ 'type'?: string; /** * Optional icon identifier */ 'icon'?: string; /** * Optional structured action identifier */ 'action'?: string; /** * Optional label for the action button */ 'actionTitle'?: string; /** * Optional action payload */ 'data'?: { [key: string]: any | null; }; } /** * Data transfer object for a serverless function (runtime and code) owned by an app */ export interface ServerlessFunctionDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Runtime identifier (e.g. javascript, python) */ 'runtime'?: string; /** * Function source code */ 'code'?: string; /** * Additional source files relative to the function folder (e.g. shared.js) */ 'sourceFiles'?: { [key: string]: string; }; /** * Optional description of the serverless function */ 'description'?: string; } /** * Reference to a serverless function by uuid and/or name */ export interface ServerlessFunctionRefDTO { 'uuid'?: string; 'name'?: string; 'label'?: string; } export interface SettingField { 'name'?: string; 'label'?: string; 'helpText'?: string; 'type'?: SettingFieldTypeEnum; 'required'?: boolean; 'dynamic'?: boolean; 'hidden'?: boolean; 'disabled'?: boolean; 'options'?: Array; 'value'?: any; 'defaultValue'?: any; } export const SettingFieldTypeEnum = { String: 'STRING', Number: 'NUMBER', SingleSelect: 'SINGLE_SELECT', MultiSelect: 'MULTI_SELECT', Date: 'DATE', File: 'FILE', } as const; export type SettingFieldTypeEnum = typeof SettingFieldTypeEnum[keyof typeof SettingFieldTypeEnum]; export interface SettingOption { 'name'?: string; 'label'?: string; 'helpText'?: string; 'preview'?: string; } /** * DTO representing an item with properties defined for displaying and handling in UI related operations. */ export interface ShowItem { /** * The name of the object to which this pagination item belongs. */ 'object'?: string; /** * The relationship between objects. */ 'relation'?: string; /** * Optional relation direction: outgoing (related→main), incoming (main→related), or omit for undirected. */ 'relationDirection'?: string; /** * The name of the property within the object. */ 'property'?: string; /** * Separator string used to visually separate this item. */ 'separator'?: string; /** * Flag indicating whether this item is sticky and will stay fixed in the list. */ 'sticky'?: boolean; /** * Width of the item in pixels. */ 'width'?: number; /** * Calculation function used to calculate the value of the item. */ 'calculationFunction'?: string; /** * Result of the calculation. */ 'calculationResult'?: any; } /** * Success response (ShowResponse). */ export interface ShowResponse { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseAnalyticsDashboardConfig). */ export interface ShowResponseAnalyticsDashboardConfig { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseAppBarIframeSessionContextDTO). */ export interface ShowResponseAppBarIframeSessionContextDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseAppBarIframeSessionTokenDTO). */ export interface ShowResponseAppBarIframeSessionTokenDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseAppDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: AppDTO; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseAppExternalOAuthProviderDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: AppExternalOAuthProviderDTO; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseAppInboundRouteDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: AppInboundRouteDTO; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseAppOAuthStartResponseDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: AppOAuthStartResponseDTO; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseAppScheduleDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: AppScheduleDTO; } /** * Success response (ShowResponseBillingStatusDTO). */ export interface ShowResponseBillingStatusDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseCaraerObjectDTO). */ export interface ShowResponseCaraerObjectDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseCmsEnvironmentDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: CmsEnvironmentDTO; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseCmsPageDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: CmsPageDTO; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseCmsPageDocument { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: CmsPageDocument; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseCompanyDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: CompanyDTO; } /** * Success response (ShowResponseDeveloperProjectDTO). */ export interface ShowResponseDeveloperProjectDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseDigitalIdentityDTO). */ export interface ShowResponseDigitalIdentityDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseFeedDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: FeedDTO; } /** * Success response (ShowResponseFormDTO). */ export interface ShowResponseFormDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseListAppConnectionStatusDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseListCmsEnvironmentDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseListCmsModuleDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseListCmsPageDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseListCmsPublicMenuDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Success response (ShowResponseListEnvironmentDTO). */ export interface ShowResponseListEnvironmentDTO { 'message'?: string; 'data'?: Array; } /** * Success response (ShowResponseListFormObjectSummaryDTO). */ export interface ShowResponseListFormObjectSummaryDTO { 'message'?: string; 'data'?: Array; } /** * Success response (ShowResponseListInstalledAppBarDTO). */ export interface ShowResponseListInstalledAppBarDTO { 'message'?: string; 'data'?: Array; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseListMapStringObject { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array<{ [key: string]: any | null; }>; } /** * Success response (ShowResponseListPropertyDTO). */ export interface ShowResponseListPropertyDTO { 'message'?: string; 'data'?: Array; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseListString { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseListWebpageAccessGrantDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Success response (ShowResponseListWebpagePickerItemDTO). */ export interface ShowResponseListWebpagePickerItemDTO { 'message'?: string; 'data'?: Array; } /** * Success response (ShowResponseLoadAppSettingOptionsResponse). */ export interface ShowResponseLoadAppSettingOptionsResponse { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseMapStringAnalyticsDashboardConfig). */ export interface ShowResponseMapStringAnalyticsDashboardConfig { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseMapStringBoolean). */ export interface ShowResponseMapStringBoolean { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseMapStringObject { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: { [key: string]: any | null; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseMapStringString { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: { [key: string]: string; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseNotificationInboxDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: NotificationInboxDTO; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseObject { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: any; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseObjectAccessGrantCandidatesDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: ObjectAccessGrantCandidatesDTO; } /** * Success response (ShowResponsePageContentDTO). */ export interface ShowResponsePageContentDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponsePreviewDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: PreviewDTO; } /** * Success response (ShowResponsePropertyDTO). */ export interface ShowResponsePropertyDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponsePublicFormDTO). */ export interface ShowResponsePublicFormDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseRelationDTO). */ export interface ShowResponseRelationDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseSavedFilterDTO). */ export interface ShowResponseSavedFilterDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseServerlessFunctionDTO). */ export interface ShowResponseServerlessFunctionDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseSignedUrlResultDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: SignedUrlResultDTO; } /** * Success response (ShowResponseString). */ export interface ShowResponseString { 'message'?: string; 'data'?: string; } /** * Success response (ShowResponseSubscribeWebhookDTO). */ export interface ShowResponseSubscribeWebhookDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseTemplateWebpageDTO). */ export interface ShowResponseTemplateWebpageDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (ShowResponseTraitDTO). */ export interface ShowResponseTraitDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseViewDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: ViewDTO; } /** * Success response (ShowResponseWebMenuDTO). */ export interface ShowResponseWebMenuDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseWebpageMapLocationsDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: WebpageMapLocationsDTO; } /** * Represents the response for viewing or showing a specific resource. */ export interface ShowResponseWebpageProtectionInfoDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: WebpageProtectionInfoDTO; } /** * Success response (ShowResponseWebsiteSettingsDTO). */ export interface ShowResponseWebsiteSettingsDTO { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Generated signed URL for a protected webpage */ export interface SignedUrlResultDTO { 'grantUuid'?: string; 'token'?: string; 'expiresAt'?: number; 'queryParams'?: string; } /** * Data Transfer Object representing a public-facing view of a company */ export interface SimplePublicCompanyDTO { /** * Unique identifier of the company */ 'uuid'?: string; /** * Timestamp of the last update (in milliseconds since epoch) */ 'updatedAt'?: number; /** * The website URL of the company */ 'website'?: string; /** * Cookie policy URL of the company */ 'cookiePolicy'?: string; /** * Path to the company\'s favicon */ 'favicon'?: string; /** * Privacy policy URL of the company */ 'privacyPolicy'?: string; /** * The accent color used by the company */ 'accentColor'?: string; /** * Twitter URL of the company\'s social media page */ 'twitterUrl'?: string; /** * The company\'s primary color used in branding */ 'primaryColor'?: string; /** * Terms and conditions URL of the company */ 'termsAndConditions'?: string; /** * URL to the company\'s Facebook page */ 'facebookUrl'?: string; /** * URL to the company\'s YouTube page */ 'youtubeUrl'?: string; /** * Company\'s branding color */ 'companyColor'?: string; /** * Name of the company */ 'name'?: string; /** * Path to the company\'s logo image */ 'logo'?: string; /** * URL to the company\'s Instagram page */ 'instagramUrl'?: string; /** * Font color used in company\'s branding */ 'fontColor'?: string; /** * Secondary color used in company\'s branding */ 'secondaryColor'?: string; /** * Boolean flag indicating if the right navigation bar button is enabled */ 'rightNavBarButtonEnabled'?: boolean; /** * Title of the right navigation bar button */ 'rightNavBarButtonTitle'?: string; /** * Link for the right navigation bar button */ 'rightNavBarButtonLink'?: string; /** * CSS scripts added by the company */ 'cssScript'?: string; /** * JavaScript code injected into the head tag of the HTML page */ 'jsHeadScript'?: string; /** * JavaScript code injected into the body tag of the HTML page */ 'jsBodyScript'?: string; /** * Custom domain name used by the company */ 'customDomain'?: string; } export interface SingleCheckbox extends PropertyFormat { } export interface SingleLine extends PropertyFormat { } export interface SingleSelect extends PropertyFormat { } /** * Represents a sortable item, including object, relation, property, and sort direction. */ export interface SortItem { /** * The name of the object to which this pagination item belongs. */ 'object'?: string; /** * The relationship between objects. */ 'relation'?: string; /** * Optional relation direction: outgoing (related→main), incoming (main→related), or omit for undirected. */ 'relationDirection'?: string; /** * The name of the property within the object. */ 'property'?: string; /** * The direction for sorting. Can be ASC (ascending) or DESC (descending). */ 'direction'?: SortItemDirectionEnum; } export const SortItemDirectionEnum = { Asc: 'ASC', Desc: 'DESC', } as const; export type SortItemDirectionEnum = typeof SortItemDirectionEnum[keyof typeof SortItemDirectionEnum]; export interface SseEmitter { 'timeout'?: number; } export interface Structure extends PropertyFormat { } export interface StyleSetDTO { 'hide'?: boolean; 'customID'?: string; 'customClass'?: string; 'customAnchor'?: string; 'spacing'?: any; 'directionLTR'?: boolean; 'alignContent'?: string; 'alignItems'?: string; 'justifyContent'?: string; 'alignSelf'?: string; 'flexWrap'?: string; 'flexDirection'?: string; 'overflow'?: string; 'transformX'?: any; 'transformY'?: any; 'topMargin'?: any; 'bottomMargin'?: any; 'leftMargin'?: any; 'rightMargin'?: any; 'topPadding'?: any; 'bottomPadding'?: any; 'leftPadding'?: any; 'rightPadding'?: any; 'fullWidthEnabled'?: boolean; 'maxWidth'?: any; 'minWidth'?: any; 'width'?: any; 'flex'?: number; 'minHeight'?: any; 'maxHeight'?: any; 'height'?: any; 'borderRadiusTopLeft'?: any; 'borderRadiusTopRight'?: any; 'borderRadiusBottomLeft'?: any; 'borderRadiusBottomRight'?: any; 'borderWidthTop'?: any; 'borderWidthBottom'?: any; 'borderWidthLeft'?: any; 'borderWidthRight'?: any; 'borderColorTop'?: string; 'borderColorBottom'?: string; 'borderColorLeft'?: string; 'borderColorRight'?: string; 'borderStyleTop'?: string; 'borderStyleBottom'?: string; 'borderStyleLeft'?: string; 'borderStyleRight'?: string; 'backgroundVideo'?: string; 'backgroundImage'?: string; 'backgroundMediaRepeat'?: string; 'backgroundMediaFit'?: string; 'backgroundMediaSizeWidth'?: any; 'backgroundMediaSizeHeight'?: any; 'backgroundMediaPosition'?: string; 'backgroundMediaScroll'?: string; 'backgroundMediaParallax'?: boolean; 'backgroundMediaAutoPlay'?: boolean; 'backgroundMediaMuted'?: boolean; 'backgroundMediaLoop'?: boolean; 'backgroundColorOverlayColor'?: string; 'backgroundColorOverlayOpacity'?: number; 'backgroundGradientOverlayColors'?: Array; 'backgroundGradientOverlayOpacity'?: number; 'backgroundGradientOverlayDirection'?: string; 'backgroundColor'?: string; 'backgroundColorOffsetBottom'?: any; 'backgroundColorOffsetLeft'?: any; 'backgroundColorOffsetRight'?: any; 'backgroundColorOffsetTop'?: any; 'backgroundGradientColors'?: Array; 'backgroundGradientOpacity'?: number; 'backgroundGradientDirection'?: string; 'animationDelay'?: number; 'animationDuration'?: number; 'animationIn'?: string; 'animationOut'?: string; 'animationRepeat'?: string; 'animationDirection'?: string; 'animationTimingFunction'?: string; 'animationFillMode'?: string; 'mediaHover'?: string; 'mediaAlignment'?: string; 'mediaFit'?: string; 'mediaPosition'?: string; 'enlargeOnClickBorderRadiusTopLeft'?: any; 'enlargeOnClickBorderRadiusTopRight'?: any; 'enlargeOnClickBorderRadiusBottomLeft'?: any; 'enlargeOnClickBorderRadiusBottomRight'?: any; 'enlargeOnClickBorderWidthTop'?: any; 'enlargeOnClickBorderWidthBottom'?: any; 'enlargeOnClickBorderWidthLeft'?: any; 'enlargeOnClickBorderWidthRight'?: any; 'enlargeOnClickBorderColorTop'?: string; 'enlargeOnClickBorderColorBottom'?: string; 'enlargeOnClickBorderColorLeft'?: string; 'enlargeOnClickBorderColorRight'?: string; 'enlargeOnClickBorderStyleTop'?: string; 'enlargeOnClickBorderStyleBottom'?: string; 'enlargeOnClickBorderStyleLeft'?: string; 'enlargeOnClickBorderStyleRight'?: string; 'enlargeOnClickShadowOffsetX'?: any; 'enlargeOnClickShadowOffsetY'?: any; 'enlargeOnClickShadowBlur'?: any; 'enlargeOnClickShadowColor'?: string; 'enlargeOnClickShadowSpread'?: any; 'enlargeOnClickShadowInset'?: boolean; 'enlargeOnClickShadowOpacity'?: number; 'enlargeOnClickScale'?: number; 'shadowOffsetX'?: any; 'shadowOffsetY'?: any; 'shadowBlur'?: any; 'shadowBorderRadiusTopLeft'?: any; 'shadowBorderRadiusTopRight'?: any; 'shadowBorderRadiusBottomLeft'?: any; 'shadowBorderRadiusBottomRight'?: any; 'shadowColor'?: string; 'shadowSpread'?: any; 'shadowInset'?: boolean; 'shadowOpacity'?: number; 'textGradientOverlayColors'?: Array; 'textGradientOverlayOpacity'?: number; 'textGradientOverlayDirection'?: string; 'darkTextEnabled'?: boolean; 'textAlign'?: string; 'transitionScrollSpeed'?: number; 'autoRotate'?: boolean; 'autoRotateInterval'?: number; 'buttonIcon'?: string; 'buttonIconPosition'?: string; 'buttonIconColor'?: string; 'openInNewWindow'?: boolean; 'sidebar'?: boolean; 'sidebarPosition'?: string; 'sidebarAnimation'?: string; 'sidebarAnimationDuration'?: number; 'sidebarAnimationTimingFunction'?: string; 'fontFamily'?: string; 'fontSize'?: any; 'fontWeight'?: string; 'fontDecoration'?: string; 'fontTextTransform'?: string; 'fontLineHeight'?: any; 'fontLetterSpacing'?: any; 'fontColorLight'?: string; 'fontColorDark'?: string; 'xxLargeFontSize'?: any; 'largeFontSize'?: any; 'mediumFontSize'?: any; 'smallFontSize'?: any; 'h1FontFamily'?: string; 'h1FontSize'?: any; 'h1FontWeight'?: string; 'h1FontDecoration'?: string; 'h1TextTransform'?: string; 'h1LineHeight'?: any; 'h1LetterSpacing'?: any; 'h1ColorLight'?: string; 'h1ColorDark'?: string; 'h2FontFamily'?: string; 'h2FontSize'?: any; 'h2FontWeight'?: string; 'h2FontDecoration'?: string; 'h2TextTransform'?: string; 'h2LineHeight'?: any; 'h2LetterSpacing'?: any; 'h2ColorLight'?: string; 'h2ColorDark'?: string; 'h3FontFamily'?: string; 'h3FontSize'?: any; 'h3FontWeight'?: string; 'h3FontDecoration'?: string; 'h3TextTransform'?: string; 'h3LineHeight'?: any; 'h3LetterSpacing'?: any; 'h3ColorLight'?: string; 'h3ColorDark'?: string; 'h4FontFamily'?: string; 'h4FontSize'?: any; 'h4FontWeight'?: string; 'h4FontDecoration'?: string; 'h4TextTransform'?: string; 'h4LineHeight'?: any; 'h4LetterSpacing'?: any; 'h4ColorLight'?: string; 'h4ColorDark'?: string; 'h5FontFamily'?: string; 'h5FontSize'?: any; 'h5FontWeight'?: string; 'h5FontDecoration'?: string; 'h5TextTransform'?: string; 'h5LineHeight'?: any; 'h5LetterSpacing'?: any; 'h5ColorLight'?: string; 'h5ColorDark'?: string; 'h6FontFamily'?: string; 'h6FontSize'?: any; 'h6FontWeight'?: string; 'h6FontDecoration'?: string; 'h6TextTransform'?: string; 'h6LineHeight'?: any; 'h6LetterSpacing'?: any; 'h6ColorLight'?: string; 'h6ColorDark'?: string; 'navigationFontFamily'?: string; 'navigationFontSize'?: any; 'navigationFontWeight'?: string; 'navigationFontDecoration'?: string; 'navigationTextTransform'?: string; 'navigationLineHeight'?: any; 'navigationLetterSpacing'?: any; 'navigationColorLight'?: string; 'navigationColorDark'?: string; 'subNavigationFontFamily'?: string; 'subNavigationFontSize'?: any; 'subNavigationFontWeight'?: string; 'subNavigationFontDecoration'?: string; 'subNavigationTextTransform'?: string; 'subNavigationLineHeight'?: any; 'subNavigationLetterSpacing'?: any; 'subNavigationColorLight'?: string; 'subNavigationColorDark'?: string; 'bodyFontFamily'?: string; 'bodyFontSize'?: any; 'bodyFontWeight'?: string; 'bodyFontDecoration'?: string; 'bodyTextTransform'?: string; 'bodyLineHeight'?: any; 'bodyLetterSpacing'?: any; 'bodyColorLight'?: string; 'bodyColorDark'?: string; 'hyperlinkFontFamily'?: string; 'hyperlinkFontSize'?: any; 'hyperlinkFontWeight'?: string; 'hyperlinkFontDecoration'?: string; 'hyperlinkTextTransform'?: string; 'hyperlinkLineHeight'?: any; 'hyperlinkLetterSpacing'?: any; 'hyperlinkColorLight'?: string; 'hyperlinkColorDark'?: string; 'zindex'?: number; 'xLargeFontSize'?: any; 'xSmallFontSize'?: any; } /** * Data Transfer Object for subscribing to a webhook. This DTO represents the details required to configure a webhook subscription. */ export interface SubscribeWebhookDTO { /** * The URL of the webhook where requests will be sent. */ 'url'?: string; /** * UUID of the serverless function to invoke when the webhook is triggered (must belong to the same app). */ 'serverlessFunction'?: ServerlessFunctionDTO; /** * Delivery mode for this webhook: HTTP (use url) or SERVERLESS (use serverlessFunctionUuid). If omitted, legacy behavior applies based on presence of url/serverlessFunctionUuid. */ 'deliveryMode'?: string; /** * When true, install or settings save waits for this lifecycle hook to finish and returns the settings it wrote. */ 'waitUntilComplete'?: boolean; /** * The secret used for webhook validation. */ 'secret'?: string; /** * The topic for which the webhook is subscribed. */ 'topic'?: string; /** * Optional human-readable description for this webhook */ 'description'?: string; /** * Webhook payload format (LEGACY, USER_FRIENDLY) */ 'webhookFormat'?: string; /** * Whether to parse the record before returning it */ 'parseRecord'?: boolean; /** * Filter criteria for webhook triggers */ 'filter'?: Filter; /** * Records to include in webhook payload */ 'includeRelations'?: Array; /** * Filter criteria for relations */ 'relationFilters'?: { [key: string]: Filter; }; /** * Maximum number of relations to include */ 'relationLimit'?: number; /** * Whether retry is enabled for failed deliveries (defaults to true if omitted) */ 'retryEnabled'?: boolean; /** * Maximum number of retries */ 'maxRetries'?: number; /** * Retry backoff in milliseconds */ 'retryBackoffMs'?: number; /** * Offset from the target date in seconds (required for date_due webhooks) */ 'triggerOffsetSeconds'?: number; /** * Whether the webhook fires BEFORE or AFTER the target date */ 'scheduleDirection'?: string; /** * Recurrence for date_due webhooks: NONE, DAILY, WEEKLY, MONTHLY, QUARTERLY, HALF_YEARLY, YEARLY, or CRON */ 'scheduleRecurring'?: string; /** * Spring cron expression used when scheduleRecurring is CRON */ 'scheduleCronExpression'?: string; /** * Internal schedule version incremented when schedule config changes */ 'scheduleVersion'?: number; /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; } /** * Success response (SuccessResponseAggregateResponse). */ export interface SuccessResponseAggregateResponse { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseCalendarBootstrapDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: CalendarBootstrapDTO; } /** * Success response (SuccessResponseCollectionRelation). */ export interface SuccessResponseCollectionRelation { 'message'?: string; 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseCompanyDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: CompanyDTO; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseFeedDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: FeedDTO; } /** * Success response (SuccessResponseFlow). */ export interface SuccessResponseFlow { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (SuccessResponseListAggregateResponse). */ export interface SuccessResponseListAggregateResponse { 'message'?: string; 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListAppExternalOAuthProviderDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListAppInboundRouteDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListAppScheduleDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListCalendarRecordDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListCalendarTeamOptionDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Success response (SuccessResponseListCaraerObjectDTO). */ export interface SuccessResponseListCaraerObjectDTO { 'message'?: string; 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListDeveloperSandboxDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListFileListItemDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListMapStringObject { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array<{ [key: string]: any | null; }>; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListProjectBuildDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListProjectDeployDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Success response (SuccessResponseListPropertyDTO). */ export interface SuccessResponseListPropertyDTO { 'message'?: string; 'data'?: Array; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseListString { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: Array; } /** * Success response (SuccessResponseMapStringInteger). */ export interface SuccessResponseMapStringInteger { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (SuccessResponseMapStringObject). */ export interface SuccessResponseMapStringObject { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (SuccessResponseObject). */ export interface SuccessResponseObject { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseString { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: string; } /** * Success response (SuccessResponseSuggestAnalyticsWidgetsResponse). */ export interface SuccessResponseSuggestAnalyticsWidgetsResponse { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Success response (SuccessResponseTable). */ export interface SuccessResponseTable { 'message'?: string; 'data'?: { [key: string]: any; }; } /** * Represents a standard successful response with a message and optional data. */ export interface SuccessResponseVoid { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: any; } export interface SuggestAnalyticsWidgetsRequest { 'objectName'?: string; 'goal'?: string; 'existingWidgets'?: Array; } export interface SyncDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; 'mappings'?: Array; } export interface Tag extends PropertyFormat { } export interface Team { 'name': string; 'label'?: string; 'createdAt'?: number; 'updatedAt'?: number; 'deletedAt'?: number; 'createdByUuid'?: string; 'updatedByUuid'?: string; 'deletedByUuid'?: string; 'index'?: number; 'description'?: string; 'scopes'?: Array; 'filtersString'?: string; 'filters'?: { [key: string]: Filter; }; 'memberCount'?: number; 'complete'?: boolean; 'deleted'?: boolean; 'uuid': string; } export interface TeamDTO { 'description'?: string; 'memberCount'?: number; 'scopes'?: Array; 'members'?: Array; 'filters'?: { [key: string]: Filter; }; /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; } /** * DTO for Template Webpage */ export interface TemplateWebpageDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * The environment of the webpage. */ 'environment'?: string; /** * The title of the webpage. */ 'title'?: string; /** * Short summary or excerpt displayed for the webpage. */ 'excerpt'?: string; /** * URL-friendly identifier for the webpage. */ 'slug'?: string; /** * URL or identifier of the image associated with the webpage. */ 'image'?: string; /** * Custom CSS for the webpage. */ 'customCss'?: string; /** * Custom JS for the webpage. */ 'customJsHead'?: string; /** * Custom JS for the webpage. */ 'customJsBody'?: string; /** * Content of the webpage */ 'content'?: PageContentDTO; /** * Preview of the sidebar */ 'sidebar'?: PreviewDTO; /** * Relation of the sidebar */ 'sidebarRelation'?: RelationDTO; /** * Object of the sidebar */ 'sidebarObject'?: CaraerObjectDTO; /** * UUID of the CMS module rendered as a floating action bar on this page. Null or empty disables the bar. */ 'floatingActionBarModuleUuid'?: string; /** * Custom options and configurations specific to the webpage. */ 'options'?: WebpageOptionsDTO; /** * Map of additional metadata and attributes for the webpage. */ 'metaData'?: { [key: string]: any | null; }; /** * Represents the associated Caraer object */ 'object'?: CaraerObjectDTO; } /** * Request body for testing a serverless function with a specific record and event type. */ export interface TestServerlessFunctionRequest { /** * UUID of the record to base the event on. */ 'recordUuid'?: string; /** * Event type to simulate (created, updated, deleted, etc.). */ 'eventType'?: string; /** * If true, forces re-provisioning of the serverless function before invocation. */ 'forceProvision'?: boolean; } /** * Webhook configuration and test parameters */ export interface TestWebhookRequest { /** * Webhook configuration to test (not saved). */ 'webhook': SubscribeWebhookDTO; /** * UUID of the record to base the event on. Omit to auto-resolve from webhook topic. */ 'recordUuid'?: string; /** * Event type to simulate (created, updated, deleted, etc.). */ 'eventType'?: string; /** * Property name when simulating property_changed. */ 'propertyName'?: string; } export interface TrackingEventRequest { 'visitorId'?: string; 'sessionId'?: string; 'type'?: string; 'ts'?: number; 'pageUrl'?: string; 'pageTitle'?: string; 'webpageUuid'?: string; 'recordUuid'?: string; 'formUuid'?: string; 'formName'?: string; 'utm'?: { [key: string]: string; }; 'referrer'?: string; 'scrollPct'?: number; 'timeOnPage'?: number; 'activeTime'?: number; 'ctaId'?: string; 'ctaLabel'?: string; 'stepIndex'?: number; 'stepTitle'?: string; 'progressPct'?: number; 'completedFieldsCount'?: number; 'consentChoice'?: string; 'requestedRoute'?: string; 'userAgent'?: string; 'clientIp'?: string; 'country'?: string; 'region'?: string; } export interface TrackingSessionUpsertRequest { 'visitorId'?: string; 'sessionId'?: string; } export interface Tuple2LongLong { 't1'?: number; 't2'?: number; } /** * Request body for enabling lifecycle tracking on object properties */ export interface UpdateLifecyclePropertiesDTO { /** * UUIDs of properties to track in lifecycle history */ 'propertyUuids'?: Array; } /** * Represents the response returned after a successful update operation. */ export interface UpdateResponse { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: any; } /** * Represents the response returned after a successful update operation. */ export interface UpdateResponseFeedDTO { /** * A message detailing the result of the operation. */ 'message'?: string; /** * The data payload of the response, if any. */ 'data'?: FeedDTO; } export interface Url extends PropertyFormat { } export interface UsedInResult { 'recordUuids'?: Array; 'count'?: number; } /** * Record response for user API endpoints, including linked user data. */ export interface UserRecordResponseDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * Whether the record is soft-deleted. */ 'deleted'?: boolean; /** * Record properties for display. */ 'properties'?: Array; /** * Primary and extended object metadata for this record. */ 'objects'?: { [key: string]: any | null; }; /** * The user linked to this record when the user trait is enabled. */ 'user'?: PublicUserDTO; } /** * User with cursor location */ export interface UserWithCursorLocationDTO { 'uuid'?: string; 'email'?: string; 'firstname'?: string; 'lastname'?: string; 'cursorLocation'?: CursorLocation; 'reference'?: string; 'sessionId'?: string; } export interface ValidationError { 'cause'?: NotFoundErrorCause; 'stackTrace'?: Array; 'suppressed'?: Array; 'localizedMessage'?: string; /** * The type of error. */ 'type': ValidationErrorTypeEnum; 'field'?: string; /** * The error message providing details about the failure. */ 'message': string; /** * A suggestion on how to correct the error. */ 'correctionSuggestion': string; 'class'?: string; } export const ValidationErrorTypeEnum = { Validation: 'VALIDATION', NotFound: 'NOT_FOUND', Test: 'TEST', RelationNotAllowed: 'RELATION_NOT_ALLOWED', InvalidValue: 'INVALID_VALUE', General: 'GENERAL', InvalidFileType: 'INVALID_FILE_TYPE', InternalServerError: 'INTERNAL_SERVER_ERROR', CaraerError: 'CARAER_ERROR', InvalidEmail: 'INVALID_EMAIL', InvalidDate: 'INVALID_DATE', } as const; export type ValidationErrorTypeEnum = typeof ValidationErrorTypeEnum[keyof typeof ValidationErrorTypeEnum]; export interface ViewDTO { /** * Unique identifier for the entity */ 'uuid': string; 'name'?: string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; 'favorite'?: boolean; 'team'?: boolean; 'shared'?: boolean; 'personal'?: boolean; 'trait'?: string; 'filters'?: Filter; 'shows'?: Array; 'sorts'?: Array; 'limit'?: number; 'showIcons'?: boolean; 'rowHeight'?: string; 'query'?: string; 'icon'?: string; 'flowProperty'?: string; 'flowPreview'?: string; 'taskProgressProperty'?: string; 'taskGroupProperty'?: string; 'taskExpandSubtasks'?: boolean; 'taskCollapsedGroupKeys'?: Array; 'taskExpandedTaskUuids'?: Array; 'calendarOverlay'?: string; 'visibleCalendarUuids'?: Array; 'selectedCalendarUuid'?: string; 'calendarColorBy'?: string; 'defaultView'?: boolean; 'isInternallyPublic'?: boolean; 'analytics'?: AnalyticsDashboardConfig; } export interface ViewShareRequest { 'users'?: Array; 'teams'?: Array; 'isInternallyPublic'?: boolean; } /** * Data transfer object representing the structure of a web menu */ export interface WebMenuDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; /** * The title of the web menu */ 'title'?: string; /** * Indicates whether the web menu is active */ 'active'?: boolean; /** * The environments of the web menu */ 'environments'?: Array; /** * The location of the web menu in the UI, e.g., \'footer_block_1\' or \'header\' */ 'location'?: string; 'urls'?: Array<{ [key: string]: string; }>; 'items'?: Array; /** * The text of the web menu */ 'text'?: string; } export interface WebMenuItem { 'label'?: string; 'url'?: string; 'icon'?: string; 'image'?: string; } /** * Signed URL access grant for a protected webpage */ export interface WebpageAccessGrantDTO { /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; 'recordUuid'?: string; 'expiresAt'?: number; 'revokedAt'?: number; 'active'?: boolean; 'tokenHash'?: string; 'token'?: string; } /** * Data transfer object representing a webpage with its various states, properties, and associated form/versions */ export interface WebpageDTO { /** * The environment of the webpage. */ 'environment'?: string; /** * The UUID of the webpage. */ 'uuid'?: string; /** * The title of the webpage. */ 'title'?: string; /** * Short summary or excerpt displayed for the webpage. */ 'excerpt'?: string; /** * URL-friendly identifier for the webpage. */ 'slug'?: string; /** * URL or identifier of the image associated with the webpage. */ 'image'?: string; /** * Custom CSS for the webpage. */ 'customCss'?: string; /** * Custom JS for the webpage. */ 'customJsHead'?: string; /** * Custom JS for the webpage. */ 'customJsBody'?: string; /** * Content of the webpage */ 'content'?: PageContentDTO; /** * Preview of the sidebar */ 'sidebar'?: PreviewDTO; /** * Relation of the sidebar */ 'sidebarRelation'?: RelationDTO; /** * Object of the sidebar */ 'sidebarObject'?: CaraerObjectDTO; /** * UUID of the CMS module rendered as a floating action bar on this page. Null or empty disables the bar. */ 'floatingActionBarModuleUuid'?: string; /** * Hydrated module tree for the floating action bar. Set only on public page responses. */ 'floatingActionBar'?: PageContentDTO; /** * The Object object associated with the webpage, representing application data. */ 'object'?: CaraerObjectDTO; /** * Webpage-public backing record values (internal + parsed). Set only on public page responses. */ 'record'?: WebpagePublicRecordDTO; /** * Custom options and configurations specific to the webpage. */ 'options'?: WebpageOptionsDTO; /** * Map of additional metadata and attributes for the webpage. */ 'metaData'?: { [key: string]: any | null; }; /** * Identifier of the user or process that published the webpage */ 'publishedBy'?: string; /** * Timestamp representing when the webpage was published */ 'publishedAt'?: number; /** * Identifier of the user or process that unpublished the webpage */ 'unpublishedBy'?: string; /** * Timestamp representing when the webpage was unpublished */ 'unpublishedAt'?: number; /** * Scheduled timestamp for when the webpage will be published */ 'publishAt'?: number; /** * Scheduled timestamp for when the webpage will be unpublished */ 'unpublishAt'?: number; /** * Flag indicating whether the webpage is currently published */ 'isPublished'?: boolean; /** * Fully qualified public URL of the webpage, including the page trait root slug. */ 'liveUrl'?: string; } /** * Whether a webpage is currently being edited by another user */ export interface WebpageEditingStatusDTO { /** * True when another user is actively editing this webpage */ 'locked'?: boolean; /** * The user currently editing, when locked is true */ 'editor'?: UserWithCursorLocationDTO; /** * Human-readable message for the client UI */ 'message'?: string; } /** * Resolved public map markers for a webpage map block */ export interface WebpageMapLocationsDTO { /** * Concrete markers after applying public filters */ 'mapLocations'?: Array; } /** * Data Transfer Object representing options for a webpage. */ export interface WebpageOptionsDTO { /** * Indicates if the webpage is related to a template. */ 'relatedToTemplate'?: boolean; /** * Page-level protection override: inherit, none, password, signedUrl, caraerAuth */ 'protectionOverride'?: string; /** * Bcrypt hash for per-page password (never returned in public APIs) */ 'passwordHash'?: string; /** * Recoverable per-page password value for CMS display only */ 'password'?: string; /** * Stored recoverable per-page password value for CMS display only */ 'passwordValue'?: string; /** * Whether the per-page password value should be resolved as smart content */ 'passwordSmartContent'?: boolean; /** * Whether a per-page password is configured */ 'hasPassword'?: boolean; /** * Recoverable inherited shared password value for CMS display only */ 'inheritedPassword'?: string; /** * Stored recoverable inherited shared password value for CMS display only */ 'inheritedPasswordValue'?: string; /** * Whether the inherited shared password value should be resolved as smart content */ 'inheritedPasswordSmartContent'?: boolean; /** * Whether an inherited shared password is configured */ 'inheritedHasPassword'?: boolean; } /** * Public protection metadata for a webpage (no content) */ export interface WebpageProtectionInfoDTO { 'protectionRequired'?: boolean; 'type'?: string; 'title'?: string; 'uuid'?: string; } /** * Webpage-public record values with internal and parsed property maps */ export interface WebpagePublicRecordDTO { /** * UUID of the webpage backing record */ 'uuid'?: string; /** * Internal/plain property values keyed by property name */ 'properties'?: { [key: string]: any | null; }; /** * Parsed/display property values keyed by property name */ 'parsedProperties'?: { [key: string]: any | null; }; } export interface WebpageUnlockRequest { 'password'?: string; } /** * The website settings of the company. */ export interface WebsiteSettingsDTO { 'subdomain'?: string; 'customDomain'?: string; 'recordType'?: string; 'recordValue'?: string; 'favicon'?: string; 'logo'?: string; 'logoDark'?: string; 'logoLight'?: string; 'logoUrl'?: string; 'logoWidth'?: number; 'logoHeight'?: number; 'headerLayout'?: string; 'headerminHeight'?: number; 'headerMaxHeight'?: number; 'headerMinWidth'?: number; 'headerMaxWidth'?: number; 'headerMarginTop'?: number; 'headerMarginBottom'?: number; 'headerMarginLeft'?: number; 'headerMarginRight'?: number; 'headerTop'?: number; 'headerBottom'?: number; 'headerLeft'?: number; 'headerRight'?: number; 'headerPaddingTop'?: number; 'headerPaddingBottom'?: number; 'headerPaddingLeft'?: number; 'headerPaddingRight'?: number; 'headerBorderRadiusTopLeft'?: number; 'headerBorderRadiusTopRight'?: number; 'headerBorderRadiusBottomLeft'?: number; 'headerBorderRadiusBottomRight'?: number; 'headerBorderWidthTop'?: number; 'headerBorderWidthBottom'?: number; 'headerBorderWidthLeft'?: number; 'headerBorderWidthRight'?: number; 'headerBorderColorTop'?: string; 'headerBorderColorBottom'?: string; 'headerBorderColorLeft'?: string; 'headerBorderColorRight'?: string; 'headerBorderStyleTop'?: string; 'headerBorderStyleBottom'?: string; 'headerBorderStyleLeft'?: string; 'headerBorderStyleRight'?: string; 'headerBehavior'?: string; 'headerBehaviorOnMobile'?: string; 'headerItemSpacing'?: number; 'defaultLightHeader'?: boolean; 'headerRevealOffset'?: number; 'headerRevealSpeed'?: number; 'mobileMenuAlwaysVisible'?: boolean; 'mobileMenuDisplay'?: string; 'mobileMenuText'?: string; 'mobileMenuNextToHeader'?: boolean; 'mobileMenuBehaviour'?: string; 'mobileMenuBehaviourOnMobile'?: string; 'headerBackgroundColor'?: string; 'headerForegroundColor'?: string; 'headerItemHoverBackgroundColor'?: string; 'headerItemHoverForegroundColor'?: string; 'headerBlur'?: boolean; 'headerBlurAmount'?: number; 'headerOpacity'?: number; 'headerShadow'?: boolean; 'headerButtonStyle'?: string; 'headerButtonText'?: string; 'headerButtonTextColor'?: string; 'headerButtonLink'?: string; 'headerButtonIcon'?: string; 'headerButtonIconPosition'?: string; 'headerButtonIconColor'?: string; 'headerSecondaryButtonStyle'?: string; 'headerSecondaryButtonText'?: string; 'headerSecondaryButtonTextColor'?: string; 'headerSecondaryButtonLink'?: string; 'headerSecondaryButtonIcon'?: string; 'headerSecondaryButtonIconPosition'?: string; 'headerSecondaryButtonIconColor'?: string; 'headerTertiaryButtonStyle'?: string; 'headerTertiaryButtonText'?: string; 'headerTertiaryButtonTextColor'?: string; 'headerTertiaryButtonLink'?: string; 'headerTertiaryButtonIcon'?: string; 'headerTertiaryButtonIconPosition'?: string; 'headerTertiaryButtonIconColor'?: string; 'cookieText'?: string; 'cookieAgreementText'?: string; 'cookieBannerEnabled'?: boolean; 'cookieBannerModuleUuid'?: string; 'cssStyles'?: string; 'headJsScript'?: string; 'bodyJsScript'?: string; 'trackingBodyJsScript'?: string; 'footerImage'?: string; 'footerImagePosition'?: string; 'footerImageSize'?: string; 'footerImageRepeat'?: string; 'footerImageOpacity'?: number; 'footerImageWidth'?: number; 'footerImageHeight'?: number; 'footerCopyrightText'?: string; 'footerCompanyName'?: string; 'footerCompanyLink'?: string; 'footerCompanyText'?: string; 'customFooterEnabled'?: boolean; 'customFooterModuleUuid'?: string; 'cmsHeaderModule'?: string; 'cmsFooterModule'?: string; 'cmsCookieBannerModule'?: string; 'cmsModuleDefaults'?: string; 'footerBackgroundColor'?: string; 'footerForegroundColor'?: string; 'footerShowSocialButtons'?: boolean; 'footerShowTermsAndConditions'?: boolean; 'footerShowPrivacyPolicy'?: boolean; 'custom404WebpageUuid'?: string; 'backToTopButton'?: boolean; 'backToTopButtonPosition'?: string; 'backToTopButtonIcon'?: string; 'backToTopButtonIconPosition'?: string; 'backToTopButtonText'?: string; 'backToTopButtonColor'?: string; 'backToTopButtonBackgroundColor'?: string; 'backToTopButtonBorderColor'?: string; 'backToTopButtonOnMobile'?: boolean; 'animatedAnchorLinks'?: boolean; 'maxWebsiteContainerWidth'?: number; 'disableAnimationsOnMobile'?: boolean; 'customFonts'?: Array; 'mainStyling'?: PageContentStylingDTO; 'mainElementStyling'?: PageContentStylingDTO; 'rowStyling'?: PageContentStylingDTO; 'columnStyling'?: PageContentStylingDTO; 'sectionStyling'?: PageContentStylingDTO; 'textStyling'?: PageContentStylingDTO; 'primaryButtonStyling'?: PageContentStylingDTO; 'secondaryButtonStyling'?: PageContentStylingDTO; 'tertiaryButtonStyling'?: PageContentStylingDTO; 'imageStyling'?: PageContentStylingDTO; 'videoStyling'?: PageContentStylingDTO; 'mapStyling'?: PageContentStylingDTO; 'formStyling'?: PageContentStylingDTO; 'sliderStyling'?: PageContentStylingDTO; 'accordionStyling'?: PageContentStylingDTO; 'previewStyling'?: PageContentStylingDTO; 'iconStyling'?: PageContentStylingDTO; 'codeStyling'?: PageContentStylingDTO; 'shareStyling'?: PageContentStylingDTO; /** * Unique identifier for the entity */ 'uuid': string; /** * The name of the entity */ 'name': string; /** * Display label for the entity, can be different from name */ 'label'?: string; /** * Unix timestamp when the entity was created */ 'createdAt'?: number; /** * Identifier of the user who created the entity */ 'createdBy'?: ModelRecord; /** * Unix timestamp when the entity was last updated */ 'updatedAt'?: number; /** * Identifier of the user who last updated the entity */ 'updatedBy'?: ModelRecord; /** * Unix timestamp when the entity was deleted (null if not deleted) */ 'deletedAt'?: number; /** * Identifier of the user who deleted the entity */ 'deletedBy'?: ModelRecord; /** * Index number for ordering entities */ 'index'?: number; } /** * AppBarIframeSessionsApi - axios parameter creator */ export const AppBarIframeSessionsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Issues a short-lived opaque token for an iframe-based app bar. The token can be validated by the embedded app to confirm user, company, view, and filter context. * @summary Create an iframe session token * @param {string} appBarUuid UUID of the iframe app bar * @param {AppBarIframeSessionRequest} [appBarIframeSessionRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createIframeSession: async (appBarUuid: string, appBarIframeSessionRequest?: AppBarIframeSessionRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appBarUuid' is not null or undefined assertParamExists('createIframeSession', 'appBarUuid', appBarUuid) const localVarPath = `/api/v2/app-bars/{appBarUuid}/iframe-session` .replace('{appBarUuid}', encodeURIComponent(String(appBarUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(appBarIframeSessionRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Public endpoint for embedded apps to validate a caraer_iframe_token and receive safe context. * @summary Validate an iframe session token * @param {AppBarIframeSessionValidateRequest} appBarIframeSessionValidateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ validateIframeSession: async (appBarIframeSessionValidateRequest: AppBarIframeSessionValidateRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appBarIframeSessionValidateRequest' is not null or undefined assertParamExists('validateIframeSession', 'appBarIframeSessionValidateRequest', appBarIframeSessionValidateRequest) const localVarPath = `/api/v2/app-bars/iframe-session/validate`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(appBarIframeSessionValidateRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * AppBarIframeSessionsApi - functional programming interface */ export const AppBarIframeSessionsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AppBarIframeSessionsApiAxiosParamCreator(configuration) return { /** * Issues a short-lived opaque token for an iframe-based app bar. The token can be validated by the embedded app to confirm user, company, view, and filter context. * @summary Create an iframe session token * @param {string} appBarUuid UUID of the iframe app bar * @param {AppBarIframeSessionRequest} [appBarIframeSessionRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createIframeSession(appBarUuid: string, appBarIframeSessionRequest?: AppBarIframeSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createIframeSession(appBarUuid, appBarIframeSessionRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppBarIframeSessionsApi.createIframeSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Public endpoint for embedded apps to validate a caraer_iframe_token and receive safe context. * @summary Validate an iframe session token * @param {AppBarIframeSessionValidateRequest} appBarIframeSessionValidateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async validateIframeSession(appBarIframeSessionValidateRequest: AppBarIframeSessionValidateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.validateIframeSession(appBarIframeSessionValidateRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppBarIframeSessionsApi.validateIframeSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AppBarIframeSessionsApi - factory interface */ export const AppBarIframeSessionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AppBarIframeSessionsApiFp(configuration) return { /** * Issues a short-lived opaque token for an iframe-based app bar. The token can be validated by the embedded app to confirm user, company, view, and filter context. * @summary Create an iframe session token * @param {string} appBarUuid UUID of the iframe app bar * @param {AppBarIframeSessionRequest} [appBarIframeSessionRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createIframeSession(appBarUuid: string, appBarIframeSessionRequest?: AppBarIframeSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createIframeSession(appBarUuid, appBarIframeSessionRequest, options).then((request) => request(axios, basePath)); }, /** * Public endpoint for embedded apps to validate a caraer_iframe_token and receive safe context. * @summary Validate an iframe session token * @param {AppBarIframeSessionValidateRequest} appBarIframeSessionValidateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ validateIframeSession(appBarIframeSessionValidateRequest: AppBarIframeSessionValidateRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.validateIframeSession(appBarIframeSessionValidateRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * AppBarIframeSessionsApi - object-oriented interface */ export class AppBarIframeSessionsApi extends BaseAPI { /** * Issues a short-lived opaque token for an iframe-based app bar. The token can be validated by the embedded app to confirm user, company, view, and filter context. * @summary Create an iframe session token * @param {string} appBarUuid UUID of the iframe app bar * @param {AppBarIframeSessionRequest} [appBarIframeSessionRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createIframeSession(appBarUuid: string, appBarIframeSessionRequest?: AppBarIframeSessionRequest, options?: RawAxiosRequestConfig) { return AppBarIframeSessionsApiFp(this.configuration).createIframeSession(appBarUuid, appBarIframeSessionRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Public endpoint for embedded apps to validate a caraer_iframe_token and receive safe context. * @summary Validate an iframe session token * @param {AppBarIframeSessionValidateRequest} appBarIframeSessionValidateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public validateIframeSession(appBarIframeSessionValidateRequest: AppBarIframeSessionValidateRequest, options?: RawAxiosRequestConfig) { return AppBarIframeSessionsApiFp(this.configuration).validateIframeSession(appBarIframeSessionValidateRequest, options).then((request) => request(this.axios, this.basePath)); } } /** * AppBarsApi - axios parameter creator */ export const AppBarsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Returns all app bars from installed apps for the authenticated user\'s company at the given location. * @summary List installed app bars for a location * @param {ListAppBarsLocationEnum} location App bar location * @param {string} [object] Object name in context * @param {string} [recordUuid] Record UUID in context * @param {string} [viewId] View ID in context * @param {string} [trait] Trait name in context * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAppBars: async (location: ListAppBarsLocationEnum, object?: string, recordUuid?: string, viewId?: string, trait?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'location' is not null or undefined assertParamExists('listAppBars', 'location', location) const localVarPath = `/api/v2/app-bars`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (location !== undefined) { localVarQueryParameter['location'] = location; } if (object !== undefined) { localVarQueryParameter['object'] = object; } if (recordUuid !== undefined) { localVarQueryParameter['recordUuid'] = recordUuid; } if (viewId !== undefined) { localVarQueryParameter['viewId'] = viewId; } if (trait !== undefined) { localVarQueryParameter['trait'] = trait; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fires the app bar webhook with optional settings values and record/view context. * @summary Trigger an action-based app bar * @param {string} appBarUuid UUID of the app bar to trigger * @param {AppBarTriggerRequest} [appBarTriggerRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ triggerAppBar: async (appBarUuid: string, appBarTriggerRequest?: AppBarTriggerRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appBarUuid' is not null or undefined assertParamExists('triggerAppBar', 'appBarUuid', appBarUuid) const localVarPath = `/api/v2/app-bars/{appBarUuid}/trigger` .replace('{appBarUuid}', encodeURIComponent(String(appBarUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(appBarTriggerRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * AppBarsApi - functional programming interface */ export const AppBarsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AppBarsApiAxiosParamCreator(configuration) return { /** * Returns all app bars from installed apps for the authenticated user\'s company at the given location. * @summary List installed app bars for a location * @param {ListAppBarsLocationEnum} location App bar location * @param {string} [object] Object name in context * @param {string} [recordUuid] Record UUID in context * @param {string} [viewId] View ID in context * @param {string} [trait] Trait name in context * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listAppBars(location: ListAppBarsLocationEnum, object?: string, recordUuid?: string, viewId?: string, trait?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAppBars(location, object, recordUuid, viewId, trait, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppBarsApi.listAppBars']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fires the app bar webhook with optional settings values and record/view context. * @summary Trigger an action-based app bar * @param {string} appBarUuid UUID of the app bar to trigger * @param {AppBarTriggerRequest} [appBarTriggerRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async triggerAppBar(appBarUuid: string, appBarTriggerRequest?: AppBarTriggerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.triggerAppBar(appBarUuid, appBarTriggerRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppBarsApi.triggerAppBar']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AppBarsApi - factory interface */ export const AppBarsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AppBarsApiFp(configuration) return { /** * Returns all app bars from installed apps for the authenticated user\'s company at the given location. * @summary List installed app bars for a location * @param {ListAppBarsLocationEnum} location App bar location * @param {string} [object] Object name in context * @param {string} [recordUuid] Record UUID in context * @param {string} [viewId] View ID in context * @param {string} [trait] Trait name in context * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAppBars(location: ListAppBarsLocationEnum, object?: string, recordUuid?: string, viewId?: string, trait?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listAppBars(location, object, recordUuid, viewId, trait, options).then((request) => request(axios, basePath)); }, /** * Fires the app bar webhook with optional settings values and record/view context. * @summary Trigger an action-based app bar * @param {string} appBarUuid UUID of the app bar to trigger * @param {AppBarTriggerRequest} [appBarTriggerRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ triggerAppBar(appBarUuid: string, appBarTriggerRequest?: AppBarTriggerRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.triggerAppBar(appBarUuid, appBarTriggerRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * AppBarsApi - object-oriented interface */ export class AppBarsApi extends BaseAPI { /** * Returns all app bars from installed apps for the authenticated user\'s company at the given location. * @summary List installed app bars for a location * @param {ListAppBarsLocationEnum} location App bar location * @param {string} [object] Object name in context * @param {string} [recordUuid] Record UUID in context * @param {string} [viewId] View ID in context * @param {string} [trait] Trait name in context * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listAppBars(location: ListAppBarsLocationEnum, object?: string, recordUuid?: string, viewId?: string, trait?: string, options?: RawAxiosRequestConfig) { return AppBarsApiFp(this.configuration).listAppBars(location, object, recordUuid, viewId, trait, options).then((request) => request(this.axios, this.basePath)); } /** * Fires the app bar webhook with optional settings values and record/view context. * @summary Trigger an action-based app bar * @param {string} appBarUuid UUID of the app bar to trigger * @param {AppBarTriggerRequest} [appBarTriggerRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public triggerAppBar(appBarUuid: string, appBarTriggerRequest?: AppBarTriggerRequest, options?: RawAxiosRequestConfig) { return AppBarsApiFp(this.configuration).triggerAppBar(appBarUuid, appBarTriggerRequest, options).then((request) => request(this.axios, this.basePath)); } } export const ListAppBarsLocationEnum = { RecordPreview: 'RECORD_PREVIEW', RecordOverview: 'RECORD_OVERVIEW', RecordDetail: 'RECORD_DETAIL', ToolBar: 'TOOL_BAR', TraitBar: 'TRAIT_BAR', RecordTrait: 'RECORD_TRAIT', } as const; export type ListAppBarsLocationEnum = typeof ListAppBarsLocationEnum[keyof typeof ListAppBarsLocationEnum]; /** * AppInstallationRuntimeApi - axios parameter creator */ export const AppInstallationRuntimeApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Delete an encrypted secret * @param {string} appUuid * @param {string} name * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSecret: async (appUuid: string, name: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('deleteSecret', 'appUuid', appUuid) // verify required parameter 'name' is not null or undefined assertParamExists('deleteSecret', 'name', name) const localVarPath = `/api/v2/apps/{appUuid}/installation/secrets/{name}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{name}', encodeURIComponent(String(name))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete a state key * @param {string} appUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteStateKey: async (appUuid: string, key: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('deleteStateKey', 'appUuid', appUuid) // verify required parameter 'key' is not null or undefined assertParamExists('deleteStateKey', 'key', key) const localVarPath = `/api/v2/apps/{appUuid}/installation/state/{key}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{key}', encodeURIComponent(String(key))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Enqueue an async serverless function job * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ enqueueJob: async (appUuid: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('enqueueJob', 'appUuid', appUuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('enqueueJob', 'requestBody', requestBody) const localVarPath = `/api/v2/apps/{appUuid}/installation/jobs` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get async job status * @param {string} appUuid * @param {string} jobId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getJob: async (appUuid: string, jobId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('getJob', 'appUuid', appUuid) // verify required parameter 'jobId' is not null or undefined assertParamExists('getJob', 'jobId', jobId) const localVarPath = `/api/v2/apps/{appUuid}/installation/jobs/{jobId}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{jobId}', encodeURIComponent(String(jobId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get installation state map * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getState: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('getState', 'appUuid', appUuid) const localVarPath = `/api/v2/apps/{appUuid}/installation/state` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a single state key * @param {string} appUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStateKey: async (appUuid: string, key: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('getStateKey', 'appUuid', appUuid) // verify required parameter 'key' is not null or undefined assertParamExists('getStateKey', 'key', key) const localVarPath = `/api/v2/apps/{appUuid}/installation/state/{key}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{key}', encodeURIComponent(String(key))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List external OAuth connection status * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ listConnections: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('listConnections', 'appUuid', appUuid) const localVarPath = `/api/v2/apps/{appUuid}/installation/connections` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List secret names (no values) * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSecrets: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('listSecrets', 'appUuid', appUuid) const localVarPath = `/api/v2/apps/{appUuid}/installation/secrets` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Merge COMPANY-scoped installation settings from the app runtime * @param {string} appUuid * @param {Array} appSettingFieldSchema * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeCompanySettings: async (appUuid: string, appSettingFieldSchema: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('mergeCompanySettings', 'appUuid', appUuid) // verify required parameter 'appSettingFieldSchema' is not null or undefined assertParamExists('mergeCompanySettings', 'appSettingFieldSchema', appSettingFieldSchema) const localVarPath = `/api/v2/apps/{appUuid}/installation/settings` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(appSettingFieldSchema, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Set an encrypted secret * @param {string} appUuid * @param {string} name * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ putSecret: async (appUuid: string, name: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('putSecret', 'appUuid', appUuid) // verify required parameter 'name' is not null or undefined assertParamExists('putSecret', 'name', name) // verify required parameter 'requestBody' is not null or undefined assertParamExists('putSecret', 'requestBody', requestBody) const localVarPath = `/api/v2/apps/{appUuid}/installation/secrets/{name}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{name}', encodeURIComponent(String(name))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Replace/merge installation state (shallow merge) * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ putState: async (appUuid: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('putState', 'appUuid', appUuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('putState', 'requestBody', requestBody) const localVarPath = `/api/v2/apps/{appUuid}/installation/state` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Put a single state key * @param {string} appUuid * @param {string} key * @param {object} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ putStateKey: async (appUuid: string, key: string, body: object, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('putStateKey', 'appUuid', appUuid) // verify required parameter 'key' is not null or undefined assertParamExists('putStateKey', 'key', key) // verify required parameter 'body' is not null or undefined assertParamExists('putStateKey', 'body', body) const localVarPath = `/api/v2/apps/{appUuid}/installation/state/{key}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{key}', encodeURIComponent(String(key))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Revoke external OAuth connection tokens by connection id or provider name * @param {string} appUuid * @param {string} providerOrConnectionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ revokeConnection: async (appUuid: string, providerOrConnectionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('revokeConnection', 'appUuid', appUuid) // verify required parameter 'providerOrConnectionId' is not null or undefined assertParamExists('revokeConnection', 'providerOrConnectionId', providerOrConnectionId) const localVarPath = `/api/v2/apps/{appUuid}/installation/connections/{providerOrConnectionId}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{providerOrConnectionId}', encodeURIComponent(String(providerOrConnectionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Save USER-scoped installation settings for the current user * @param {string} appUuid * @param {Array} appSettingFieldSchema * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveUserSettings: async (appUuid: string, appSettingFieldSchema: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('saveUserSettings', 'appUuid', appUuid) // verify required parameter 'appSettingFieldSchema' is not null or undefined assertParamExists('saveUserSettings', 'appSettingFieldSchema', appSettingFieldSchema) const localVarPath = `/api/v2/apps/{appUuid}/installation/settings/user` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(appSettingFieldSchema, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Start external OAuth authorize (returns provider authorize URL) * @param {string} appUuid * @param {string} provider * @param {string} [redirectUri] * @param {*} [options] Override http request option. * @throws {RequiredError} */ startOAuth: async (appUuid: string, provider: string, redirectUri?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('startOAuth', 'appUuid', appUuid) // verify required parameter 'provider' is not null or undefined assertParamExists('startOAuth', 'provider', provider) const localVarPath = `/api/v2/apps/{appUuid}/installation/oauth/{provider}/start` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{provider}', encodeURIComponent(String(provider))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (redirectUri !== undefined) { localVarQueryParameter['redirectUri'] = redirectUri; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Trigger an ACTION setting without saving settings * @param {string} appUuid * @param {string} fieldName * @param {*} [options] Override http request option. * @throws {RequiredError} */ triggerSettingAction: async (appUuid: string, fieldName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('triggerSettingAction', 'appUuid', appUuid) // verify required parameter 'fieldName' is not null or undefined assertParamExists('triggerSettingAction', 'fieldName', fieldName) const localVarPath = `/api/v2/apps/{appUuid}/installation/settings/{fieldName}/trigger` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{fieldName}', encodeURIComponent(String(fieldName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * AppInstallationRuntimeApi - functional programming interface */ export const AppInstallationRuntimeApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AppInstallationRuntimeApiAxiosParamCreator(configuration) return { /** * * @summary Delete an encrypted secret * @param {string} appUuid * @param {string} name * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteSecret(appUuid: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSecret(appUuid, name, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.deleteSecret']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete a state key * @param {string} appUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteStateKey(appUuid: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStateKey(appUuid, key, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.deleteStateKey']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Enqueue an async serverless function job * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async enqueueJob(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.enqueueJob(appUuid, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.enqueueJob']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get async job status * @param {string} appUuid * @param {string} jobId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getJob(appUuid: string, jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getJob(appUuid, jobId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.getJob']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get installation state map * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getState(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getState(appUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.getState']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a single state key * @param {string} appUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getStateKey(appUuid: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getStateKey(appUuid, key, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.getStateKey']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List external OAuth connection status * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listConnections(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listConnections(appUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.listConnections']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List secret names (no values) * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listSecrets(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSecrets(appUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.listSecrets']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Merge COMPANY-scoped installation settings from the app runtime * @param {string} appUuid * @param {Array} appSettingFieldSchema * @param {*} [options] Override http request option. * @throws {RequiredError} */ async mergeCompanySettings(appUuid: string, appSettingFieldSchema: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.mergeCompanySettings(appUuid, appSettingFieldSchema, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.mergeCompanySettings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Set an encrypted secret * @param {string} appUuid * @param {string} name * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async putSecret(appUuid: string, name: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.putSecret(appUuid, name, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.putSecret']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Replace/merge installation state (shallow merge) * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async putState(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.putState(appUuid, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.putState']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Put a single state key * @param {string} appUuid * @param {string} key * @param {object} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ async putStateKey(appUuid: string, key: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.putStateKey(appUuid, key, body, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.putStateKey']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Revoke external OAuth connection tokens by connection id or provider name * @param {string} appUuid * @param {string} providerOrConnectionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async revokeConnection(appUuid: string, providerOrConnectionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeConnection(appUuid, providerOrConnectionId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.revokeConnection']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Save USER-scoped installation settings for the current user * @param {string} appUuid * @param {Array} appSettingFieldSchema * @param {*} [options] Override http request option. * @throws {RequiredError} */ async saveUserSettings(appUuid: string, appSettingFieldSchema: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveUserSettings(appUuid, appSettingFieldSchema, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.saveUserSettings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Start external OAuth authorize (returns provider authorize URL) * @param {string} appUuid * @param {string} provider * @param {string} [redirectUri] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async startOAuth(appUuid: string, provider: string, redirectUri?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.startOAuth(appUuid, provider, redirectUri, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.startOAuth']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Trigger an ACTION setting without saving settings * @param {string} appUuid * @param {string} fieldName * @param {*} [options] Override http request option. * @throws {RequiredError} */ async triggerSettingAction(appUuid: string, fieldName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.triggerSettingAction(appUuid, fieldName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AppInstallationRuntimeApi.triggerSettingAction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AppInstallationRuntimeApi - factory interface */ export const AppInstallationRuntimeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AppInstallationRuntimeApiFp(configuration) return { /** * * @summary Delete an encrypted secret * @param {string} appUuid * @param {string} name * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSecret(appUuid: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteSecret(appUuid, name, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete a state key * @param {string} appUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteStateKey(appUuid: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteStateKey(appUuid, key, options).then((request) => request(axios, basePath)); }, /** * * @summary Enqueue an async serverless function job * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ enqueueJob(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.enqueueJob(appUuid, requestBody, options).then((request) => request(axios, basePath)); }, /** * * @summary Get async job status * @param {string} appUuid * @param {string} jobId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getJob(appUuid: string, jobId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getJob(appUuid, jobId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get installation state map * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getState(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getState(appUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a single state key * @param {string} appUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStateKey(appUuid: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getStateKey(appUuid, key, options).then((request) => request(axios, basePath)); }, /** * * @summary List external OAuth connection status * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ listConnections(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listConnections(appUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary List secret names (no values) * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSecrets(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listSecrets(appUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary Merge COMPANY-scoped installation settings from the app runtime * @param {string} appUuid * @param {Array} appSettingFieldSchema * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeCompanySettings(appUuid: string, appSettingFieldSchema: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.mergeCompanySettings(appUuid, appSettingFieldSchema, options).then((request) => request(axios, basePath)); }, /** * * @summary Set an encrypted secret * @param {string} appUuid * @param {string} name * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ putSecret(appUuid: string, name: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.putSecret(appUuid, name, requestBody, options).then((request) => request(axios, basePath)); }, /** * * @summary Replace/merge installation state (shallow merge) * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ putState(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.putState(appUuid, requestBody, options).then((request) => request(axios, basePath)); }, /** * * @summary Put a single state key * @param {string} appUuid * @param {string} key * @param {object} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ putStateKey(appUuid: string, key: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.putStateKey(appUuid, key, body, options).then((request) => request(axios, basePath)); }, /** * * @summary Revoke external OAuth connection tokens by connection id or provider name * @param {string} appUuid * @param {string} providerOrConnectionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ revokeConnection(appUuid: string, providerOrConnectionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.revokeConnection(appUuid, providerOrConnectionId, options).then((request) => request(axios, basePath)); }, /** * * @summary Save USER-scoped installation settings for the current user * @param {string} appUuid * @param {Array} appSettingFieldSchema * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveUserSettings(appUuid: string, appSettingFieldSchema: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.saveUserSettings(appUuid, appSettingFieldSchema, options).then((request) => request(axios, basePath)); }, /** * * @summary Start external OAuth authorize (returns provider authorize URL) * @param {string} appUuid * @param {string} provider * @param {string} [redirectUri] * @param {*} [options] Override http request option. * @throws {RequiredError} */ startOAuth(appUuid: string, provider: string, redirectUri?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.startOAuth(appUuid, provider, redirectUri, options).then((request) => request(axios, basePath)); }, /** * * @summary Trigger an ACTION setting without saving settings * @param {string} appUuid * @param {string} fieldName * @param {*} [options] Override http request option. * @throws {RequiredError} */ triggerSettingAction(appUuid: string, fieldName: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.triggerSettingAction(appUuid, fieldName, options).then((request) => request(axios, basePath)); }, }; }; /** * AppInstallationRuntimeApi - object-oriented interface */ export class AppInstallationRuntimeApi extends BaseAPI { /** * * @summary Delete an encrypted secret * @param {string} appUuid * @param {string} name * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteSecret(appUuid: string, name: string, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).deleteSecret(appUuid, name, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete a state key * @param {string} appUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteStateKey(appUuid: string, key: string, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).deleteStateKey(appUuid, key, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Enqueue an async serverless function job * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public enqueueJob(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).enqueueJob(appUuid, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get async job status * @param {string} appUuid * @param {string} jobId * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getJob(appUuid: string, jobId: string, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).getJob(appUuid, jobId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get installation state map * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getState(appUuid: string, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).getState(appUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a single state key * @param {string} appUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getStateKey(appUuid: string, key: string, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).getStateKey(appUuid, key, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List external OAuth connection status * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listConnections(appUuid: string, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).listConnections(appUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List secret names (no values) * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listSecrets(appUuid: string, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).listSecrets(appUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Merge COMPANY-scoped installation settings from the app runtime * @param {string} appUuid * @param {Array} appSettingFieldSchema * @param {*} [options] Override http request option. * @throws {RequiredError} */ public mergeCompanySettings(appUuid: string, appSettingFieldSchema: Array, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).mergeCompanySettings(appUuid, appSettingFieldSchema, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Set an encrypted secret * @param {string} appUuid * @param {string} name * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public putSecret(appUuid: string, name: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).putSecret(appUuid, name, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Replace/merge installation state (shallow merge) * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public putState(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).putState(appUuid, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Put a single state key * @param {string} appUuid * @param {string} key * @param {object} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ public putStateKey(appUuid: string, key: string, body: object, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).putStateKey(appUuid, key, body, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Revoke external OAuth connection tokens by connection id or provider name * @param {string} appUuid * @param {string} providerOrConnectionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ public revokeConnection(appUuid: string, providerOrConnectionId: string, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).revokeConnection(appUuid, providerOrConnectionId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Save USER-scoped installation settings for the current user * @param {string} appUuid * @param {Array} appSettingFieldSchema * @param {*} [options] Override http request option. * @throws {RequiredError} */ public saveUserSettings(appUuid: string, appSettingFieldSchema: Array, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).saveUserSettings(appUuid, appSettingFieldSchema, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Start external OAuth authorize (returns provider authorize URL) * @param {string} appUuid * @param {string} provider * @param {string} [redirectUri] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public startOAuth(appUuid: string, provider: string, redirectUri?: string, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).startOAuth(appUuid, provider, redirectUri, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Trigger an ACTION setting without saving settings * @param {string} appUuid * @param {string} fieldName * @param {*} [options] Override http request option. * @throws {RequiredError} */ public triggerSettingAction(appUuid: string, fieldName: string, options?: RawAxiosRequestConfig) { return AppInstallationRuntimeApiFp(this.configuration).triggerSettingAction(appUuid, fieldName, options).then((request) => request(this.axios, this.basePath)); } } /** * ApplicationsApi - axios parameter creator */ export const ApplicationsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a new webhook for the specified app using normal bearer authentication. The app must be installed for the authenticated user\'s selected company. This endpoint is an app-scoped equivalent of the generic webhook creation endpoint. * @summary Create a webhook for an app (app-scoped path) * @param {string} appUuid UUID of the app to create the webhook for * @param {SubscribeWebhookDTO} subscribeWebhookDTO Webhook details * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAppWebhookForApp: async (appUuid: string, subscribeWebhookDTO: SubscribeWebhookDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('createAppWebhookForApp', 'appUuid', appUuid) // verify required parameter 'subscribeWebhookDTO' is not null or undefined assertParamExists('createAppWebhookForApp', 'subscribeWebhookDTO', subscribeWebhookDTO) const localVarPath = `/api/v2/apps/{appUuid}/webhooks` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(subscribeWebhookDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new private app with the provided label and optional description. Private apps are automatically installed for the creating user\'s company. Returns the created app details as a CreateResponse wrapping an AppDTO. * @summary Create a private app * @param {CreatePrivateAppRequest} createPrivateAppRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPrivateApp: async (createPrivateAppRequest: CreatePrivateAppRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createPrivateAppRequest' is not null or undefined assertParamExists('createPrivateApp', 'createPrivateAppRequest', createPrivateAppRequest) const localVarPath = `/api/v2/apps/private`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createPrivateAppRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new public app with the provided label and optional description. Public apps are automatically published for the creating user\'s company. Returns the created app details as a CreateResponse wrapping an AppDTO. * @summary Create a public app * @param {AppDTO} appDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPublicApp: async (appDTO: AppDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appDTO' is not null or undefined assertParamExists('createPublicApp', 'appDTO', appDTO) const localVarPath = `/api/v2/apps/public`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(appDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes a webhook that belongs to the specified app and the authenticated user\'s selected company. * @summary Delete a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAppWebhook: async (appUuid: string, webhookUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('deleteAppWebhook', 'appUuid', appUuid) // verify required parameter 'webhookUuid' is not null or undefined assertParamExists('deleteAppWebhook', 'webhookUuid', webhookUuid) const localVarPath = `/api/v2/apps/{appUuid}/webhooks/{webhookUuid}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{webhookUuid}', encodeURIComponent(String(webhookUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches details about an application specified by its UUID. Returns the application details as a ShowResponse wrapping an AppDetailDTO. * @summary Retrieve application details by UUID * @param {string} uuid UUID of the application to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ getApp: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('getApp', 'uuid', uuid) const localVarPath = `/api/v2/apps/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches a single webhook that belongs to the specified app. * @summary Get a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to fetch * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAppWebhook: async (appUuid: string, webhookUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('getAppWebhook', 'appUuid', appUuid) // verify required parameter 'webhookUuid' is not null or undefined assertParamExists('getAppWebhook', 'webhookUuid', webhookUuid) const localVarPath = `/api/v2/apps/{appUuid}/webhooks/{webhookUuid}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{webhookUuid}', encodeURIComponent(String(webhookUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches a paginated and optionally filtered list of webhooks associated with the specified app and the authenticated user\'s selected company. * @summary Retrieve a paginated list of webhooks for an app * @param {string} appUuid UUID of the application for which to retrieve webhooks * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAppWebhooks: async (appUuid: string, paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('getAppWebhooks', 'appUuid', appUuid) // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getAppWebhooks', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/apps/{appUuid}/webhooks/index` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches a paginated and optionally filtered list of applications. The list is sorted alphabetically by category and name. On success, returns a PaginationResponse containing AppSummaryDTO objects. * @summary Retrieve a paginated list of applications * @param {PaginationRequest} paginationRequest * @param {string} [type] * @param {boolean} [installedOnly] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getApps: async (paginationRequest: PaginationRequest, type?: string, installedOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getApps', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/apps/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (type !== undefined) { localVarQueryParameter['type'] = type; } if (installedOnly !== undefined) { localVarQueryParameter['installedOnly'] = installedOnly; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves the company information of the authenticated user. The response includes public details of the user\'s selected company. * @summary Get current user\'s company information * @param {string} appUuid UUID of the app to get the company information for * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCompanyInformation: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('getCompanyInformation', 'appUuid', appUuid) const localVarPath = `/api/v2/apps/{appUuid}/me` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches a paginated and optionally filtered list of apps where the selected company is the creator. Returns a PaginationResponse containing AppDTO objects. * @summary Retrieve apps created by the logged-in user\'s selected company * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMyCreatedApps: async (paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getMyCreatedApps', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/apps/my/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Gets the full app for the creator, including appPublish, appBars, details, and pricing. Returns AppCreatorDTO with everything under App. * @summary Get a public app (creator view) * @param {string} uuid UUID of the public app to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicApp: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('getPublicApp', 'uuid', uuid) const localVarPath = `/api/v2/apps/public/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Queries Cloud Logging for the shared V2 app container (app-{uuid}) without filtering to a single function. * @summary Get app runtime logs * @param {string} appUuid UUID of the app * @param {string} [since] Lookback window, e.g. 15m, 1h, 24h * @param {number} [limit] Maximum number of log entries to return * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRuntimeLogs: async (appUuid: string, since?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('getRuntimeLogs', 'appUuid', appUuid) const localVarPath = `/api/v2/apps/{appUuid}/runtime/logs` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (since !== undefined) { localVarQueryParameter['since'] = since; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns all supported record webhook events with their details. * @summary Get available webhook record events * @param {string} appUuid UUID of the app to get the webhook events for * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebhookEvents: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('getWebhookEvents', 'appUuid', appUuid) const localVarPath = `/api/v2/apps/{appUuid}/webhooks/events` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns all supported webhook payload formats with their details. * @summary Get available webhook formats * @param {string} appUuid UUID of the app to get the webhook formats for * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebhookFormats: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('getWebhookFormats', 'appUuid', appUuid) const localVarPath = `/api/v2/apps/{appUuid}/webhooks/formats` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns property names on an object that can be used in 4-part property_changed webhook topics. * @summary Get webhook property topic options * @param {string} appUuid UUID of the app * @param {string} object Object name (e.g. contact) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebhookPropertyTopics: async (appUuid: string, object: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('getWebhookPropertyTopics', 'appUuid', appUuid) // verify required parameter 'object' is not null or undefined assertParamExists('getWebhookPropertyTopics', 'object', object) const localVarPath = `/api/v2/apps/{appUuid}/webhooks/property-topics` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (object !== undefined) { localVarQueryParameter['object'] = object; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Installs the application specified by its UUID with optional initial configuration settings. Returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Install an application * @param {string} uuid UUID of the application to install * @param {InstallAppRequest} [installAppRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ installApp: async (uuid: string, installAppRequest?: InstallAppRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('installApp', 'uuid', uuid) const localVarPath = `/api/v2/apps/{uuid}/install` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(installAppRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the allowed category keys and labels for public app marketplace listings. * @summary List predefined marketplace app categories * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAppCategories: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/apps/categories`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Invokes the app serverless function configured on the field\'s optionsSource and returns options for SINGLE_SELECT / MULTI_SELECT fields. Uses the draft settingsSchema from the installer UI so credentials entered in other fields are available to the loader. * @summary Load dynamic options for a setting select field * @param {string} uuid UUID of the application * @param {LoadAppSettingOptionsRequest} loadAppSettingOptionsRequest Field name, optional query, and draft settings schema * @param {*} [options] Override http request option. * @throws {RequiredError} */ loadSettingOptions: async (uuid: string, loadAppSettingOptionsRequest: LoadAppSettingOptionsRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('loadSettingOptions', 'uuid', uuid) // verify required parameter 'loadAppSettingOptionsRequest' is not null or undefined assertParamExists('loadSettingOptions', 'loadAppSettingOptionsRequest', loadAppSettingOptionsRequest) const localVarPath = `/api/v2/apps/{uuid}/settings-schema/options` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(loadAppSettingOptionsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Opt-in in-place migration to the shared container runtime. Validates a single runtime, sets platformVersion=2, schedules an async rebuild, and keeps invoking via legacy gcpReference until runtimeStatus is READY. * @summary Migrate an app from platform V1 to V2 * @param {string} uuid UUID of the app to migrate * @param {MigrateAppToV2Request} [migrateAppToV2Request] * @param {*} [options] Override http request option. * @throws {RequiredError} */ migrateToV2: async (uuid: string, migrateAppToV2Request?: MigrateAppToV2Request, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('migrateToV2', 'uuid', uuid) const localVarPath = `/api/v2/apps/{uuid}/migrate-v2` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(migrateAppToV2Request, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Sets review outcome (approve/reject/changes requested), feedback, and optional reviewer notes. Returns the updated app details as a ShowResponse wrapping an AppDTO. * @summary Review a public app * @param {string} uuid UUID of the public app to review * @param {ReviewRequest} reviewRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ reviewPublicApp: async (uuid: string, reviewRequest: ReviewRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('reviewPublicApp', 'uuid', uuid) // verify required parameter 'reviewRequest' is not null or undefined assertParamExists('reviewPublicApp', 'reviewRequest', reviewRequest) const localVarPath = `/api/v2/apps/public/{uuid}/review` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(reviewRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Rotates the configuration or settings for the specified application by UUID. On success, returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Rotate application configurations * @param {string} uuid UUID of the application to rotate configurations * @param {*} [options] Override http request option. * @throws {RequiredError} */ rotateApp: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('rotateApp', 'uuid', uuid) const localVarPath = `/api/v2/apps/{uuid}/rotate` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Server-Sent Events stream of Cloud Logging entries for the shared V2 app container. Polls every ~2.5s and stops after 5 minutes or client disconnect. * @summary Stream app runtime logs (SSE) * @param {string} appUuid UUID of the app * @param {*} [options] Override http request option. * @throws {RequiredError} */ streamRuntimeLogs: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('streamRuntimeLogs', 'appUuid', appUuid) const localVarPath = `/api/v2/apps/{appUuid}/runtime/logs/stream` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'text/event-stream,application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Submits a public app specified by its UUID for review. Returns the submitted app details as a ShowResponse wrapping an AppDTO. * @summary Submit a public app for review * @param {string} uuid UUID of the public app to submit for review * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitPublicApp: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('submitPublicApp', 'uuid', uuid) const localVarPath = `/api/v2/apps/public/{uuid}/submit` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Generates a test webhook payload for a specific record and event type. Uses the same payload generation logic as live webhook delivery. * @summary Test a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to test * @param {string} recordUuid UUID of the record to include in the webhook payload * @param {string} eventType Type of event to simulate. Supported values are the entries returned by /webhooks/events, or property_changed for property webhooks. * @param {string} [propertyName] Property name when simulating property_changed * @param {*} [options] Override http request option. * @throws {RequiredError} */ testAppWebhook: async (appUuid: string, webhookUuid: string, recordUuid: string, eventType: string, propertyName?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('testAppWebhook', 'appUuid', appUuid) // verify required parameter 'webhookUuid' is not null or undefined assertParamExists('testAppWebhook', 'webhookUuid', webhookUuid) // verify required parameter 'recordUuid' is not null or undefined assertParamExists('testAppWebhook', 'recordUuid', recordUuid) // verify required parameter 'eventType' is not null or undefined assertParamExists('testAppWebhook', 'eventType', eventType) const localVarPath = `/api/v2/apps/{appUuid}/webhooks/test/{webhookUuid}/{recordUuid}/{eventType}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{webhookUuid}', encodeURIComponent(String(webhookUuid))) .replace('{recordUuid}', encodeURIComponent(String(recordUuid))) .replace('{eventType}', encodeURIComponent(String(eventType))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (propertyName !== undefined) { localVarQueryParameter['propertyName'] = propertyName; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Generates a test webhook payload using the latest matching record for the topic object. Form-submission topics prefer a record that submitted that form; includeRelations prefer a record that has as many of those related objects as possible. If no record exists, a simulated record is used. Missing includeRelations and simulated samples are explained in context.testNote and the X-Webhook-Test-Note header. Uses the event type from the webhook topic (updated when the topic action is all). * @summary Test a webhook for an app (auto-resolve) * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to test * @param {*} [options] Override http request option. * @throws {RequiredError} */ testAppWebhookAuto: async (appUuid: string, webhookUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('testAppWebhookAuto', 'appUuid', appUuid) // verify required parameter 'webhookUuid' is not null or undefined assertParamExists('testAppWebhookAuto', 'webhookUuid', webhookUuid) const localVarPath = `/api/v2/apps/{appUuid}/webhooks/test/{webhookUuid}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{webhookUuid}', encodeURIComponent(String(webhookUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Generates a test webhook payload from webhook configuration supplied in the request body without persisting the webhook. When recordUuid is omitted, auto-resolves the latest matching record, prefers records that submitted the topic form and that have as many includeRelations as possible, and uses the event from the webhook topic. If no record exists, a simulated record is used and context.testNote (also X-Webhook-Test-Note) explains that plus any missing includeRelations. * @summary Test an unsaved webhook for an app * @param {string} appUuid UUID of the app the webhook belongs to * @param {TestWebhookRequest} testWebhookRequest Webhook configuration and optional test event parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ testAppWebhookUnsaved: async (appUuid: string, testWebhookRequest: TestWebhookRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('testAppWebhookUnsaved', 'appUuid', appUuid) // verify required parameter 'testWebhookRequest' is not null or undefined assertParamExists('testAppWebhookUnsaved', 'testWebhookRequest', testWebhookRequest) const localVarPath = `/api/v2/apps/{appUuid}/webhooks/test` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(testWebhookRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Removes the installed application specified by its UUID using the provided settings. The request body should contain an AppRequest with the uninstallation settings. Returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Uninstall an application * @param {string} uuid UUID of the application to uninstall * @param {AppRequest} appRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ uninstallApp: async (uuid: string, appRequest: AppRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('uninstallApp', 'uuid', uuid) // verify required parameter 'appRequest' is not null or undefined assertParamExists('uninstallApp', 'appRequest', appRequest) const localVarPath = `/api/v2/apps/{uuid}/uninstall` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(appRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates an existing webhook that belongs to the specified app and the authenticated user\'s selected company. * @summary Update a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to update * @param {SubscribeWebhookDTO} subscribeWebhookDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAppWebhookForApp: async (appUuid: string, webhookUuid: string, subscribeWebhookDTO: SubscribeWebhookDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('updateAppWebhookForApp', 'appUuid', appUuid) // verify required parameter 'webhookUuid' is not null or undefined assertParamExists('updateAppWebhookForApp', 'webhookUuid', webhookUuid) // verify required parameter 'subscribeWebhookDTO' is not null or undefined assertParamExists('updateAppWebhookForApp', 'subscribeWebhookDTO', subscribeWebhookDTO) const localVarPath = `/api/v2/apps/{appUuid}/webhooks/{webhookUuid}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{webhookUuid}', encodeURIComponent(String(webhookUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(subscribeWebhookDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates a public app with the full creator payload (label, description, details, pricing, settingsSchema, appBars). Send the entire AppCreatorDTO as returned by GET. Returns the updated app as AppCreatorDTO. * @summary Update a public app (creator edit) * @param {string} uuid UUID of the public app to update * @param {AppDTO} appDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updatePublicApp: async (uuid: string, appDTO: AppDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('updatePublicApp', 'uuid', uuid) // verify required parameter 'appDTO' is not null or undefined assertParamExists('updatePublicApp', 'appDTO', appDTO) const localVarPath = `/api/v2/apps/public/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(appDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ApplicationsApi - functional programming interface */ export const ApplicationsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ApplicationsApiAxiosParamCreator(configuration) return { /** * Creates a new webhook for the specified app using normal bearer authentication. The app must be installed for the authenticated user\'s selected company. This endpoint is an app-scoped equivalent of the generic webhook creation endpoint. * @summary Create a webhook for an app (app-scoped path) * @param {string} appUuid UUID of the app to create the webhook for * @param {SubscribeWebhookDTO} subscribeWebhookDTO Webhook details * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createAppWebhookForApp(appUuid: string, subscribeWebhookDTO: SubscribeWebhookDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAppWebhookForApp(appUuid, subscribeWebhookDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.createAppWebhookForApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a new private app with the provided label and optional description. Private apps are automatically installed for the creating user\'s company. Returns the created app details as a CreateResponse wrapping an AppDTO. * @summary Create a private app * @param {CreatePrivateAppRequest} createPrivateAppRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createPrivateApp(createPrivateAppRequest: CreatePrivateAppRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPrivateApp(createPrivateAppRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.createPrivateApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a new public app with the provided label and optional description. Public apps are automatically published for the creating user\'s company. Returns the created app details as a CreateResponse wrapping an AppDTO. * @summary Create a public app * @param {AppDTO} appDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createPublicApp(appDTO: AppDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPublicApp(appDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.createPublicApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a webhook that belongs to the specified app and the authenticated user\'s selected company. * @summary Delete a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteAppWebhook(appUuid: string, webhookUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAppWebhook(appUuid, webhookUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.deleteAppWebhook']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches details about an application specified by its UUID. Returns the application details as a ShowResponse wrapping an AppDetailDTO. * @summary Retrieve application details by UUID * @param {string} uuid UUID of the application to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getApp(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getApp(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches a single webhook that belongs to the specified app. * @summary Get a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to fetch * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAppWebhook(appUuid: string, webhookUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAppWebhook(appUuid, webhookUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getAppWebhook']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches a paginated and optionally filtered list of webhooks associated with the specified app and the authenticated user\'s selected company. * @summary Retrieve a paginated list of webhooks for an app * @param {string} appUuid UUID of the application for which to retrieve webhooks * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAppWebhooks(appUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAppWebhooks(appUuid, paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getAppWebhooks']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches a paginated and optionally filtered list of applications. The list is sorted alphabetically by category and name. On success, returns a PaginationResponse containing AppSummaryDTO objects. * @summary Retrieve a paginated list of applications * @param {PaginationRequest} paginationRequest * @param {string} [type] * @param {boolean} [installedOnly] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getApps(paginationRequest: PaginationRequest, type?: string, installedOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getApps(paginationRequest, type, installedOnly, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getApps']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves the company information of the authenticated user. The response includes public details of the user\'s selected company. * @summary Get current user\'s company information * @param {string} appUuid UUID of the app to get the company information for * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCompanyInformation(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyInformation(appUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getCompanyInformation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches a paginated and optionally filtered list of apps where the selected company is the creator. Returns a PaginationResponse containing AppDTO objects. * @summary Retrieve apps created by the logged-in user\'s selected company * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getMyCreatedApps(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getMyCreatedApps(paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getMyCreatedApps']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Gets the full app for the creator, including appPublish, appBars, details, and pricing. Returns AppCreatorDTO with everything under App. * @summary Get a public app (creator view) * @param {string} uuid UUID of the public app to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicApp(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicApp(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getPublicApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Queries Cloud Logging for the shared V2 app container (app-{uuid}) without filtering to a single function. * @summary Get app runtime logs * @param {string} appUuid UUID of the app * @param {string} [since] Lookback window, e.g. 15m, 1h, 24h * @param {number} [limit] Maximum number of log entries to return * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRuntimeLogs(appUuid: string, since?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRuntimeLogs(appUuid, since, limit, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getRuntimeLogs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns all supported record webhook events with their details. * @summary Get available webhook record events * @param {string} appUuid UUID of the app to get the webhook events for * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getWebhookEvents(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWebhookEvents(appUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getWebhookEvents']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns all supported webhook payload formats with their details. * @summary Get available webhook formats * @param {string} appUuid UUID of the app to get the webhook formats for * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getWebhookFormats(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWebhookFormats(appUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getWebhookFormats']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns property names on an object that can be used in 4-part property_changed webhook topics. * @summary Get webhook property topic options * @param {string} appUuid UUID of the app * @param {string} object Object name (e.g. contact) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getWebhookPropertyTopics(appUuid: string, object: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWebhookPropertyTopics(appUuid, object, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.getWebhookPropertyTopics']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Installs the application specified by its UUID with optional initial configuration settings. Returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Install an application * @param {string} uuid UUID of the application to install * @param {InstallAppRequest} [installAppRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async installApp(uuid: string, installAppRequest?: InstallAppRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.installApp(uuid, installAppRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.installApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the allowed category keys and labels for public app marketplace listings. * @summary List predefined marketplace app categories * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listAppCategories(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAppCategories(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.listAppCategories']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Invokes the app serverless function configured on the field\'s optionsSource and returns options for SINGLE_SELECT / MULTI_SELECT fields. Uses the draft settingsSchema from the installer UI so credentials entered in other fields are available to the loader. * @summary Load dynamic options for a setting select field * @param {string} uuid UUID of the application * @param {LoadAppSettingOptionsRequest} loadAppSettingOptionsRequest Field name, optional query, and draft settings schema * @param {*} [options] Override http request option. * @throws {RequiredError} */ async loadSettingOptions(uuid: string, loadAppSettingOptionsRequest: LoadAppSettingOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.loadSettingOptions(uuid, loadAppSettingOptionsRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.loadSettingOptions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Opt-in in-place migration to the shared container runtime. Validates a single runtime, sets platformVersion=2, schedules an async rebuild, and keeps invoking via legacy gcpReference until runtimeStatus is READY. * @summary Migrate an app from platform V1 to V2 * @param {string} uuid UUID of the app to migrate * @param {MigrateAppToV2Request} [migrateAppToV2Request] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async migrateToV2(uuid: string, migrateAppToV2Request?: MigrateAppToV2Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.migrateToV2(uuid, migrateAppToV2Request, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.migrateToV2']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Sets review outcome (approve/reject/changes requested), feedback, and optional reviewer notes. Returns the updated app details as a ShowResponse wrapping an AppDTO. * @summary Review a public app * @param {string} uuid UUID of the public app to review * @param {ReviewRequest} reviewRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async reviewPublicApp(uuid: string, reviewRequest: ReviewRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.reviewPublicApp(uuid, reviewRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.reviewPublicApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Rotates the configuration or settings for the specified application by UUID. On success, returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Rotate application configurations * @param {string} uuid UUID of the application to rotate configurations * @param {*} [options] Override http request option. * @throws {RequiredError} */ async rotateApp(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rotateApp(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.rotateApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Server-Sent Events stream of Cloud Logging entries for the shared V2 app container. Polls every ~2.5s and stops after 5 minutes or client disconnect. * @summary Stream app runtime logs (SSE) * @param {string} appUuid UUID of the app * @param {*} [options] Override http request option. * @throws {RequiredError} */ async streamRuntimeLogs(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.streamRuntimeLogs(appUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.streamRuntimeLogs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Submits a public app specified by its UUID for review. Returns the submitted app details as a ShowResponse wrapping an AppDTO. * @summary Submit a public app for review * @param {string} uuid UUID of the public app to submit for review * @param {*} [options] Override http request option. * @throws {RequiredError} */ async submitPublicApp(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submitPublicApp(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.submitPublicApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Generates a test webhook payload for a specific record and event type. Uses the same payload generation logic as live webhook delivery. * @summary Test a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to test * @param {string} recordUuid UUID of the record to include in the webhook payload * @param {string} eventType Type of event to simulate. Supported values are the entries returned by /webhooks/events, or property_changed for property webhooks. * @param {string} [propertyName] Property name when simulating property_changed * @param {*} [options] Override http request option. * @throws {RequiredError} */ async testAppWebhook(appUuid: string, webhookUuid: string, recordUuid: string, eventType: string, propertyName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.testAppWebhook(appUuid, webhookUuid, recordUuid, eventType, propertyName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.testAppWebhook']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Generates a test webhook payload using the latest matching record for the topic object. Form-submission topics prefer a record that submitted that form; includeRelations prefer a record that has as many of those related objects as possible. If no record exists, a simulated record is used. Missing includeRelations and simulated samples are explained in context.testNote and the X-Webhook-Test-Note header. Uses the event type from the webhook topic (updated when the topic action is all). * @summary Test a webhook for an app (auto-resolve) * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to test * @param {*} [options] Override http request option. * @throws {RequiredError} */ async testAppWebhookAuto(appUuid: string, webhookUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.testAppWebhookAuto(appUuid, webhookUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.testAppWebhookAuto']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Generates a test webhook payload from webhook configuration supplied in the request body without persisting the webhook. When recordUuid is omitted, auto-resolves the latest matching record, prefers records that submitted the topic form and that have as many includeRelations as possible, and uses the event from the webhook topic. If no record exists, a simulated record is used and context.testNote (also X-Webhook-Test-Note) explains that plus any missing includeRelations. * @summary Test an unsaved webhook for an app * @param {string} appUuid UUID of the app the webhook belongs to * @param {TestWebhookRequest} testWebhookRequest Webhook configuration and optional test event parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ async testAppWebhookUnsaved(appUuid: string, testWebhookRequest: TestWebhookRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.testAppWebhookUnsaved(appUuid, testWebhookRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.testAppWebhookUnsaved']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Removes the installed application specified by its UUID using the provided settings. The request body should contain an AppRequest with the uninstallation settings. Returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Uninstall an application * @param {string} uuid UUID of the application to uninstall * @param {AppRequest} appRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async uninstallApp(uuid: string, appRequest: AppRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.uninstallApp(uuid, appRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.uninstallApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates an existing webhook that belongs to the specified app and the authenticated user\'s selected company. * @summary Update a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to update * @param {SubscribeWebhookDTO} subscribeWebhookDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateAppWebhookForApp(appUuid: string, webhookUuid: string, subscribeWebhookDTO: SubscribeWebhookDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateAppWebhookForApp(appUuid, webhookUuid, subscribeWebhookDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.updateAppWebhookForApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates a public app with the full creator payload (label, description, details, pricing, settingsSchema, appBars). Send the entire AppCreatorDTO as returned by GET. Returns the updated app as AppCreatorDTO. * @summary Update a public app (creator edit) * @param {string} uuid UUID of the public app to update * @param {AppDTO} appDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updatePublicApp(uuid: string, appDTO: AppDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicApp(uuid, appDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ApplicationsApi.updatePublicApp']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ApplicationsApi - factory interface */ export const ApplicationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ApplicationsApiFp(configuration) return { /** * Creates a new webhook for the specified app using normal bearer authentication. The app must be installed for the authenticated user\'s selected company. This endpoint is an app-scoped equivalent of the generic webhook creation endpoint. * @summary Create a webhook for an app (app-scoped path) * @param {string} appUuid UUID of the app to create the webhook for * @param {SubscribeWebhookDTO} subscribeWebhookDTO Webhook details * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAppWebhookForApp(appUuid: string, subscribeWebhookDTO: SubscribeWebhookDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createAppWebhookForApp(appUuid, subscribeWebhookDTO, options).then((request) => request(axios, basePath)); }, /** * Creates a new private app with the provided label and optional description. Private apps are automatically installed for the creating user\'s company. Returns the created app details as a CreateResponse wrapping an AppDTO. * @summary Create a private app * @param {CreatePrivateAppRequest} createPrivateAppRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPrivateApp(createPrivateAppRequest: CreatePrivateAppRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createPrivateApp(createPrivateAppRequest, options).then((request) => request(axios, basePath)); }, /** * Creates a new public app with the provided label and optional description. Public apps are automatically published for the creating user\'s company. Returns the created app details as a CreateResponse wrapping an AppDTO. * @summary Create a public app * @param {AppDTO} appDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPublicApp(appDTO: AppDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createPublicApp(appDTO, options).then((request) => request(axios, basePath)); }, /** * Deletes a webhook that belongs to the specified app and the authenticated user\'s selected company. * @summary Delete a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAppWebhook(appUuid: string, webhookUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteAppWebhook(appUuid, webhookUuid, options).then((request) => request(axios, basePath)); }, /** * Fetches details about an application specified by its UUID. Returns the application details as a ShowResponse wrapping an AppDetailDTO. * @summary Retrieve application details by UUID * @param {string} uuid UUID of the application to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ getApp(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getApp(uuid, options).then((request) => request(axios, basePath)); }, /** * Fetches a single webhook that belongs to the specified app. * @summary Get a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to fetch * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAppWebhook(appUuid: string, webhookUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAppWebhook(appUuid, webhookUuid, options).then((request) => request(axios, basePath)); }, /** * Fetches a paginated and optionally filtered list of webhooks associated with the specified app and the authenticated user\'s selected company. * @summary Retrieve a paginated list of webhooks for an app * @param {string} appUuid UUID of the application for which to retrieve webhooks * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAppWebhooks(appUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAppWebhooks(appUuid, paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Fetches a paginated and optionally filtered list of applications. The list is sorted alphabetically by category and name. On success, returns a PaginationResponse containing AppSummaryDTO objects. * @summary Retrieve a paginated list of applications * @param {PaginationRequest} paginationRequest * @param {string} [type] * @param {boolean} [installedOnly] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getApps(paginationRequest: PaginationRequest, type?: string, installedOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getApps(paginationRequest, type, installedOnly, options).then((request) => request(axios, basePath)); }, /** * Retrieves the company information of the authenticated user. The response includes public details of the user\'s selected company. * @summary Get current user\'s company information * @param {string} appUuid UUID of the app to get the company information for * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCompanyInformation(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCompanyInformation(appUuid, options).then((request) => request(axios, basePath)); }, /** * Fetches a paginated and optionally filtered list of apps where the selected company is the creator. Returns a PaginationResponse containing AppDTO objects. * @summary Retrieve apps created by the logged-in user\'s selected company * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMyCreatedApps(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getMyCreatedApps(paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Gets the full app for the creator, including appPublish, appBars, details, and pricing. Returns AppCreatorDTO with everything under App. * @summary Get a public app (creator view) * @param {string} uuid UUID of the public app to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicApp(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicApp(uuid, options).then((request) => request(axios, basePath)); }, /** * Queries Cloud Logging for the shared V2 app container (app-{uuid}) without filtering to a single function. * @summary Get app runtime logs * @param {string} appUuid UUID of the app * @param {string} [since] Lookback window, e.g. 15m, 1h, 24h * @param {number} [limit] Maximum number of log entries to return * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRuntimeLogs(appUuid: string, since?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRuntimeLogs(appUuid, since, limit, options).then((request) => request(axios, basePath)); }, /** * Returns all supported record webhook events with their details. * @summary Get available webhook record events * @param {string} appUuid UUID of the app to get the webhook events for * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebhookEvents(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getWebhookEvents(appUuid, options).then((request) => request(axios, basePath)); }, /** * Returns all supported webhook payload formats with their details. * @summary Get available webhook formats * @param {string} appUuid UUID of the app to get the webhook formats for * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebhookFormats(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getWebhookFormats(appUuid, options).then((request) => request(axios, basePath)); }, /** * Returns property names on an object that can be used in 4-part property_changed webhook topics. * @summary Get webhook property topic options * @param {string} appUuid UUID of the app * @param {string} object Object name (e.g. contact) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebhookPropertyTopics(appUuid: string, object: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getWebhookPropertyTopics(appUuid, object, options).then((request) => request(axios, basePath)); }, /** * Installs the application specified by its UUID with optional initial configuration settings. Returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Install an application * @param {string} uuid UUID of the application to install * @param {InstallAppRequest} [installAppRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ installApp(uuid: string, installAppRequest?: InstallAppRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.installApp(uuid, installAppRequest, options).then((request) => request(axios, basePath)); }, /** * Returns the allowed category keys and labels for public app marketplace listings. * @summary List predefined marketplace app categories * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAppCategories(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listAppCategories(options).then((request) => request(axios, basePath)); }, /** * Invokes the app serverless function configured on the field\'s optionsSource and returns options for SINGLE_SELECT / MULTI_SELECT fields. Uses the draft settingsSchema from the installer UI so credentials entered in other fields are available to the loader. * @summary Load dynamic options for a setting select field * @param {string} uuid UUID of the application * @param {LoadAppSettingOptionsRequest} loadAppSettingOptionsRequest Field name, optional query, and draft settings schema * @param {*} [options] Override http request option. * @throws {RequiredError} */ loadSettingOptions(uuid: string, loadAppSettingOptionsRequest: LoadAppSettingOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loadSettingOptions(uuid, loadAppSettingOptionsRequest, options).then((request) => request(axios, basePath)); }, /** * Opt-in in-place migration to the shared container runtime. Validates a single runtime, sets platformVersion=2, schedules an async rebuild, and keeps invoking via legacy gcpReference until runtimeStatus is READY. * @summary Migrate an app from platform V1 to V2 * @param {string} uuid UUID of the app to migrate * @param {MigrateAppToV2Request} [migrateAppToV2Request] * @param {*} [options] Override http request option. * @throws {RequiredError} */ migrateToV2(uuid: string, migrateAppToV2Request?: MigrateAppToV2Request, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.migrateToV2(uuid, migrateAppToV2Request, options).then((request) => request(axios, basePath)); }, /** * Sets review outcome (approve/reject/changes requested), feedback, and optional reviewer notes. Returns the updated app details as a ShowResponse wrapping an AppDTO. * @summary Review a public app * @param {string} uuid UUID of the public app to review * @param {ReviewRequest} reviewRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ reviewPublicApp(uuid: string, reviewRequest: ReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.reviewPublicApp(uuid, reviewRequest, options).then((request) => request(axios, basePath)); }, /** * Rotates the configuration or settings for the specified application by UUID. On success, returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Rotate application configurations * @param {string} uuid UUID of the application to rotate configurations * @param {*} [options] Override http request option. * @throws {RequiredError} */ rotateApp(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rotateApp(uuid, options).then((request) => request(axios, basePath)); }, /** * Server-Sent Events stream of Cloud Logging entries for the shared V2 app container. Polls every ~2.5s and stops after 5 minutes or client disconnect. * @summary Stream app runtime logs (SSE) * @param {string} appUuid UUID of the app * @param {*} [options] Override http request option. * @throws {RequiredError} */ streamRuntimeLogs(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.streamRuntimeLogs(appUuid, options).then((request) => request(axios, basePath)); }, /** * Submits a public app specified by its UUID for review. Returns the submitted app details as a ShowResponse wrapping an AppDTO. * @summary Submit a public app for review * @param {string} uuid UUID of the public app to submit for review * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitPublicApp(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submitPublicApp(uuid, options).then((request) => request(axios, basePath)); }, /** * Generates a test webhook payload for a specific record and event type. Uses the same payload generation logic as live webhook delivery. * @summary Test a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to test * @param {string} recordUuid UUID of the record to include in the webhook payload * @param {string} eventType Type of event to simulate. Supported values are the entries returned by /webhooks/events, or property_changed for property webhooks. * @param {string} [propertyName] Property name when simulating property_changed * @param {*} [options] Override http request option. * @throws {RequiredError} */ testAppWebhook(appUuid: string, webhookUuid: string, recordUuid: string, eventType: string, propertyName?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testAppWebhook(appUuid, webhookUuid, recordUuid, eventType, propertyName, options).then((request) => request(axios, basePath)); }, /** * Generates a test webhook payload using the latest matching record for the topic object. Form-submission topics prefer a record that submitted that form; includeRelations prefer a record that has as many of those related objects as possible. If no record exists, a simulated record is used. Missing includeRelations and simulated samples are explained in context.testNote and the X-Webhook-Test-Note header. Uses the event type from the webhook topic (updated when the topic action is all). * @summary Test a webhook for an app (auto-resolve) * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to test * @param {*} [options] Override http request option. * @throws {RequiredError} */ testAppWebhookAuto(appUuid: string, webhookUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testAppWebhookAuto(appUuid, webhookUuid, options).then((request) => request(axios, basePath)); }, /** * Generates a test webhook payload from webhook configuration supplied in the request body without persisting the webhook. When recordUuid is omitted, auto-resolves the latest matching record, prefers records that submitted the topic form and that have as many includeRelations as possible, and uses the event from the webhook topic. If no record exists, a simulated record is used and context.testNote (also X-Webhook-Test-Note) explains that plus any missing includeRelations. * @summary Test an unsaved webhook for an app * @param {string} appUuid UUID of the app the webhook belongs to * @param {TestWebhookRequest} testWebhookRequest Webhook configuration and optional test event parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ testAppWebhookUnsaved(appUuid: string, testWebhookRequest: TestWebhookRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testAppWebhookUnsaved(appUuid, testWebhookRequest, options).then((request) => request(axios, basePath)); }, /** * Removes the installed application specified by its UUID using the provided settings. The request body should contain an AppRequest with the uninstallation settings. Returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Uninstall an application * @param {string} uuid UUID of the application to uninstall * @param {AppRequest} appRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ uninstallApp(uuid: string, appRequest: AppRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uninstallApp(uuid, appRequest, options).then((request) => request(axios, basePath)); }, /** * Updates an existing webhook that belongs to the specified app and the authenticated user\'s selected company. * @summary Update a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to update * @param {SubscribeWebhookDTO} subscribeWebhookDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAppWebhookForApp(appUuid: string, webhookUuid: string, subscribeWebhookDTO: SubscribeWebhookDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateAppWebhookForApp(appUuid, webhookUuid, subscribeWebhookDTO, options).then((request) => request(axios, basePath)); }, /** * Updates a public app with the full creator payload (label, description, details, pricing, settingsSchema, appBars). Send the entire AppCreatorDTO as returned by GET. Returns the updated app as AppCreatorDTO. * @summary Update a public app (creator edit) * @param {string} uuid UUID of the public app to update * @param {AppDTO} appDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updatePublicApp(uuid: string, appDTO: AppDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePublicApp(uuid, appDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * ApplicationsApi - object-oriented interface */ export class ApplicationsApi extends BaseAPI { /** * Creates a new webhook for the specified app using normal bearer authentication. The app must be installed for the authenticated user\'s selected company. This endpoint is an app-scoped equivalent of the generic webhook creation endpoint. * @summary Create a webhook for an app (app-scoped path) * @param {string} appUuid UUID of the app to create the webhook for * @param {SubscribeWebhookDTO} subscribeWebhookDTO Webhook details * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createAppWebhookForApp(appUuid: string, subscribeWebhookDTO: SubscribeWebhookDTO, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).createAppWebhookForApp(appUuid, subscribeWebhookDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a new private app with the provided label and optional description. Private apps are automatically installed for the creating user\'s company. Returns the created app details as a CreateResponse wrapping an AppDTO. * @summary Create a private app * @param {CreatePrivateAppRequest} createPrivateAppRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createPrivateApp(createPrivateAppRequest: CreatePrivateAppRequest, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).createPrivateApp(createPrivateAppRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a new public app with the provided label and optional description. Public apps are automatically published for the creating user\'s company. Returns the created app details as a CreateResponse wrapping an AppDTO. * @summary Create a public app * @param {AppDTO} appDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createPublicApp(appDTO: AppDTO, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).createPublicApp(appDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes a webhook that belongs to the specified app and the authenticated user\'s selected company. * @summary Delete a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteAppWebhook(appUuid: string, webhookUuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).deleteAppWebhook(appUuid, webhookUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches details about an application specified by its UUID. Returns the application details as a ShowResponse wrapping an AppDetailDTO. * @summary Retrieve application details by UUID * @param {string} uuid UUID of the application to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getApp(uuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getApp(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches a single webhook that belongs to the specified app. * @summary Get a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to fetch * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getAppWebhook(appUuid: string, webhookUuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getAppWebhook(appUuid, webhookUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches a paginated and optionally filtered list of webhooks associated with the specified app and the authenticated user\'s selected company. * @summary Retrieve a paginated list of webhooks for an app * @param {string} appUuid UUID of the application for which to retrieve webhooks * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getAppWebhooks(appUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getAppWebhooks(appUuid, paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches a paginated and optionally filtered list of applications. The list is sorted alphabetically by category and name. On success, returns a PaginationResponse containing AppSummaryDTO objects. * @summary Retrieve a paginated list of applications * @param {PaginationRequest} paginationRequest * @param {string} [type] * @param {boolean} [installedOnly] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getApps(paginationRequest: PaginationRequest, type?: string, installedOnly?: boolean, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getApps(paginationRequest, type, installedOnly, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves the company information of the authenticated user. The response includes public details of the user\'s selected company. * @summary Get current user\'s company information * @param {string} appUuid UUID of the app to get the company information for * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getCompanyInformation(appUuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getCompanyInformation(appUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches a paginated and optionally filtered list of apps where the selected company is the creator. Returns a PaginationResponse containing AppDTO objects. * @summary Retrieve apps created by the logged-in user\'s selected company * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getMyCreatedApps(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getMyCreatedApps(paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Gets the full app for the creator, including appPublish, appBars, details, and pricing. Returns AppCreatorDTO with everything under App. * @summary Get a public app (creator view) * @param {string} uuid UUID of the public app to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPublicApp(uuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getPublicApp(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Queries Cloud Logging for the shared V2 app container (app-{uuid}) without filtering to a single function. * @summary Get app runtime logs * @param {string} appUuid UUID of the app * @param {string} [since] Lookback window, e.g. 15m, 1h, 24h * @param {number} [limit] Maximum number of log entries to return * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getRuntimeLogs(appUuid: string, since?: string, limit?: number, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getRuntimeLogs(appUuid, since, limit, options).then((request) => request(this.axios, this.basePath)); } /** * Returns all supported record webhook events with their details. * @summary Get available webhook record events * @param {string} appUuid UUID of the app to get the webhook events for * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getWebhookEvents(appUuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getWebhookEvents(appUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Returns all supported webhook payload formats with their details. * @summary Get available webhook formats * @param {string} appUuid UUID of the app to get the webhook formats for * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getWebhookFormats(appUuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getWebhookFormats(appUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Returns property names on an object that can be used in 4-part property_changed webhook topics. * @summary Get webhook property topic options * @param {string} appUuid UUID of the app * @param {string} object Object name (e.g. contact) * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getWebhookPropertyTopics(appUuid: string, object: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).getWebhookPropertyTopics(appUuid, object, options).then((request) => request(this.axios, this.basePath)); } /** * Installs the application specified by its UUID with optional initial configuration settings. Returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Install an application * @param {string} uuid UUID of the application to install * @param {InstallAppRequest} [installAppRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public installApp(uuid: string, installAppRequest?: InstallAppRequest, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).installApp(uuid, installAppRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Returns the allowed category keys and labels for public app marketplace listings. * @summary List predefined marketplace app categories * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listAppCategories(options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).listAppCategories(options).then((request) => request(this.axios, this.basePath)); } /** * Invokes the app serverless function configured on the field\'s optionsSource and returns options for SINGLE_SELECT / MULTI_SELECT fields. Uses the draft settingsSchema from the installer UI so credentials entered in other fields are available to the loader. * @summary Load dynamic options for a setting select field * @param {string} uuid UUID of the application * @param {LoadAppSettingOptionsRequest} loadAppSettingOptionsRequest Field name, optional query, and draft settings schema * @param {*} [options] Override http request option. * @throws {RequiredError} */ public loadSettingOptions(uuid: string, loadAppSettingOptionsRequest: LoadAppSettingOptionsRequest, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).loadSettingOptions(uuid, loadAppSettingOptionsRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Opt-in in-place migration to the shared container runtime. Validates a single runtime, sets platformVersion=2, schedules an async rebuild, and keeps invoking via legacy gcpReference until runtimeStatus is READY. * @summary Migrate an app from platform V1 to V2 * @param {string} uuid UUID of the app to migrate * @param {MigrateAppToV2Request} [migrateAppToV2Request] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public migrateToV2(uuid: string, migrateAppToV2Request?: MigrateAppToV2Request, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).migrateToV2(uuid, migrateAppToV2Request, options).then((request) => request(this.axios, this.basePath)); } /** * Sets review outcome (approve/reject/changes requested), feedback, and optional reviewer notes. Returns the updated app details as a ShowResponse wrapping an AppDTO. * @summary Review a public app * @param {string} uuid UUID of the public app to review * @param {ReviewRequest} reviewRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public reviewPublicApp(uuid: string, reviewRequest: ReviewRequest, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).reviewPublicApp(uuid, reviewRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Rotates the configuration or settings for the specified application by UUID. On success, returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Rotate application configurations * @param {string} uuid UUID of the application to rotate configurations * @param {*} [options] Override http request option. * @throws {RequiredError} */ public rotateApp(uuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).rotateApp(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Server-Sent Events stream of Cloud Logging entries for the shared V2 app container. Polls every ~2.5s and stops after 5 minutes or client disconnect. * @summary Stream app runtime logs (SSE) * @param {string} appUuid UUID of the app * @param {*} [options] Override http request option. * @throws {RequiredError} */ public streamRuntimeLogs(appUuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).streamRuntimeLogs(appUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Submits a public app specified by its UUID for review. Returns the submitted app details as a ShowResponse wrapping an AppDTO. * @summary Submit a public app for review * @param {string} uuid UUID of the public app to submit for review * @param {*} [options] Override http request option. * @throws {RequiredError} */ public submitPublicApp(uuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).submitPublicApp(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Generates a test webhook payload for a specific record and event type. Uses the same payload generation logic as live webhook delivery. * @summary Test a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to test * @param {string} recordUuid UUID of the record to include in the webhook payload * @param {string} eventType Type of event to simulate. Supported values are the entries returned by /webhooks/events, or property_changed for property webhooks. * @param {string} [propertyName] Property name when simulating property_changed * @param {*} [options] Override http request option. * @throws {RequiredError} */ public testAppWebhook(appUuid: string, webhookUuid: string, recordUuid: string, eventType: string, propertyName?: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).testAppWebhook(appUuid, webhookUuid, recordUuid, eventType, propertyName, options).then((request) => request(this.axios, this.basePath)); } /** * Generates a test webhook payload using the latest matching record for the topic object. Form-submission topics prefer a record that submitted that form; includeRelations prefer a record that has as many of those related objects as possible. If no record exists, a simulated record is used. Missing includeRelations and simulated samples are explained in context.testNote and the X-Webhook-Test-Note header. Uses the event type from the webhook topic (updated when the topic action is all). * @summary Test a webhook for an app (auto-resolve) * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to test * @param {*} [options] Override http request option. * @throws {RequiredError} */ public testAppWebhookAuto(appUuid: string, webhookUuid: string, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).testAppWebhookAuto(appUuid, webhookUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Generates a test webhook payload from webhook configuration supplied in the request body without persisting the webhook. When recordUuid is omitted, auto-resolves the latest matching record, prefers records that submitted the topic form and that have as many includeRelations as possible, and uses the event from the webhook topic. If no record exists, a simulated record is used and context.testNote (also X-Webhook-Test-Note) explains that plus any missing includeRelations. * @summary Test an unsaved webhook for an app * @param {string} appUuid UUID of the app the webhook belongs to * @param {TestWebhookRequest} testWebhookRequest Webhook configuration and optional test event parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ public testAppWebhookUnsaved(appUuid: string, testWebhookRequest: TestWebhookRequest, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).testAppWebhookUnsaved(appUuid, testWebhookRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Removes the installed application specified by its UUID using the provided settings. The request body should contain an AppRequest with the uninstallation settings. Returns the updated application details as a ShowResponse wrapping an AppDTO. * @summary Uninstall an application * @param {string} uuid UUID of the application to uninstall * @param {AppRequest} appRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public uninstallApp(uuid: string, appRequest: AppRequest, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).uninstallApp(uuid, appRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Updates an existing webhook that belongs to the specified app and the authenticated user\'s selected company. * @summary Update a webhook for an app * @param {string} appUuid UUID of the app that owns the webhook * @param {string} webhookUuid UUID of the webhook to update * @param {SubscribeWebhookDTO} subscribeWebhookDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateAppWebhookForApp(appUuid: string, webhookUuid: string, subscribeWebhookDTO: SubscribeWebhookDTO, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).updateAppWebhookForApp(appUuid, webhookUuid, subscribeWebhookDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Updates a public app with the full creator payload (label, description, details, pricing, settingsSchema, appBars). Send the entire AppCreatorDTO as returned by GET. Returns the updated app as AppCreatorDTO. * @summary Update a public app (creator edit) * @param {string} uuid UUID of the public app to update * @param {AppDTO} appDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updatePublicApp(uuid: string, appDTO: AppDTO, options?: RawAxiosRequestConfig) { return ApplicationsApiFp(this.configuration).updatePublicApp(uuid, appDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * AutomationsApi - axios parameter creator */ export const AutomationsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Generates a short-lived Latenode JWT token for the authenticated user, to be used with the Latenode embedded SDK. * @summary Get Latenode JWT token for current user * @param {*} [options] Override http request option. * @throws {RequiredError} */ getToken: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/automations/token`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * AutomationsApi - functional programming interface */ export const AutomationsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AutomationsApiAxiosParamCreator(configuration) return { /** * Generates a short-lived Latenode JWT token for the authenticated user, to be used with the Latenode embedded SDK. * @summary Get Latenode JWT token for current user * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getToken(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getToken(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AutomationsApi.getToken']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AutomationsApi - factory interface */ export const AutomationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AutomationsApiFp(configuration) return { /** * Generates a short-lived Latenode JWT token for the authenticated user, to be used with the Latenode embedded SDK. * @summary Get Latenode JWT token for current user * @param {*} [options] Override http request option. * @throws {RequiredError} */ getToken(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getToken(options).then((request) => request(axios, basePath)); }, }; }; /** * AutomationsApi - object-oriented interface */ export class AutomationsApi extends BaseAPI { /** * Generates a short-lived Latenode JWT token for the authenticated user, to be used with the Latenode embedded SDK. * @summary Get Latenode JWT token for current user * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getToken(options?: RawAxiosRequestConfig) { return AutomationsApiFp(this.configuration).getToken(options).then((request) => request(this.axios, this.basePath)); } } /** * BillingApi - axios parameter creator */ export const BillingApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Returns whether the selected company should see no UI, a billing banner, or a non-dismissible lockout, based on Caraer BV CRM billing fields. * @summary Get billing enforcement status * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStatus: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/billing/status`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Triggers Jortt to email the linked customer a direct-debit authorization payment link. * @summary Send billing setup email * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendSetupEmail: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/billing/setup-email`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * BillingApi - functional programming interface */ export const BillingApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = BillingApiAxiosParamCreator(configuration) return { /** * Returns whether the selected company should see no UI, a billing banner, or a non-dismissible lockout, based on Caraer BV CRM billing fields. * @summary Get billing enforcement status * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BillingApi.getStatus']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Triggers Jortt to email the linked customer a direct-debit authorization payment link. * @summary Send billing setup email * @param {*} [options] Override http request option. * @throws {RequiredError} */ async sendSetupEmail(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.sendSetupEmail(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BillingApi.sendSetupEmail']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * BillingApi - factory interface */ export const BillingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = BillingApiFp(configuration) return { /** * Returns whether the selected company should see no UI, a billing banner, or a non-dismissible lockout, based on Caraer BV CRM billing fields. * @summary Get billing enforcement status * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStatus(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getStatus(options).then((request) => request(axios, basePath)); }, /** * Triggers Jortt to email the linked customer a direct-debit authorization payment link. * @summary Send billing setup email * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendSetupEmail(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.sendSetupEmail(options).then((request) => request(axios, basePath)); }, }; }; /** * BillingApi - object-oriented interface */ export class BillingApi extends BaseAPI { /** * Returns whether the selected company should see no UI, a billing banner, or a non-dismissible lockout, based on Caraer BV CRM billing fields. * @summary Get billing enforcement status * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getStatus(options?: RawAxiosRequestConfig) { return BillingApiFp(this.configuration).getStatus(options).then((request) => request(this.axios, this.basePath)); } /** * Triggers Jortt to email the linked customer a direct-debit authorization payment link. * @summary Send billing setup email * @param {*} [options] Override http request option. * @throws {RequiredError} */ public sendSetupEmail(options?: RawAxiosRequestConfig) { return BillingApiFp(this.configuration).sendSetupEmail(options).then((request) => request(this.axios, this.basePath)); } } /** * CMSModulesApi - axios parameter creator */ export const CMSModulesApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Includes retired modules, so a developer can see what a push removed. * @summary List an app\'s CMS modules * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ list: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('list', 'appUuid', appUuid) const localVarPath = `/api/v2/apps/{appUuid}/cms-modules` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog. * @summary Publish an app\'s CMS module package * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ publishPackage: async (appUuid: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('publishPackage', 'appUuid', appUuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('publishPackage', 'requestBody', requestBody) const localVarPath = `/api/v2/apps/{appUuid}/cms-modules/package` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Registers the modules shipped by a published package version. Modules missing from the payload are retired rather than deleted, because pages may still reference them. * @summary Replace an app\'s CMS module catalog * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ upsert: async (appUuid: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('upsert', 'appUuid', appUuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('upsert', 'requestBody', requestBody) const localVarPath = `/api/v2/apps/{appUuid}/cms-modules` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * CMSModulesApi - functional programming interface */ export const CMSModulesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CMSModulesApiAxiosParamCreator(configuration) return { /** * Includes retired modules, so a developer can see what a push removed. * @summary List an app\'s CMS modules * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async list(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.list(appUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSModulesApi.list']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog. * @summary Publish an app\'s CMS module package * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async publishPackage(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.publishPackage(appUuid, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSModulesApi.publishPackage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Registers the modules shipped by a published package version. Modules missing from the payload are retired rather than deleted, because pages may still reference them. * @summary Replace an app\'s CMS module catalog * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async upsert(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.upsert(appUuid, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSModulesApi.upsert']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * CMSModulesApi - factory interface */ export const CMSModulesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = CMSModulesApiFp(configuration) return { /** * Includes retired modules, so a developer can see what a push removed. * @summary List an app\'s CMS modules * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ list(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.list(appUuid, options).then((request) => request(axios, basePath)); }, /** * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog. * @summary Publish an app\'s CMS module package * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ publishPackage(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.publishPackage(appUuid, requestBody, options).then((request) => request(axios, basePath)); }, /** * Registers the modules shipped by a published package version. Modules missing from the payload are retired rather than deleted, because pages may still reference them. * @summary Replace an app\'s CMS module catalog * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ upsert(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.upsert(appUuid, requestBody, options).then((request) => request(axios, basePath)); }, }; }; /** * CMSModulesApi - object-oriented interface */ export class CMSModulesApi extends BaseAPI { /** * Includes retired modules, so a developer can see what a push removed. * @summary List an app\'s CMS modules * @param {string} appUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public list(appUuid: string, options?: RawAxiosRequestConfig) { return CMSModulesApiFp(this.configuration).list(appUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog. * @summary Publish an app\'s CMS module package * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public publishPackage(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) { return CMSModulesApiFp(this.configuration).publishPackage(appUuid, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * Registers the modules shipped by a published package version. Modules missing from the payload are retired rather than deleted, because pages may still reference them. * @summary Replace an app\'s CMS module catalog * @param {string} appUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public upsert(appUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) { return CMSModulesApiFp(this.configuration).upsert(appUuid, requestBody, options).then((request) => request(this.axios, this.basePath)); } } /** * CMSV2EnvironmentsApi - axios parameter creator */ export const CMSV2EnvironmentsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Create an environment * @param {CmsEnvironmentDTO} cmsEnvironmentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ create3: async (cmsEnvironmentDTO: CmsEnvironmentDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'cmsEnvironmentDTO' is not null or undefined assertParamExists('create3', 'cmsEnvironmentDTO', cmsEnvironmentDTO) const localVarPath = `/api/v2/cms/environments`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(cmsEnvironmentDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete an environment except main * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ delete1: async (key: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'key' is not null or undefined assertParamExists('delete1', 'key', key) const localVarPath = `/api/v2/cms/environments/{key}` .replace('{key}', encodeURIComponent(String(key))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Translation group for a record * @param {string} recordUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ group: async (recordUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('group', 'recordUuid', recordUuid) const localVarPath = `/api/v2/cms/environments/translations/{recordUuid}` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Link two records as translations * @param {string} fromUuid * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ link: async (fromUuid: string, toUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'fromUuid' is not null or undefined assertParamExists('link', 'fromUuid', fromUuid) // verify required parameter 'toUuid' is not null or undefined assertParamExists('link', 'toUuid', toUuid) const localVarPath = `/api/v2/cms/environments/translations/{fromUuid}/link/{toUuid}` .replace('{fromUuid}', encodeURIComponent(String(fromUuid))) .replace('{toUuid}', encodeURIComponent(String(toUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List company environments * @param {*} [options] Override http request option. * @throws {RequiredError} */ list2: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/cms/environments`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Unlink a translation edge * @param {string} fromUuid * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ unlink: async (fromUuid: string, toUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'fromUuid' is not null or undefined assertParamExists('unlink', 'fromUuid', fromUuid) // verify required parameter 'toUuid' is not null or undefined assertParamExists('unlink', 'toUuid', toUuid) const localVarPath = `/api/v2/cms/environments/translations/{fromUuid}/link/{toUuid}` .replace('{fromUuid}', encodeURIComponent(String(fromUuid))) .replace('{toUuid}', encodeURIComponent(String(toUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update routing, auth or htmlLang. Keys are immutable. * @param {string} key * @param {CmsEnvironmentDTO} cmsEnvironmentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ update1: async (key: string, cmsEnvironmentDTO: CmsEnvironmentDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'key' is not null or undefined assertParamExists('update1', 'key', key) // verify required parameter 'cmsEnvironmentDTO' is not null or undefined assertParamExists('update1', 'cmsEnvironmentDTO', cmsEnvironmentDTO) const localVarPath = `/api/v2/cms/environments/{key}` .replace('{key}', encodeURIComponent(String(key))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(cmsEnvironmentDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * CMSV2EnvironmentsApi - functional programming interface */ export const CMSV2EnvironmentsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CMSV2EnvironmentsApiAxiosParamCreator(configuration) return { /** * * @summary Create an environment * @param {CmsEnvironmentDTO} cmsEnvironmentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async create3(cmsEnvironmentDTO: CmsEnvironmentDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.create3(cmsEnvironmentDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2EnvironmentsApi.create3']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete an environment except main * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ async delete1(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delete1(key, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2EnvironmentsApi.delete1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Translation group for a record * @param {string} recordUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async group(recordUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.group(recordUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2EnvironmentsApi.group']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Link two records as translations * @param {string} fromUuid * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async link(fromUuid: string, toUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.link(fromUuid, toUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2EnvironmentsApi.link']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List company environments * @param {*} [options] Override http request option. * @throws {RequiredError} */ async list2(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.list2(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2EnvironmentsApi.list2']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Unlink a translation edge * @param {string} fromUuid * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unlink(fromUuid: string, toUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(fromUuid, toUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2EnvironmentsApi.unlink']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update routing, auth or htmlLang. Keys are immutable. * @param {string} key * @param {CmsEnvironmentDTO} cmsEnvironmentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async update1(key: string, cmsEnvironmentDTO: CmsEnvironmentDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.update1(key, cmsEnvironmentDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2EnvironmentsApi.update1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * CMSV2EnvironmentsApi - factory interface */ export const CMSV2EnvironmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = CMSV2EnvironmentsApiFp(configuration) return { /** * * @summary Create an environment * @param {CmsEnvironmentDTO} cmsEnvironmentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ create3(cmsEnvironmentDTO: CmsEnvironmentDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.create3(cmsEnvironmentDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete an environment except main * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ delete1(key: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delete1(key, options).then((request) => request(axios, basePath)); }, /** * * @summary Translation group for a record * @param {string} recordUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ group(recordUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.group(recordUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary Link two records as translations * @param {string} fromUuid * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ link(fromUuid: string, toUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.link(fromUuid, toUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary List company environments * @param {*} [options] Override http request option. * @throws {RequiredError} */ list2(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.list2(options).then((request) => request(axios, basePath)); }, /** * * @summary Unlink a translation edge * @param {string} fromUuid * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ unlink(fromUuid: string, toUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unlink(fromUuid, toUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary Update routing, auth or htmlLang. Keys are immutable. * @param {string} key * @param {CmsEnvironmentDTO} cmsEnvironmentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ update1(key: string, cmsEnvironmentDTO: CmsEnvironmentDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.update1(key, cmsEnvironmentDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * CMSV2EnvironmentsApi - object-oriented interface */ export class CMSV2EnvironmentsApi extends BaseAPI { /** * * @summary Create an environment * @param {CmsEnvironmentDTO} cmsEnvironmentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public create3(cmsEnvironmentDTO: CmsEnvironmentDTO, options?: RawAxiosRequestConfig) { return CMSV2EnvironmentsApiFp(this.configuration).create3(cmsEnvironmentDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete an environment except main * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ public delete1(key: string, options?: RawAxiosRequestConfig) { return CMSV2EnvironmentsApiFp(this.configuration).delete1(key, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Translation group for a record * @param {string} recordUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public group(recordUuid: string, options?: RawAxiosRequestConfig) { return CMSV2EnvironmentsApiFp(this.configuration).group(recordUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Link two records as translations * @param {string} fromUuid * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public link(fromUuid: string, toUuid: string, options?: RawAxiosRequestConfig) { return CMSV2EnvironmentsApiFp(this.configuration).link(fromUuid, toUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List company environments * @param {*} [options] Override http request option. * @throws {RequiredError} */ public list2(options?: RawAxiosRequestConfig) { return CMSV2EnvironmentsApiFp(this.configuration).list2(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Unlink a translation edge * @param {string} fromUuid * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public unlink(fromUuid: string, toUuid: string, options?: RawAxiosRequestConfig) { return CMSV2EnvironmentsApiFp(this.configuration).unlink(fromUuid, toUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update routing, auth or htmlLang. Keys are immutable. * @param {string} key * @param {CmsEnvironmentDTO} cmsEnvironmentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public update1(key: string, cmsEnvironmentDTO: CmsEnvironmentDTO, options?: RawAxiosRequestConfig) { return CMSV2EnvironmentsApiFp(this.configuration).update1(key, cmsEnvironmentDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * CMSV2PagesApi - axios parameter creator */ export const CMSV2PagesApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Returns patches the editor applies through the same revision channel as a manual edit, so the change is undoable. Page scope may add, remove and reorder modules. A module\'s code lives in a shared npm package, so the AI rewrites field values and composition, never the component itself. * @summary Rewrite a page or a module from a prompt * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ aiRewrite: async (recordUuid: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('aiRewrite', 'recordUuid', recordUuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('aiRewrite', 'requestBody', requestBody) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/rewrite` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create a translated sibling page for an environment * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTranslation: async (recordUuid: string, key: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('createTranslation', 'recordUuid', recordUuid) // verify required parameter 'key' is not null or undefined assertParamExists('createTranslation', 'key', key) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments/{key}/translate` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))) .replace('{key}', encodeURIComponent(String(key))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Discard a Modify-this-module playground session * @param {string} recordUuid * @param {string} sessionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ discardModuleFork: async (recordUuid: string, sessionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('discardModuleFork', 'recordUuid', recordUuid) // verify required parameter 'sessionId' is not null or undefined assertParamExists('discardModuleFork', 'sessionId', sessionId) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))) .replace('{sessionId}', encodeURIComponent(String(sessionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page. * @summary Create or reuse the custom 404 page * @param {*} [options] Override http request option. * @throws {RequiredError} */ ensureNotFound: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/webpages/v2/pages/not-found`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Environment coverage for the builder dropdown * @param {string} recordUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ environmentCoverage: async (recordUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('environmentCoverage', 'recordUuid', recordUuid) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Load a page for the builder * @param {string} recordUuid * @param {string} [locale] * @param {string} [state] * @param {*} [options] Override http request option. * @throws {RequiredError} */ get: async (recordUuid: string, locale?: string, state?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('get', 'recordUuid', recordUuid) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } if (state !== undefined) { localVarQueryParameter['state'] = state; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary CMS v2 object template document * @param {string} objectUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTemplate: async (objectUuid: string, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getTemplate', 'objectUuid', objectUuid) const localVarPath = `/api/v2/webpages/v2/pages/templates/{objectUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Draft snapshots for one locale * @param {string} recordUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ history: async (recordUuid: string, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('history', 'recordUuid', recordUuid) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/history` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Host this page on another environment * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ hostOnEnvironment: async (recordUuid: string, key: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('hostOnEnvironment', 'recordUuid', recordUuid) // verify required parameter 'key' is not null or undefined assertParamExists('hostOnEnvironment', 'key', key) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments/{key}/host` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))) .replace('{key}', encodeURIComponent(String(key))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Backs the builder\'s library picker. Only modules from installed apps, and never retired ones, because a new page must be able to render them. * @summary Modules available to this company * @param {*} [options] Override http request option. * @throws {RequiredError} */ library: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/webpages/v2/pages/library/modules`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work. * @summary Apply patches to a page draft * @param {string} recordUuid * @param {CmsPagePatchRequest} cmsPagePatchRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ patch: async (recordUuid: string, cmsPagePatchRequest: CmsPagePatchRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('patch', 'recordUuid', recordUuid) // verify required parameter 'cmsPagePatchRequest' is not null or undefined assertParamExists('patch', 'cmsPagePatchRequest', cmsPagePatchRequest) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/patch` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(cmsPagePatchRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * The iframe renders the draft document, which the public API will not serve. The signature covers the page and an expiry so a leaked link cannot be retargeted or replayed. * @summary Signed preview URL for the builder iframe * @param {string} recordUuid * @param {string} [locale] * @param {string} [state] * @param {*} [options] Override http request option. * @throws {RequiredError} */ previewLink: async (recordUuid: string, locale?: string, state?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('previewLink', 'recordUuid', recordUuid) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/preview-link` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } if (state !== undefined) { localVarQueryParameter['state'] = state; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Rewrite forked module source from a prompt * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ promptModuleFork: async (recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('promptModuleFork', 'recordUuid', recordUuid) // verify required parameter 'sessionId' is not null or undefined assertParamExists('promptModuleFork', 'sessionId', sessionId) // verify required parameter 'requestBody' is not null or undefined assertParamExists('promptModuleFork', 'requestBody', requestBody) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/prompt` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))) .replace('{sessionId}', encodeURIComponent(String(sessionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others. * @summary Publish one locale, or all of them * @param {string} recordUuid * @param {string} [locale] * @param {boolean} [allLocales] * @param {*} [options] Override http request option. * @throws {RequiredError} */ publish: async (recordUuid: string, locale?: string, allLocales?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('publish', 'recordUuid', recordUuid) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/publish` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } if (allLocales !== undefined) { localVarQueryParameter['allLocales'] = allLocales; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Restore a draft snapshot * @param {string} recordUuid * @param {number} index * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreHistory: async (recordUuid: string, index: number, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('restoreHistory', 'recordUuid', recordUuid) // verify required parameter 'index' is not null or undefined assertParamExists('restoreHistory', 'index', index) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/history/{index}/restore` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))) .replace('{index}', encodeURIComponent(String(index))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Replace a page draft * @param {string} recordUuid * @param {CmsPageDocument} cmsPageDocument * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ save: async (recordUuid: string, cmsPageDocument: CmsPageDocument, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('save', 'recordUuid', recordUuid) // verify required parameter 'cmsPageDocument' is not null or undefined assertParamExists('save', 'cmsPageDocument', cmsPageDocument) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(cmsPageDocument, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update slug, title, excerpt, SEO and page scripts * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveMeta: async (recordUuid: string, requestBody: { [key: string]: any | null; }, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('saveMeta', 'recordUuid', recordUuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('saveMeta', 'requestBody', requestBody) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/meta` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module. * @summary Publish the forked module into a private app * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveModuleFork: async (recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('saveModuleFork', 'recordUuid', recordUuid) // verify required parameter 'sessionId' is not null or undefined assertParamExists('saveModuleFork', 'sessionId', sessionId) // verify required parameter 'requestBody' is not null or undefined assertParamExists('saveModuleFork', 'requestBody', requestBody) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/save` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))) .replace('{sessionId}', encodeURIComponent(String(sessionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Replace a CMS v2 object template * @param {string} objectUuid * @param {CmsPageDocument} cmsPageDocument * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveTemplate: async (objectUuid: string, cmsPageDocument: CmsPageDocument, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('saveTemplate', 'objectUuid', objectUuid) // verify required parameter 'cmsPageDocument' is not null or undefined assertParamExists('saveTemplate', 'cmsPageDocument', cmsPageDocument) const localVarPath = `/api/v2/webpages/v2/pages/templates/{objectUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(cmsPageDocument, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * CMS v2 companies and pages only. Copies the installed module\'s published source into a playground session. Live code edits stay off the company site until save publishes a platform v2 private-app package and a rebuild compiles it. * @summary Start a Modify-this-module playground session * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ startModuleFork: async (recordUuid: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('startModuleFork', 'recordUuid', recordUuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('startModuleFork', 'requestBody', requestBody) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Take one locale offline * @param {string} recordUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ unpublish: async (recordUuid: string, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('unpublish', 'recordUuid', recordUuid) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/unpublish` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Remove an environment from this page only * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ unselectEnvironment: async (recordUuid: string, key: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('unselectEnvironment', 'recordUuid', recordUuid) // verify required parameter 'key' is not null or undefined assertParamExists('unselectEnvironment', 'key', key) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments/{key}` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))) .replace('{key}', encodeURIComponent(String(key))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Writes test values into the playground session without changing the live page. * @summary Preview field values on the forked module * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateModuleForkFields: async (recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordUuid' is not null or undefined assertParamExists('updateModuleForkFields', 'recordUuid', recordUuid) // verify required parameter 'sessionId' is not null or undefined assertParamExists('updateModuleForkFields', 'sessionId', sessionId) // verify required parameter 'requestBody' is not null or undefined assertParamExists('updateModuleForkFields', 'requestBody', requestBody) const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/fields` .replace('{recordUuid}', encodeURIComponent(String(recordUuid))) .replace('{sessionId}', encodeURIComponent(String(sessionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * CMSV2PagesApi - functional programming interface */ export const CMSV2PagesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CMSV2PagesApiAxiosParamCreator(configuration) return { /** * Returns patches the editor applies through the same revision channel as a manual edit, so the change is undoable. Page scope may add, remove and reorder modules. A module\'s code lives in a shared npm package, so the AI rewrites field values and composition, never the component itself. * @summary Rewrite a page or a module from a prompt * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async aiRewrite(recordUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.aiRewrite(recordUuid, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.aiRewrite']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create a translated sibling page for an environment * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createTranslation(recordUuid: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createTranslation(recordUuid, key, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.createTranslation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Discard a Modify-this-module playground session * @param {string} recordUuid * @param {string} sessionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async discardModuleFork(recordUuid: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.discardModuleFork(recordUuid, sessionId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.discardModuleFork']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page. * @summary Create or reuse the custom 404 page * @param {*} [options] Override http request option. * @throws {RequiredError} */ async ensureNotFound(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.ensureNotFound(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.ensureNotFound']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Environment coverage for the builder dropdown * @param {string} recordUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async environmentCoverage(recordUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.environmentCoverage(recordUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.environmentCoverage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Load a page for the builder * @param {string} recordUuid * @param {string} [locale] * @param {string} [state] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async get(recordUuid: string, locale?: string, state?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.get(recordUuid, locale, state, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.get']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary CMS v2 object template document * @param {string} objectUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTemplate(objectUuid: string, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplate(objectUuid, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.getTemplate']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Draft snapshots for one locale * @param {string} recordUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async history(recordUuid: string, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.history(recordUuid, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.history']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Host this page on another environment * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ async hostOnEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.hostOnEnvironment(recordUuid, key, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.hostOnEnvironment']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Backs the builder\'s library picker. Only modules from installed apps, and never retired ones, because a new page must be able to render them. * @summary Modules available to this company * @param {*} [options] Override http request option. * @throws {RequiredError} */ async library(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.library(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.library']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work. * @summary Apply patches to a page draft * @param {string} recordUuid * @param {CmsPagePatchRequest} cmsPagePatchRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async patch(recordUuid: string, cmsPagePatchRequest: CmsPagePatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patch(recordUuid, cmsPagePatchRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.patch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * The iframe renders the draft document, which the public API will not serve. The signature covers the page and an expiry so a leaked link cannot be retargeted or replayed. * @summary Signed preview URL for the builder iframe * @param {string} recordUuid * @param {string} [locale] * @param {string} [state] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async previewLink(recordUuid: string, locale?: string, state?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.previewLink(recordUuid, locale, state, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.previewLink']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Rewrite forked module source from a prompt * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async promptModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.promptModuleFork(recordUuid, sessionId, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.promptModuleFork']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others. * @summary Publish one locale, or all of them * @param {string} recordUuid * @param {string} [locale] * @param {boolean} [allLocales] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async publish(recordUuid: string, locale?: string, allLocales?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.publish(recordUuid, locale, allLocales, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.publish']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Restore a draft snapshot * @param {string} recordUuid * @param {number} index * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async restoreHistory(recordUuid: string, index: number, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreHistory(recordUuid, index, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.restoreHistory']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Replace a page draft * @param {string} recordUuid * @param {CmsPageDocument} cmsPageDocument * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async save(recordUuid: string, cmsPageDocument: CmsPageDocument, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.save(recordUuid, cmsPageDocument, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.save']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update slug, title, excerpt, SEO and page scripts * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async saveMeta(recordUuid: string, requestBody: { [key: string]: any | null; }, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveMeta(recordUuid, requestBody, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.saveMeta']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module. * @summary Publish the forked module into a private app * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async saveModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveModuleFork(recordUuid, sessionId, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.saveModuleFork']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Replace a CMS v2 object template * @param {string} objectUuid * @param {CmsPageDocument} cmsPageDocument * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async saveTemplate(objectUuid: string, cmsPageDocument: CmsPageDocument, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveTemplate(objectUuid, cmsPageDocument, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.saveTemplate']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * CMS v2 companies and pages only. Copies the installed module\'s published source into a playground session. Live code edits stay off the company site until save publishes a platform v2 private-app package and a rebuild compiles it. * @summary Start a Modify-this-module playground session * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async startModuleFork(recordUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.startModuleFork(recordUuid, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.startModuleFork']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Take one locale offline * @param {string} recordUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unpublish(recordUuid: string, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unpublish(recordUuid, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.unpublish']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Remove an environment from this page only * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unselectEnvironment(recordUuid, key, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.unselectEnvironment']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Writes test values into the playground session without changing the live page. * @summary Preview field values on the forked module * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateModuleForkFields(recordUuid, sessionId, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.updateModuleForkFields']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * CMSV2PagesApi - factory interface */ export const CMSV2PagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = CMSV2PagesApiFp(configuration) return { /** * Returns patches the editor applies through the same revision channel as a manual edit, so the change is undoable. Page scope may add, remove and reorder modules. A module\'s code lives in a shared npm package, so the AI rewrites field values and composition, never the component itself. * @summary Rewrite a page or a module from a prompt * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ aiRewrite(recordUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.aiRewrite(recordUuid, requestBody, options).then((request) => request(axios, basePath)); }, /** * * @summary Create a translated sibling page for an environment * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTranslation(recordUuid: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createTranslation(recordUuid, key, options).then((request) => request(axios, basePath)); }, /** * * @summary Discard a Modify-this-module playground session * @param {string} recordUuid * @param {string} sessionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ discardModuleFork(recordUuid: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.discardModuleFork(recordUuid, sessionId, options).then((request) => request(axios, basePath)); }, /** * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page. * @summary Create or reuse the custom 404 page * @param {*} [options] Override http request option. * @throws {RequiredError} */ ensureNotFound(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.ensureNotFound(options).then((request) => request(axios, basePath)); }, /** * * @summary Environment coverage for the builder dropdown * @param {string} recordUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ environmentCoverage(recordUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.environmentCoverage(recordUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary Load a page for the builder * @param {string} recordUuid * @param {string} [locale] * @param {string} [state] * @param {*} [options] Override http request option. * @throws {RequiredError} */ get(recordUuid: string, locale?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.get(recordUuid, locale, state, options).then((request) => request(axios, basePath)); }, /** * * @summary CMS v2 object template document * @param {string} objectUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTemplate(objectUuid: string, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTemplate(objectUuid, locale, options).then((request) => request(axios, basePath)); }, /** * * @summary Draft snapshots for one locale * @param {string} recordUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ history(recordUuid: string, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.history(recordUuid, locale, options).then((request) => request(axios, basePath)); }, /** * * @summary Host this page on another environment * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ hostOnEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.hostOnEnvironment(recordUuid, key, options).then((request) => request(axios, basePath)); }, /** * Backs the builder\'s library picker. Only modules from installed apps, and never retired ones, because a new page must be able to render them. * @summary Modules available to this company * @param {*} [options] Override http request option. * @throws {RequiredError} */ library(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.library(options).then((request) => request(axios, basePath)); }, /** * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work. * @summary Apply patches to a page draft * @param {string} recordUuid * @param {CmsPagePatchRequest} cmsPagePatchRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ patch(recordUuid: string, cmsPagePatchRequest: CmsPagePatchRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patch(recordUuid, cmsPagePatchRequest, options).then((request) => request(axios, basePath)); }, /** * The iframe renders the draft document, which the public API will not serve. The signature covers the page and an expiry so a leaked link cannot be retargeted or replayed. * @summary Signed preview URL for the builder iframe * @param {string} recordUuid * @param {string} [locale] * @param {string} [state] * @param {*} [options] Override http request option. * @throws {RequiredError} */ previewLink(recordUuid: string, locale?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.previewLink(recordUuid, locale, state, options).then((request) => request(axios, basePath)); }, /** * * @summary Rewrite forked module source from a prompt * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ promptModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.promptModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath)); }, /** * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others. * @summary Publish one locale, or all of them * @param {string} recordUuid * @param {string} [locale] * @param {boolean} [allLocales] * @param {*} [options] Override http request option. * @throws {RequiredError} */ publish(recordUuid: string, locale?: string, allLocales?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.publish(recordUuid, locale, allLocales, options).then((request) => request(axios, basePath)); }, /** * * @summary Restore a draft snapshot * @param {string} recordUuid * @param {number} index * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreHistory(recordUuid: string, index: number, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreHistory(recordUuid, index, locale, options).then((request) => request(axios, basePath)); }, /** * * @summary Replace a page draft * @param {string} recordUuid * @param {CmsPageDocument} cmsPageDocument * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ save(recordUuid: string, cmsPageDocument: CmsPageDocument, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.save(recordUuid, cmsPageDocument, locale, options).then((request) => request(axios, basePath)); }, /** * * @summary Update slug, title, excerpt, SEO and page scripts * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveMeta(recordUuid: string, requestBody: { [key: string]: any | null; }, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.saveMeta(recordUuid, requestBody, locale, options).then((request) => request(axios, basePath)); }, /** * Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module. * @summary Publish the forked module into a private app * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath)); }, /** * * @summary Replace a CMS v2 object template * @param {string} objectUuid * @param {CmsPageDocument} cmsPageDocument * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveTemplate(objectUuid: string, cmsPageDocument: CmsPageDocument, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(axios, basePath)); }, /** * CMS v2 companies and pages only. Copies the installed module\'s published source into a playground session. Live code edits stay off the company site until save publishes a platform v2 private-app package and a rebuild compiles it. * @summary Start a Modify-this-module playground session * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ startModuleFork(recordUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.startModuleFork(recordUuid, requestBody, options).then((request) => request(axios, basePath)); }, /** * * @summary Take one locale offline * @param {string} recordUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ unpublish(recordUuid: string, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unpublish(recordUuid, locale, options).then((request) => request(axios, basePath)); }, /** * * @summary Remove an environment from this page only * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unselectEnvironment(recordUuid, key, options).then((request) => request(axios, basePath)); }, /** * Writes test values into the playground session without changing the live page. * @summary Preview field values on the forked module * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateModuleForkFields(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath)); }, }; }; /** * CMSV2PagesApi - object-oriented interface */ export class CMSV2PagesApi extends BaseAPI { /** * Returns patches the editor applies through the same revision channel as a manual edit, so the change is undoable. Page scope may add, remove and reorder modules. A module\'s code lives in a shared npm package, so the AI rewrites field values and composition, never the component itself. * @summary Rewrite a page or a module from a prompt * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public aiRewrite(recordUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).aiRewrite(recordUuid, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create a translated sibling page for an environment * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createTranslation(recordUuid: string, key: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).createTranslation(recordUuid, key, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Discard a Modify-this-module playground session * @param {string} recordUuid * @param {string} sessionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ public discardModuleFork(recordUuid: string, sessionId: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).discardModuleFork(recordUuid, sessionId, options).then((request) => request(this.axios, this.basePath)); } /** * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page. * @summary Create or reuse the custom 404 page * @param {*} [options] Override http request option. * @throws {RequiredError} */ public ensureNotFound(options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).ensureNotFound(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Environment coverage for the builder dropdown * @param {string} recordUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public environmentCoverage(recordUuid: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).environmentCoverage(recordUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Load a page for the builder * @param {string} recordUuid * @param {string} [locale] * @param {string} [state] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public get(recordUuid: string, locale?: string, state?: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).get(recordUuid, locale, state, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary CMS v2 object template document * @param {string} objectUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getTemplate(objectUuid: string, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).getTemplate(objectUuid, locale, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Draft snapshots for one locale * @param {string} recordUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public history(recordUuid: string, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).history(recordUuid, locale, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Host this page on another environment * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ public hostOnEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).hostOnEnvironment(recordUuid, key, options).then((request) => request(this.axios, this.basePath)); } /** * Backs the builder\'s library picker. Only modules from installed apps, and never retired ones, because a new page must be able to render them. * @summary Modules available to this company * @param {*} [options] Override http request option. * @throws {RequiredError} */ public library(options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).library(options).then((request) => request(this.axios, this.basePath)); } /** * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work. * @summary Apply patches to a page draft * @param {string} recordUuid * @param {CmsPagePatchRequest} cmsPagePatchRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public patch(recordUuid: string, cmsPagePatchRequest: CmsPagePatchRequest, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).patch(recordUuid, cmsPagePatchRequest, options).then((request) => request(this.axios, this.basePath)); } /** * The iframe renders the draft document, which the public API will not serve. The signature covers the page and an expiry so a leaked link cannot be retargeted or replayed. * @summary Signed preview URL for the builder iframe * @param {string} recordUuid * @param {string} [locale] * @param {string} [state] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public previewLink(recordUuid: string, locale?: string, state?: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).previewLink(recordUuid, locale, state, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Rewrite forked module source from a prompt * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public promptModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).promptModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others. * @summary Publish one locale, or all of them * @param {string} recordUuid * @param {string} [locale] * @param {boolean} [allLocales] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public publish(recordUuid: string, locale?: string, allLocales?: boolean, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).publish(recordUuid, locale, allLocales, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Restore a draft snapshot * @param {string} recordUuid * @param {number} index * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public restoreHistory(recordUuid: string, index: number, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).restoreHistory(recordUuid, index, locale, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Replace a page draft * @param {string} recordUuid * @param {CmsPageDocument} cmsPageDocument * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public save(recordUuid: string, cmsPageDocument: CmsPageDocument, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).save(recordUuid, cmsPageDocument, locale, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update slug, title, excerpt, SEO and page scripts * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public saveMeta(recordUuid: string, requestBody: { [key: string]: any | null; }, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).saveMeta(recordUuid, requestBody, locale, options).then((request) => request(this.axios, this.basePath)); } /** * Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module. * @summary Publish the forked module into a private app * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public saveModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Replace a CMS v2 object template * @param {string} objectUuid * @param {CmsPageDocument} cmsPageDocument * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public saveTemplate(objectUuid: string, cmsPageDocument: CmsPageDocument, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(this.axios, this.basePath)); } /** * CMS v2 companies and pages only. Copies the installed module\'s published source into a playground session. Live code edits stay off the company site until save publishes a platform v2 private-app package and a rebuild compiles it. * @summary Start a Modify-this-module playground session * @param {string} recordUuid * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public startModuleFork(recordUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).startModuleFork(recordUuid, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Take one locale offline * @param {string} recordUuid * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public unpublish(recordUuid: string, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).unpublish(recordUuid, locale, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Remove an environment from this page only * @param {string} recordUuid * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ public unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).unselectEnvironment(recordUuid, key, options).then((request) => request(this.axios, this.basePath)); } /** * Writes test values into the playground session without changing the live page. * @summary Preview field values on the forked module * @param {string} recordUuid * @param {string} sessionId * @param {{ [key: string]: any | null; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) { return CMSV2PagesApiFp(this.configuration).updateModuleForkFields(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath)); } } /** * CMSV2PublicApi - axios parameter creator */ export const CMSV2PublicApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Installed app settings with SECRET fields removed * @param {string} xCaraerSubdomain * @param {string} appName * @param {*} [options] Override http request option. * @throws {RequiredError} */ appSettings: async (xCaraerSubdomain: string, appName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('appSettings', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'appName' is not null or undefined assertParamExists('appSettings', 'appName', appName) const localVarPath = `/api/v2/webpages/v2/public/apps/{appName}/settings` .replace('{appName}', encodeURIComponent(String(appName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Redirect to a company file for the website runtime * @param {string} xCaraerSubdomain * @param {string} key * @param {string} [pageUuid] * @param {string} [environment] * @param {string} [locale] * @param {string} [access] * @param {string} [token] * @param {string} [caraerExpires] * @param {string} [caraerSig] * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {*} [options] Override http request option. * @throws {RequiredError} */ asset: async (xCaraerSubdomain: string, key: string, pageUuid?: string, environment?: string, locale?: string, access?: string, token?: string, caraerExpires?: string, caraerSig?: string, xCaraerWebpageAccess?: string, authorization?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('asset', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'key' is not null or undefined assertParamExists('asset', 'key', key) const localVarPath = `/api/v2/webpages/v2/public/asset`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (key !== undefined) { localVarQueryParameter['key'] = key; } if (pageUuid !== undefined) { localVarQueryParameter['pageUuid'] = pageUuid; } if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } if (access !== undefined) { localVarQueryParameter['access'] = access; } if (token !== undefined) { localVarQueryParameter['token'] = token; } if (caraerExpires !== undefined) { localVarQueryParameter['caraer_expires'] = caraerExpires; } if (caraerSig !== undefined) { localVarQueryParameter['caraer_sig'] = caraerSig; } localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerWebpageAccess != null) { localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess); } if (authorization != null) { localVarHeaderParameter['Authorization'] = String(authorization); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Installed apps and modules for a company\'s website build * @param {string} xCaraerSubdomain * @param {*} [options] Override http request option. * @throws {RequiredError} */ buildManifest: async (xCaraerSubdomain: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('buildManifest', 'xCaraerSubdomain', xCaraerSubdomain) const localVarPath = `/api/v2/webpages/v2/build/manifest`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Navigation menus for the header and footer * @param {string} xCaraerSubdomain * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ menus: async (xCaraerSubdomain: string, environment?: string, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('menus', 'xCaraerSubdomain', xCaraerSubdomain) const localVarPath = `/api/v2/webpages/v2/public/menus`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary A published page by URL path * @param {string} xCaraerSubdomain * @param {string} path * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {string} [environment] * @param {string} [locale] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ pageByPath: async (xCaraerSubdomain: string, path: string, xCaraerWebpageAccess?: string, authorization?: string, environment?: string, locale?: string, access?: string, token?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('pageByPath', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'path' is not null or undefined assertParamExists('pageByPath', 'path', path) const localVarPath = `/api/v2/webpages/v2/public/page`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } if (path !== undefined) { localVarQueryParameter['path'] = path; } if (access !== undefined) { localVarQueryParameter['access'] = access; } if (token !== undefined) { localVarQueryParameter['token'] = token; } localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerWebpageAccess != null) { localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess); } if (authorization != null) { localVarHeaderParameter['Authorization'] = String(authorization); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet. * @summary A page by record uuid * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {string} [environment] * @param {string} [locale] * @param {string} [state] * @param {string} [access] * @param {string} [token] * @param {string} [caraerExpires] * @param {string} [caraerSig] * @param {*} [options] Override http request option. * @throws {RequiredError} */ pageByUuid: async (xCaraerSubdomain: string, uuid: string, xCaraerWebpageAccess?: string, authorization?: string, environment?: string, locale?: string, state?: string, access?: string, token?: string, caraerExpires?: string, caraerSig?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('pageByUuid', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'uuid' is not null or undefined assertParamExists('pageByUuid', 'uuid', uuid) const localVarPath = `/api/v2/webpages/v2/public/page/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } if (state !== undefined) { localVarQueryParameter['state'] = state; } if (access !== undefined) { localVarQueryParameter['access'] = access; } if (token !== undefined) { localVarQueryParameter['token'] = token; } if (caraerExpires !== undefined) { localVarQueryParameter['caraer_expires'] = caraerExpires; } if (caraerSig !== undefined) { localVarQueryParameter['caraer_sig'] = caraerSig; } localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerWebpageAccess != null) { localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess); } if (authorization != null) { localVarHeaderParameter['Authorization'] = String(authorization); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Protection info for a path, without the page document * @param {string} xCaraerSubdomain * @param {string} path * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ pageGate: async (xCaraerSubdomain: string, path: string, environment?: string, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('pageGate', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'path' is not null or undefined assertParamExists('pageGate', 'path', path) const localVarPath = `/api/v2/webpages/v2/public/page/gate`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } if (path !== undefined) { localVarQueryParameter['path'] = path; } localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Published paths per environment, for sitemaps and cache warming * @param {string} xCaraerSubdomain * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ paths: async (xCaraerSubdomain: string, environment?: string, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('paths', 'xCaraerSubdomain', xCaraerSubdomain) const localVarPath = `/api/v2/webpages/v2/public/paths`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Public records visible in an environment * @param {string} xCaraerSubdomain * @param {{ [key: string]: any | null; }} requestBody * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ records: async (xCaraerSubdomain: string, requestBody: { [key: string]: any | null; }, environment?: string, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('records', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'requestBody' is not null or undefined assertParamExists('records', 'requestBody', requestBody) const localVarPath = `/api/v2/webpages/v2/public/records`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Company settings, branding and locales * @param {string} xCaraerSubdomain * @param {*} [options] Override http request option. * @throws {RequiredError} */ settings: async (xCaraerSubdomain: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('settings', 'xCaraerSubdomain', xCaraerSubdomain) const localVarPath = `/api/v2/webpages/v2/public/settings`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Unlock a password-protected CMS v2 page * @param {string} xCaraerSubdomain * @param {string} uuid * @param {{ [key: string]: string; }} requestBody * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ unlock: async (xCaraerSubdomain: string, uuid: string, requestBody: { [key: string]: string; }, environment?: string, locale?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('unlock', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'uuid' is not null or undefined assertParamExists('unlock', 'uuid', uuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('unlock', 'requestBody', requestBody) const localVarPath = `/api/v2/webpages/v2/public/page/{uuid}/unlock` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } if (locale !== undefined) { localVarQueryParameter['locale'] = locale; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * CMSV2PublicApi - functional programming interface */ export const CMSV2PublicApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CMSV2PublicApiAxiosParamCreator(configuration) return { /** * * @summary Installed app settings with SECRET fields removed * @param {string} xCaraerSubdomain * @param {string} appName * @param {*} [options] Override http request option. * @throws {RequiredError} */ async appSettings(xCaraerSubdomain: string, appName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.appSettings(xCaraerSubdomain, appName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.appSettings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Redirect to a company file for the website runtime * @param {string} xCaraerSubdomain * @param {string} key * @param {string} [pageUuid] * @param {string} [environment] * @param {string} [locale] * @param {string} [access] * @param {string} [token] * @param {string} [caraerExpires] * @param {string} [caraerSig] * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async asset(xCaraerSubdomain: string, key: string, pageUuid?: string, environment?: string, locale?: string, access?: string, token?: string, caraerExpires?: string, caraerSig?: string, xCaraerWebpageAccess?: string, authorization?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.asset']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Installed apps and modules for a company\'s website build * @param {string} xCaraerSubdomain * @param {*} [options] Override http request option. * @throws {RequiredError} */ async buildManifest(xCaraerSubdomain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.buildManifest(xCaraerSubdomain, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.buildManifest']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Navigation menus for the header and footer * @param {string} xCaraerSubdomain * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async menus(xCaraerSubdomain: string, environment?: string, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.menus(xCaraerSubdomain, environment, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.menus']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary A published page by URL path * @param {string} xCaraerSubdomain * @param {string} path * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {string} [environment] * @param {string} [locale] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async pageByPath(xCaraerSubdomain: string, path: string, xCaraerWebpageAccess?: string, authorization?: string, environment?: string, locale?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.pageByPath']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet. * @summary A page by record uuid * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {string} [environment] * @param {string} [locale] * @param {string} [state] * @param {string} [access] * @param {string} [token] * @param {string} [caraerExpires] * @param {string} [caraerSig] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async pageByUuid(xCaraerSubdomain: string, uuid: string, xCaraerWebpageAccess?: string, authorization?: string, environment?: string, locale?: string, state?: string, access?: string, token?: string, caraerExpires?: string, caraerSig?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.pageByUuid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Protection info for a path, without the page document * @param {string} xCaraerSubdomain * @param {string} path * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async pageGate(xCaraerSubdomain: string, path: string, environment?: string, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.pageGate(xCaraerSubdomain, path, environment, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.pageGate']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Published paths per environment, for sitemaps and cache warming * @param {string} xCaraerSubdomain * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async paths(xCaraerSubdomain: string, environment?: string, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.paths(xCaraerSubdomain, environment, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.paths']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Public records visible in an environment * @param {string} xCaraerSubdomain * @param {{ [key: string]: any | null; }} requestBody * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async records(xCaraerSubdomain: string, requestBody: { [key: string]: any | null; }, environment?: string, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.records(xCaraerSubdomain, requestBody, environment, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.records']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Company settings, branding and locales * @param {string} xCaraerSubdomain * @param {*} [options] Override http request option. * @throws {RequiredError} */ async settings(xCaraerSubdomain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.settings(xCaraerSubdomain, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.settings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Unlock a password-protected CMS v2 page * @param {string} xCaraerSubdomain * @param {string} uuid * @param {{ [key: string]: string; }} requestBody * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unlock(xCaraerSubdomain: string, uuid: string, requestBody: { [key: string]: string; }, environment?: string, locale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2PublicApi.unlock']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * CMSV2PublicApi - factory interface */ export const CMSV2PublicApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = CMSV2PublicApiFp(configuration) return { /** * * @summary Installed app settings with SECRET fields removed * @param {string} xCaraerSubdomain * @param {string} appName * @param {*} [options] Override http request option. * @throws {RequiredError} */ appSettings(xCaraerSubdomain: string, appName: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.appSettings(xCaraerSubdomain, appName, options).then((request) => request(axios, basePath)); }, /** * * @summary Redirect to a company file for the website runtime * @param {string} xCaraerSubdomain * @param {string} key * @param {string} [pageUuid] * @param {string} [environment] * @param {string} [locale] * @param {string} [access] * @param {string} [token] * @param {string} [caraerExpires] * @param {string} [caraerSig] * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {*} [options] Override http request option. * @throws {RequiredError} */ asset(xCaraerSubdomain: string, key: string, pageUuid?: string, environment?: string, locale?: string, access?: string, token?: string, caraerExpires?: string, caraerSig?: string, xCaraerWebpageAccess?: string, authorization?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options).then((request) => request(axios, basePath)); }, /** * * @summary Installed apps and modules for a company\'s website build * @param {string} xCaraerSubdomain * @param {*} [options] Override http request option. * @throws {RequiredError} */ buildManifest(xCaraerSubdomain: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.buildManifest(xCaraerSubdomain, options).then((request) => request(axios, basePath)); }, /** * * @summary Navigation menus for the header and footer * @param {string} xCaraerSubdomain * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ menus(xCaraerSubdomain: string, environment?: string, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.menus(xCaraerSubdomain, environment, locale, options).then((request) => request(axios, basePath)); }, /** * * @summary A published page by URL path * @param {string} xCaraerSubdomain * @param {string} path * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {string} [environment] * @param {string} [locale] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ pageByPath(xCaraerSubdomain: string, path: string, xCaraerWebpageAccess?: string, authorization?: string, environment?: string, locale?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options).then((request) => request(axios, basePath)); }, /** * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet. * @summary A page by record uuid * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {string} [environment] * @param {string} [locale] * @param {string} [state] * @param {string} [access] * @param {string} [token] * @param {string} [caraerExpires] * @param {string} [caraerSig] * @param {*} [options] Override http request option. * @throws {RequiredError} */ pageByUuid(xCaraerSubdomain: string, uuid: string, xCaraerWebpageAccess?: string, authorization?: string, environment?: string, locale?: string, state?: string, access?: string, token?: string, caraerExpires?: string, caraerSig?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options).then((request) => request(axios, basePath)); }, /** * * @summary Protection info for a path, without the page document * @param {string} xCaraerSubdomain * @param {string} path * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ pageGate(xCaraerSubdomain: string, path: string, environment?: string, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.pageGate(xCaraerSubdomain, path, environment, locale, options).then((request) => request(axios, basePath)); }, /** * * @summary Published paths per environment, for sitemaps and cache warming * @param {string} xCaraerSubdomain * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ paths(xCaraerSubdomain: string, environment?: string, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.paths(xCaraerSubdomain, environment, locale, options).then((request) => request(axios, basePath)); }, /** * * @summary Public records visible in an environment * @param {string} xCaraerSubdomain * @param {{ [key: string]: any | null; }} requestBody * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ records(xCaraerSubdomain: string, requestBody: { [key: string]: any | null; }, environment?: string, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.records(xCaraerSubdomain, requestBody, environment, locale, options).then((request) => request(axios, basePath)); }, /** * * @summary Company settings, branding and locales * @param {string} xCaraerSubdomain * @param {*} [options] Override http request option. * @throws {RequiredError} */ settings(xCaraerSubdomain: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.settings(xCaraerSubdomain, options).then((request) => request(axios, basePath)); }, /** * * @summary Unlock a password-protected CMS v2 page * @param {string} xCaraerSubdomain * @param {string} uuid * @param {{ [key: string]: string; }} requestBody * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ unlock(xCaraerSubdomain: string, uuid: string, requestBody: { [key: string]: string; }, environment?: string, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options).then((request) => request(axios, basePath)); }, }; }; /** * CMSV2PublicApi - object-oriented interface */ export class CMSV2PublicApi extends BaseAPI { /** * * @summary Installed app settings with SECRET fields removed * @param {string} xCaraerSubdomain * @param {string} appName * @param {*} [options] Override http request option. * @throws {RequiredError} */ public appSettings(xCaraerSubdomain: string, appName: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).appSettings(xCaraerSubdomain, appName, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Redirect to a company file for the website runtime * @param {string} xCaraerSubdomain * @param {string} key * @param {string} [pageUuid] * @param {string} [environment] * @param {string} [locale] * @param {string} [access] * @param {string} [token] * @param {string} [caraerExpires] * @param {string} [caraerSig] * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public asset(xCaraerSubdomain: string, key: string, pageUuid?: string, environment?: string, locale?: string, access?: string, token?: string, caraerExpires?: string, caraerSig?: string, xCaraerWebpageAccess?: string, authorization?: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Installed apps and modules for a company\'s website build * @param {string} xCaraerSubdomain * @param {*} [options] Override http request option. * @throws {RequiredError} */ public buildManifest(xCaraerSubdomain: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).buildManifest(xCaraerSubdomain, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Navigation menus for the header and footer * @param {string} xCaraerSubdomain * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public menus(xCaraerSubdomain: string, environment?: string, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).menus(xCaraerSubdomain, environment, locale, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary A published page by URL path * @param {string} xCaraerSubdomain * @param {string} path * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {string} [environment] * @param {string} [locale] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public pageByPath(xCaraerSubdomain: string, path: string, xCaraerWebpageAccess?: string, authorization?: string, environment?: string, locale?: string, access?: string, token?: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options).then((request) => request(this.axios, this.basePath)); } /** * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet. * @summary A page by record uuid * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerWebpageAccess] * @param {string} [authorization] * @param {string} [environment] * @param {string} [locale] * @param {string} [state] * @param {string} [access] * @param {string} [token] * @param {string} [caraerExpires] * @param {string} [caraerSig] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public pageByUuid(xCaraerSubdomain: string, uuid: string, xCaraerWebpageAccess?: string, authorization?: string, environment?: string, locale?: string, state?: string, access?: string, token?: string, caraerExpires?: string, caraerSig?: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Protection info for a path, without the page document * @param {string} xCaraerSubdomain * @param {string} path * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public pageGate(xCaraerSubdomain: string, path: string, environment?: string, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).pageGate(xCaraerSubdomain, path, environment, locale, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Published paths per environment, for sitemaps and cache warming * @param {string} xCaraerSubdomain * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public paths(xCaraerSubdomain: string, environment?: string, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).paths(xCaraerSubdomain, environment, locale, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Public records visible in an environment * @param {string} xCaraerSubdomain * @param {{ [key: string]: any | null; }} requestBody * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public records(xCaraerSubdomain: string, requestBody: { [key: string]: any | null; }, environment?: string, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).records(xCaraerSubdomain, requestBody, environment, locale, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Company settings, branding and locales * @param {string} xCaraerSubdomain * @param {*} [options] Override http request option. * @throws {RequiredError} */ public settings(xCaraerSubdomain: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).settings(xCaraerSubdomain, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Unlock a password-protected CMS v2 page * @param {string} xCaraerSubdomain * @param {string} uuid * @param {{ [key: string]: string; }} requestBody * @param {string} [environment] * @param {string} [locale] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public unlock(xCaraerSubdomain: string, uuid: string, requestBody: { [key: string]: string; }, environment?: string, locale?: string, options?: RawAxiosRequestConfig) { return CMSV2PublicApiFp(this.configuration).unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options).then((request) => request(this.axios, this.basePath)); } } /** * CMSV2TransferApi - axios parameter creator */ export const CMSV2TransferApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Attach a manually created caraer-web project * @param {string} companyUuid * @param {{ [key: string]: string; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ attach: async (companyUuid: string, requestBody: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('attach', 'companyUuid', companyUuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('attach', 'requestBody', requestBody) const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer/attach` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ cutover: async (companyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('cutover', 'companyUuid', companyUuid) const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer/cutover` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Restore the live hostname to the stored v1 project * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ rollback: async (companyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('rollback', 'companyUuid', companyUuid) const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer/rollback` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Transfer status for one company * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ status: async (companyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('status', 'companyUuid', companyUuid) const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * CMSV2TransferApi - functional programming interface */ export const CMSV2TransferApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CMSV2TransferApiAxiosParamCreator(configuration) return { /** * * @summary Attach a manually created caraer-web project * @param {string} companyUuid * @param {{ [key: string]: string; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async attach(companyUuid: string, requestBody: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.attach(companyUuid, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2TransferApi.attach']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async cutover(companyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.cutover(companyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2TransferApi.cutover']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Restore the live hostname to the stored v1 project * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async rollback(companyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rollback(companyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2TransferApi.rollback']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Transfer status for one company * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async status(companyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.status(companyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CMSV2TransferApi.status']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * CMSV2TransferApi - factory interface */ export const CMSV2TransferApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = CMSV2TransferApiFp(configuration) return { /** * * @summary Attach a manually created caraer-web project * @param {string} companyUuid * @param {{ [key: string]: string; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ attach(companyUuid: string, requestBody: { [key: string]: string; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.attach(companyUuid, requestBody, options).then((request) => request(axios, basePath)); }, /** * * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ cutover(companyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.cutover(companyUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary Restore the live hostname to the stored v1 project * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ rollback(companyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rollback(companyUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary Transfer status for one company * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ status(companyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.status(companyUuid, options).then((request) => request(axios, basePath)); }, }; }; /** * CMSV2TransferApi - object-oriented interface */ export class CMSV2TransferApi extends BaseAPI { /** * * @summary Attach a manually created caraer-web project * @param {string} companyUuid * @param {{ [key: string]: string; }} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ public attach(companyUuid: string, requestBody: { [key: string]: string; }, options?: RawAxiosRequestConfig) { return CMSV2TransferApiFp(this.configuration).attach(companyUuid, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public cutover(companyUuid: string, options?: RawAxiosRequestConfig) { return CMSV2TransferApiFp(this.configuration).cutover(companyUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Restore the live hostname to the stored v1 project * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public rollback(companyUuid: string, options?: RawAxiosRequestConfig) { return CMSV2TransferApiFp(this.configuration).rollback(companyUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Transfer status for one company * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public status(companyUuid: string, options?: RawAxiosRequestConfig) { return CMSV2TransferApiFp(this.configuration).status(companyUuid, options).then((request) => request(this.axios, this.basePath)); } } /** * CalendarsApi - axios parameter creator */ export const CalendarsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Ensure calendar schema, default calendar, and event backfill * @param {*} [options] Override http request option. * @throws {RequiredError} */ bootstrap: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/calendars/bootstrap`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create a calendar owned by the current user * @param {CalendarCreateRequest} calendarCreateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ create4: async (calendarCreateRequest: CalendarCreateRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'calendarCreateRequest' is not null or undefined assertParamExists('create4', 'calendarCreateRequest', calendarCreateRequest) const localVarPath = `/api/v2/calendars`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(calendarCreateRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List calendars visible to the current company * @param {*} [options] Override http request option. * @throws {RequiredError} */ list3: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/calendars`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List teams that can be linked to a calendar * @param {*} [options] Override http request option. * @throws {RequiredError} */ listTeams: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/calendars/teams`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * CalendarsApi - functional programming interface */ export const CalendarsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CalendarsApiAxiosParamCreator(configuration) return { /** * * @summary Ensure calendar schema, default calendar, and event backfill * @param {*} [options] Override http request option. * @throws {RequiredError} */ async bootstrap(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.bootstrap(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CalendarsApi.bootstrap']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create a calendar owned by the current user * @param {CalendarCreateRequest} calendarCreateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async create4(calendarCreateRequest: CalendarCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.create4(calendarCreateRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CalendarsApi.create4']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List calendars visible to the current company * @param {*} [options] Override http request option. * @throws {RequiredError} */ async list3(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.list3(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CalendarsApi.list3']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List teams that can be linked to a calendar * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listTeams(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listTeams(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CalendarsApi.listTeams']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * CalendarsApi - factory interface */ export const CalendarsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = CalendarsApiFp(configuration) return { /** * * @summary Ensure calendar schema, default calendar, and event backfill * @param {*} [options] Override http request option. * @throws {RequiredError} */ bootstrap(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.bootstrap(options).then((request) => request(axios, basePath)); }, /** * * @summary Create a calendar owned by the current user * @param {CalendarCreateRequest} calendarCreateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ create4(calendarCreateRequest: CalendarCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.create4(calendarCreateRequest, options).then((request) => request(axios, basePath)); }, /** * * @summary List calendars visible to the current company * @param {*} [options] Override http request option. * @throws {RequiredError} */ list3(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.list3(options).then((request) => request(axios, basePath)); }, /** * * @summary List teams that can be linked to a calendar * @param {*} [options] Override http request option. * @throws {RequiredError} */ listTeams(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listTeams(options).then((request) => request(axios, basePath)); }, }; }; /** * CalendarsApi - object-oriented interface */ export class CalendarsApi extends BaseAPI { /** * * @summary Ensure calendar schema, default calendar, and event backfill * @param {*} [options] Override http request option. * @throws {RequiredError} */ public bootstrap(options?: RawAxiosRequestConfig) { return CalendarsApiFp(this.configuration).bootstrap(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create a calendar owned by the current user * @param {CalendarCreateRequest} calendarCreateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public create4(calendarCreateRequest: CalendarCreateRequest, options?: RawAxiosRequestConfig) { return CalendarsApiFp(this.configuration).create4(calendarCreateRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List calendars visible to the current company * @param {*} [options] Override http request option. * @throws {RequiredError} */ public list3(options?: RawAxiosRequestConfig) { return CalendarsApiFp(this.configuration).list3(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List teams that can be linked to a calendar * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listTeams(options?: RawAxiosRequestConfig) { return CalendarsApiFp(this.configuration).listTeams(options).then((request) => request(this.axios, this.basePath)); } } /** * CompanyApi - axios parameter creator */ export const CompanyApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a new company based on the provided request data. * @summary Create a new company * @param {CreateCompanyRequest} createCompanyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCompany: async (createCompanyRequest: CreateCompanyRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createCompanyRequest' is not null or undefined assertParamExists('createCompany', 'createCompanyRequest', createCompanyRequest) const localVarPath = `/api/v2/company/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createCompanyRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the company currently selected by the logged-in user. Requires TOOLS_COMPANY_SETTINGS_READ scope. * @summary Get current company * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCompany: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/company/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a company by its UUID. Requires TOOLS_COMPANY_SETTINGS_READ scope. * @summary Get company by UUID * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCompanyByUuid: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('getCompanyByUuid', 'uuid', uuid) const localVarPath = `/api/v2/company/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the digital identity (branding) for the company currently selected by the logged-in user. * @summary Get digital identity * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDigitalIdentity: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/company/digital-identity`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the home analytics dashboard for a suite. Empty dashboard when none is saved. * @summary Get suite dashboard * @param {string} suiteName * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSuiteDashboard: async (suiteName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'suiteName' is not null or undefined assertParamExists('getSuiteDashboard', 'suiteName', suiteName) const localVarPath = `/api/v2/company/suite-dashboards/{suiteName}` .replace('{suiteName}', encodeURIComponent(String(suiteName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns all home analytics dashboards keyed by suite name for the selected company. * @summary List suite dashboards * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSuiteDashboards: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/company/suite-dashboards`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the website settings for the company currently selected by the logged-in user. * @summary Get website settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebsiteSettings: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/company/website-settings`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Clears the per-company webhook circuit breaker so outbound deliveries resume immediately. * @summary Resume webhook dispatch * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ resumeWebhookDispatch: async (companyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('resumeWebhookDispatch', 'companyUuid', companyUuid) const localVarPath = `/api/v2/company/{companyUuid}/webhooks/resume` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates a company by UUID. Request body should contain the company fields to update. * @summary Update company * @param {string} uuid * @param {CompanyDTO} companyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCompany: async (uuid: string, companyDTO: CompanyDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('updateCompany', 'uuid', uuid) // verify required parameter 'companyDTO' is not null or undefined assertParamExists('updateCompany', 'companyDTO', companyDTO) const localVarPath = `/api/v2/company/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(companyDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the digital identity (branding) for the company currently selected by the logged-in user. * @summary Update digital identity * @param {DigitalIdentityDTO} digitalIdentityDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateDigitalIdentity: async (digitalIdentityDTO: DigitalIdentityDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'digitalIdentityDTO' is not null or undefined assertParamExists('updateDigitalIdentity', 'digitalIdentityDTO', digitalIdentityDTO) const localVarPath = `/api/v2/company/digital-identity`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(digitalIdentityDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates or replaces the home analytics dashboard for a suite. * @summary Update suite dashboard * @param {string} suiteName * @param {AnalyticsDashboardConfig} analyticsDashboardConfig * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSuiteDashboard: async (suiteName: string, analyticsDashboardConfig: AnalyticsDashboardConfig, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'suiteName' is not null or undefined assertParamExists('updateSuiteDashboard', 'suiteName', suiteName) // verify required parameter 'analyticsDashboardConfig' is not null or undefined assertParamExists('updateSuiteDashboard', 'analyticsDashboardConfig', analyticsDashboardConfig) const localVarPath = `/api/v2/company/suite-dashboards/{suiteName}` .replace('{suiteName}', encodeURIComponent(String(suiteName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(analyticsDashboardConfig, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the website settings for the company currently selected by the logged-in user. * @summary Update website settings * @param {WebsiteSettingsDTO} websiteSettingsDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateWebsiteSettings: async (websiteSettingsDTO: WebsiteSettingsDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'websiteSettingsDTO' is not null or undefined assertParamExists('updateWebsiteSettings', 'websiteSettingsDTO', websiteSettingsDTO) const localVarPath = `/api/v2/company/website-settings`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(websiteSettingsDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Uploads a font file to S3 storage and returns the public URL. * @summary Upload a font file * @param {File} file * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFont: async (file: File, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'file' is not null or undefined assertParamExists('uploadFont', 'file', file) const localVarPath = `/api/v2/company/uploadFont`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (file !== undefined) { localVarFormParams.append('file', file as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * CompanyApi - functional programming interface */ export const CompanyApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CompanyApiAxiosParamCreator(configuration) return { /** * Creates a new company based on the provided request data. * @summary Create a new company * @param {CreateCompanyRequest} createCompanyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createCompany(createCompanyRequest: CreateCompanyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCompany(createCompanyRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompany']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the company currently selected by the logged-in user. Requires TOOLS_COMPANY_SETTINGS_READ scope. * @summary Get current company * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCompany(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCompany(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompany']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns a company by its UUID. Requires TOOLS_COMPANY_SETTINGS_READ scope. * @summary Get company by UUID * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCompanyByUuid(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyByUuid(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyByUuid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the digital identity (branding) for the company currently selected by the logged-in user. * @summary Get digital identity * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDigitalIdentity(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDigitalIdentity(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.getDigitalIdentity']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the home analytics dashboard for a suite. Empty dashboard when none is saved. * @summary Get suite dashboard * @param {string} suiteName * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSuiteDashboard(suiteName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSuiteDashboard(suiteName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.getSuiteDashboard']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns all home analytics dashboards keyed by suite name for the selected company. * @summary List suite dashboards * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSuiteDashboards(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSuiteDashboards(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.getSuiteDashboards']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the website settings for the company currently selected by the logged-in user. * @summary Get website settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getWebsiteSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWebsiteSettings(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.getWebsiteSettings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Clears the per-company webhook circuit breaker so outbound deliveries resume immediately. * @summary Resume webhook dispatch * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async resumeWebhookDispatch(companyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.resumeWebhookDispatch(companyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.resumeWebhookDispatch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates a company by UUID. Request body should contain the company fields to update. * @summary Update company * @param {string} uuid * @param {CompanyDTO} companyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateCompany(uuid: string, companyDTO: CompanyDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompany(uuid, companyDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.updateCompany']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates the digital identity (branding) for the company currently selected by the logged-in user. * @summary Update digital identity * @param {DigitalIdentityDTO} digitalIdentityDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateDigitalIdentity(digitalIdentityDTO: DigitalIdentityDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateDigitalIdentity(digitalIdentityDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.updateDigitalIdentity']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates or replaces the home analytics dashboard for a suite. * @summary Update suite dashboard * @param {string} suiteName * @param {AnalyticsDashboardConfig} analyticsDashboardConfig * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateSuiteDashboard(suiteName: string, analyticsDashboardConfig: AnalyticsDashboardConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateSuiteDashboard(suiteName, analyticsDashboardConfig, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.updateSuiteDashboard']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates the website settings for the company currently selected by the logged-in user. * @summary Update website settings * @param {WebsiteSettingsDTO} websiteSettingsDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateWebsiteSettings(websiteSettingsDTO: WebsiteSettingsDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateWebsiteSettings(websiteSettingsDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.updateWebsiteSettings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Uploads a font file to S3 storage and returns the public URL. * @summary Upload a font file * @param {File} file * @param {*} [options] Override http request option. * @throws {RequiredError} */ async uploadFont(file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFont(file, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CompanyApi.uploadFont']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * CompanyApi - factory interface */ export const CompanyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = CompanyApiFp(configuration) return { /** * Creates a new company based on the provided request data. * @summary Create a new company * @param {CreateCompanyRequest} createCompanyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCompany(createCompanyRequest: CreateCompanyRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createCompany(createCompanyRequest, options).then((request) => request(axios, basePath)); }, /** * Returns the company currently selected by the logged-in user. Requires TOOLS_COMPANY_SETTINGS_READ scope. * @summary Get current company * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCompany(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCompany(options).then((request) => request(axios, basePath)); }, /** * Returns a company by its UUID. Requires TOOLS_COMPANY_SETTINGS_READ scope. * @summary Get company by UUID * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCompanyByUuid(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCompanyByUuid(uuid, options).then((request) => request(axios, basePath)); }, /** * Returns the digital identity (branding) for the company currently selected by the logged-in user. * @summary Get digital identity * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDigitalIdentity(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDigitalIdentity(options).then((request) => request(axios, basePath)); }, /** * Returns the home analytics dashboard for a suite. Empty dashboard when none is saved. * @summary Get suite dashboard * @param {string} suiteName * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSuiteDashboard(suiteName: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSuiteDashboard(suiteName, options).then((request) => request(axios, basePath)); }, /** * Returns all home analytics dashboards keyed by suite name for the selected company. * @summary List suite dashboards * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSuiteDashboards(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSuiteDashboards(options).then((request) => request(axios, basePath)); }, /** * Returns the website settings for the company currently selected by the logged-in user. * @summary Get website settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebsiteSettings(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWebsiteSettings(options).then((request) => request(axios, basePath)); }, /** * Clears the per-company webhook circuit breaker so outbound deliveries resume immediately. * @summary Resume webhook dispatch * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ resumeWebhookDispatch(companyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.resumeWebhookDispatch(companyUuid, options).then((request) => request(axios, basePath)); }, /** * Updates a company by UUID. Request body should contain the company fields to update. * @summary Update company * @param {string} uuid * @param {CompanyDTO} companyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCompany(uuid: string, companyDTO: CompanyDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateCompany(uuid, companyDTO, options).then((request) => request(axios, basePath)); }, /** * Updates the digital identity (branding) for the company currently selected by the logged-in user. * @summary Update digital identity * @param {DigitalIdentityDTO} digitalIdentityDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateDigitalIdentity(digitalIdentityDTO: DigitalIdentityDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateDigitalIdentity(digitalIdentityDTO, options).then((request) => request(axios, basePath)); }, /** * Creates or replaces the home analytics dashboard for a suite. * @summary Update suite dashboard * @param {string} suiteName * @param {AnalyticsDashboardConfig} analyticsDashboardConfig * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSuiteDashboard(suiteName: string, analyticsDashboardConfig: AnalyticsDashboardConfig, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateSuiteDashboard(suiteName, analyticsDashboardConfig, options).then((request) => request(axios, basePath)); }, /** * Updates the website settings for the company currently selected by the logged-in user. * @summary Update website settings * @param {WebsiteSettingsDTO} websiteSettingsDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateWebsiteSettings(websiteSettingsDTO: WebsiteSettingsDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateWebsiteSettings(websiteSettingsDTO, options).then((request) => request(axios, basePath)); }, /** * Uploads a font file to S3 storage and returns the public URL. * @summary Upload a font file * @param {File} file * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFont(file: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFont(file, options).then((request) => request(axios, basePath)); }, }; }; /** * CompanyApi - object-oriented interface */ export class CompanyApi extends BaseAPI { /** * Creates a new company based on the provided request data. * @summary Create a new company * @param {CreateCompanyRequest} createCompanyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createCompany(createCompanyRequest: CreateCompanyRequest, options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).createCompany(createCompanyRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Returns the company currently selected by the logged-in user. Requires TOOLS_COMPANY_SETTINGS_READ scope. * @summary Get current company * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getCompany(options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).getCompany(options).then((request) => request(this.axios, this.basePath)); } /** * Returns a company by its UUID. Requires TOOLS_COMPANY_SETTINGS_READ scope. * @summary Get company by UUID * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getCompanyByUuid(uuid: string, options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).getCompanyByUuid(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Returns the digital identity (branding) for the company currently selected by the logged-in user. * @summary Get digital identity * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getDigitalIdentity(options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).getDigitalIdentity(options).then((request) => request(this.axios, this.basePath)); } /** * Returns the home analytics dashboard for a suite. Empty dashboard when none is saved. * @summary Get suite dashboard * @param {string} suiteName * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getSuiteDashboard(suiteName: string, options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).getSuiteDashboard(suiteName, options).then((request) => request(this.axios, this.basePath)); } /** * Returns all home analytics dashboards keyed by suite name for the selected company. * @summary List suite dashboards * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getSuiteDashboards(options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).getSuiteDashboards(options).then((request) => request(this.axios, this.basePath)); } /** * Returns the website settings for the company currently selected by the logged-in user. * @summary Get website settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getWebsiteSettings(options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).getWebsiteSettings(options).then((request) => request(this.axios, this.basePath)); } /** * Clears the per-company webhook circuit breaker so outbound deliveries resume immediately. * @summary Resume webhook dispatch * @param {string} companyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public resumeWebhookDispatch(companyUuid: string, options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).resumeWebhookDispatch(companyUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Updates a company by UUID. Request body should contain the company fields to update. * @summary Update company * @param {string} uuid * @param {CompanyDTO} companyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateCompany(uuid: string, companyDTO: CompanyDTO, options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).updateCompany(uuid, companyDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Updates the digital identity (branding) for the company currently selected by the logged-in user. * @summary Update digital identity * @param {DigitalIdentityDTO} digitalIdentityDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateDigitalIdentity(digitalIdentityDTO: DigitalIdentityDTO, options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).updateDigitalIdentity(digitalIdentityDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Creates or replaces the home analytics dashboard for a suite. * @summary Update suite dashboard * @param {string} suiteName * @param {AnalyticsDashboardConfig} analyticsDashboardConfig * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateSuiteDashboard(suiteName: string, analyticsDashboardConfig: AnalyticsDashboardConfig, options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).updateSuiteDashboard(suiteName, analyticsDashboardConfig, options).then((request) => request(this.axios, this.basePath)); } /** * Updates the website settings for the company currently selected by the logged-in user. * @summary Update website settings * @param {WebsiteSettingsDTO} websiteSettingsDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateWebsiteSettings(websiteSettingsDTO: WebsiteSettingsDTO, options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).updateWebsiteSettings(websiteSettingsDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Uploads a font file to S3 storage and returns the public URL. * @summary Upload a font file * @param {File} file * @param {*} [options] Override http request option. * @throws {RequiredError} */ public uploadFont(file: File, options?: RawAxiosRequestConfig) { return CompanyApiFp(this.configuration).uploadFont(file, options).then((request) => request(this.axios, this.basePath)); } } /** * DeveloperProjectsApi - axios parameter creator */ export const DeveloperProjectsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a developer project linked to the given app, or returns the existing one if already linked. Creator company only. * @summary Create or fetch a developer project * @param {CreateDeveloperProjectRequest} createDeveloperProjectRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ create2: async (createDeveloperProjectRequest: CreateDeveloperProjectRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createDeveloperProjectRequest' is not null or undefined assertParamExists('create2', 'createDeveloperProjectRequest', createDeveloperProjectRequest) const localVarPath = `/api/v2/developer-projects`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createDeveloperProjectRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Decodes a base64-encoded project archive, parses its manifest, uploads it to Cloud Storage, and records an immutable build. * @summary Upload a project build * @param {string} projectUuid UUID of the developer project * @param {CreateProjectBuildRequest} createProjectBuildRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBuild: async (projectUuid: string, createProjectBuildRequest: CreateProjectBuildRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectUuid' is not null or undefined assertParamExists('createBuild', 'projectUuid', projectUuid) // verify required parameter 'createProjectBuildRequest' is not null or undefined assertParamExists('createBuild', 'createProjectBuildRequest', createProjectBuildRequest) const localVarPath = `/api/v2/developer-projects/{projectUuid}/builds` .replace('{projectUuid}', encodeURIComponent(String(projectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createProjectBuildRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Reconciles the build\'s manifest (app details, serverless functions, webhooks, schedules, inbound routes, external OAuth providers) against the linked app. Set prune=true to soft-delete remote resources absent from the archive. * @summary Deploy a project build * @param {string} projectUuid UUID of the developer project * @param {string} buildUuid UUID of the build to deploy * @param {DeployBuildRequest} [deployBuildRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ deploy: async (projectUuid: string, buildUuid: string, deployBuildRequest?: DeployBuildRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectUuid' is not null or undefined assertParamExists('deploy', 'projectUuid', projectUuid) // verify required parameter 'buildUuid' is not null or undefined assertParamExists('deploy', 'buildUuid', buildUuid) const localVarPath = `/api/v2/developer-projects/{projectUuid}/builds/{buildUuid}/deploy` .replace('{projectUuid}', encodeURIComponent(String(projectUuid))) .replace('{buildUuid}', encodeURIComponent(String(buildUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(deployBuildRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a project build * @param {string} projectUuid UUID of the developer project * @param {string} buildUuid UUID of the build * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBuild: async (projectUuid: string, buildUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectUuid' is not null or undefined assertParamExists('getBuild', 'projectUuid', projectUuid) // verify required parameter 'buildUuid' is not null or undefined assertParamExists('getBuild', 'buildUuid', buildUuid) const localVarPath = `/api/v2/developer-projects/{projectUuid}/builds/{buildUuid}` .replace('{projectUuid}', encodeURIComponent(String(projectUuid))) .replace('{buildUuid}', encodeURIComponent(String(buildUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List project builds * @param {string} projectUuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBuilds: async (projectUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectUuid' is not null or undefined assertParamExists('listBuilds', 'projectUuid', projectUuid) const localVarPath = `/api/v2/developer-projects/{projectUuid}/builds` .replace('{projectUuid}', encodeURIComponent(String(projectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List project deploys * @param {string} projectUuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDeploys: async (projectUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectUuid' is not null or undefined assertParamExists('listDeploys', 'projectUuid', projectUuid) const localVarPath = `/api/v2/developer-projects/{projectUuid}/deploys` .replace('{projectUuid}', encodeURIComponent(String(projectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a developer project * @param {string} uuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ show3: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('show3', 'uuid', uuid) const localVarPath = `/api/v2/developer-projects/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * DeveloperProjectsApi - functional programming interface */ export const DeveloperProjectsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = DeveloperProjectsApiAxiosParamCreator(configuration) return { /** * Creates a developer project linked to the given app, or returns the existing one if already linked. Creator company only. * @summary Create or fetch a developer project * @param {CreateDeveloperProjectRequest} createDeveloperProjectRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async create2(createDeveloperProjectRequest: CreateDeveloperProjectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.create2(createDeveloperProjectRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DeveloperProjectsApi.create2']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Decodes a base64-encoded project archive, parses its manifest, uploads it to Cloud Storage, and records an immutable build. * @summary Upload a project build * @param {string} projectUuid UUID of the developer project * @param {CreateProjectBuildRequest} createProjectBuildRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createBuild(projectUuid: string, createProjectBuildRequest: CreateProjectBuildRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createBuild(projectUuid, createProjectBuildRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DeveloperProjectsApi.createBuild']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Reconciles the build\'s manifest (app details, serverless functions, webhooks, schedules, inbound routes, external OAuth providers) against the linked app. Set prune=true to soft-delete remote resources absent from the archive. * @summary Deploy a project build * @param {string} projectUuid UUID of the developer project * @param {string} buildUuid UUID of the build to deploy * @param {DeployBuildRequest} [deployBuildRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deploy(projectUuid: string, buildUuid: string, deployBuildRequest?: DeployBuildRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deploy(projectUuid, buildUuid, deployBuildRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DeveloperProjectsApi.deploy']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a project build * @param {string} projectUuid UUID of the developer project * @param {string} buildUuid UUID of the build * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getBuild(projectUuid: string, buildUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getBuild(projectUuid, buildUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DeveloperProjectsApi.getBuild']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List project builds * @param {string} projectUuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listBuilds(projectUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listBuilds(projectUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DeveloperProjectsApi.listBuilds']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List project deploys * @param {string} projectUuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listDeploys(projectUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listDeploys(projectUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DeveloperProjectsApi.listDeploys']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a developer project * @param {string} uuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ async show3(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.show3(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DeveloperProjectsApi.show3']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * DeveloperProjectsApi - factory interface */ export const DeveloperProjectsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = DeveloperProjectsApiFp(configuration) return { /** * Creates a developer project linked to the given app, or returns the existing one if already linked. Creator company only. * @summary Create or fetch a developer project * @param {CreateDeveloperProjectRequest} createDeveloperProjectRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ create2(createDeveloperProjectRequest: CreateDeveloperProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.create2(createDeveloperProjectRequest, options).then((request) => request(axios, basePath)); }, /** * Decodes a base64-encoded project archive, parses its manifest, uploads it to Cloud Storage, and records an immutable build. * @summary Upload a project build * @param {string} projectUuid UUID of the developer project * @param {CreateProjectBuildRequest} createProjectBuildRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBuild(projectUuid: string, createProjectBuildRequest: CreateProjectBuildRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createBuild(projectUuid, createProjectBuildRequest, options).then((request) => request(axios, basePath)); }, /** * Reconciles the build\'s manifest (app details, serverless functions, webhooks, schedules, inbound routes, external OAuth providers) against the linked app. Set prune=true to soft-delete remote resources absent from the archive. * @summary Deploy a project build * @param {string} projectUuid UUID of the developer project * @param {string} buildUuid UUID of the build to deploy * @param {DeployBuildRequest} [deployBuildRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ deploy(projectUuid: string, buildUuid: string, deployBuildRequest?: DeployBuildRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deploy(projectUuid, buildUuid, deployBuildRequest, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a project build * @param {string} projectUuid UUID of the developer project * @param {string} buildUuid UUID of the build * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBuild(projectUuid: string, buildUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getBuild(projectUuid, buildUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary List project builds * @param {string} projectUuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBuilds(projectUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listBuilds(projectUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary List project deploys * @param {string} projectUuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDeploys(projectUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listDeploys(projectUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a developer project * @param {string} uuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ show3(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.show3(uuid, options).then((request) => request(axios, basePath)); }, }; }; /** * DeveloperProjectsApi - object-oriented interface */ export class DeveloperProjectsApi extends BaseAPI { /** * Creates a developer project linked to the given app, or returns the existing one if already linked. Creator company only. * @summary Create or fetch a developer project * @param {CreateDeveloperProjectRequest} createDeveloperProjectRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public create2(createDeveloperProjectRequest: CreateDeveloperProjectRequest, options?: RawAxiosRequestConfig) { return DeveloperProjectsApiFp(this.configuration).create2(createDeveloperProjectRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Decodes a base64-encoded project archive, parses its manifest, uploads it to Cloud Storage, and records an immutable build. * @summary Upload a project build * @param {string} projectUuid UUID of the developer project * @param {CreateProjectBuildRequest} createProjectBuildRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createBuild(projectUuid: string, createProjectBuildRequest: CreateProjectBuildRequest, options?: RawAxiosRequestConfig) { return DeveloperProjectsApiFp(this.configuration).createBuild(projectUuid, createProjectBuildRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Reconciles the build\'s manifest (app details, serverless functions, webhooks, schedules, inbound routes, external OAuth providers) against the linked app. Set prune=true to soft-delete remote resources absent from the archive. * @summary Deploy a project build * @param {string} projectUuid UUID of the developer project * @param {string} buildUuid UUID of the build to deploy * @param {DeployBuildRequest} [deployBuildRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deploy(projectUuid: string, buildUuid: string, deployBuildRequest?: DeployBuildRequest, options?: RawAxiosRequestConfig) { return DeveloperProjectsApiFp(this.configuration).deploy(projectUuid, buildUuid, deployBuildRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a project build * @param {string} projectUuid UUID of the developer project * @param {string} buildUuid UUID of the build * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getBuild(projectUuid: string, buildUuid: string, options?: RawAxiosRequestConfig) { return DeveloperProjectsApiFp(this.configuration).getBuild(projectUuid, buildUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List project builds * @param {string} projectUuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listBuilds(projectUuid: string, options?: RawAxiosRequestConfig) { return DeveloperProjectsApiFp(this.configuration).listBuilds(projectUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List project deploys * @param {string} projectUuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listDeploys(projectUuid: string, options?: RawAxiosRequestConfig) { return DeveloperProjectsApiFp(this.configuration).listDeploys(projectUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a developer project * @param {string} uuid UUID of the developer project * @param {*} [options] Override http request option. * @throws {RequiredError} */ public show3(uuid: string, options?: RawAxiosRequestConfig) { return DeveloperProjectsApiFp(this.configuration).show3(uuid, options).then((request) => request(this.axios, this.basePath)); } } /** * DeveloperSandboxesApi - axios parameter creator */ export const DeveloperSandboxesApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Clones the selected company\'s Neo4j database (no new Company node). Activate with X-Caraer-Sandbox-Uuid; company identity stays the owner. * @summary Create a developer sandbox * @param {CreateDeveloperSandboxRequest} createDeveloperSandboxRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ create1: async (createDeveloperSandboxRequest: CreateDeveloperSandboxRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createDeveloperSandboxRequest' is not null or undefined assertParamExists('create1', 'createDeveloperSandboxRequest', createDeveloperSandboxRequest) const localVarPath = `/api/v2/developer-sandboxes`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createDeveloperSandboxRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Lists sandboxes owned by the caller\'s selected company. * @summary List developer sandboxes * @param {*} [options] Override http request option. * @throws {RequiredError} */ list1: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/developer-sandboxes`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a developer sandbox * @param {string} uuid UUID of the sandbox * @param {*} [options] Override http request option. * @throws {RequiredError} */ show2: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('show2', 'uuid', uuid) const localVarPath = `/api/v2/developer-sandboxes/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * DeveloperSandboxesApi - functional programming interface */ export const DeveloperSandboxesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = DeveloperSandboxesApiAxiosParamCreator(configuration) return { /** * Clones the selected company\'s Neo4j database (no new Company node). Activate with X-Caraer-Sandbox-Uuid; company identity stays the owner. * @summary Create a developer sandbox * @param {CreateDeveloperSandboxRequest} createDeveloperSandboxRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async create1(createDeveloperSandboxRequest: CreateDeveloperSandboxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.create1(createDeveloperSandboxRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DeveloperSandboxesApi.create1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Lists sandboxes owned by the caller\'s selected company. * @summary List developer sandboxes * @param {*} [options] Override http request option. * @throws {RequiredError} */ async list1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.list1(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DeveloperSandboxesApi.list1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a developer sandbox * @param {string} uuid UUID of the sandbox * @param {*} [options] Override http request option. * @throws {RequiredError} */ async show2(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.show2(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DeveloperSandboxesApi.show2']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * DeveloperSandboxesApi - factory interface */ export const DeveloperSandboxesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = DeveloperSandboxesApiFp(configuration) return { /** * Clones the selected company\'s Neo4j database (no new Company node). Activate with X-Caraer-Sandbox-Uuid; company identity stays the owner. * @summary Create a developer sandbox * @param {CreateDeveloperSandboxRequest} createDeveloperSandboxRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ create1(createDeveloperSandboxRequest: CreateDeveloperSandboxRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.create1(createDeveloperSandboxRequest, options).then((request) => request(axios, basePath)); }, /** * Lists sandboxes owned by the caller\'s selected company. * @summary List developer sandboxes * @param {*} [options] Override http request option. * @throws {RequiredError} */ list1(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.list1(options).then((request) => request(axios, basePath)); }, /** * * @summary Get a developer sandbox * @param {string} uuid UUID of the sandbox * @param {*} [options] Override http request option. * @throws {RequiredError} */ show2(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.show2(uuid, options).then((request) => request(axios, basePath)); }, }; }; /** * DeveloperSandboxesApi - object-oriented interface */ export class DeveloperSandboxesApi extends BaseAPI { /** * Clones the selected company\'s Neo4j database (no new Company node). Activate with X-Caraer-Sandbox-Uuid; company identity stays the owner. * @summary Create a developer sandbox * @param {CreateDeveloperSandboxRequest} createDeveloperSandboxRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public create1(createDeveloperSandboxRequest: CreateDeveloperSandboxRequest, options?: RawAxiosRequestConfig) { return DeveloperSandboxesApiFp(this.configuration).create1(createDeveloperSandboxRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Lists sandboxes owned by the caller\'s selected company. * @summary List developer sandboxes * @param {*} [options] Override http request option. * @throws {RequiredError} */ public list1(options?: RawAxiosRequestConfig) { return DeveloperSandboxesApiFp(this.configuration).list1(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a developer sandbox * @param {string} uuid UUID of the sandbox * @param {*} [options] Override http request option. * @throws {RequiredError} */ public show2(uuid: string, options?: RawAxiosRequestConfig) { return DeveloperSandboxesApiFp(this.configuration).show2(uuid, options).then((request) => request(this.axios, this.basePath)); } } /** * FeedsApi - axios parameter creator */ export const FeedsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary List feeds * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ index1: async (paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('index1', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/feeds/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * FeedsApi - functional programming interface */ export const FeedsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = FeedsApiAxiosParamCreator(configuration) return { /** * * @summary List feeds * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async index1(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.index1(paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FeedsApi.index1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * FeedsApi - factory interface */ export const FeedsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = FeedsApiFp(configuration) return { /** * * @summary List feeds * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ index1(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.index1(paginationRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * FeedsApi - object-oriented interface */ export class FeedsApi extends BaseAPI { /** * * @summary List feeds * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public index1(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return FeedsApiFp(this.configuration).index1(paginationRequest, options).then((request) => request(this.axios, this.basePath)); } } /** * FileManagementApi - axios parameter creator */ export const FileManagementApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Deletes a file from the S3-compatible storage identified by its unique key. * @summary Delete file * @param {string} key The key of the file to delete. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile: async (key: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'key' is not null or undefined assertParamExists('deleteFile', 'key', key) const localVarPath = `/api/v2/files/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (key !== undefined) { localVarQueryParameter['key'] = key; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Generates a pre-signed URL to download a file stored in S3-compatible storage. The URL expiry time and download behavior can be specified using the query parameters. * @summary Download file * @param {string} key The key of the file to download. * @param {number} [expireAfter] The URL expiry period in seconds. * @param {boolean} [download] Whether to download the file in the browser. * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile: async (key: string, expireAfter?: number, download?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'key' is not null or undefined assertParamExists('downloadFile', 'key', key) const localVarPath = `/api/v2/files/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (key !== undefined) { localVarQueryParameter['key'] = key; } if (expireAfter !== undefined) { localVarQueryParameter['expireAfter'] = expireAfter; } if (download !== undefined) { localVarQueryParameter['download'] = download; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Lists all files stored in the system or, if a record UUID is provided, lists the files related to that record. * @summary List files * @param {string} [recordUuid] An optional record UUID to filter files. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listFiles: async (recordUuid?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/files/list`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (recordUuid !== undefined) { localVarQueryParameter['recordUuid'] = recordUuid; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List company files with metadata for the media library * @param {string} [recordUuid] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listLibrary: async (recordUuid?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/files/library`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (recordUuid !== undefined) { localVarQueryParameter['recordUuid'] = recordUuid; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Uploads multiple files to an S3-compatible storage and returns their unique keys. The request must contain one or more files in multipart/form-data format. * @summary Upload files * @param {string} [recordUuid] Optional record UUID to directly link uploaded files as attachments. * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile2: async (recordUuid?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/files/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (recordUuid !== undefined) { localVarQueryParameter['recordUuid'] = recordUuid; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * FileManagementApi - functional programming interface */ export const FileManagementApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = FileManagementApiAxiosParamCreator(configuration) return { /** * Deletes a file from the S3-compatible storage identified by its unique key. * @summary Delete file * @param {string} key The key of the file to delete. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteFile(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFile(key, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FileManagementApi.deleteFile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Generates a pre-signed URL to download a file stored in S3-compatible storage. The URL expiry time and download behavior can be specified using the query parameters. * @summary Download file * @param {string} key The key of the file to download. * @param {number} [expireAfter] The URL expiry period in seconds. * @param {boolean} [download] Whether to download the file in the browser. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async downloadFile(key: string, expireAfter?: number, download?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(key, expireAfter, download, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FileManagementApi.downloadFile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Lists all files stored in the system or, if a record UUID is provided, lists the files related to that record. * @summary List files * @param {string} [recordUuid] An optional record UUID to filter files. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listFiles(recordUuid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(recordUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FileManagementApi.listFiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List company files with metadata for the media library * @param {string} [recordUuid] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listLibrary(recordUuid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listLibrary(recordUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FileManagementApi.listLibrary']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Uploads multiple files to an S3-compatible storage and returns their unique keys. The request must contain one or more files in multipart/form-data format. * @summary Upload files * @param {string} [recordUuid] Optional record UUID to directly link uploaded files as attachments. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async uploadFile2(recordUuid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile2(recordUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FileManagementApi.uploadFile2']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * FileManagementApi - factory interface */ export const FileManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = FileManagementApiFp(configuration) return { /** * Deletes a file from the S3-compatible storage identified by its unique key. * @summary Delete file * @param {string} key The key of the file to delete. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile(key: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteFile(key, options).then((request) => request(axios, basePath)); }, /** * Generates a pre-signed URL to download a file stored in S3-compatible storage. The URL expiry time and download behavior can be specified using the query parameters. * @summary Download file * @param {string} key The key of the file to download. * @param {number} [expireAfter] The URL expiry period in seconds. * @param {boolean} [download] Whether to download the file in the browser. * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile(key: string, expireAfter?: number, download?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.downloadFile(key, expireAfter, download, options).then((request) => request(axios, basePath)); }, /** * Lists all files stored in the system or, if a record UUID is provided, lists the files related to that record. * @summary List files * @param {string} [recordUuid] An optional record UUID to filter files. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listFiles(recordUuid?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listFiles(recordUuid, options).then((request) => request(axios, basePath)); }, /** * * @summary List company files with metadata for the media library * @param {string} [recordUuid] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listLibrary(recordUuid?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listLibrary(recordUuid, options).then((request) => request(axios, basePath)); }, /** * Uploads multiple files to an S3-compatible storage and returns their unique keys. The request must contain one or more files in multipart/form-data format. * @summary Upload files * @param {string} [recordUuid] Optional record UUID to directly link uploaded files as attachments. * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile2(recordUuid?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile2(recordUuid, options).then((request) => request(axios, basePath)); }, }; }; /** * FileManagementApi - object-oriented interface */ export class FileManagementApi extends BaseAPI { /** * Deletes a file from the S3-compatible storage identified by its unique key. * @summary Delete file * @param {string} key The key of the file to delete. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteFile(key: string, options?: RawAxiosRequestConfig) { return FileManagementApiFp(this.configuration).deleteFile(key, options).then((request) => request(this.axios, this.basePath)); } /** * Generates a pre-signed URL to download a file stored in S3-compatible storage. The URL expiry time and download behavior can be specified using the query parameters. * @summary Download file * @param {string} key The key of the file to download. * @param {number} [expireAfter] The URL expiry period in seconds. * @param {boolean} [download] Whether to download the file in the browser. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public downloadFile(key: string, expireAfter?: number, download?: boolean, options?: RawAxiosRequestConfig) { return FileManagementApiFp(this.configuration).downloadFile(key, expireAfter, download, options).then((request) => request(this.axios, this.basePath)); } /** * Lists all files stored in the system or, if a record UUID is provided, lists the files related to that record. * @summary List files * @param {string} [recordUuid] An optional record UUID to filter files. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listFiles(recordUuid?: string, options?: RawAxiosRequestConfig) { return FileManagementApiFp(this.configuration).listFiles(recordUuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List company files with metadata for the media library * @param {string} [recordUuid] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listLibrary(recordUuid?: string, options?: RawAxiosRequestConfig) { return FileManagementApiFp(this.configuration).listLibrary(recordUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Uploads multiple files to an S3-compatible storage and returns their unique keys. The request must contain one or more files in multipart/form-data format. * @summary Upload files * @param {string} [recordUuid] Optional record UUID to directly link uploaded files as attachments. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public uploadFile2(recordUuid?: string, options?: RawAxiosRequestConfig) { return FileManagementApiFp(this.configuration).uploadFile2(recordUuid, options).then((request) => request(this.axios, this.basePath)); } } /** * FilterApi - axios parameter creator */ export const FilterApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a new saved filter with the provided configuration. * @summary Create a new saved filter * @param {SavedFilterDTO} savedFilterDTO Saved filter details for creation * @param {*} [options] Override http request option. * @throws {RequiredError} */ createFilter: async (savedFilterDTO: SavedFilterDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'savedFilterDTO' is not null or undefined assertParamExists('createFilter', 'savedFilterDTO', savedFilterDTO) const localVarPath = `/api/v2/filters`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(savedFilterDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Soft deletes a saved filter identified by its UUID. * @summary Delete a saved filter * @param {string} filterUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFilter: async (filterUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'filterUuid' is not null or undefined assertParamExists('deleteFilter', 'filterUuid', filterUuid) const localVarPath = `/api/v2/filters/{filterUuid}` .replace('{filterUuid}', encodeURIComponent(String(filterUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves details of a saved filter by its UUID. * @summary Fetch a specific saved filter * @param {string} filterUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFilter: async (filterUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'filterUuid' is not null or undefined assertParamExists('getFilter', 'filterUuid', filterUuid) const localVarPath = `/api/v2/filters/{filterUuid}` .replace('{filterUuid}', encodeURIComponent(String(filterUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches a paginated list of saved filters. The request body should contain pagination details such as limit, page, filters, and sort. * @summary Fetch paginated saved filters * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request details * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFilters: async (objectUuid: string, paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getFilters', 'objectUuid', objectUuid) // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getFilters', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/filters/index/{objectUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates an existing saved filter identified by its UUID. * @summary Update an existing saved filter * @param {string} filterUuid * @param {SavedFilterDTO} savedFilterDTO Updated saved filter details * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFilter: async (filterUuid: string, savedFilterDTO: SavedFilterDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'filterUuid' is not null or undefined assertParamExists('updateFilter', 'filterUuid', filterUuid) // verify required parameter 'savedFilterDTO' is not null or undefined assertParamExists('updateFilter', 'savedFilterDTO', savedFilterDTO) const localVarPath = `/api/v2/filters/{filterUuid}` .replace('{filterUuid}', encodeURIComponent(String(filterUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(savedFilterDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * FilterApi - functional programming interface */ export const FilterApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = FilterApiAxiosParamCreator(configuration) return { /** * Creates a new saved filter with the provided configuration. * @summary Create a new saved filter * @param {SavedFilterDTO} savedFilterDTO Saved filter details for creation * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createFilter(savedFilterDTO: SavedFilterDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createFilter(savedFilterDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FilterApi.createFilter']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Soft deletes a saved filter identified by its UUID. * @summary Delete a saved filter * @param {string} filterUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteFilter(filterUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFilter(filterUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FilterApi.deleteFilter']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves details of a saved filter by its UUID. * @summary Fetch a specific saved filter * @param {string} filterUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getFilter(filterUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFilter(filterUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FilterApi.getFilter']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches a paginated list of saved filters. The request body should contain pagination details such as limit, page, filters, and sort. * @summary Fetch paginated saved filters * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request details * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getFilters(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFilters(objectUuid, paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FilterApi.getFilters']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates an existing saved filter identified by its UUID. * @summary Update an existing saved filter * @param {string} filterUuid * @param {SavedFilterDTO} savedFilterDTO Updated saved filter details * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateFilter(filterUuid: string, savedFilterDTO: SavedFilterDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateFilter(filterUuid, savedFilterDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FilterApi.updateFilter']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * FilterApi - factory interface */ export const FilterApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = FilterApiFp(configuration) return { /** * Creates a new saved filter with the provided configuration. * @summary Create a new saved filter * @param {SavedFilterDTO} savedFilterDTO Saved filter details for creation * @param {*} [options] Override http request option. * @throws {RequiredError} */ createFilter(savedFilterDTO: SavedFilterDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createFilter(savedFilterDTO, options).then((request) => request(axios, basePath)); }, /** * Soft deletes a saved filter identified by its UUID. * @summary Delete a saved filter * @param {string} filterUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFilter(filterUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteFilter(filterUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves details of a saved filter by its UUID. * @summary Fetch a specific saved filter * @param {string} filterUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFilter(filterUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFilter(filterUuid, options).then((request) => request(axios, basePath)); }, /** * Fetches a paginated list of saved filters. The request body should contain pagination details such as limit, page, filters, and sort. * @summary Fetch paginated saved filters * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request details * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFilters(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFilters(objectUuid, paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Updates an existing saved filter identified by its UUID. * @summary Update an existing saved filter * @param {string} filterUuid * @param {SavedFilterDTO} savedFilterDTO Updated saved filter details * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFilter(filterUuid: string, savedFilterDTO: SavedFilterDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateFilter(filterUuid, savedFilterDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * FilterApi - object-oriented interface */ export class FilterApi extends BaseAPI { /** * Creates a new saved filter with the provided configuration. * @summary Create a new saved filter * @param {SavedFilterDTO} savedFilterDTO Saved filter details for creation * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createFilter(savedFilterDTO: SavedFilterDTO, options?: RawAxiosRequestConfig) { return FilterApiFp(this.configuration).createFilter(savedFilterDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Soft deletes a saved filter identified by its UUID. * @summary Delete a saved filter * @param {string} filterUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteFilter(filterUuid: string, options?: RawAxiosRequestConfig) { return FilterApiFp(this.configuration).deleteFilter(filterUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves details of a saved filter by its UUID. * @summary Fetch a specific saved filter * @param {string} filterUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getFilter(filterUuid: string, options?: RawAxiosRequestConfig) { return FilterApiFp(this.configuration).getFilter(filterUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches a paginated list of saved filters. The request body should contain pagination details such as limit, page, filters, and sort. * @summary Fetch paginated saved filters * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request details * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getFilters(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return FilterApiFp(this.configuration).getFilters(objectUuid, paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Updates an existing saved filter identified by its UUID. * @summary Update an existing saved filter * @param {string} filterUuid * @param {SavedFilterDTO} savedFilterDTO Updated saved filter details * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateFilter(filterUuid: string, savedFilterDTO: SavedFilterDTO, options?: RawAxiosRequestConfig) { return FilterApiFp(this.configuration).updateFilter(filterUuid, savedFilterDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * FormsApi - axios parameter creator */ export const FormsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary AI form field (public) * @param {string} companyUuid * @param {string} fieldUuid * @param {string} prompt * @param {FormWithAiPromptDTO} formWithAiPromptDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ chatField: async (companyUuid: string, fieldUuid: string, prompt: string, formWithAiPromptDTO: FormWithAiPromptDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('chatField', 'companyUuid', companyUuid) // verify required parameter 'fieldUuid' is not null or undefined assertParamExists('chatField', 'fieldUuid', fieldUuid) // verify required parameter 'prompt' is not null or undefined assertParamExists('chatField', 'prompt', prompt) // verify required parameter 'formWithAiPromptDTO' is not null or undefined assertParamExists('chatField', 'formWithAiPromptDTO', formWithAiPromptDTO) const localVarPath = `/api/v2/forms/public/{companyUuid}/ai/field/{fieldUuid}/{prompt}` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))) .replace('{fieldUuid}', encodeURIComponent(String(fieldUuid))) .replace('{prompt}', encodeURIComponent(String(prompt))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = '*/*,application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(formWithAiPromptDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary AI form step (public) * @param {string} companyUuid * @param {string} stepTitle * @param {string} prompt * @param {FormWithAiPromptDTO} formWithAiPromptDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ chatStep: async (companyUuid: string, stepTitle: string, prompt: string, formWithAiPromptDTO: FormWithAiPromptDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('chatStep', 'companyUuid', companyUuid) // verify required parameter 'stepTitle' is not null or undefined assertParamExists('chatStep', 'stepTitle', stepTitle) // verify required parameter 'prompt' is not null or undefined assertParamExists('chatStep', 'prompt', prompt) // verify required parameter 'formWithAiPromptDTO' is not null or undefined assertParamExists('chatStep', 'formWithAiPromptDTO', formWithAiPromptDTO) const localVarPath = `/api/v2/forms/public/{companyUuid}/ai/step/{stepTitle}/{prompt}` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))) .replace('{stepTitle}', encodeURIComponent(String(stepTitle))) .replace('{prompt}', encodeURIComponent(String(prompt))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = '*/*,application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(formWithAiPromptDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new form with the provided data. The request body should contain a valid FormDTO object. On success, returns the created form as a FormDTO wrapped in a CreateResponse. Validation: Form fields are validated according to the Form validation rules. Required fields and format constraints are enforced. * @summary Create a new form * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createForm: async (formDTO: FormDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'formDTO' is not null or undefined assertParamExists('createForm', 'formDTO', formDTO) const localVarPath = `/api/v2/forms/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(formDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes a form identified by its UUID. On success, returns the deleted form\'s data wrapped in a DeleteResponse. * @summary Delete a form * @param {string} formUuid UUID of the form to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteForm: async (formUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'formUuid' is not null or undefined assertParamExists('deleteForm', 'formUuid', formUuid) const localVarPath = `/api/v2/forms/{formUuid}` .replace('{formUuid}', encodeURIComponent(String(formUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a specific form by its UUID. Returns the details of the form in a FormDTO object wrapped in a ShowResponse. * @summary Get form by UUID * @param {string} formUuid UUID of the form to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ getForm: async (formUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'formUuid' is not null or undefined assertParamExists('getForm', 'formUuid', formUuid) const localVarPath = `/api/v2/forms/{formUuid}` .replace('{formUuid}', encodeURIComponent(String(formUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a specific form by its UUID. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Get form by UUID * @param {string} companyUuid * @param {string} formUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFormPublic: async (companyUuid: string, formUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('getFormPublic', 'companyUuid', companyUuid) // verify required parameter 'formUuid' is not null or undefined assertParamExists('getFormPublic', 'formUuid', formUuid) const localVarPath = `/api/v2/forms/public/{companyUuid}/{formUuid}` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))) .replace('{formUuid}', encodeURIComponent(String(formUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a paginated list of forms based on the provided filters, sorting, and search query. This endpoint returns a list of FormDTO objects wrapped in a PaginationResponse containing the current page, limit, total count, and the forms data. * @summary Get paginated list of forms * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getForms: async (paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getForms', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/forms/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a paginated list of forms associated with a specific object UUID. The endpoint uses a custom Cypher query to match forms linked to the object. * @summary Get forms by object UUID * @param {string} objectUuid UUID of the object to get forms for * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFormsByObject: async (objectUuid: string, paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getFormsByObject', 'objectUuid', objectUuid) // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getFormsByObject', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/forms/{objectUuid}/index` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Get all forms for a company * @param {string} companyUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFormsPublic: async (companyUuid: string, paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('getFormsPublic', 'companyUuid', companyUuid) // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getFormsPublic', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/forms/public/{companyUuid}/index` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = '*/*,application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns distinct custom objects that have at least one non-deleted form, ordered by object index. * @summary List objects that have forms * @param {*} [options] Override http request option. * @throws {RequiredError} */ getObjectsWithForms: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/forms/objects`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Property options (public) * @param {string} propertyUuid * @param {string} companyUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOptions: async (propertyUuid: string, companyUuid: string, paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'propertyUuid' is not null or undefined assertParamExists('getOptions', 'propertyUuid', propertyUuid) // verify required parameter 'companyUuid' is not null or undefined assertParamExists('getOptions', 'companyUuid', companyUuid) // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getOptions', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/forms/public/{companyUuid}/{propertyUuid}/options` .replace('{propertyUuid}', encodeURIComponent(String(propertyUuid))) .replace('{companyUuid}', encodeURIComponent(String(companyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = '*/*,application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Restores a previously deleted form identified by its UUID. Returns the restored form wrapped in a RestoreResponse. * @summary Restore a deleted form * @param {string} formUuid UUID of the form to restore * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreForm: async (formUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'formUuid' is not null or undefined assertParamExists('restoreForm', 'formUuid', formUuid) const localVarPath = `/api/v2/forms/{formUuid}/restore` .replace('{formUuid}', encodeURIComponent(String(formUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Submits a form with the provided data. Returns a SuccessResponse upon successful submission. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Submit a form * @param {string} companyUuid * @param {string} formUuid * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ submit: async (companyUuid: string, formUuid: string, formDTO: FormDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('submit', 'companyUuid', companyUuid) // verify required parameter 'formUuid' is not null or undefined assertParamExists('submit', 'formUuid', formUuid) // verify required parameter 'formDTO' is not null or undefined assertParamExists('submit', 'formDTO', formDTO) const localVarPath = `/api/v2/forms/public/{companyUuid}/{formUuid}/submit` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))) .replace('{formUuid}', encodeURIComponent(String(formUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(formDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates an existing form identified by its UUID with the provided data. The request body should include the updated fields in a FormDTO. Returns the updated form wrapped in an UpdateResponse. Validation: Form fields are validated according to the Form validation rules. Required fields and format constraints are enforced. * @summary Update an existing form * @param {string} formUuid UUID of the form to update * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateForm: async (formUuid: string, formDTO: FormDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'formUuid' is not null or undefined assertParamExists('updateForm', 'formUuid', formUuid) // verify required parameter 'formDTO' is not null or undefined assertParamExists('updateForm', 'formDTO', formDTO) const localVarPath = `/api/v2/forms/{formUuid}` .replace('{formUuid}', encodeURIComponent(String(formUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(formDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Submits a file with the provided data. Returns a SuccessResponse upon successful submission. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Submit a file * @param {string} companyUuid * @param {string} formUuid * @param {Array} files * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFiles: async (companyUuid: string, formUuid: string, files: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('uploadFiles', 'companyUuid', companyUuid) // verify required parameter 'formUuid' is not null or undefined assertParamExists('uploadFiles', 'formUuid', formUuid) // verify required parameter 'files' is not null or undefined assertParamExists('uploadFiles', 'files', files) const localVarPath = `/api/v2/forms/public/{companyUuid}/{formUuid}/upload` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))) .replace('{formUuid}', encodeURIComponent(String(formUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (files) { localVarQueryParameter['files'] = files; } localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * FormsApi - functional programming interface */ export const FormsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = FormsApiAxiosParamCreator(configuration) return { /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary AI form field (public) * @param {string} companyUuid * @param {string} fieldUuid * @param {string} prompt * @param {FormWithAiPromptDTO} formWithAiPromptDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async chatField(companyUuid: string, fieldUuid: string, prompt: string, formWithAiPromptDTO: FormWithAiPromptDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.chatField(companyUuid, fieldUuid, prompt, formWithAiPromptDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.chatField']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary AI form step (public) * @param {string} companyUuid * @param {string} stepTitle * @param {string} prompt * @param {FormWithAiPromptDTO} formWithAiPromptDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async chatStep(companyUuid: string, stepTitle: string, prompt: string, formWithAiPromptDTO: FormWithAiPromptDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.chatStep(companyUuid, stepTitle, prompt, formWithAiPromptDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.chatStep']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a new form with the provided data. The request body should contain a valid FormDTO object. On success, returns the created form as a FormDTO wrapped in a CreateResponse. Validation: Form fields are validated according to the Form validation rules. Required fields and format constraints are enforced. * @summary Create a new form * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createForm(formDTO: FormDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createForm(formDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.createForm']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a form identified by its UUID. On success, returns the deleted form\'s data wrapped in a DeleteResponse. * @summary Delete a form * @param {string} formUuid UUID of the form to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteForm(formUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteForm(formUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.deleteForm']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a specific form by its UUID. Returns the details of the form in a FormDTO object wrapped in a ShowResponse. * @summary Get form by UUID * @param {string} formUuid UUID of the form to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getForm(formUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getForm(formUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.getForm']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a specific form by its UUID. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Get form by UUID * @param {string} companyUuid * @param {string} formUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getFormPublic(companyUuid: string, formUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFormPublic(companyUuid, formUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.getFormPublic']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a paginated list of forms based on the provided filters, sorting, and search query. This endpoint returns a list of FormDTO objects wrapped in a PaginationResponse containing the current page, limit, total count, and the forms data. * @summary Get paginated list of forms * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getForms(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getForms(paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.getForms']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a paginated list of forms associated with a specific object UUID. The endpoint uses a custom Cypher query to match forms linked to the object. * @summary Get forms by object UUID * @param {string} objectUuid UUID of the object to get forms for * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getFormsByObject(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFormsByObject(objectUuid, paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.getFormsByObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Get all forms for a company * @param {string} companyUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getFormsPublic(companyUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFormsPublic(companyUuid, paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.getFormsPublic']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns distinct custom objects that have at least one non-deleted form, ordered by object index. * @summary List objects that have forms * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getObjectsWithForms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectsWithForms(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.getObjectsWithForms']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Property options (public) * @param {string} propertyUuid * @param {string} companyUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getOptions(propertyUuid: string, companyUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOptions(propertyUuid, companyUuid, paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.getOptions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restores a previously deleted form identified by its UUID. Returns the restored form wrapped in a RestoreResponse. * @summary Restore a deleted form * @param {string} formUuid UUID of the form to restore * @param {*} [options] Override http request option. * @throws {RequiredError} */ async restoreForm(formUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreForm(formUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.restoreForm']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Submits a form with the provided data. Returns a SuccessResponse upon successful submission. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Submit a form * @param {string} companyUuid * @param {string} formUuid * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async submit(companyUuid: string, formUuid: string, formDTO: FormDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submit(companyUuid, formUuid, formDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.submit']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates an existing form identified by its UUID with the provided data. The request body should include the updated fields in a FormDTO. Returns the updated form wrapped in an UpdateResponse. Validation: Form fields are validated according to the Form validation rules. Required fields and format constraints are enforced. * @summary Update an existing form * @param {string} formUuid UUID of the form to update * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateForm(formUuid: string, formDTO: FormDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateForm(formUuid, formDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.updateForm']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Submits a file with the provided data. Returns a SuccessResponse upon successful submission. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Submit a file * @param {string} companyUuid * @param {string} formUuid * @param {Array} files * @param {*} [options] Override http request option. * @throws {RequiredError} */ async uploadFiles(companyUuid: string, formUuid: string, files: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFiles(companyUuid, formUuid, files, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FormsApi.uploadFiles']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * FormsApi - factory interface */ export const FormsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = FormsApiFp(configuration) return { /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary AI form field (public) * @param {string} companyUuid * @param {string} fieldUuid * @param {string} prompt * @param {FormWithAiPromptDTO} formWithAiPromptDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ chatField(companyUuid: string, fieldUuid: string, prompt: string, formWithAiPromptDTO: FormWithAiPromptDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.chatField(companyUuid, fieldUuid, prompt, formWithAiPromptDTO, options).then((request) => request(axios, basePath)); }, /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary AI form step (public) * @param {string} companyUuid * @param {string} stepTitle * @param {string} prompt * @param {FormWithAiPromptDTO} formWithAiPromptDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ chatStep(companyUuid: string, stepTitle: string, prompt: string, formWithAiPromptDTO: FormWithAiPromptDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.chatStep(companyUuid, stepTitle, prompt, formWithAiPromptDTO, options).then((request) => request(axios, basePath)); }, /** * Creates a new form with the provided data. The request body should contain a valid FormDTO object. On success, returns the created form as a FormDTO wrapped in a CreateResponse. Validation: Form fields are validated according to the Form validation rules. Required fields and format constraints are enforced. * @summary Create a new form * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createForm(formDTO: FormDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createForm(formDTO, options).then((request) => request(axios, basePath)); }, /** * Deletes a form identified by its UUID. On success, returns the deleted form\'s data wrapped in a DeleteResponse. * @summary Delete a form * @param {string} formUuid UUID of the form to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteForm(formUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteForm(formUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves a specific form by its UUID. Returns the details of the form in a FormDTO object wrapped in a ShowResponse. * @summary Get form by UUID * @param {string} formUuid UUID of the form to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ getForm(formUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getForm(formUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves a specific form by its UUID. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Get form by UUID * @param {string} companyUuid * @param {string} formUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFormPublic(companyUuid: string, formUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFormPublic(companyUuid, formUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves a paginated list of forms based on the provided filters, sorting, and search query. This endpoint returns a list of FormDTO objects wrapped in a PaginationResponse containing the current page, limit, total count, and the forms data. * @summary Get paginated list of forms * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getForms(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getForms(paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Retrieves a paginated list of forms associated with a specific object UUID. The endpoint uses a custom Cypher query to match forms linked to the object. * @summary Get forms by object UUID * @param {string} objectUuid UUID of the object to get forms for * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFormsByObject(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFormsByObject(objectUuid, paginationRequest, options).then((request) => request(axios, basePath)); }, /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Get all forms for a company * @param {string} companyUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFormsPublic(companyUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFormsPublic(companyUuid, paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Returns distinct custom objects that have at least one non-deleted form, ordered by object index. * @summary List objects that have forms * @param {*} [options] Override http request option. * @throws {RequiredError} */ getObjectsWithForms(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getObjectsWithForms(options).then((request) => request(axios, basePath)); }, /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Property options (public) * @param {string} propertyUuid * @param {string} companyUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getOptions(propertyUuid: string, companyUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOptions(propertyUuid, companyUuid, paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Restores a previously deleted form identified by its UUID. Returns the restored form wrapped in a RestoreResponse. * @summary Restore a deleted form * @param {string} formUuid UUID of the form to restore * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreForm(formUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreForm(formUuid, options).then((request) => request(axios, basePath)); }, /** * Submits a form with the provided data. Returns a SuccessResponse upon successful submission. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Submit a form * @param {string} companyUuid * @param {string} formUuid * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ submit(companyUuid: string, formUuid: string, formDTO: FormDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submit(companyUuid, formUuid, formDTO, options).then((request) => request(axios, basePath)); }, /** * Updates an existing form identified by its UUID with the provided data. The request body should include the updated fields in a FormDTO. Returns the updated form wrapped in an UpdateResponse. Validation: Form fields are validated according to the Form validation rules. Required fields and format constraints are enforced. * @summary Update an existing form * @param {string} formUuid UUID of the form to update * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateForm(formUuid: string, formDTO: FormDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateForm(formUuid, formDTO, options).then((request) => request(axios, basePath)); }, /** * Submits a file with the provided data. Returns a SuccessResponse upon successful submission. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Submit a file * @param {string} companyUuid * @param {string} formUuid * @param {Array} files * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFiles(companyUuid: string, formUuid: string, files: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFiles(companyUuid, formUuid, files, options).then((request) => request(axios, basePath)); }, }; }; /** * FormsApi - object-oriented interface */ export class FormsApi extends BaseAPI { /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary AI form field (public) * @param {string} companyUuid * @param {string} fieldUuid * @param {string} prompt * @param {FormWithAiPromptDTO} formWithAiPromptDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public chatField(companyUuid: string, fieldUuid: string, prompt: string, formWithAiPromptDTO: FormWithAiPromptDTO, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).chatField(companyUuid, fieldUuid, prompt, formWithAiPromptDTO, options).then((request) => request(this.axios, this.basePath)); } /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary AI form step (public) * @param {string} companyUuid * @param {string} stepTitle * @param {string} prompt * @param {FormWithAiPromptDTO} formWithAiPromptDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public chatStep(companyUuid: string, stepTitle: string, prompt: string, formWithAiPromptDTO: FormWithAiPromptDTO, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).chatStep(companyUuid, stepTitle, prompt, formWithAiPromptDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a new form with the provided data. The request body should contain a valid FormDTO object. On success, returns the created form as a FormDTO wrapped in a CreateResponse. Validation: Form fields are validated according to the Form validation rules. Required fields and format constraints are enforced. * @summary Create a new form * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createForm(formDTO: FormDTO, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).createForm(formDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes a form identified by its UUID. On success, returns the deleted form\'s data wrapped in a DeleteResponse. * @summary Delete a form * @param {string} formUuid UUID of the form to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteForm(formUuid: string, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).deleteForm(formUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a specific form by its UUID. Returns the details of the form in a FormDTO object wrapped in a ShowResponse. * @summary Get form by UUID * @param {string} formUuid UUID of the form to retrieve * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getForm(formUuid: string, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).getForm(formUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a specific form by its UUID. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Get form by UUID * @param {string} companyUuid * @param {string} formUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getFormPublic(companyUuid: string, formUuid: string, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).getFormPublic(companyUuid, formUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a paginated list of forms based on the provided filters, sorting, and search query. This endpoint returns a list of FormDTO objects wrapped in a PaginationResponse containing the current page, limit, total count, and the forms data. * @summary Get paginated list of forms * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getForms(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).getForms(paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a paginated list of forms associated with a specific object UUID. The endpoint uses a custom Cypher query to match forms linked to the object. * @summary Get forms by object UUID * @param {string} objectUuid UUID of the object to get forms for * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getFormsByObject(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).getFormsByObject(objectUuid, paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Get all forms for a company * @param {string} companyUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getFormsPublic(companyUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).getFormsPublic(companyUuid, paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Returns distinct custom objects that have at least one non-deleted form, ordered by object index. * @summary List objects that have forms * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getObjectsWithForms(options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).getObjectsWithForms(options).then((request) => request(this.axios, this.basePath)); } /** * When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Property options (public) * @param {string} propertyUuid * @param {string} companyUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getOptions(propertyUuid: string, companyUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).getOptions(propertyUuid, companyUuid, paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Restores a previously deleted form identified by its UUID. Returns the restored form wrapped in a RestoreResponse. * @summary Restore a deleted form * @param {string} formUuid UUID of the form to restore * @param {*} [options] Override http request option. * @throws {RequiredError} */ public restoreForm(formUuid: string, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).restoreForm(formUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Submits a form with the provided data. Returns a SuccessResponse upon successful submission. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Submit a form * @param {string} companyUuid * @param {string} formUuid * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public submit(companyUuid: string, formUuid: string, formDTO: FormDTO, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).submit(companyUuid, formUuid, formDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Updates an existing form identified by its UUID with the provided data. The request body should include the updated fields in a FormDTO. Returns the updated form wrapped in an UpdateResponse. Validation: Form fields are validated according to the Form validation rules. Required fields and format constraints are enforced. * @summary Update an existing form * @param {string} formUuid UUID of the form to update * @param {FormDTO} formDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateForm(formUuid: string, formDTO: FormDTO, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).updateForm(formUuid, formDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Submits a file with the provided data. Returns a SuccessResponse upon successful submission. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment. * @summary Submit a file * @param {string} companyUuid * @param {string} formUuid * @param {Array} files * @param {*} [options] Override http request option. * @throws {RequiredError} */ public uploadFiles(companyUuid: string, formUuid: string, files: Array, options?: RawAxiosRequestConfig) { return FormsApiFp(this.configuration).uploadFiles(companyUuid, formUuid, files, options).then((request) => request(this.axios, this.basePath)); } } /** * ModuleApi - axios parameter creator */ export const ModuleApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a new module. * @summary Create a new module * @param {PageContentDTO} pageContentDTO Module details * @param {*} [options] Override http request option. * @throws {RequiredError} */ createModule: async (pageContentDTO: PageContentDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'pageContentDTO' is not null or undefined assertParamExists('createModule', 'pageContentDTO', pageContentDTO) const localVarPath = `/api/v2/modules/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(pageContentDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a module in the user\'s personal library. * @summary Create a personal module * @param {PageContentDTO} pageContentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPersonalModule: async (pageContentDTO: PageContentDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'pageContentDTO' is not null or undefined assertParamExists('createPersonalModule', 'pageContentDTO', pageContentDTO) const localVarPath = `/api/v2/modules/personal/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(pageContentDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes a module by its UUID. * @summary Delete a module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteModule: async (moduleId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'moduleId' is not null or undefined assertParamExists('deleteModule', 'moduleId', moduleId) const localVarPath = `/api/v2/modules/{moduleId}` .replace('{moduleId}', encodeURIComponent(String(moduleId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes a personal module for the logged-in user. * @summary Delete a personal module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deletePersonalModule: async (moduleId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'moduleId' is not null or undefined assertParamExists('deletePersonalModule', 'moduleId', moduleId) const localVarPath = `/api/v2/modules/personal/{moduleId}` .replace('{moduleId}', encodeURIComponent(String(moduleId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves details of a module by its UUID. * @summary Fetch a specific module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getModule: async (moduleId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'moduleId' is not null or undefined assertParamExists('getModule', 'moduleId', moduleId) const localVarPath = `/api/v2/modules/{moduleId}` .replace('{moduleId}', encodeURIComponent(String(moduleId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a paginated list of modules. * @summary Fetch paginated modules * @param {PaginationRequest} paginationRequest Pagination details * @param {*} [options] Override http request option. * @throws {RequiredError} */ getModules: async (paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getModules', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/modules/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a personal module by UUID for the logged-in user. * @summary Fetch a personal module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPersonalModule: async (moduleId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'moduleId' is not null or undefined assertParamExists('getPersonalModule', 'moduleId', moduleId) const localVarPath = `/api/v2/modules/personal/{moduleId}` .replace('{moduleId}', encodeURIComponent(String(moduleId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves personal modules for the logged-in user. * @summary Fetch paginated personal modules * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPersonalModules: async (paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getPersonalModules', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/modules/personal/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the details of an existing module. * @summary Update an existing module * @param {string} moduleId * @param {PageContentDTO} pageContentDTO Updated module details * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateModule: async (moduleId: string, pageContentDTO: PageContentDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'moduleId' is not null or undefined assertParamExists('updateModule', 'moduleId', moduleId) // verify required parameter 'pageContentDTO' is not null or undefined assertParamExists('updateModule', 'pageContentDTO', pageContentDTO) const localVarPath = `/api/v2/modules/{moduleId}` .replace('{moduleId}', encodeURIComponent(String(moduleId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(pageContentDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates a personal module for the logged-in user. * @summary Update a personal module * @param {string} moduleId * @param {PageContentDTO} pageContentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updatePersonalModule: async (moduleId: string, pageContentDTO: PageContentDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'moduleId' is not null or undefined assertParamExists('updatePersonalModule', 'moduleId', moduleId) // verify required parameter 'pageContentDTO' is not null or undefined assertParamExists('updatePersonalModule', 'pageContentDTO', pageContentDTO) const localVarPath = `/api/v2/modules/personal/{moduleId}` .replace('{moduleId}', encodeURIComponent(String(moduleId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(pageContentDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ModuleApi - functional programming interface */ export const ModuleApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ModuleApiAxiosParamCreator(configuration) return { /** * Creates a new module. * @summary Create a new module * @param {PageContentDTO} pageContentDTO Module details * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createModule(pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createModule(pageContentDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ModuleApi.createModule']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a module in the user\'s personal library. * @summary Create a personal module * @param {PageContentDTO} pageContentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createPersonalModule(pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPersonalModule(pageContentDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ModuleApi.createPersonalModule']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a module by its UUID. * @summary Delete a module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteModule(moduleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteModule(moduleId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ModuleApi.deleteModule']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a personal module for the logged-in user. * @summary Delete a personal module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deletePersonalModule(moduleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deletePersonalModule(moduleId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ModuleApi.deletePersonalModule']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves details of a module by its UUID. * @summary Fetch a specific module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getModule(moduleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getModule(moduleId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ModuleApi.getModule']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a paginated list of modules. * @summary Fetch paginated modules * @param {PaginationRequest} paginationRequest Pagination details * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getModules(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getModules(paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ModuleApi.getModules']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a personal module by UUID for the logged-in user. * @summary Fetch a personal module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPersonalModule(moduleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonalModule(moduleId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ModuleApi.getPersonalModule']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves personal modules for the logged-in user. * @summary Fetch paginated personal modules * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPersonalModules(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonalModules(paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ModuleApi.getPersonalModules']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates the details of an existing module. * @summary Update an existing module * @param {string} moduleId * @param {PageContentDTO} pageContentDTO Updated module details * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateModule(moduleId: string, pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateModule(moduleId, pageContentDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ModuleApi.updateModule']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates a personal module for the logged-in user. * @summary Update a personal module * @param {string} moduleId * @param {PageContentDTO} pageContentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updatePersonalModule(moduleId: string, pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updatePersonalModule(moduleId, pageContentDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ModuleApi.updatePersonalModule']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ModuleApi - factory interface */ export const ModuleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ModuleApiFp(configuration) return { /** * Creates a new module. * @summary Create a new module * @param {PageContentDTO} pageContentDTO Module details * @param {*} [options] Override http request option. * @throws {RequiredError} */ createModule(pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createModule(pageContentDTO, options).then((request) => request(axios, basePath)); }, /** * Creates a module in the user\'s personal library. * @summary Create a personal module * @param {PageContentDTO} pageContentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPersonalModule(pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createPersonalModule(pageContentDTO, options).then((request) => request(axios, basePath)); }, /** * Deletes a module by its UUID. * @summary Delete a module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteModule(moduleId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteModule(moduleId, options).then((request) => request(axios, basePath)); }, /** * Deletes a personal module for the logged-in user. * @summary Delete a personal module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deletePersonalModule(moduleId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePersonalModule(moduleId, options).then((request) => request(axios, basePath)); }, /** * Retrieves details of a module by its UUID. * @summary Fetch a specific module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getModule(moduleId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getModule(moduleId, options).then((request) => request(axios, basePath)); }, /** * Retrieves a paginated list of modules. * @summary Fetch paginated modules * @param {PaginationRequest} paginationRequest Pagination details * @param {*} [options] Override http request option. * @throws {RequiredError} */ getModules(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getModules(paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Retrieves a personal module by UUID for the logged-in user. * @summary Fetch a personal module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPersonalModule(moduleId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPersonalModule(moduleId, options).then((request) => request(axios, basePath)); }, /** * Retrieves personal modules for the logged-in user. * @summary Fetch paginated personal modules * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPersonalModules(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPersonalModules(paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Updates the details of an existing module. * @summary Update an existing module * @param {string} moduleId * @param {PageContentDTO} pageContentDTO Updated module details * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateModule(moduleId: string, pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateModule(moduleId, pageContentDTO, options).then((request) => request(axios, basePath)); }, /** * Updates a personal module for the logged-in user. * @summary Update a personal module * @param {string} moduleId * @param {PageContentDTO} pageContentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updatePersonalModule(moduleId: string, pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePersonalModule(moduleId, pageContentDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * ModuleApi - object-oriented interface */ export class ModuleApi extends BaseAPI { /** * Creates a new module. * @summary Create a new module * @param {PageContentDTO} pageContentDTO Module details * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createModule(pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig) { return ModuleApiFp(this.configuration).createModule(pageContentDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a module in the user\'s personal library. * @summary Create a personal module * @param {PageContentDTO} pageContentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createPersonalModule(pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig) { return ModuleApiFp(this.configuration).createPersonalModule(pageContentDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes a module by its UUID. * @summary Delete a module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteModule(moduleId: string, options?: RawAxiosRequestConfig) { return ModuleApiFp(this.configuration).deleteModule(moduleId, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes a personal module for the logged-in user. * @summary Delete a personal module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deletePersonalModule(moduleId: string, options?: RawAxiosRequestConfig) { return ModuleApiFp(this.configuration).deletePersonalModule(moduleId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves details of a module by its UUID. * @summary Fetch a specific module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getModule(moduleId: string, options?: RawAxiosRequestConfig) { return ModuleApiFp(this.configuration).getModule(moduleId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a paginated list of modules. * @summary Fetch paginated modules * @param {PaginationRequest} paginationRequest Pagination details * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getModules(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return ModuleApiFp(this.configuration).getModules(paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a personal module by UUID for the logged-in user. * @summary Fetch a personal module * @param {string} moduleId * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPersonalModule(moduleId: string, options?: RawAxiosRequestConfig) { return ModuleApiFp(this.configuration).getPersonalModule(moduleId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves personal modules for the logged-in user. * @summary Fetch paginated personal modules * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPersonalModules(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return ModuleApiFp(this.configuration).getPersonalModules(paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Updates the details of an existing module. * @summary Update an existing module * @param {string} moduleId * @param {PageContentDTO} pageContentDTO Updated module details * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateModule(moduleId: string, pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig) { return ModuleApiFp(this.configuration).updateModule(moduleId, pageContentDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Updates a personal module for the logged-in user. * @summary Update a personal module * @param {string} moduleId * @param {PageContentDTO} pageContentDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updatePersonalModule(moduleId: string, pageContentDTO: PageContentDTO, options?: RawAxiosRequestConfig) { return ModuleApiFp(this.configuration).updatePersonalModule(moduleId, pageContentDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * NotificationsApi - axios parameter creator */ export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Dismiss a notification * @param {string} notificationId Firestore notification document ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ dismissNotification: async (notificationId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'notificationId' is not null or undefined assertParamExists('dismissNotification', 'notificationId', notificationId) const localVarPath = `/api/v2/notifications/{notificationId}` .replace('{notificationId}', encodeURIComponent(String(notificationId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Mint a Firebase custom token so the app can listen to its inbox * @param {*} [options] Override http request option. * @throws {RequiredError} */ firebaseToken: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/notifications/firebase-token`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns notifications for the selected company plus user-general notifications that have no company. Other companies are never included. * @summary List in-app notifications for the logged-in user * @param {string} [company] * @param {number} [limit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listNotifications: async (company?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/notifications`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (company !== undefined) { localVarQueryParameter['company'] = company; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Mark all notifications as read * @param {*} [options] Override http request option. * @throws {RequiredError} */ markAllAsRead: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/notifications/read-all`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Mark a notification as read * @param {string} notificationId Firestore notification document ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ markAsRead: async (notificationId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'notificationId' is not null or undefined assertParamExists('markAsRead', 'notificationId', notificationId) const localVarPath = `/api/v2/notifications/{notificationId}/read` .replace('{notificationId}', encodeURIComponent(String(notificationId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Installed apps call this endpoint after async work completes. Authenticate with the installation token (Authorization: Bearer or X-CARAER-TOKEN). Every notification is scoped to the app\'s company. Omit targetUserUuid to notify every user in that company, or set it to aim the notification at one member. * @summary Send a notification (app token) * @param {SendNotificationRequest} sendNotificationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendNotification: async (sendNotificationRequest: SendNotificationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'sendNotificationRequest' is not null or undefined assertParamExists('sendNotification', 'sendNotificationRequest', sendNotificationRequest) const localVarPath = `/api/v2/notifications`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(sendNotificationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * NotificationsApi - functional programming interface */ export const NotificationsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration) return { /** * * @summary Dismiss a notification * @param {string} notificationId Firestore notification document ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ async dismissNotification(notificationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.dismissNotification(notificationId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['NotificationsApi.dismissNotification']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Mint a Firebase custom token so the app can listen to its inbox * @param {*} [options] Override http request option. * @throws {RequiredError} */ async firebaseToken(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.firebaseToken(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['NotificationsApi.firebaseToken']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns notifications for the selected company plus user-general notifications that have no company. Other companies are never included. * @summary List in-app notifications for the logged-in user * @param {string} [company] * @param {number} [limit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listNotifications(company?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listNotifications(company, limit, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['NotificationsApi.listNotifications']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Mark all notifications as read * @param {*} [options] Override http request option. * @throws {RequiredError} */ async markAllAsRead(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markAllAsRead(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['NotificationsApi.markAllAsRead']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Mark a notification as read * @param {string} notificationId Firestore notification document ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ async markAsRead(notificationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markAsRead(notificationId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['NotificationsApi.markAsRead']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Installed apps call this endpoint after async work completes. Authenticate with the installation token (Authorization: Bearer or X-CARAER-TOKEN). Every notification is scoped to the app\'s company. Omit targetUserUuid to notify every user in that company, or set it to aim the notification at one member. * @summary Send a notification (app token) * @param {SendNotificationRequest} sendNotificationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async sendNotification(sendNotificationRequest: SendNotificationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.sendNotification(sendNotificationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['NotificationsApi.sendNotification']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * NotificationsApi - factory interface */ export const NotificationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = NotificationsApiFp(configuration) return { /** * * @summary Dismiss a notification * @param {string} notificationId Firestore notification document ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ dismissNotification(notificationId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.dismissNotification(notificationId, options).then((request) => request(axios, basePath)); }, /** * * @summary Mint a Firebase custom token so the app can listen to its inbox * @param {*} [options] Override http request option. * @throws {RequiredError} */ firebaseToken(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.firebaseToken(options).then((request) => request(axios, basePath)); }, /** * Returns notifications for the selected company plus user-general notifications that have no company. Other companies are never included. * @summary List in-app notifications for the logged-in user * @param {string} [company] * @param {number} [limit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listNotifications(company?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listNotifications(company, limit, options).then((request) => request(axios, basePath)); }, /** * * @summary Mark all notifications as read * @param {*} [options] Override http request option. * @throws {RequiredError} */ markAllAsRead(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markAllAsRead(options).then((request) => request(axios, basePath)); }, /** * * @summary Mark a notification as read * @param {string} notificationId Firestore notification document ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ markAsRead(notificationId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markAsRead(notificationId, options).then((request) => request(axios, basePath)); }, /** * Installed apps call this endpoint after async work completes. Authenticate with the installation token (Authorization: Bearer or X-CARAER-TOKEN). Every notification is scoped to the app\'s company. Omit targetUserUuid to notify every user in that company, or set it to aim the notification at one member. * @summary Send a notification (app token) * @param {SendNotificationRequest} sendNotificationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendNotification(sendNotificationRequest: SendNotificationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.sendNotification(sendNotificationRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * NotificationsApi - object-oriented interface */ export class NotificationsApi extends BaseAPI { /** * * @summary Dismiss a notification * @param {string} notificationId Firestore notification document ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ public dismissNotification(notificationId: string, options?: RawAxiosRequestConfig) { return NotificationsApiFp(this.configuration).dismissNotification(notificationId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Mint a Firebase custom token so the app can listen to its inbox * @param {*} [options] Override http request option. * @throws {RequiredError} */ public firebaseToken(options?: RawAxiosRequestConfig) { return NotificationsApiFp(this.configuration).firebaseToken(options).then((request) => request(this.axios, this.basePath)); } /** * Returns notifications for the selected company plus user-general notifications that have no company. Other companies are never included. * @summary List in-app notifications for the logged-in user * @param {string} [company] * @param {number} [limit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listNotifications(company?: string, limit?: number, options?: RawAxiosRequestConfig) { return NotificationsApiFp(this.configuration).listNotifications(company, limit, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Mark all notifications as read * @param {*} [options] Override http request option. * @throws {RequiredError} */ public markAllAsRead(options?: RawAxiosRequestConfig) { return NotificationsApiFp(this.configuration).markAllAsRead(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Mark a notification as read * @param {string} notificationId Firestore notification document ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ public markAsRead(notificationId: string, options?: RawAxiosRequestConfig) { return NotificationsApiFp(this.configuration).markAsRead(notificationId, options).then((request) => request(this.axios, this.basePath)); } /** * Installed apps call this endpoint after async work completes. Authenticate with the installation token (Authorization: Bearer or X-CARAER-TOKEN). Every notification is scoped to the app\'s company. Omit targetUserUuid to notify every user in that company, or set it to aim the notification at one member. * @summary Send a notification (app token) * @param {SendNotificationRequest} sendNotificationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public sendNotification(sendNotificationRequest: SendNotificationRequest, options?: RawAxiosRequestConfig) { return NotificationsApiFp(this.configuration).sendNotification(sendNotificationRequest, options).then((request) => request(this.axios, this.basePath)); } } /** * ObjectsApi - axios parameter creator */ export const ObjectsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a new Caraer object using the provided details. Optional request parameters specify whether to include views, properties, and relations in the response. Validation rules: label (required, must be a string, maximum 32 characters), plural (required, must be a string, maximum 32 characters), name (required, must be a string, must be lowercase, must be unique, must match name pattern (lowercase letters, numbers, underscores)), description (optional, maximum 255 characters), groups (required, must be an array of string, no duplicate values allowed). * @summary Create new object * @param {CaraerObjectDTO} caraerObjectDTO Details of the object to create * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createObject: async (caraerObjectDTO: CaraerObjectDTO, views?: string, properties?: string, relations?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'caraerObjectDTO' is not null or undefined assertParamExists('createObject', 'caraerObjectDTO', caraerObjectDTO) const localVarPath = `/api/v2/objects/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (views !== undefined) { localVarQueryParameter['views'] = views; } if (properties !== undefined) { localVarQueryParameter['properties'] = properties; } if (relations !== undefined) { localVarQueryParameter['relations'] = relations; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(caraerObjectDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes a specific object identified by its UUID. * @summary Delete object by UUID * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteObject: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('deleteObject', 'uuid', uuid) const localVarPath = `/api/v2/objects/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns all company users, teams, and installed apps that can receive record access on an object. * @summary List access grant candidates * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccessGrantCandidates: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/objects/access-grant/candidates`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches a single object by its UUID. Optional parameters determine whether to include views, properties, and relations in the response. * @summary Get object by UUID * @param {string} uuid * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getObject: async (uuid: string, views?: string, properties?: string, relations?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('getObject', 'uuid', uuid) const localVarPath = `/api/v2/objects/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (views !== undefined) { localVarQueryParameter['views'] = views; } if (properties !== undefined) { localVarQueryParameter['properties'] = properties; } if (relations !== undefined) { localVarQueryParameter['relations'] = relations; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches a paginated list of objects, optionally including views, properties, and/or relations. The request body should contain pagination details such as limit, page, filters, sort, and query. * @summary Fetch paginated objects * @param {PaginationRequest} paginationRequest Pagination request details * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getObjects: async (paginationRequest: PaginationRequest, views?: string, properties?: string, relations?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getObjects', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/objects/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (views !== undefined) { localVarQueryParameter['views'] = views; } if (properties !== undefined) { localVarQueryParameter['properties'] = properties; } if (relations !== undefined) { localVarQueryParameter['relations'] = relations; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches a preview for an object by the object\'s UUID and the preview name. Returns the preview data wrapped in a ShowResponse. * @summary Get specific preview by name * @param {string} uuid * @param {string} name * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPreview: async (uuid: string, name: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('getPreview', 'uuid', uuid) // verify required parameter 'name' is not null or undefined assertParamExists('getPreview', 'name', name) const localVarPath = `/api/v2/objects/{uuid}/previews/{name}` .replace('{uuid}', encodeURIComponent(String(uuid))) .replace('{name}', encodeURIComponent(String(name))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches all previews over all objects. Returns a PaginationResponse containing a list of preview DTOs. * @summary Get all previews over all objects * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPreviews: async (paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getPreviews', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/objects/previews`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches all previews associated with a specific object. Returns a PaginationResponse containing a list of preview DTOs. * @summary Get all previews of an object * @param {string} uuid * @param {string} [search] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPreviews1: async (uuid: string, search?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('getPreviews1', 'uuid', uuid) const localVarPath = `/api/v2/objects/{uuid}/previews` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (search !== undefined) { localVarQueryParameter['search'] = search; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Accepts a request to grant record-level scopes on the object to selected users, teams, and installed apps. Validation runs synchronously; grants are applied asynchronously. Returns 202 Accepted on success. * @summary Grant object record access * @param {string} objectUuid * @param {ObjectAccessGrantRequestDTO} objectAccessGrantRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ grantObjectAccess: async (objectUuid: string, objectAccessGrantRequestDTO: ObjectAccessGrantRequestDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('grantObjectAccess', 'objectUuid', objectUuid) // verify required parameter 'objectAccessGrantRequestDTO' is not null or undefined assertParamExists('grantObjectAccess', 'objectAccessGrantRequestDTO', objectAccessGrantRequestDTO) const localVarPath = `/api/v2/objects/{objectUuid}/access-grant` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(objectAccessGrantRequestDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Hard-deletes a soft-deleted object. Only objects with deletedAt set can be removed. * @summary Permanently delete archived object * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ permanentlyDeleteArchivedObject: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('permanentlyDeleteArchivedObject', 'uuid', uuid) const localVarPath = `/api/v2/objects/{uuid}/permanent` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates or updates a preview for a specific object. The preview type is determined by the \'name\' path variable. Depending on the preview type (e.g., \'detail\', \'flow\', \'pill\', or \'page\'), the request body will be mapped to the corresponding PreviewDTO and converted to the appropriate Preview model. * @summary Save object preview * @param {string} uuid * @param {string} name * @param {PreviewDTO} previewDTO Preview data * @param {*} [options] Override http request option. * @throws {RequiredError} */ savePreview: async (uuid: string, name: string, previewDTO: PreviewDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('savePreview', 'uuid', uuid) // verify required parameter 'name' is not null or undefined assertParamExists('savePreview', 'name', name) // verify required parameter 'previewDTO' is not null or undefined assertParamExists('savePreview', 'previewDTO', previewDTO) const localVarPath = `/api/v2/objects/{uuid}/previews/{name}` .replace('{uuid}', encodeURIComponent(String(uuid))) .replace('{name}', encodeURIComponent(String(name))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(previewDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Synchronizes existing records for an object after extended configuration changes. The object path variable accepts UUID or object name. Leftover nodes with a unique object label and no primary_object are stamped first. Records that reference the object as primary object, extended object, or label are re-extended. * @summary Sync extended objects for existing records * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ syncExtendedObjects: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('syncExtendedObjects', 'uuid', uuid) const localVarPath = `/api/v2/objects/{uuid}/syncExtendedObjects` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates indices of objects based on the provided mapping. The request body should contain a mapping of object UUIDs to index values. Optional request parameters determine if views, properties, and relations should be included in the response. * @summary Update object indices * @param {{ [key: string]: number; }} requestBody Mapping of object indices * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateIndices3: async (requestBody: { [key: string]: number; }, views?: string, properties?: string, relations?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'requestBody' is not null or undefined assertParamExists('updateIndices3', 'requestBody', requestBody) const localVarPath = `/api/v2/objects/updateIndices`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (views !== undefined) { localVarQueryParameter['views'] = views; } if (properties !== undefined) { localVarQueryParameter['properties'] = properties; } if (relations !== undefined) { localVarQueryParameter['relations'] = relations; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Sets which properties on this object should generate lifecycle history records when their values change. * @summary Configure lifecycle property tracking * @param {string} objectUuid * @param {UpdateLifecyclePropertiesDTO} updateLifecyclePropertiesDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateLifecycleProperties: async (objectUuid: string, updateLifecyclePropertiesDTO: UpdateLifecyclePropertiesDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('updateLifecycleProperties', 'objectUuid', objectUuid) // verify required parameter 'updateLifecyclePropertiesDTO' is not null or undefined assertParamExists('updateLifecycleProperties', 'updateLifecyclePropertiesDTO', updateLifecyclePropertiesDTO) const localVarPath = `/api/v2/objects/{objectUuid}/lifecycle-properties` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateLifecyclePropertiesDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates an existing object identified by its UUID with new details. Optional parameters determine if views, properties, and relations should be included in the response. Validation rules: label (required, must be a string, maximum 32 characters), plural (required, must be a string, maximum 32 characters), name (required, must be a string, must be lowercase, must be unique, must match name pattern (lowercase letters, numbers, underscores), cannot be changed after creation), description (optional, maximum 255 characters), groups (required, must be an array of string, no duplicate values allowed). * @summary Update object by UUID * @param {string} uuid * @param {CaraerObjectDTO} caraerObjectDTO Updated details of the object * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateObject: async (uuid: string, caraerObjectDTO: CaraerObjectDTO, views?: string, properties?: string, relations?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('updateObject', 'uuid', uuid) // verify required parameter 'caraerObjectDTO' is not null or undefined assertParamExists('updateObject', 'caraerObjectDTO', caraerObjectDTO) const localVarPath = `/api/v2/objects/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (views !== undefined) { localVarQueryParameter['views'] = views; } if (properties !== undefined) { localVarQueryParameter['properties'] = properties; } if (relations !== undefined) { localVarQueryParameter['relations'] = relations; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(caraerObjectDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ObjectsApi - functional programming interface */ export const ObjectsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ObjectsApiAxiosParamCreator(configuration) return { /** * Creates a new Caraer object using the provided details. Optional request parameters specify whether to include views, properties, and relations in the response. Validation rules: label (required, must be a string, maximum 32 characters), plural (required, must be a string, maximum 32 characters), name (required, must be a string, must be lowercase, must be unique, must match name pattern (lowercase letters, numbers, underscores)), description (optional, maximum 255 characters), groups (required, must be an array of string, no duplicate values allowed). * @summary Create new object * @param {CaraerObjectDTO} caraerObjectDTO Details of the object to create * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createObject(caraerObjectDTO: CaraerObjectDTO, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createObject(caraerObjectDTO, views, properties, relations, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.createObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a specific object identified by its UUID. * @summary Delete object by UUID * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteObject(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteObject(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.deleteObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns all company users, teams, and installed apps that can receive record access on an object. * @summary List access grant candidates * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccessGrantCandidates(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccessGrantCandidates(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.getAccessGrantCandidates']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches a single object by its UUID. Optional parameters determine whether to include views, properties, and relations in the response. * @summary Get object by UUID * @param {string} uuid * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getObject(uuid: string, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getObject(uuid, views, properties, relations, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.getObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches a paginated list of objects, optionally including views, properties, and/or relations. The request body should contain pagination details such as limit, page, filters, sort, and query. * @summary Fetch paginated objects * @param {PaginationRequest} paginationRequest Pagination request details * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getObjects(paginationRequest: PaginationRequest, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getObjects(paginationRequest, views, properties, relations, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.getObjects']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches a preview for an object by the object\'s UUID and the preview name. Returns the preview data wrapped in a ShowResponse. * @summary Get specific preview by name * @param {string} uuid * @param {string} name * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPreview(uuid: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPreview(uuid, name, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.getPreview']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches all previews over all objects. Returns a PaginationResponse containing a list of preview DTOs. * @summary Get all previews over all objects * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPreviews(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPreviews(paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.getPreviews']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches all previews associated with a specific object. Returns a PaginationResponse containing a list of preview DTOs. * @summary Get all previews of an object * @param {string} uuid * @param {string} [search] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPreviews1(uuid: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPreviews1(uuid, search, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.getPreviews1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Accepts a request to grant record-level scopes on the object to selected users, teams, and installed apps. Validation runs synchronously; grants are applied asynchronously. Returns 202 Accepted on success. * @summary Grant object record access * @param {string} objectUuid * @param {ObjectAccessGrantRequestDTO} objectAccessGrantRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async grantObjectAccess(objectUuid: string, objectAccessGrantRequestDTO: ObjectAccessGrantRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.grantObjectAccess(objectUuid, objectAccessGrantRequestDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.grantObjectAccess']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Hard-deletes a soft-deleted object. Only objects with deletedAt set can be removed. * @summary Permanently delete archived object * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async permanentlyDeleteArchivedObject(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.permanentlyDeleteArchivedObject(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.permanentlyDeleteArchivedObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates or updates a preview for a specific object. The preview type is determined by the \'name\' path variable. Depending on the preview type (e.g., \'detail\', \'flow\', \'pill\', or \'page\'), the request body will be mapped to the corresponding PreviewDTO and converted to the appropriate Preview model. * @summary Save object preview * @param {string} uuid * @param {string} name * @param {PreviewDTO} previewDTO Preview data * @param {*} [options] Override http request option. * @throws {RequiredError} */ async savePreview(uuid: string, name: string, previewDTO: PreviewDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.savePreview(uuid, name, previewDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.savePreview']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Synchronizes existing records for an object after extended configuration changes. The object path variable accepts UUID or object name. Leftover nodes with a unique object label and no primary_object are stamped first. Records that reference the object as primary object, extended object, or label are re-extended. * @summary Sync extended objects for existing records * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async syncExtendedObjects(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.syncExtendedObjects(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.syncExtendedObjects']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates indices of objects based on the provided mapping. The request body should contain a mapping of object UUIDs to index values. Optional request parameters determine if views, properties, and relations should be included in the response. * @summary Update object indices * @param {{ [key: string]: number; }} requestBody Mapping of object indices * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateIndices3(requestBody: { [key: string]: number; }, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateIndices3(requestBody, views, properties, relations, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.updateIndices3']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Sets which properties on this object should generate lifecycle history records when their values change. * @summary Configure lifecycle property tracking * @param {string} objectUuid * @param {UpdateLifecyclePropertiesDTO} updateLifecyclePropertiesDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateLifecycleProperties(objectUuid: string, updateLifecyclePropertiesDTO: UpdateLifecyclePropertiesDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateLifecycleProperties(objectUuid, updateLifecyclePropertiesDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.updateLifecycleProperties']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates an existing object identified by its UUID with new details. Optional parameters determine if views, properties, and relations should be included in the response. Validation rules: label (required, must be a string, maximum 32 characters), plural (required, must be a string, maximum 32 characters), name (required, must be a string, must be lowercase, must be unique, must match name pattern (lowercase letters, numbers, underscores), cannot be changed after creation), description (optional, maximum 255 characters), groups (required, must be an array of string, no duplicate values allowed). * @summary Update object by UUID * @param {string} uuid * @param {CaraerObjectDTO} caraerObjectDTO Updated details of the object * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateObject(uuid: string, caraerObjectDTO: CaraerObjectDTO, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateObject(uuid, caraerObjectDTO, views, properties, relations, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ObjectsApi.updateObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ObjectsApi - factory interface */ export const ObjectsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ObjectsApiFp(configuration) return { /** * Creates a new Caraer object using the provided details. Optional request parameters specify whether to include views, properties, and relations in the response. Validation rules: label (required, must be a string, maximum 32 characters), plural (required, must be a string, maximum 32 characters), name (required, must be a string, must be lowercase, must be unique, must match name pattern (lowercase letters, numbers, underscores)), description (optional, maximum 255 characters), groups (required, must be an array of string, no duplicate values allowed). * @summary Create new object * @param {CaraerObjectDTO} caraerObjectDTO Details of the object to create * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createObject(caraerObjectDTO: CaraerObjectDTO, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createObject(caraerObjectDTO, views, properties, relations, options).then((request) => request(axios, basePath)); }, /** * Deletes a specific object identified by its UUID. * @summary Delete object by UUID * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteObject(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteObject(uuid, options).then((request) => request(axios, basePath)); }, /** * Returns all company users, teams, and installed apps that can receive record access on an object. * @summary List access grant candidates * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccessGrantCandidates(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccessGrantCandidates(options).then((request) => request(axios, basePath)); }, /** * Fetches a single object by its UUID. Optional parameters determine whether to include views, properties, and relations in the response. * @summary Get object by UUID * @param {string} uuid * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getObject(uuid: string, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getObject(uuid, views, properties, relations, options).then((request) => request(axios, basePath)); }, /** * Fetches a paginated list of objects, optionally including views, properties, and/or relations. The request body should contain pagination details such as limit, page, filters, sort, and query. * @summary Fetch paginated objects * @param {PaginationRequest} paginationRequest Pagination request details * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getObjects(paginationRequest: PaginationRequest, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getObjects(paginationRequest, views, properties, relations, options).then((request) => request(axios, basePath)); }, /** * Fetches a preview for an object by the object\'s UUID and the preview name. Returns the preview data wrapped in a ShowResponse. * @summary Get specific preview by name * @param {string} uuid * @param {string} name * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPreview(uuid: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPreview(uuid, name, options).then((request) => request(axios, basePath)); }, /** * Fetches all previews over all objects. Returns a PaginationResponse containing a list of preview DTOs. * @summary Get all previews over all objects * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPreviews(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPreviews(paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Fetches all previews associated with a specific object. Returns a PaginationResponse containing a list of preview DTOs. * @summary Get all previews of an object * @param {string} uuid * @param {string} [search] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPreviews1(uuid: string, search?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPreviews1(uuid, search, options).then((request) => request(axios, basePath)); }, /** * Accepts a request to grant record-level scopes on the object to selected users, teams, and installed apps. Validation runs synchronously; grants are applied asynchronously. Returns 202 Accepted on success. * @summary Grant object record access * @param {string} objectUuid * @param {ObjectAccessGrantRequestDTO} objectAccessGrantRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ grantObjectAccess(objectUuid: string, objectAccessGrantRequestDTO: ObjectAccessGrantRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.grantObjectAccess(objectUuid, objectAccessGrantRequestDTO, options).then((request) => request(axios, basePath)); }, /** * Hard-deletes a soft-deleted object. Only objects with deletedAt set can be removed. * @summary Permanently delete archived object * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ permanentlyDeleteArchivedObject(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.permanentlyDeleteArchivedObject(uuid, options).then((request) => request(axios, basePath)); }, /** * Creates or updates a preview for a specific object. The preview type is determined by the \'name\' path variable. Depending on the preview type (e.g., \'detail\', \'flow\', \'pill\', or \'page\'), the request body will be mapped to the corresponding PreviewDTO and converted to the appropriate Preview model. * @summary Save object preview * @param {string} uuid * @param {string} name * @param {PreviewDTO} previewDTO Preview data * @param {*} [options] Override http request option. * @throws {RequiredError} */ savePreview(uuid: string, name: string, previewDTO: PreviewDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.savePreview(uuid, name, previewDTO, options).then((request) => request(axios, basePath)); }, /** * Synchronizes existing records for an object after extended configuration changes. The object path variable accepts UUID or object name. Leftover nodes with a unique object label and no primary_object are stamped first. Records that reference the object as primary object, extended object, or label are re-extended. * @summary Sync extended objects for existing records * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ syncExtendedObjects(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.syncExtendedObjects(uuid, options).then((request) => request(axios, basePath)); }, /** * Updates indices of objects based on the provided mapping. The request body should contain a mapping of object UUIDs to index values. Optional request parameters determine if views, properties, and relations should be included in the response. * @summary Update object indices * @param {{ [key: string]: number; }} requestBody Mapping of object indices * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateIndices3(requestBody: { [key: string]: number; }, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateIndices3(requestBody, views, properties, relations, options).then((request) => request(axios, basePath)); }, /** * Sets which properties on this object should generate lifecycle history records when their values change. * @summary Configure lifecycle property tracking * @param {string} objectUuid * @param {UpdateLifecyclePropertiesDTO} updateLifecyclePropertiesDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateLifecycleProperties(objectUuid: string, updateLifecyclePropertiesDTO: UpdateLifecyclePropertiesDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateLifecycleProperties(objectUuid, updateLifecyclePropertiesDTO, options).then((request) => request(axios, basePath)); }, /** * Updates an existing object identified by its UUID with new details. Optional parameters determine if views, properties, and relations should be included in the response. Validation rules: label (required, must be a string, maximum 32 characters), plural (required, must be a string, maximum 32 characters), name (required, must be a string, must be lowercase, must be unique, must match name pattern (lowercase letters, numbers, underscores), cannot be changed after creation), description (optional, maximum 255 characters), groups (required, must be an array of string, no duplicate values allowed). * @summary Update object by UUID * @param {string} uuid * @param {CaraerObjectDTO} caraerObjectDTO Updated details of the object * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateObject(uuid: string, caraerObjectDTO: CaraerObjectDTO, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateObject(uuid, caraerObjectDTO, views, properties, relations, options).then((request) => request(axios, basePath)); }, }; }; /** * ObjectsApi - object-oriented interface */ export class ObjectsApi extends BaseAPI { /** * Creates a new Caraer object using the provided details. Optional request parameters specify whether to include views, properties, and relations in the response. Validation rules: label (required, must be a string, maximum 32 characters), plural (required, must be a string, maximum 32 characters), name (required, must be a string, must be lowercase, must be unique, must match name pattern (lowercase letters, numbers, underscores)), description (optional, maximum 255 characters), groups (required, must be an array of string, no duplicate values allowed). * @summary Create new object * @param {CaraerObjectDTO} caraerObjectDTO Details of the object to create * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createObject(caraerObjectDTO: CaraerObjectDTO, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).createObject(caraerObjectDTO, views, properties, relations, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes a specific object identified by its UUID. * @summary Delete object by UUID * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteObject(uuid: string, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).deleteObject(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Returns all company users, teams, and installed apps that can receive record access on an object. * @summary List access grant candidates * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getAccessGrantCandidates(options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).getAccessGrantCandidates(options).then((request) => request(this.axios, this.basePath)); } /** * Fetches a single object by its UUID. Optional parameters determine whether to include views, properties, and relations in the response. * @summary Get object by UUID * @param {string} uuid * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getObject(uuid: string, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).getObject(uuid, views, properties, relations, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches a paginated list of objects, optionally including views, properties, and/or relations. The request body should contain pagination details such as limit, page, filters, sort, and query. * @summary Fetch paginated objects * @param {PaginationRequest} paginationRequest Pagination request details * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getObjects(paginationRequest: PaginationRequest, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).getObjects(paginationRequest, views, properties, relations, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches a preview for an object by the object\'s UUID and the preview name. Returns the preview data wrapped in a ShowResponse. * @summary Get specific preview by name * @param {string} uuid * @param {string} name * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPreview(uuid: string, name: string, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).getPreview(uuid, name, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches all previews over all objects. Returns a PaginationResponse containing a list of preview DTOs. * @summary Get all previews over all objects * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPreviews(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).getPreviews(paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches all previews associated with a specific object. Returns a PaginationResponse containing a list of preview DTOs. * @summary Get all previews of an object * @param {string} uuid * @param {string} [search] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPreviews1(uuid: string, search?: string, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).getPreviews1(uuid, search, options).then((request) => request(this.axios, this.basePath)); } /** * Accepts a request to grant record-level scopes on the object to selected users, teams, and installed apps. Validation runs synchronously; grants are applied asynchronously. Returns 202 Accepted on success. * @summary Grant object record access * @param {string} objectUuid * @param {ObjectAccessGrantRequestDTO} objectAccessGrantRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public grantObjectAccess(objectUuid: string, objectAccessGrantRequestDTO: ObjectAccessGrantRequestDTO, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).grantObjectAccess(objectUuid, objectAccessGrantRequestDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Hard-deletes a soft-deleted object. Only objects with deletedAt set can be removed. * @summary Permanently delete archived object * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public permanentlyDeleteArchivedObject(uuid: string, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).permanentlyDeleteArchivedObject(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Creates or updates a preview for a specific object. The preview type is determined by the \'name\' path variable. Depending on the preview type (e.g., \'detail\', \'flow\', \'pill\', or \'page\'), the request body will be mapped to the corresponding PreviewDTO and converted to the appropriate Preview model. * @summary Save object preview * @param {string} uuid * @param {string} name * @param {PreviewDTO} previewDTO Preview data * @param {*} [options] Override http request option. * @throws {RequiredError} */ public savePreview(uuid: string, name: string, previewDTO: PreviewDTO, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).savePreview(uuid, name, previewDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Synchronizes existing records for an object after extended configuration changes. The object path variable accepts UUID or object name. Leftover nodes with a unique object label and no primary_object are stamped first. Records that reference the object as primary object, extended object, or label are re-extended. * @summary Sync extended objects for existing records * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public syncExtendedObjects(uuid: string, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).syncExtendedObjects(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Updates indices of objects based on the provided mapping. The request body should contain a mapping of object UUIDs to index values. Optional request parameters determine if views, properties, and relations should be included in the response. * @summary Update object indices * @param {{ [key: string]: number; }} requestBody Mapping of object indices * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateIndices3(requestBody: { [key: string]: number; }, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).updateIndices3(requestBody, views, properties, relations, options).then((request) => request(this.axios, this.basePath)); } /** * Sets which properties on this object should generate lifecycle history records when their values change. * @summary Configure lifecycle property tracking * @param {string} objectUuid * @param {UpdateLifecyclePropertiesDTO} updateLifecyclePropertiesDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateLifecycleProperties(objectUuid: string, updateLifecyclePropertiesDTO: UpdateLifecyclePropertiesDTO, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).updateLifecycleProperties(objectUuid, updateLifecyclePropertiesDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Updates an existing object identified by its UUID with new details. Optional parameters determine if views, properties, and relations should be included in the response. Validation rules: label (required, must be a string, maximum 32 characters), plural (required, must be a string, maximum 32 characters), name (required, must be a string, must be lowercase, must be unique, must match name pattern (lowercase letters, numbers, underscores), cannot be changed after creation), description (optional, maximum 255 characters), groups (required, must be an array of string, no duplicate values allowed). * @summary Update object by UUID * @param {string} uuid * @param {CaraerObjectDTO} caraerObjectDTO Updated details of the object * @param {string} [views] * @param {string} [properties] * @param {string} [relations] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateObject(uuid: string, caraerObjectDTO: CaraerObjectDTO, views?: string, properties?: string, relations?: string, options?: RawAxiosRequestConfig) { return ObjectsApiFp(this.configuration).updateObject(uuid, caraerObjectDTO, views, properties, relations, options).then((request) => request(this.axios, this.basePath)); } } /** * PropertyApi - axios parameter creator */ export const PropertyApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Attaches existing properties from other objects to the target object in a single request. Archived links on the target object are restored. Properties already active on the target are rejected. * @summary Copy properties to object * @param {string} objectUuid * @param {CopyPropertiesToObjectRequest} copyPropertiesToObjectRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ copyPropertiesToObject: async (objectUuid: string, copyPropertiesToObjectRequest: CopyPropertiesToObjectRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('copyPropertiesToObject', 'objectUuid', objectUuid) // verify required parameter 'copyPropertiesToObjectRequest' is not null or undefined assertParamExists('copyPropertiesToObject', 'copyPropertiesToObjectRequest', copyPropertiesToObjectRequest) const localVarPath = `/api/v2/objects/{objectUuid}/properties/copy` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(copyPropertiesToObjectRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new property for a specific object using the provided property details. The SavePropertyDTO must include necessary details, and the object association is determined by the objectUuid path variable. Returns a CreateResponse containing the newly created property as a PropertyDTO. Validation rules: name (required, must be unique, must be lowercase, must match name pattern (lowercase letters, numbers, underscores)), label (required), description (maximum 255 characters), type (required, must be one of valid PropertyTypes, cannot be changed after creation), format (required, must be one of valid PropertyFormats, cannot be changed after creation), rules (required, must be an array of string). * @summary Create a new property * @param {string} objectUuid * @param {SavePropertyDTO} savePropertyDTO Property details for creation * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProperty: async (objectUuid: string, savePropertyDTO: SavePropertyDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('createProperty', 'objectUuid', objectUuid) // verify required parameter 'savePropertyDTO' is not null or undefined assertParamExists('createProperty', 'savePropertyDTO', savePropertyDTO) const localVarPath = `/api/v2/objects/{objectUuid}/properties/` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(savePropertyDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes a property from the specified object, identified by the property UUID. Returns a DeleteResponse containing the deleted property\'s details. * @summary Delete a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProperty: async (objectUuid: string, propertyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('deleteProperty', 'objectUuid', objectUuid) // verify required parameter 'propertyUuid' is not null or undefined assertParamExists('deleteProperty', 'propertyUuid', propertyUuid) const localVarPath = `/api/v2/objects/{objectUuid}/properties/{propertyUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{propertyUuid}', encodeURIComponent(String(propertyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the calculation functions available for each property type (for example min/max on numbers). * @summary Retrieve allowed calculation types per property type * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCalculationTypes: async (objectUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getCalculationTypes', 'objectUuid', objectUuid) const localVarPath = `/api/v2/objects/{objectUuid}/properties/calculation-types` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches a sorted list of available property formats. The formats are retrieved from the PropertyFormats enum and converted to PropertyFormat instances. * @summary Retrieve property formats * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFormats: async (objectUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getFormats', 'objectUuid', objectUuid) const localVarPath = `/api/v2/objects/{objectUuid}/properties/formats` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a paginated list of properties for a given object. Depending on the object UUID format, a Cypher query is constructed to filter properties belonging to that object. Returns a PaginationResponse containing PropertyDTO objects. * @summary Fetch paginated properties * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination details (limit, page, filters, sort, query) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProperties: async (objectUuid: string, paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getProperties', 'objectUuid', objectUuid) // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getProperties', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/objects/{objectUuid}/properties/index` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves details of a property by its UUID and associates it with its parent object. Returns a ShowResponse containing a PropertyDTO object with complete property details. * @summary Fetch a specific property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProperty: async (objectUuid: string, propertyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getProperty', 'objectUuid', objectUuid) // verify required parameter 'propertyUuid' is not null or undefined assertParamExists('getProperty', 'propertyUuid', propertyUuid) const localVarPath = `/api/v2/objects/{objectUuid}/properties/{propertyUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{propertyUuid}', encodeURIComponent(String(propertyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns calculation functions supported for the property\'s type. * @summary Retrieve allowed calculation types for a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPropertyCalculationTypes: async (objectUuid: string, propertyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getPropertyCalculationTypes', 'objectUuid', objectUuid) // verify required parameter 'propertyUuid' is not null or undefined assertParamExists('getPropertyCalculationTypes', 'propertyUuid', propertyUuid) const localVarPath = `/api/v2/objects/{objectUuid}/properties/{propertyUuid}/calculation-types` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{propertyUuid}', encodeURIComponent(String(propertyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes the soft-deleted HAS_PROPERTY link to this object. If the property is not linked to any other object, the property node is hard-deleted. * @summary Permanently remove archived property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ permanentlyDeleteArchivedProperty: async (objectUuid: string, propertyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('permanentlyDeleteArchivedProperty', 'objectUuid', objectUuid) // verify required parameter 'propertyUuid' is not null or undefined assertParamExists('permanentlyDeleteArchivedProperty', 'propertyUuid', propertyUuid) const localVarPath = `/api/v2/objects/{objectUuid}/properties/{propertyUuid}/permanent` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{propertyUuid}', encodeURIComponent(String(propertyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Pins the specified property for the logged-in user. Pinned properties appear at the top of record create and update forms. * @summary Pin a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ pinProperty: async (objectUuid: string, propertyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('pinProperty', 'objectUuid', objectUuid) // verify required parameter 'propertyUuid' is not null or undefined assertParamExists('pinProperty', 'propertyUuid', propertyUuid) const localVarPath = `/api/v2/objects/{objectUuid}/properties/{propertyUuid}/pin` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{propertyUuid}', encodeURIComponent(String(propertyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Restores a previously deleted property by propertyUuid for the specified objectUuid. Returns a RestoreResponse containing the restored property details. * @summary Restore a soft-deleted property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreProperty: async (objectUuid: string, propertyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('restoreProperty', 'objectUuid', objectUuid) // verify required parameter 'propertyUuid' is not null or undefined assertParamExists('restoreProperty', 'propertyUuid', propertyUuid) const localVarPath = `/api/v2/objects/{objectUuid}/properties/{propertyUuid}/restore` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{propertyUuid}', encodeURIComponent(String(propertyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Removes the pin for the specified property for the logged-in user. * @summary Unpin a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ unpinProperty: async (objectUuid: string, propertyUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('unpinProperty', 'objectUuid', objectUuid) // verify required parameter 'propertyUuid' is not null or undefined assertParamExists('unpinProperty', 'propertyUuid', propertyUuid) const localVarPath = `/api/v2/objects/{objectUuid}/properties/{propertyUuid}/pin` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{propertyUuid}', encodeURIComponent(String(propertyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the indices for properties of a specific object. The request body should contain a mapping between property UUIDs and their new index values. Returns a SuccessResponse containing a list of updated PropertyDTO objects. * @summary Update property indices * @param {string} objectUuid * @param {{ [key: string]: number; }} requestBody Mapping of property UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateIndices2: async (objectUuid: string, requestBody: { [key: string]: number; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('updateIndices2', 'objectUuid', objectUuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('updateIndices2', 'requestBody', requestBody) const localVarPath = `/api/v2/objects/{objectUuid}/properties/updateIndices` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the details of an existing property for a specific object. The property details are provided via SavePropertyDTO, and the property is identified by its UUID. Returns an UpdateResponse containing the updated property as a PropertyDTO. Validation rules: name (required, must be unique, must be lowercase, must match name pattern (lowercase letters, numbers, underscores), cannot be changed after creation), label (required), description (maximum 255 characters), type (required, must be one of valid PropertyTypes, cannot be changed after creation), format (required, must be one of valid PropertyFormats, cannot be changed after creation), rules (required, must be an array of string). * @summary Update an existing property * @param {string} objectUuid * @param {string} propertyUuid * @param {SavePropertyDTO} savePropertyDTO Updated property details * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProperty: async (objectUuid: string, propertyUuid: string, savePropertyDTO: SavePropertyDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('updateProperty', 'objectUuid', objectUuid) // verify required parameter 'propertyUuid' is not null or undefined assertParamExists('updateProperty', 'propertyUuid', propertyUuid) // verify required parameter 'savePropertyDTO' is not null or undefined assertParamExists('updateProperty', 'savePropertyDTO', savePropertyDTO) const localVarPath = `/api/v2/objects/{objectUuid}/properties/{propertyUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{propertyUuid}', encodeURIComponent(String(propertyUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(savePropertyDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * PropertyApi - functional programming interface */ export const PropertyApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PropertyApiAxiosParamCreator(configuration) return { /** * Attaches existing properties from other objects to the target object in a single request. Archived links on the target object are restored. Properties already active on the target are rejected. * @summary Copy properties to object * @param {string} objectUuid * @param {CopyPropertiesToObjectRequest} copyPropertiesToObjectRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async copyPropertiesToObject(objectUuid: string, copyPropertiesToObjectRequest: CopyPropertiesToObjectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.copyPropertiesToObject(objectUuid, copyPropertiesToObjectRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.copyPropertiesToObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a new property for a specific object using the provided property details. The SavePropertyDTO must include necessary details, and the object association is determined by the objectUuid path variable. Returns a CreateResponse containing the newly created property as a PropertyDTO. Validation rules: name (required, must be unique, must be lowercase, must match name pattern (lowercase letters, numbers, underscores)), label (required), description (maximum 255 characters), type (required, must be one of valid PropertyTypes, cannot be changed after creation), format (required, must be one of valid PropertyFormats, cannot be changed after creation), rules (required, must be an array of string). * @summary Create a new property * @param {string} objectUuid * @param {SavePropertyDTO} savePropertyDTO Property details for creation * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createProperty(objectUuid: string, savePropertyDTO: SavePropertyDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProperty(objectUuid, savePropertyDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.createProperty']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a property from the specified object, identified by the property UUID. Returns a DeleteResponse containing the deleted property\'s details. * @summary Delete a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProperty(objectUuid, propertyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.deleteProperty']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the calculation functions available for each property type (for example min/max on numbers). * @summary Retrieve allowed calculation types per property type * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCalculationTypes(objectUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCalculationTypes(objectUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.getCalculationTypes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches a sorted list of available property formats. The formats are retrieved from the PropertyFormats enum and converted to PropertyFormat instances. * @summary Retrieve property formats * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getFormats(objectUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFormats(objectUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.getFormats']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a paginated list of properties for a given object. Depending on the object UUID format, a Cypher query is constructed to filter properties belonging to that object. Returns a PaginationResponse containing PropertyDTO objects. * @summary Fetch paginated properties * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination details (limit, page, filters, sort, query) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProperties(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProperties(objectUuid, paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.getProperties']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves details of a property by its UUID and associates it with its parent object. Returns a ShowResponse containing a PropertyDTO object with complete property details. * @summary Fetch a specific property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProperty(objectUuid, propertyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.getProperty']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns calculation functions supported for the property\'s type. * @summary Retrieve allowed calculation types for a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPropertyCalculationTypes(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPropertyCalculationTypes(objectUuid, propertyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.getPropertyCalculationTypes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes the soft-deleted HAS_PROPERTY link to this object. If the property is not linked to any other object, the property node is hard-deleted. * @summary Permanently remove archived property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async permanentlyDeleteArchivedProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.permanentlyDeleteArchivedProperty(objectUuid, propertyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.permanentlyDeleteArchivedProperty']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Pins the specified property for the logged-in user. Pinned properties appear at the top of record create and update forms. * @summary Pin a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async pinProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.pinProperty(objectUuid, propertyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.pinProperty']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restores a previously deleted property by propertyUuid for the specified objectUuid. Returns a RestoreResponse containing the restored property details. * @summary Restore a soft-deleted property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async restoreProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreProperty(objectUuid, propertyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.restoreProperty']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Removes the pin for the specified property for the logged-in user. * @summary Unpin a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unpinProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unpinProperty(objectUuid, propertyUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.unpinProperty']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates the indices for properties of a specific object. The request body should contain a mapping between property UUIDs and their new index values. Returns a SuccessResponse containing a list of updated PropertyDTO objects. * @summary Update property indices * @param {string} objectUuid * @param {{ [key: string]: number; }} requestBody Mapping of property UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateIndices2(objectUuid: string, requestBody: { [key: string]: number; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateIndices2(objectUuid, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.updateIndices2']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates the details of an existing property for a specific object. The property details are provided via SavePropertyDTO, and the property is identified by its UUID. Returns an UpdateResponse containing the updated property as a PropertyDTO. Validation rules: name (required, must be unique, must be lowercase, must match name pattern (lowercase letters, numbers, underscores), cannot be changed after creation), label (required), description (maximum 255 characters), type (required, must be one of valid PropertyTypes, cannot be changed after creation), format (required, must be one of valid PropertyFormats, cannot be changed after creation), rules (required, must be an array of string). * @summary Update an existing property * @param {string} objectUuid * @param {string} propertyUuid * @param {SavePropertyDTO} savePropertyDTO Updated property details * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateProperty(objectUuid: string, propertyUuid: string, savePropertyDTO: SavePropertyDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateProperty(objectUuid, propertyUuid, savePropertyDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['PropertyApi.updateProperty']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * PropertyApi - factory interface */ export const PropertyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = PropertyApiFp(configuration) return { /** * Attaches existing properties from other objects to the target object in a single request. Archived links on the target object are restored. Properties already active on the target are rejected. * @summary Copy properties to object * @param {string} objectUuid * @param {CopyPropertiesToObjectRequest} copyPropertiesToObjectRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ copyPropertiesToObject(objectUuid: string, copyPropertiesToObjectRequest: CopyPropertiesToObjectRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.copyPropertiesToObject(objectUuid, copyPropertiesToObjectRequest, options).then((request) => request(axios, basePath)); }, /** * Creates a new property for a specific object using the provided property details. The SavePropertyDTO must include necessary details, and the object association is determined by the objectUuid path variable. Returns a CreateResponse containing the newly created property as a PropertyDTO. Validation rules: name (required, must be unique, must be lowercase, must match name pattern (lowercase letters, numbers, underscores)), label (required), description (maximum 255 characters), type (required, must be one of valid PropertyTypes, cannot be changed after creation), format (required, must be one of valid PropertyFormats, cannot be changed after creation), rules (required, must be an array of string). * @summary Create a new property * @param {string} objectUuid * @param {SavePropertyDTO} savePropertyDTO Property details for creation * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProperty(objectUuid: string, savePropertyDTO: SavePropertyDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProperty(objectUuid, savePropertyDTO, options).then((request) => request(axios, basePath)); }, /** * Deletes a property from the specified object, identified by the property UUID. Returns a DeleteResponse containing the deleted property\'s details. * @summary Delete a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProperty(objectUuid, propertyUuid, options).then((request) => request(axios, basePath)); }, /** * Returns the calculation functions available for each property type (for example min/max on numbers). * @summary Retrieve allowed calculation types per property type * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCalculationTypes(objectUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCalculationTypes(objectUuid, options).then((request) => request(axios, basePath)); }, /** * Fetches a sorted list of available property formats. The formats are retrieved from the PropertyFormats enum and converted to PropertyFormat instances. * @summary Retrieve property formats * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFormats(objectUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFormats(objectUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves a paginated list of properties for a given object. Depending on the object UUID format, a Cypher query is constructed to filter properties belonging to that object. Returns a PaginationResponse containing PropertyDTO objects. * @summary Fetch paginated properties * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination details (limit, page, filters, sort, query) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProperties(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProperties(objectUuid, paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Retrieves details of a property by its UUID and associates it with its parent object. Returns a ShowResponse containing a PropertyDTO object with complete property details. * @summary Fetch a specific property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProperty(objectUuid, propertyUuid, options).then((request) => request(axios, basePath)); }, /** * Returns calculation functions supported for the property\'s type. * @summary Retrieve allowed calculation types for a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPropertyCalculationTypes(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPropertyCalculationTypes(objectUuid, propertyUuid, options).then((request) => request(axios, basePath)); }, /** * Deletes the soft-deleted HAS_PROPERTY link to this object. If the property is not linked to any other object, the property node is hard-deleted. * @summary Permanently remove archived property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ permanentlyDeleteArchivedProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.permanentlyDeleteArchivedProperty(objectUuid, propertyUuid, options).then((request) => request(axios, basePath)); }, /** * Pins the specified property for the logged-in user. Pinned properties appear at the top of record create and update forms. * @summary Pin a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ pinProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.pinProperty(objectUuid, propertyUuid, options).then((request) => request(axios, basePath)); }, /** * Restores a previously deleted property by propertyUuid for the specified objectUuid. Returns a RestoreResponse containing the restored property details. * @summary Restore a soft-deleted property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreProperty(objectUuid, propertyUuid, options).then((request) => request(axios, basePath)); }, /** * Removes the pin for the specified property for the logged-in user. * @summary Unpin a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ unpinProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unpinProperty(objectUuid, propertyUuid, options).then((request) => request(axios, basePath)); }, /** * Updates the indices for properties of a specific object. The request body should contain a mapping between property UUIDs and their new index values. Returns a SuccessResponse containing a list of updated PropertyDTO objects. * @summary Update property indices * @param {string} objectUuid * @param {{ [key: string]: number; }} requestBody Mapping of property UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateIndices2(objectUuid: string, requestBody: { [key: string]: number; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateIndices2(objectUuid, requestBody, options).then((request) => request(axios, basePath)); }, /** * Updates the details of an existing property for a specific object. The property details are provided via SavePropertyDTO, and the property is identified by its UUID. Returns an UpdateResponse containing the updated property as a PropertyDTO. Validation rules: name (required, must be unique, must be lowercase, must match name pattern (lowercase letters, numbers, underscores), cannot be changed after creation), label (required), description (maximum 255 characters), type (required, must be one of valid PropertyTypes, cannot be changed after creation), format (required, must be one of valid PropertyFormats, cannot be changed after creation), rules (required, must be an array of string). * @summary Update an existing property * @param {string} objectUuid * @param {string} propertyUuid * @param {SavePropertyDTO} savePropertyDTO Updated property details * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProperty(objectUuid: string, propertyUuid: string, savePropertyDTO: SavePropertyDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateProperty(objectUuid, propertyUuid, savePropertyDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * PropertyApi - object-oriented interface */ export class PropertyApi extends BaseAPI { /** * Attaches existing properties from other objects to the target object in a single request. Archived links on the target object are restored. Properties already active on the target are rejected. * @summary Copy properties to object * @param {string} objectUuid * @param {CopyPropertiesToObjectRequest} copyPropertiesToObjectRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public copyPropertiesToObject(objectUuid: string, copyPropertiesToObjectRequest: CopyPropertiesToObjectRequest, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).copyPropertiesToObject(objectUuid, copyPropertiesToObjectRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a new property for a specific object using the provided property details. The SavePropertyDTO must include necessary details, and the object association is determined by the objectUuid path variable. Returns a CreateResponse containing the newly created property as a PropertyDTO. Validation rules: name (required, must be unique, must be lowercase, must match name pattern (lowercase letters, numbers, underscores)), label (required), description (maximum 255 characters), type (required, must be one of valid PropertyTypes, cannot be changed after creation), format (required, must be one of valid PropertyFormats, cannot be changed after creation), rules (required, must be an array of string). * @summary Create a new property * @param {string} objectUuid * @param {SavePropertyDTO} savePropertyDTO Property details for creation * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createProperty(objectUuid: string, savePropertyDTO: SavePropertyDTO, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).createProperty(objectUuid, savePropertyDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes a property from the specified object, identified by the property UUID. Returns a DeleteResponse containing the deleted property\'s details. * @summary Delete a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).deleteProperty(objectUuid, propertyUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Returns the calculation functions available for each property type (for example min/max on numbers). * @summary Retrieve allowed calculation types per property type * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getCalculationTypes(objectUuid: string, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).getCalculationTypes(objectUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches a sorted list of available property formats. The formats are retrieved from the PropertyFormats enum and converted to PropertyFormat instances. * @summary Retrieve property formats * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getFormats(objectUuid: string, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).getFormats(objectUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a paginated list of properties for a given object. Depending on the object UUID format, a Cypher query is constructed to filter properties belonging to that object. Returns a PaginationResponse containing PropertyDTO objects. * @summary Fetch paginated properties * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination details (limit, page, filters, sort, query) * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getProperties(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).getProperties(objectUuid, paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves details of a property by its UUID and associates it with its parent object. Returns a ShowResponse containing a PropertyDTO object with complete property details. * @summary Fetch a specific property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).getProperty(objectUuid, propertyUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Returns calculation functions supported for the property\'s type. * @summary Retrieve allowed calculation types for a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPropertyCalculationTypes(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).getPropertyCalculationTypes(objectUuid, propertyUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes the soft-deleted HAS_PROPERTY link to this object. If the property is not linked to any other object, the property node is hard-deleted. * @summary Permanently remove archived property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public permanentlyDeleteArchivedProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).permanentlyDeleteArchivedProperty(objectUuid, propertyUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Pins the specified property for the logged-in user. Pinned properties appear at the top of record create and update forms. * @summary Pin a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public pinProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).pinProperty(objectUuid, propertyUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Restores a previously deleted property by propertyUuid for the specified objectUuid. Returns a RestoreResponse containing the restored property details. * @summary Restore a soft-deleted property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public restoreProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).restoreProperty(objectUuid, propertyUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Removes the pin for the specified property for the logged-in user. * @summary Unpin a property * @param {string} objectUuid * @param {string} propertyUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public unpinProperty(objectUuid: string, propertyUuid: string, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).unpinProperty(objectUuid, propertyUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Updates the indices for properties of a specific object. The request body should contain a mapping between property UUIDs and their new index values. Returns a SuccessResponse containing a list of updated PropertyDTO objects. * @summary Update property indices * @param {string} objectUuid * @param {{ [key: string]: number; }} requestBody Mapping of property UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateIndices2(objectUuid: string, requestBody: { [key: string]: number; }, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).updateIndices2(objectUuid, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * Updates the details of an existing property for a specific object. The property details are provided via SavePropertyDTO, and the property is identified by its UUID. Returns an UpdateResponse containing the updated property as a PropertyDTO. Validation rules: name (required, must be unique, must be lowercase, must match name pattern (lowercase letters, numbers, underscores), cannot be changed after creation), label (required), description (maximum 255 characters), type (required, must be one of valid PropertyTypes, cannot be changed after creation), format (required, must be one of valid PropertyFormats, cannot be changed after creation), rules (required, must be an array of string). * @summary Update an existing property * @param {string} objectUuid * @param {string} propertyUuid * @param {SavePropertyDTO} savePropertyDTO Updated property details * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateProperty(objectUuid: string, propertyUuid: string, savePropertyDTO: SavePropertyDTO, options?: RawAxiosRequestConfig) { return PropertyApiFp(this.configuration).updateProperty(objectUuid, propertyUuid, savePropertyDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * RecordsApi - axios parameter creator */ export const RecordsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Deletes a record specified by its UUID. * @summary Delete a record * @param {string} uuid * @param {string} [mode] Controls how the record is removed. Allowed values: \'archive\' (soft delete, keep all data), \'anonymize\' (remove data but keep relationships), \'delete\' (hard delete). Defaults to \'archive\'. * @param {*} [options] Override http request option. * @throws {RequiredError} */ _delete: async (uuid: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('_delete', 'uuid', uuid) const localVarPath = `/api/v2/records/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (mode !== undefined) { localVarQueryParameter['mode'] = mode; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Groups Neo4j records by property or time bucket and returns series points with optional drilldown filters. * @summary Aggregate records for analytics charts * @param {AggregateRequest} aggregateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ aggregate: async (aggregateRequest: AggregateRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'aggregateRequest' is not null or undefined assertParamExists('aggregate', 'aggregateRequest', aggregateRequest) const localVarPath = `/api/v2/records/aggregate`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(aggregateRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Runs multiple aggregation requests for dashboard widgets. * @summary Batch aggregate records for analytics dashboards * @param {AggregateBatchRequest} aggregateBatchRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ aggregateBatch: async (aggregateBatchRequest: AggregateBatchRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'aggregateBatchRequest' is not null or undefined assertParamExists('aggregateBatch', 'aggregateBatchRequest', aggregateBatchRequest) const localVarPath = `/api/v2/records/aggregate/batch`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(aggregateBatchRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Archives, anonymizes, or permanently deletes multiple records in one request. Returns HTTP 200 when every item succeeds. Returns HTTP 200 with per-record errors when one or more items fail; successful items are still applied and listed in data.uuids. * @summary Bulk delete records * @param {string} objectName * @param {BulkDeleteRecordsRequest} bulkDeleteRecordsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ bulkDelete: async (objectName: string, bulkDeleteRecordsRequest: BulkDeleteRecordsRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('bulkDelete', 'objectName', objectName) // verify required parameter 'bulkDeleteRecordsRequest' is not null or undefined assertParamExists('bulkDelete', 'bulkDeleteRecordsRequest', bulkDeleteRecordsRequest) const localVarPath = `/api/v2/records/{objectName}/bulk-delete` .replace('{objectName}', encodeURIComponent(String(objectName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(bulkDeleteRecordsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates or updates multiple records in one request. Returns HTTP 201 when every item succeeds (no per-record errors). Returns HTTP 200 when one or more items fail validation; successful items are still persisted and listed in data.records, with failures in errors. * @summary Bulk create or update records * @param {string} objectName * @param {BulkEditRecordsRequest} bulkEditRecordsRequest * @param {boolean} [ignoreErrors] If \'true\', allows each save to proceed while ignoring certain non-critical validation errors, when supported. * @param {*} [options] Override http request option. * @throws {RequiredError} */ bulkEdit: async (objectName: string, bulkEditRecordsRequest: BulkEditRecordsRequest, ignoreErrors?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('bulkEdit', 'objectName', objectName) // verify required parameter 'bulkEditRecordsRequest' is not null or undefined assertParamExists('bulkEdit', 'bulkEditRecordsRequest', bulkEditRecordsRequest) const localVarPath = `/api/v2/records/{objectName}/bulk` .replace('{objectName}', encodeURIComponent(String(objectName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (ignoreErrors !== undefined) { localVarQueryParameter['ignoreErrors'] = ignoreErrors; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(bulkEditRecordsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new record for the specified object using the provided RecordDTO data. Returns a CreateResponse with the newly created record. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Create a new record * @param {string} objectName * @param {RecordDTO} recordDTO Record data to create * @param {CreateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the creation to proceed while ignoring certain non-critical validation errors, when supported. * @param {CreateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ create: async (objectName: string, recordDTO: RecordDTO, parse?: CreateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: CreateRecordReturnFormatEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('create', 'objectName', objectName) // verify required parameter 'recordDTO' is not null or undefined assertParamExists('create', 'recordDTO', recordDTO) const localVarPath = `/api/v2/records/{objectName}` .replace('{objectName}', encodeURIComponent(String(objectName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } if (ignoreErrors !== undefined) { localVarQueryParameter['ignoreErrors'] = ignoreErrors; } if (recordReturnFormat !== undefined) { localVarQueryParameter['recordReturnFormat'] = recordReturnFormat; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recordDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new record or updates an existing one. Match order: body/path uuid already in the graph, then unique property values. If a matching record exists, it is updated; otherwise, a new record is created. Returns a CreateResponse or UpdateResponse with the record details. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Create or update a record * @param {string} objectName * @param {RecordDTO} recordDTO Record data to create or update. Top-level uuid updates that record when it already exists. * @param {CreateOrUpdateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] * @param {CreateOrUpdateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrUpdate: async (objectName: string, recordDTO: RecordDTO, parse?: CreateOrUpdateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: CreateOrUpdateRecordReturnFormatEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('createOrUpdate', 'objectName', objectName) // verify required parameter 'recordDTO' is not null or undefined assertParamExists('createOrUpdate', 'recordDTO', recordDTO) const localVarPath = `/api/v2/records/{objectName}/createOrUpdate` .replace('{objectName}', encodeURIComponent(String(objectName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } if (ignoreErrors !== undefined) { localVarQueryParameter['ignoreErrors'] = ignoreErrors; } if (recordReturnFormat !== undefined) { localVarQueryParameter['recordReturnFormat'] = recordReturnFormat; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recordDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a relation between two records identified by their UUIDs using the provided relation name. * @summary Create a relation between records * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {object} [primary] When \'true\', marks the created relation as primary. Defaults to \'false\'. * @param {RelationEdgeRequestDTO} [relationEdgeRequestDTO] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRelation: async (fromUuid: string, relationName: string, toUuid: string, primary?: object, relationEdgeRequestDTO?: RelationEdgeRequestDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'fromUuid' is not null or undefined assertParamExists('createRelation', 'fromUuid', fromUuid) // verify required parameter 'relationName' is not null or undefined assertParamExists('createRelation', 'relationName', relationName) // verify required parameter 'toUuid' is not null or undefined assertParamExists('createRelation', 'toUuid', toUuid) const localVarPath = `/api/v2/records/relations/{fromUuid}/{relationName}/{toUuid}` .replace('{fromUuid}', encodeURIComponent(String(fromUuid))) .replace('{relationName}', encodeURIComponent(String(relationName))) .replace('{toUuid}', encodeURIComponent(String(toUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (primary !== undefined) { for (const [key, value] of Object.entries(primary)) { localVarQueryParameter[key] = value; } } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(relationEdgeRequestDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes a relation between two records identified by their UUIDs and the relation name. * @summary Delete a relation between records * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteRelation: async (fromUuid: string, relationName: string, toUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'fromUuid' is not null or undefined assertParamExists('deleteRelation', 'fromUuid', fromUuid) // verify required parameter 'relationName' is not null or undefined assertParamExists('deleteRelation', 'relationName', relationName) // verify required parameter 'toUuid' is not null or undefined assertParamExists('deleteRelation', 'toUuid', toUuid) const localVarPath = `/api/v2/records/relations/{fromUuid}/{relationName}/{toUuid}` .replace('{fromUuid}', encodeURIComponent(String(fromUuid))) .replace('{relationName}', encodeURIComponent(String(relationName))) .replace('{toUuid}', encodeURIComponent(String(toUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Extends a record identified by its UUID to one or more objects. You can use this to move a record or add it to another object so it\'ll be visible in the new object.Returns a SuccessResponse confirming that the record has been extended. * @summary Extend a record * @param {string} uuid * @param {ExtendRecordRequest} extendRecordRequest * @param {ExtendRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ExtendParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ extend: async (uuid: string, extendRecordRequest: ExtendRecordRequest, recordReturnFormat?: ExtendRecordReturnFormatEnum, parse?: ExtendParseEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('extend', 'uuid', uuid) // verify required parameter 'extendRecordRequest' is not null or undefined assertParamExists('extend', 'extendRecordRequest', extendRecordRequest) const localVarPath = `/api/v2/records/{uuid}/extend` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (recordReturnFormat !== undefined) { localVarQueryParameter['recordReturnFormat'] = recordReturnFormat; } if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(extendRecordRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a paginated list of records. If a preview type is specified in the request, returns records formatted for preview; otherwise, returns full record details. * @summary Fetch paginated records * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for records * @param {IndexParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [archived] When \'true\', archived records are returned instead of active records. Defaults to \'false\'. * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {IndexRecordReturnFormatEnum} [recordReturnFormat] Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ index: async (recordPaginationRequest: RecordPaginationRequest, parse?: IndexParseEnum, archived?: boolean, relatedRecordUuid?: string, recordReturnFormat?: IndexRecordReturnFormatEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordPaginationRequest' is not null or undefined assertParamExists('index', 'recordPaginationRequest', recordPaginationRequest) const localVarPath = `/api/v2/records/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } if (archived !== undefined) { localVarQueryParameter['archived'] = archived; } if (relatedRecordUuid !== undefined) { localVarQueryParameter['relatedRecordUuid'] = relatedRecordUuid; } if (recordReturnFormat !== undefined) { localVarQueryParameter['recordReturnFormat'] = recordReturnFormat; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recordPaginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a list of records formatted for flow view based on a specific property. If the property is not provided in the request, defaults to the \'status\' property of the main object. Returns a SuccessResponse containing the flow records. * @summary Fetch records for flow view * @param {FlowPaginationRequest} flowPaginationRequest Pagination request for flow view * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {IndexFlowParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ indexFlow: async (flowPaginationRequest: FlowPaginationRequest, relatedRecordUuid?: string, parse?: IndexFlowParseEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'flowPaginationRequest' is not null or undefined assertParamExists('indexFlow', 'flowPaginationRequest', flowPaginationRequest) const localVarPath = `/api/v2/records/index/flow`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (relatedRecordUuid !== undefined) { localVarQueryParameter['relatedRecordUuid'] = relatedRecordUuid; } if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(flowPaginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a paginated list of webpages for page view. The search query is temporarily removed from the pagination request and passed separately. Returns a PaginationResponse containing WebpageDTO objects. * @summary Fetch records for page view * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for page view * @param {string} [environment] Target environment for resolving webpages (for example \'staging\' or \'production\'). Defaults to \'staging\'. * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {string} [fields] Comma-separated WebpageDTO fields to return (for example: uuid,title). When omitted, the full WebpageDTO is returned. * @param {boolean} [publishedOnly] When true, only returns pages published in the selected environment. * @param {boolean} [excludeTemplateRelated] When true, excludes pages whose options mark them as related to a template. * @param {*} [options] Override http request option. * @throws {RequiredError} */ indexPage: async (recordPaginationRequest: RecordPaginationRequest, environment?: string, relatedRecordUuid?: string, fields?: string, publishedOnly?: boolean, excludeTemplateRelated?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordPaginationRequest' is not null or undefined assertParamExists('indexPage', 'recordPaginationRequest', recordPaginationRequest) const localVarPath = `/api/v2/records/index/page`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } if (relatedRecordUuid !== undefined) { localVarQueryParameter['relatedRecordUuid'] = relatedRecordUuid; } if (fields !== undefined) { localVarQueryParameter['fields'] = fields; } if (publishedOnly !== undefined) { localVarQueryParameter['publishedOnly'] = publishedOnly; } if (excludeTemplateRelated !== undefined) { localVarQueryParameter['excludeTemplateRelated'] = excludeTemplateRelated; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recordPaginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves records formatted for table display. Returns a PaginationResponse containing records formatted for table view. * @summary Fetch records for table view * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for table view * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {*} [options] Override http request option. * @throws {RequiredError} */ indexTable: async (recordPaginationRequest: RecordPaginationRequest, relatedRecordUuid?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'recordPaginationRequest' is not null or undefined assertParamExists('indexTable', 'recordPaginationRequest', recordPaginationRequest) const localVarPath = `/api/v2/records/index/table`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (relatedRecordUuid !== undefined) { localVarQueryParameter['relatedRecordUuid'] = relatedRecordUuid; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recordPaginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a preview for a record specified by its UUID and preview name. Returns a ShowResponse containing the preview data. * @summary Get record preview * @param {string} uuid * @param {string} name * @param {string} [object] Optional object name used to resolve the record before building the preview. * @param {PreviewParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ preview: async (uuid: string, name: string, object?: string, parse?: PreviewParseEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('preview', 'uuid', uuid) // verify required parameter 'name' is not null or undefined assertParamExists('preview', 'name', name) const localVarPath = `/api/v2/records/{uuid}/previews/{name}` .replace('{uuid}', encodeURIComponent(String(uuid))) .replace('{name}', encodeURIComponent(String(name))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (object !== undefined) { localVarQueryParameter['object'] = object; } if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Executes a two-pass GraphRAG query using natural language or a declarative plan. Returns records with scores and graph evidence. * @summary Advanced graph-aware record query * @param {AdvancedRecordQueryRequest} advancedRecordQueryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ query: async (advancedRecordQueryRequest: AdvancedRecordQueryRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'advancedRecordQueryRequest' is not null or undefined assertParamExists('query', 'advancedRecordQueryRequest', advancedRecordQueryRequest) const localVarPath = `/api/v2/records/query`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(advancedRecordQueryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Restores a soft-deleted record identified by its UUID. Returns a SuccessResponse confirming that the record has been restored. * @summary Restore a deleted record * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ restore: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('restore', 'uuid', uuid) const localVarPath = `/api/v2/records/{uuid}/restore` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Performs a search for records based on the specified criteria in the request body. Returns a PaginationResponse containing matching records. * @summary Search records * @param {SearchRequest} searchRequest Search criteria * @param {boolean} [archived] When set to \'true\', includes soft-deleted records in the search results. * @param {SearchParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {SearchRecordReturnFormatEnum} [recordReturnFormat] Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ search: async (searchRequest: SearchRequest, archived?: boolean, parse?: SearchParseEnum, recordReturnFormat?: SearchRecordReturnFormatEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'searchRequest' is not null or undefined assertParamExists('search', 'searchRequest', searchRequest) const localVarPath = `/api/v2/records/search`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (archived !== undefined) { localVarQueryParameter['archived'] = archived; } if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } if (recordReturnFormat !== undefined) { localVarQueryParameter['recordReturnFormat'] = recordReturnFormat; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(searchRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Searches records across multiple object types in one request. Use fromObjectUuid + relationName to limit to relation target objects (e.g. event attendees), or objectUuids for an explicit list, or omit both to search all company objects (capped). Returns preview-shaped results suitable for relation pickers. * @summary Search records across objects * @param {CrossObjectRecordSearchRequest} crossObjectRecordSearchRequest * @param {boolean} [archived] When true, includes archived records. * @param {SearchCrossObjectParseEnum} [parse] Parse property values for display. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchCrossObject: async (crossObjectRecordSearchRequest: CrossObjectRecordSearchRequest, archived?: boolean, parse?: SearchCrossObjectParseEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'crossObjectRecordSearchRequest' is not null or undefined assertParamExists('searchCrossObject', 'crossObjectRecordSearchRequest', crossObjectRecordSearchRequest) const localVarPath = `/api/v2/records/search/cross-object`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (archived !== undefined) { localVarQueryParameter['archived'] = archived; } if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(crossObjectRecordSearchRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves detailed information about a record by its UUID. Returns a ShowResponse containing the record details. Prefer GET /{objectName}/{uuid} when the object context is known. * @summary Get record details * @param {string} uuid * @param {string} [object] Optional object name to resolve the record in a specific object context. * @param {ShowRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ShowParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {string} [fields] Comma-separated property names to include (for example: name,status). When omitted, all properties are returned. * @param {*} [options] Override http request option. * @throws {RequiredError} */ show: async (uuid: string, object?: string, recordReturnFormat?: ShowRecordReturnFormatEnum, parse?: ShowParseEnum, fields?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('show', 'uuid', uuid) const localVarPath = `/api/v2/records/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (object !== undefined) { localVarQueryParameter['object'] = object; } if (recordReturnFormat !== undefined) { localVarQueryParameter['recordReturnFormat'] = recordReturnFormat; } if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } if (fields !== undefined) { localVarQueryParameter['fields'] = fields; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a record by object name and UUID. Same response as GET /{uuid}?object={objectName}. * @summary Get record details by object * @param {string} objectName * @param {string} uuid * @param {ShowByObjectRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ShowByObjectParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ showByObject: async (objectName: string, uuid: string, recordReturnFormat?: ShowByObjectRecordReturnFormatEnum, parse?: ShowByObjectParseEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('showByObject', 'objectName', objectName) // verify required parameter 'uuid' is not null or undefined assertParamExists('showByObject', 'uuid', uuid) const localVarPath = `/api/v2/records/{objectName}/{uuid}` .replace('{objectName}', encodeURIComponent(String(objectName))) .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (recordReturnFormat !== undefined) { localVarQueryParameter['recordReturnFormat'] = recordReturnFormat; } if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Uses structured OpenAI output plus schema validation to propose dashboard charts for an object. Returns an empty list when AI is unavailable. * @summary Suggest analytics widgets with AI * @param {SuggestAnalyticsWidgetsRequest} suggestAnalyticsWidgetsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ suggestAnalyticsWidgets: async (suggestAnalyticsWidgetsRequest: SuggestAnalyticsWidgetsRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'suggestAnalyticsWidgetsRequest' is not null or undefined assertParamExists('suggestAnalyticsWidgets', 'suggestAnalyticsWidgetsRequest', suggestAnalyticsWidgetsRequest) const localVarPath = `/api/v2/records/analytics/suggest-widgets`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(suggestAnalyticsWidgetsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates a record\'s details identified by its UUID. The record data is provided as a RecordDTO. Returns an UpdateResponse with the updated record. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Update a record * @param {string} uuid * @param {string} objectName * @param {RecordDTO} recordDTO Record data to update * @param {UpdateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the update to proceed while ignoring certain non-critical validation errors, when supported. * @param {UpdateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ update: async (uuid: string, objectName: string, recordDTO: RecordDTO, parse?: UpdateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: UpdateRecordReturnFormatEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('update', 'uuid', uuid) // verify required parameter 'objectName' is not null or undefined assertParamExists('update', 'objectName', objectName) // verify required parameter 'recordDTO' is not null or undefined assertParamExists('update', 'recordDTO', recordDTO) const localVarPath = `/api/v2/records/{objectName}/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))) .replace('{objectName}', encodeURIComponent(String(objectName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } if (ignoreErrors !== undefined) { localVarQueryParameter['ignoreErrors'] = ignoreErrors; } if (recordReturnFormat !== undefined) { localVarQueryParameter['recordReturnFormat'] = recordReturnFormat; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recordDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates a record identified by UUID. Optional object query param resolves the object context (same as GET /{uuid}?object=...). When omitted, the record\'s current/primary object is used. Prefer PUT /{objectName}/{uuid} when the object context is known. * @summary Update a record by UUID * @param {string} uuid * @param {RecordDTO} recordDTO * @param {string} [object] Optional object name to resolve the record in a specific object context. * @param {UpdateByUuidParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the update to proceed while ignoring certain non-critical validation errors, when supported. * @param {UpdateByUuidRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateByUuid: async (uuid: string, recordDTO: RecordDTO, object?: string, parse?: UpdateByUuidParseEnum, ignoreErrors?: boolean, recordReturnFormat?: UpdateByUuidRecordReturnFormatEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('updateByUuid', 'uuid', uuid) // verify required parameter 'recordDTO' is not null or undefined assertParamExists('updateByUuid', 'recordDTO', recordDTO) const localVarPath = `/api/v2/records/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (object !== undefined) { localVarQueryParameter['object'] = object; } if (parse !== undefined) { localVarQueryParameter['parse'] = parse; } if (ignoreErrors !== undefined) { localVarQueryParameter['ignoreErrors'] = ignoreErrors; } if (recordReturnFormat !== undefined) { localVarQueryParameter['recordReturnFormat'] = recordReturnFormat; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recordDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Patches values stored on an existing relation edge. Only keys present in edgeProperties are written; a null value clears a key. * @summary Update relation edge properties * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {RelationEdgeRequestDTO} relationEdgeRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRelationEdge: async (fromUuid: string, relationName: string, toUuid: string, relationEdgeRequestDTO: RelationEdgeRequestDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'fromUuid' is not null or undefined assertParamExists('updateRelationEdge', 'fromUuid', fromUuid) // verify required parameter 'relationName' is not null or undefined assertParamExists('updateRelationEdge', 'relationName', relationName) // verify required parameter 'toUuid' is not null or undefined assertParamExists('updateRelationEdge', 'toUuid', toUuid) // verify required parameter 'relationEdgeRequestDTO' is not null or undefined assertParamExists('updateRelationEdge', 'relationEdgeRequestDTO', relationEdgeRequestDTO) const localVarPath = `/api/v2/records/relations/{fromUuid}/{relationName}/{toUuid}` .replace('{fromUuid}', encodeURIComponent(String(fromUuid))) .replace('{relationName}', encodeURIComponent(String(relationName))) .replace('{toUuid}', encodeURIComponent(String(toUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(relationEdgeRequestDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * RecordsApi - functional programming interface */ export const RecordsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = RecordsApiAxiosParamCreator(configuration) return { /** * Deletes a record specified by its UUID. * @summary Delete a record * @param {string} uuid * @param {string} [mode] Controls how the record is removed. Allowed values: \'archive\' (soft delete, keep all data), \'anonymize\' (remove data but keep relationships), \'delete\' (hard delete). Defaults to \'archive\'. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async _delete(uuid: string, mode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator._delete(uuid, mode, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi._delete']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Groups Neo4j records by property or time bucket and returns series points with optional drilldown filters. * @summary Aggregate records for analytics charts * @param {AggregateRequest} aggregateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async aggregate(aggregateRequest: AggregateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.aggregate(aggregateRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.aggregate']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Runs multiple aggregation requests for dashboard widgets. * @summary Batch aggregate records for analytics dashboards * @param {AggregateBatchRequest} aggregateBatchRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async aggregateBatch(aggregateBatchRequest: AggregateBatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.aggregateBatch(aggregateBatchRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.aggregateBatch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Archives, anonymizes, or permanently deletes multiple records in one request. Returns HTTP 200 when every item succeeds. Returns HTTP 200 with per-record errors when one or more items fail; successful items are still applied and listed in data.uuids. * @summary Bulk delete records * @param {string} objectName * @param {BulkDeleteRecordsRequest} bulkDeleteRecordsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async bulkDelete(objectName: string, bulkDeleteRecordsRequest: BulkDeleteRecordsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.bulkDelete(objectName, bulkDeleteRecordsRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.bulkDelete']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates or updates multiple records in one request. Returns HTTP 201 when every item succeeds (no per-record errors). Returns HTTP 200 when one or more items fail validation; successful items are still persisted and listed in data.records, with failures in errors. * @summary Bulk create or update records * @param {string} objectName * @param {BulkEditRecordsRequest} bulkEditRecordsRequest * @param {boolean} [ignoreErrors] If \'true\', allows each save to proceed while ignoring certain non-critical validation errors, when supported. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async bulkEdit(objectName: string, bulkEditRecordsRequest: BulkEditRecordsRequest, ignoreErrors?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.bulkEdit(objectName, bulkEditRecordsRequest, ignoreErrors, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.bulkEdit']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a new record for the specified object using the provided RecordDTO data. Returns a CreateResponse with the newly created record. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Create a new record * @param {string} objectName * @param {RecordDTO} recordDTO Record data to create * @param {CreateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the creation to proceed while ignoring certain non-critical validation errors, when supported. * @param {CreateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async create(objectName: string, recordDTO: RecordDTO, parse?: CreateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: CreateRecordReturnFormatEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.create(objectName, recordDTO, parse, ignoreErrors, recordReturnFormat, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.create']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a new record or updates an existing one. Match order: body/path uuid already in the graph, then unique property values. If a matching record exists, it is updated; otherwise, a new record is created. Returns a CreateResponse or UpdateResponse with the record details. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Create or update a record * @param {string} objectName * @param {RecordDTO} recordDTO Record data to create or update. Top-level uuid updates that record when it already exists. * @param {CreateOrUpdateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] * @param {CreateOrUpdateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createOrUpdate(objectName: string, recordDTO: RecordDTO, parse?: CreateOrUpdateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: CreateOrUpdateRecordReturnFormatEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createOrUpdate(objectName, recordDTO, parse, ignoreErrors, recordReturnFormat, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.createOrUpdate']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a relation between two records identified by their UUIDs using the provided relation name. * @summary Create a relation between records * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {object} [primary] When \'true\', marks the created relation as primary. Defaults to \'false\'. * @param {RelationEdgeRequestDTO} [relationEdgeRequestDTO] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createRelation(fromUuid: string, relationName: string, toUuid: string, primary?: object, relationEdgeRequestDTO?: RelationEdgeRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRelation(fromUuid, relationName, toUuid, primary, relationEdgeRequestDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.createRelation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a relation between two records identified by their UUIDs and the relation name. * @summary Delete a relation between records * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteRelation(fromUuid: string, relationName: string, toUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRelation(fromUuid, relationName, toUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.deleteRelation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Extends a record identified by its UUID to one or more objects. You can use this to move a record or add it to another object so it\'ll be visible in the new object.Returns a SuccessResponse confirming that the record has been extended. * @summary Extend a record * @param {string} uuid * @param {ExtendRecordRequest} extendRecordRequest * @param {ExtendRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ExtendParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ async extend(uuid: string, extendRecordRequest: ExtendRecordRequest, recordReturnFormat?: ExtendRecordReturnFormatEnum, parse?: ExtendParseEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.extend(uuid, extendRecordRequest, recordReturnFormat, parse, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.extend']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a paginated list of records. If a preview type is specified in the request, returns records formatted for preview; otherwise, returns full record details. * @summary Fetch paginated records * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for records * @param {IndexParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [archived] When \'true\', archived records are returned instead of active records. Defaults to \'false\'. * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {IndexRecordReturnFormatEnum} [recordReturnFormat] Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async index(recordPaginationRequest: RecordPaginationRequest, parse?: IndexParseEnum, archived?: boolean, relatedRecordUuid?: string, recordReturnFormat?: IndexRecordReturnFormatEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.index(recordPaginationRequest, parse, archived, relatedRecordUuid, recordReturnFormat, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.index']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a list of records formatted for flow view based on a specific property. If the property is not provided in the request, defaults to the \'status\' property of the main object. Returns a SuccessResponse containing the flow records. * @summary Fetch records for flow view * @param {FlowPaginationRequest} flowPaginationRequest Pagination request for flow view * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {IndexFlowParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ async indexFlow(flowPaginationRequest: FlowPaginationRequest, relatedRecordUuid?: string, parse?: IndexFlowParseEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.indexFlow(flowPaginationRequest, relatedRecordUuid, parse, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.indexFlow']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a paginated list of webpages for page view. The search query is temporarily removed from the pagination request and passed separately. Returns a PaginationResponse containing WebpageDTO objects. * @summary Fetch records for page view * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for page view * @param {string} [environment] Target environment for resolving webpages (for example \'staging\' or \'production\'). Defaults to \'staging\'. * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {string} [fields] Comma-separated WebpageDTO fields to return (for example: uuid,title). When omitted, the full WebpageDTO is returned. * @param {boolean} [publishedOnly] When true, only returns pages published in the selected environment. * @param {boolean} [excludeTemplateRelated] When true, excludes pages whose options mark them as related to a template. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async indexPage(recordPaginationRequest: RecordPaginationRequest, environment?: string, relatedRecordUuid?: string, fields?: string, publishedOnly?: boolean, excludeTemplateRelated?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.indexPage(recordPaginationRequest, environment, relatedRecordUuid, fields, publishedOnly, excludeTemplateRelated, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.indexPage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves records formatted for table display. Returns a PaginationResponse containing records formatted for table view. * @summary Fetch records for table view * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for table view * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async indexTable(recordPaginationRequest: RecordPaginationRequest, relatedRecordUuid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.indexTable(recordPaginationRequest, relatedRecordUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.indexTable']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a preview for a record specified by its UUID and preview name. Returns a ShowResponse containing the preview data. * @summary Get record preview * @param {string} uuid * @param {string} name * @param {string} [object] Optional object name used to resolve the record before building the preview. * @param {PreviewParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ async preview(uuid: string, name: string, object?: string, parse?: PreviewParseEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.preview(uuid, name, object, parse, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.preview']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Executes a two-pass GraphRAG query using natural language or a declarative plan. Returns records with scores and graph evidence. * @summary Advanced graph-aware record query * @param {AdvancedRecordQueryRequest} advancedRecordQueryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async query(advancedRecordQueryRequest: AdvancedRecordQueryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.query(advancedRecordQueryRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.query']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restores a soft-deleted record identified by its UUID. Returns a SuccessResponse confirming that the record has been restored. * @summary Restore a deleted record * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async restore(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restore(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.restore']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Performs a search for records based on the specified criteria in the request body. Returns a PaginationResponse containing matching records. * @summary Search records * @param {SearchRequest} searchRequest Search criteria * @param {boolean} [archived] When set to \'true\', includes soft-deleted records in the search results. * @param {SearchParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {SearchRecordReturnFormatEnum} [recordReturnFormat] Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async search(searchRequest: SearchRequest, archived?: boolean, parse?: SearchParseEnum, recordReturnFormat?: SearchRecordReturnFormatEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.search(searchRequest, archived, parse, recordReturnFormat, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.search']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Searches records across multiple object types in one request. Use fromObjectUuid + relationName to limit to relation target objects (e.g. event attendees), or objectUuids for an explicit list, or omit both to search all company objects (capped). Returns preview-shaped results suitable for relation pickers. * @summary Search records across objects * @param {CrossObjectRecordSearchRequest} crossObjectRecordSearchRequest * @param {boolean} [archived] When true, includes archived records. * @param {SearchCrossObjectParseEnum} [parse] Parse property values for display. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async searchCrossObject(crossObjectRecordSearchRequest: CrossObjectRecordSearchRequest, archived?: boolean, parse?: SearchCrossObjectParseEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.searchCrossObject(crossObjectRecordSearchRequest, archived, parse, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.searchCrossObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves detailed information about a record by its UUID. Returns a ShowResponse containing the record details. Prefer GET /{objectName}/{uuid} when the object context is known. * @summary Get record details * @param {string} uuid * @param {string} [object] Optional object name to resolve the record in a specific object context. * @param {ShowRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ShowParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {string} [fields] Comma-separated property names to include (for example: name,status). When omitted, all properties are returned. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async show(uuid: string, object?: string, recordReturnFormat?: ShowRecordReturnFormatEnum, parse?: ShowParseEnum, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.show(uuid, object, recordReturnFormat, parse, fields, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.show']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a record by object name and UUID. Same response as GET /{uuid}?object={objectName}. * @summary Get record details by object * @param {string} objectName * @param {string} uuid * @param {ShowByObjectRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ShowByObjectParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ async showByObject(objectName: string, uuid: string, recordReturnFormat?: ShowByObjectRecordReturnFormatEnum, parse?: ShowByObjectParseEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.showByObject(objectName, uuid, recordReturnFormat, parse, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.showByObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Uses structured OpenAI output plus schema validation to propose dashboard charts for an object. Returns an empty list when AI is unavailable. * @summary Suggest analytics widgets with AI * @param {SuggestAnalyticsWidgetsRequest} suggestAnalyticsWidgetsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async suggestAnalyticsWidgets(suggestAnalyticsWidgetsRequest: SuggestAnalyticsWidgetsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.suggestAnalyticsWidgets(suggestAnalyticsWidgetsRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.suggestAnalyticsWidgets']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates a record\'s details identified by its UUID. The record data is provided as a RecordDTO. Returns an UpdateResponse with the updated record. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Update a record * @param {string} uuid * @param {string} objectName * @param {RecordDTO} recordDTO Record data to update * @param {UpdateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the update to proceed while ignoring certain non-critical validation errors, when supported. * @param {UpdateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async update(uuid: string, objectName: string, recordDTO: RecordDTO, parse?: UpdateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: UpdateRecordReturnFormatEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.update(uuid, objectName, recordDTO, parse, ignoreErrors, recordReturnFormat, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.update']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates a record identified by UUID. Optional object query param resolves the object context (same as GET /{uuid}?object=...). When omitted, the record\'s current/primary object is used. Prefer PUT /{objectName}/{uuid} when the object context is known. * @summary Update a record by UUID * @param {string} uuid * @param {RecordDTO} recordDTO * @param {string} [object] Optional object name to resolve the record in a specific object context. * @param {UpdateByUuidParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the update to proceed while ignoring certain non-critical validation errors, when supported. * @param {UpdateByUuidRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateByUuid(uuid: string, recordDTO: RecordDTO, object?: string, parse?: UpdateByUuidParseEnum, ignoreErrors?: boolean, recordReturnFormat?: UpdateByUuidRecordReturnFormatEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateByUuid(uuid, recordDTO, object, parse, ignoreErrors, recordReturnFormat, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.updateByUuid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Patches values stored on an existing relation edge. Only keys present in edgeProperties are written; a null value clears a key. * @summary Update relation edge properties * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {RelationEdgeRequestDTO} relationEdgeRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateRelationEdge(fromUuid: string, relationName: string, toUuid: string, relationEdgeRequestDTO: RelationEdgeRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateRelationEdge(fromUuid, relationName, toUuid, relationEdgeRequestDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RecordsApi.updateRelationEdge']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * RecordsApi - factory interface */ export const RecordsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = RecordsApiFp(configuration) return { /** * Deletes a record specified by its UUID. * @summary Delete a record * @param {string} uuid * @param {string} [mode] Controls how the record is removed. Allowed values: \'archive\' (soft delete, keep all data), \'anonymize\' (remove data but keep relationships), \'delete\' (hard delete). Defaults to \'archive\'. * @param {*} [options] Override http request option. * @throws {RequiredError} */ _delete(uuid: string, mode?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp._delete(uuid, mode, options).then((request) => request(axios, basePath)); }, /** * Groups Neo4j records by property or time bucket and returns series points with optional drilldown filters. * @summary Aggregate records for analytics charts * @param {AggregateRequest} aggregateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ aggregate(aggregateRequest: AggregateRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.aggregate(aggregateRequest, options).then((request) => request(axios, basePath)); }, /** * Runs multiple aggregation requests for dashboard widgets. * @summary Batch aggregate records for analytics dashboards * @param {AggregateBatchRequest} aggregateBatchRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ aggregateBatch(aggregateBatchRequest: AggregateBatchRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.aggregateBatch(aggregateBatchRequest, options).then((request) => request(axios, basePath)); }, /** * Archives, anonymizes, or permanently deletes multiple records in one request. Returns HTTP 200 when every item succeeds. Returns HTTP 200 with per-record errors when one or more items fail; successful items are still applied and listed in data.uuids. * @summary Bulk delete records * @param {string} objectName * @param {BulkDeleteRecordsRequest} bulkDeleteRecordsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ bulkDelete(objectName: string, bulkDeleteRecordsRequest: BulkDeleteRecordsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.bulkDelete(objectName, bulkDeleteRecordsRequest, options).then((request) => request(axios, basePath)); }, /** * Creates or updates multiple records in one request. Returns HTTP 201 when every item succeeds (no per-record errors). Returns HTTP 200 when one or more items fail validation; successful items are still persisted and listed in data.records, with failures in errors. * @summary Bulk create or update records * @param {string} objectName * @param {BulkEditRecordsRequest} bulkEditRecordsRequest * @param {boolean} [ignoreErrors] If \'true\', allows each save to proceed while ignoring certain non-critical validation errors, when supported. * @param {*} [options] Override http request option. * @throws {RequiredError} */ bulkEdit(objectName: string, bulkEditRecordsRequest: BulkEditRecordsRequest, ignoreErrors?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.bulkEdit(objectName, bulkEditRecordsRequest, ignoreErrors, options).then((request) => request(axios, basePath)); }, /** * Creates a new record for the specified object using the provided RecordDTO data. Returns a CreateResponse with the newly created record. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Create a new record * @param {string} objectName * @param {RecordDTO} recordDTO Record data to create * @param {CreateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the creation to proceed while ignoring certain non-critical validation errors, when supported. * @param {CreateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ create(objectName: string, recordDTO: RecordDTO, parse?: CreateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: CreateRecordReturnFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.create(objectName, recordDTO, parse, ignoreErrors, recordReturnFormat, options).then((request) => request(axios, basePath)); }, /** * Creates a new record or updates an existing one. Match order: body/path uuid already in the graph, then unique property values. If a matching record exists, it is updated; otherwise, a new record is created. Returns a CreateResponse or UpdateResponse with the record details. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Create or update a record * @param {string} objectName * @param {RecordDTO} recordDTO Record data to create or update. Top-level uuid updates that record when it already exists. * @param {CreateOrUpdateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] * @param {CreateOrUpdateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrUpdate(objectName: string, recordDTO: RecordDTO, parse?: CreateOrUpdateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: CreateOrUpdateRecordReturnFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createOrUpdate(objectName, recordDTO, parse, ignoreErrors, recordReturnFormat, options).then((request) => request(axios, basePath)); }, /** * Creates a relation between two records identified by their UUIDs using the provided relation name. * @summary Create a relation between records * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {object} [primary] When \'true\', marks the created relation as primary. Defaults to \'false\'. * @param {RelationEdgeRequestDTO} [relationEdgeRequestDTO] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRelation(fromUuid: string, relationName: string, toUuid: string, primary?: object, relationEdgeRequestDTO?: RelationEdgeRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRelation(fromUuid, relationName, toUuid, primary, relationEdgeRequestDTO, options).then((request) => request(axios, basePath)); }, /** * Deletes a relation between two records identified by their UUIDs and the relation name. * @summary Delete a relation between records * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteRelation(fromUuid: string, relationName: string, toUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteRelation(fromUuid, relationName, toUuid, options).then((request) => request(axios, basePath)); }, /** * Extends a record identified by its UUID to one or more objects. You can use this to move a record or add it to another object so it\'ll be visible in the new object.Returns a SuccessResponse confirming that the record has been extended. * @summary Extend a record * @param {string} uuid * @param {ExtendRecordRequest} extendRecordRequest * @param {ExtendRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ExtendParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ extend(uuid: string, extendRecordRequest: ExtendRecordRequest, recordReturnFormat?: ExtendRecordReturnFormatEnum, parse?: ExtendParseEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.extend(uuid, extendRecordRequest, recordReturnFormat, parse, options).then((request) => request(axios, basePath)); }, /** * Retrieves a paginated list of records. If a preview type is specified in the request, returns records formatted for preview; otherwise, returns full record details. * @summary Fetch paginated records * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for records * @param {IndexParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [archived] When \'true\', archived records are returned instead of active records. Defaults to \'false\'. * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {IndexRecordReturnFormatEnum} [recordReturnFormat] Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ index(recordPaginationRequest: RecordPaginationRequest, parse?: IndexParseEnum, archived?: boolean, relatedRecordUuid?: string, recordReturnFormat?: IndexRecordReturnFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.index(recordPaginationRequest, parse, archived, relatedRecordUuid, recordReturnFormat, options).then((request) => request(axios, basePath)); }, /** * Retrieves a list of records formatted for flow view based on a specific property. If the property is not provided in the request, defaults to the \'status\' property of the main object. Returns a SuccessResponse containing the flow records. * @summary Fetch records for flow view * @param {FlowPaginationRequest} flowPaginationRequest Pagination request for flow view * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {IndexFlowParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ indexFlow(flowPaginationRequest: FlowPaginationRequest, relatedRecordUuid?: string, parse?: IndexFlowParseEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.indexFlow(flowPaginationRequest, relatedRecordUuid, parse, options).then((request) => request(axios, basePath)); }, /** * Retrieves a paginated list of webpages for page view. The search query is temporarily removed from the pagination request and passed separately. Returns a PaginationResponse containing WebpageDTO objects. * @summary Fetch records for page view * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for page view * @param {string} [environment] Target environment for resolving webpages (for example \'staging\' or \'production\'). Defaults to \'staging\'. * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {string} [fields] Comma-separated WebpageDTO fields to return (for example: uuid,title). When omitted, the full WebpageDTO is returned. * @param {boolean} [publishedOnly] When true, only returns pages published in the selected environment. * @param {boolean} [excludeTemplateRelated] When true, excludes pages whose options mark them as related to a template. * @param {*} [options] Override http request option. * @throws {RequiredError} */ indexPage(recordPaginationRequest: RecordPaginationRequest, environment?: string, relatedRecordUuid?: string, fields?: string, publishedOnly?: boolean, excludeTemplateRelated?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.indexPage(recordPaginationRequest, environment, relatedRecordUuid, fields, publishedOnly, excludeTemplateRelated, options).then((request) => request(axios, basePath)); }, /** * Retrieves records formatted for table display. Returns a PaginationResponse containing records formatted for table view. * @summary Fetch records for table view * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for table view * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {*} [options] Override http request option. * @throws {RequiredError} */ indexTable(recordPaginationRequest: RecordPaginationRequest, relatedRecordUuid?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.indexTable(recordPaginationRequest, relatedRecordUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves a preview for a record specified by its UUID and preview name. Returns a ShowResponse containing the preview data. * @summary Get record preview * @param {string} uuid * @param {string} name * @param {string} [object] Optional object name used to resolve the record before building the preview. * @param {PreviewParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ preview(uuid: string, name: string, object?: string, parse?: PreviewParseEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.preview(uuid, name, object, parse, options).then((request) => request(axios, basePath)); }, /** * Executes a two-pass GraphRAG query using natural language or a declarative plan. Returns records with scores and graph evidence. * @summary Advanced graph-aware record query * @param {AdvancedRecordQueryRequest} advancedRecordQueryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ query(advancedRecordQueryRequest: AdvancedRecordQueryRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.query(advancedRecordQueryRequest, options).then((request) => request(axios, basePath)); }, /** * Restores a soft-deleted record identified by its UUID. Returns a SuccessResponse confirming that the record has been restored. * @summary Restore a deleted record * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ restore(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restore(uuid, options).then((request) => request(axios, basePath)); }, /** * Performs a search for records based on the specified criteria in the request body. Returns a PaginationResponse containing matching records. * @summary Search records * @param {SearchRequest} searchRequest Search criteria * @param {boolean} [archived] When set to \'true\', includes soft-deleted records in the search results. * @param {SearchParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {SearchRecordReturnFormatEnum} [recordReturnFormat] Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ search(searchRequest: SearchRequest, archived?: boolean, parse?: SearchParseEnum, recordReturnFormat?: SearchRecordReturnFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.search(searchRequest, archived, parse, recordReturnFormat, options).then((request) => request(axios, basePath)); }, /** * Searches records across multiple object types in one request. Use fromObjectUuid + relationName to limit to relation target objects (e.g. event attendees), or objectUuids for an explicit list, or omit both to search all company objects (capped). Returns preview-shaped results suitable for relation pickers. * @summary Search records across objects * @param {CrossObjectRecordSearchRequest} crossObjectRecordSearchRequest * @param {boolean} [archived] When true, includes archived records. * @param {SearchCrossObjectParseEnum} [parse] Parse property values for display. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchCrossObject(crossObjectRecordSearchRequest: CrossObjectRecordSearchRequest, archived?: boolean, parse?: SearchCrossObjectParseEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.searchCrossObject(crossObjectRecordSearchRequest, archived, parse, options).then((request) => request(axios, basePath)); }, /** * Retrieves detailed information about a record by its UUID. Returns a ShowResponse containing the record details. Prefer GET /{objectName}/{uuid} when the object context is known. * @summary Get record details * @param {string} uuid * @param {string} [object] Optional object name to resolve the record in a specific object context. * @param {ShowRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ShowParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {string} [fields] Comma-separated property names to include (for example: name,status). When omitted, all properties are returned. * @param {*} [options] Override http request option. * @throws {RequiredError} */ show(uuid: string, object?: string, recordReturnFormat?: ShowRecordReturnFormatEnum, parse?: ShowParseEnum, fields?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.show(uuid, object, recordReturnFormat, parse, fields, options).then((request) => request(axios, basePath)); }, /** * Retrieves a record by object name and UUID. Same response as GET /{uuid}?object={objectName}. * @summary Get record details by object * @param {string} objectName * @param {string} uuid * @param {ShowByObjectRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ShowByObjectParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ showByObject(objectName: string, uuid: string, recordReturnFormat?: ShowByObjectRecordReturnFormatEnum, parse?: ShowByObjectParseEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.showByObject(objectName, uuid, recordReturnFormat, parse, options).then((request) => request(axios, basePath)); }, /** * Uses structured OpenAI output plus schema validation to propose dashboard charts for an object. Returns an empty list when AI is unavailable. * @summary Suggest analytics widgets with AI * @param {SuggestAnalyticsWidgetsRequest} suggestAnalyticsWidgetsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ suggestAnalyticsWidgets(suggestAnalyticsWidgetsRequest: SuggestAnalyticsWidgetsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.suggestAnalyticsWidgets(suggestAnalyticsWidgetsRequest, options).then((request) => request(axios, basePath)); }, /** * Updates a record\'s details identified by its UUID. The record data is provided as a RecordDTO. Returns an UpdateResponse with the updated record. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Update a record * @param {string} uuid * @param {string} objectName * @param {RecordDTO} recordDTO Record data to update * @param {UpdateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the update to proceed while ignoring certain non-critical validation errors, when supported. * @param {UpdateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ update(uuid: string, objectName: string, recordDTO: RecordDTO, parse?: UpdateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: UpdateRecordReturnFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.update(uuid, objectName, recordDTO, parse, ignoreErrors, recordReturnFormat, options).then((request) => request(axios, basePath)); }, /** * Updates a record identified by UUID. Optional object query param resolves the object context (same as GET /{uuid}?object=...). When omitted, the record\'s current/primary object is used. Prefer PUT /{objectName}/{uuid} when the object context is known. * @summary Update a record by UUID * @param {string} uuid * @param {RecordDTO} recordDTO * @param {string} [object] Optional object name to resolve the record in a specific object context. * @param {UpdateByUuidParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the update to proceed while ignoring certain non-critical validation errors, when supported. * @param {UpdateByUuidRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateByUuid(uuid: string, recordDTO: RecordDTO, object?: string, parse?: UpdateByUuidParseEnum, ignoreErrors?: boolean, recordReturnFormat?: UpdateByUuidRecordReturnFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateByUuid(uuid, recordDTO, object, parse, ignoreErrors, recordReturnFormat, options).then((request) => request(axios, basePath)); }, /** * Patches values stored on an existing relation edge. Only keys present in edgeProperties are written; a null value clears a key. * @summary Update relation edge properties * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {RelationEdgeRequestDTO} relationEdgeRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRelationEdge(fromUuid: string, relationName: string, toUuid: string, relationEdgeRequestDTO: RelationEdgeRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateRelationEdge(fromUuid, relationName, toUuid, relationEdgeRequestDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * RecordsApi - object-oriented interface */ export class RecordsApi extends BaseAPI { /** * Deletes a record specified by its UUID. * @summary Delete a record * @param {string} uuid * @param {string} [mode] Controls how the record is removed. Allowed values: \'archive\' (soft delete, keep all data), \'anonymize\' (remove data but keep relationships), \'delete\' (hard delete). Defaults to \'archive\'. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public _delete(uuid: string, mode?: string, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration)._delete(uuid, mode, options).then((request) => request(this.axios, this.basePath)); } /** * Groups Neo4j records by property or time bucket and returns series points with optional drilldown filters. * @summary Aggregate records for analytics charts * @param {AggregateRequest} aggregateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public aggregate(aggregateRequest: AggregateRequest, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).aggregate(aggregateRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Runs multiple aggregation requests for dashboard widgets. * @summary Batch aggregate records for analytics dashboards * @param {AggregateBatchRequest} aggregateBatchRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public aggregateBatch(aggregateBatchRequest: AggregateBatchRequest, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).aggregateBatch(aggregateBatchRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Archives, anonymizes, or permanently deletes multiple records in one request. Returns HTTP 200 when every item succeeds. Returns HTTP 200 with per-record errors when one or more items fail; successful items are still applied and listed in data.uuids. * @summary Bulk delete records * @param {string} objectName * @param {BulkDeleteRecordsRequest} bulkDeleteRecordsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public bulkDelete(objectName: string, bulkDeleteRecordsRequest: BulkDeleteRecordsRequest, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).bulkDelete(objectName, bulkDeleteRecordsRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Creates or updates multiple records in one request. Returns HTTP 201 when every item succeeds (no per-record errors). Returns HTTP 200 when one or more items fail validation; successful items are still persisted and listed in data.records, with failures in errors. * @summary Bulk create or update records * @param {string} objectName * @param {BulkEditRecordsRequest} bulkEditRecordsRequest * @param {boolean} [ignoreErrors] If \'true\', allows each save to proceed while ignoring certain non-critical validation errors, when supported. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public bulkEdit(objectName: string, bulkEditRecordsRequest: BulkEditRecordsRequest, ignoreErrors?: boolean, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).bulkEdit(objectName, bulkEditRecordsRequest, ignoreErrors, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a new record for the specified object using the provided RecordDTO data. Returns a CreateResponse with the newly created record. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Create a new record * @param {string} objectName * @param {RecordDTO} recordDTO Record data to create * @param {CreateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the creation to proceed while ignoring certain non-critical validation errors, when supported. * @param {CreateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public create(objectName: string, recordDTO: RecordDTO, parse?: CreateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: CreateRecordReturnFormatEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).create(objectName, recordDTO, parse, ignoreErrors, recordReturnFormat, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a new record or updates an existing one. Match order: body/path uuid already in the graph, then unique property values. If a matching record exists, it is updated; otherwise, a new record is created. Returns a CreateResponse or UpdateResponse with the record details. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Create or update a record * @param {string} objectName * @param {RecordDTO} recordDTO Record data to create or update. Top-level uuid updates that record when it already exists. * @param {CreateOrUpdateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] * @param {CreateOrUpdateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createOrUpdate(objectName: string, recordDTO: RecordDTO, parse?: CreateOrUpdateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: CreateOrUpdateRecordReturnFormatEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).createOrUpdate(objectName, recordDTO, parse, ignoreErrors, recordReturnFormat, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a relation between two records identified by their UUIDs using the provided relation name. * @summary Create a relation between records * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {object} [primary] When \'true\', marks the created relation as primary. Defaults to \'false\'. * @param {RelationEdgeRequestDTO} [relationEdgeRequestDTO] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createRelation(fromUuid: string, relationName: string, toUuid: string, primary?: object, relationEdgeRequestDTO?: RelationEdgeRequestDTO, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).createRelation(fromUuid, relationName, toUuid, primary, relationEdgeRequestDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes a relation between two records identified by their UUIDs and the relation name. * @summary Delete a relation between records * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteRelation(fromUuid: string, relationName: string, toUuid: string, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).deleteRelation(fromUuid, relationName, toUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Extends a record identified by its UUID to one or more objects. You can use this to move a record or add it to another object so it\'ll be visible in the new object.Returns a SuccessResponse confirming that the record has been extended. * @summary Extend a record * @param {string} uuid * @param {ExtendRecordRequest} extendRecordRequest * @param {ExtendRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ExtendParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ public extend(uuid: string, extendRecordRequest: ExtendRecordRequest, recordReturnFormat?: ExtendRecordReturnFormatEnum, parse?: ExtendParseEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).extend(uuid, extendRecordRequest, recordReturnFormat, parse, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a paginated list of records. If a preview type is specified in the request, returns records formatted for preview; otherwise, returns full record details. * @summary Fetch paginated records * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for records * @param {IndexParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [archived] When \'true\', archived records are returned instead of active records. Defaults to \'false\'. * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {IndexRecordReturnFormatEnum} [recordReturnFormat] Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public index(recordPaginationRequest: RecordPaginationRequest, parse?: IndexParseEnum, archived?: boolean, relatedRecordUuid?: string, recordReturnFormat?: IndexRecordReturnFormatEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).index(recordPaginationRequest, parse, archived, relatedRecordUuid, recordReturnFormat, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a list of records formatted for flow view based on a specific property. If the property is not provided in the request, defaults to the \'status\' property of the main object. Returns a SuccessResponse containing the flow records. * @summary Fetch records for flow view * @param {FlowPaginationRequest} flowPaginationRequest Pagination request for flow view * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {IndexFlowParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ public indexFlow(flowPaginationRequest: FlowPaginationRequest, relatedRecordUuid?: string, parse?: IndexFlowParseEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).indexFlow(flowPaginationRequest, relatedRecordUuid, parse, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a paginated list of webpages for page view. The search query is temporarily removed from the pagination request and passed separately. Returns a PaginationResponse containing WebpageDTO objects. * @summary Fetch records for page view * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for page view * @param {string} [environment] Target environment for resolving webpages (for example \'staging\' or \'production\'). Defaults to \'staging\'. * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {string} [fields] Comma-separated WebpageDTO fields to return (for example: uuid,title). When omitted, the full WebpageDTO is returned. * @param {boolean} [publishedOnly] When true, only returns pages published in the selected environment. * @param {boolean} [excludeTemplateRelated] When true, excludes pages whose options mark them as related to a template. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public indexPage(recordPaginationRequest: RecordPaginationRequest, environment?: string, relatedRecordUuid?: string, fields?: string, publishedOnly?: boolean, excludeTemplateRelated?: boolean, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).indexPage(recordPaginationRequest, environment, relatedRecordUuid, fields, publishedOnly, excludeTemplateRelated, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves records formatted for table display. Returns a PaginationResponse containing records formatted for table view. * @summary Fetch records for table view * @param {RecordPaginationRequest} recordPaginationRequest Pagination request for table view * @param {string} [relatedRecordUuid] UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public indexTable(recordPaginationRequest: RecordPaginationRequest, relatedRecordUuid?: string, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).indexTable(recordPaginationRequest, relatedRecordUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a preview for a record specified by its UUID and preview name. Returns a ShowResponse containing the preview data. * @summary Get record preview * @param {string} uuid * @param {string} name * @param {string} [object] Optional object name used to resolve the record before building the preview. * @param {PreviewParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ public preview(uuid: string, name: string, object?: string, parse?: PreviewParseEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).preview(uuid, name, object, parse, options).then((request) => request(this.axios, this.basePath)); } /** * Executes a two-pass GraphRAG query using natural language or a declarative plan. Returns records with scores and graph evidence. * @summary Advanced graph-aware record query * @param {AdvancedRecordQueryRequest} advancedRecordQueryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public query(advancedRecordQueryRequest: AdvancedRecordQueryRequest, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).query(advancedRecordQueryRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Restores a soft-deleted record identified by its UUID. Returns a SuccessResponse confirming that the record has been restored. * @summary Restore a deleted record * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public restore(uuid: string, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).restore(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Performs a search for records based on the specified criteria in the request body. Returns a PaginationResponse containing matching records. * @summary Search records * @param {SearchRequest} searchRequest Search criteria * @param {boolean} [archived] When set to \'true\', includes soft-deleted records in the search results. * @param {SearchParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {SearchRecordReturnFormatEnum} [recordReturnFormat] Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public search(searchRequest: SearchRequest, archived?: boolean, parse?: SearchParseEnum, recordReturnFormat?: SearchRecordReturnFormatEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).search(searchRequest, archived, parse, recordReturnFormat, options).then((request) => request(this.axios, this.basePath)); } /** * Searches records across multiple object types in one request. Use fromObjectUuid + relationName to limit to relation target objects (e.g. event attendees), or objectUuids for an explicit list, or omit both to search all company objects (capped). Returns preview-shaped results suitable for relation pickers. * @summary Search records across objects * @param {CrossObjectRecordSearchRequest} crossObjectRecordSearchRequest * @param {boolean} [archived] When true, includes archived records. * @param {SearchCrossObjectParseEnum} [parse] Parse property values for display. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public searchCrossObject(crossObjectRecordSearchRequest: CrossObjectRecordSearchRequest, archived?: boolean, parse?: SearchCrossObjectParseEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).searchCrossObject(crossObjectRecordSearchRequest, archived, parse, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves detailed information about a record by its UUID. Returns a ShowResponse containing the record details. Prefer GET /{objectName}/{uuid} when the object context is known. * @summary Get record details * @param {string} uuid * @param {string} [object] Optional object name to resolve the record in a specific object context. * @param {ShowRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ShowParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {string} [fields] Comma-separated property names to include (for example: name,status). When omitted, all properties are returned. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public show(uuid: string, object?: string, recordReturnFormat?: ShowRecordReturnFormatEnum, parse?: ShowParseEnum, fields?: string, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).show(uuid, object, recordReturnFormat, parse, fields, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a record by object name and UUID. Same response as GET /{uuid}?object={objectName}. * @summary Get record details by object * @param {string} objectName * @param {string} uuid * @param {ShowByObjectRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {ShowByObjectParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {*} [options] Override http request option. * @throws {RequiredError} */ public showByObject(objectName: string, uuid: string, recordReturnFormat?: ShowByObjectRecordReturnFormatEnum, parse?: ShowByObjectParseEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).showByObject(objectName, uuid, recordReturnFormat, parse, options).then((request) => request(this.axios, this.basePath)); } /** * Uses structured OpenAI output plus schema validation to propose dashboard charts for an object. Returns an empty list when AI is unavailable. * @summary Suggest analytics widgets with AI * @param {SuggestAnalyticsWidgetsRequest} suggestAnalyticsWidgetsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public suggestAnalyticsWidgets(suggestAnalyticsWidgetsRequest: SuggestAnalyticsWidgetsRequest, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).suggestAnalyticsWidgets(suggestAnalyticsWidgetsRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Updates a record\'s details identified by its UUID. The record data is provided as a RecordDTO. Returns an UpdateResponse with the updated record. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc. * @summary Update a record * @param {string} uuid * @param {string} objectName * @param {RecordDTO} recordDTO Record data to update * @param {UpdateParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the update to proceed while ignoring certain non-critical validation errors, when supported. * @param {UpdateRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public update(uuid: string, objectName: string, recordDTO: RecordDTO, parse?: UpdateParseEnum, ignoreErrors?: boolean, recordReturnFormat?: UpdateRecordReturnFormatEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).update(uuid, objectName, recordDTO, parse, ignoreErrors, recordReturnFormat, options).then((request) => request(this.axios, this.basePath)); } /** * Updates a record identified by UUID. Optional object query param resolves the object context (same as GET /{uuid}?object=...). When omitted, the record\'s current/primary object is used. Prefer PUT /{objectName}/{uuid} when the object context is known. * @summary Update a record by UUID * @param {string} uuid * @param {RecordDTO} recordDTO * @param {string} [object] Optional object name to resolve the record in a specific object context. * @param {UpdateByUuidParseEnum} [parse] Value presentation mode: omit/false/db for raw stored values; true/human_readable for display strings; structured for rich JSON (e.g. PropertyOption arrays, related records). * @param {boolean} [ignoreErrors] If \'true\', allows the update to proceed while ignoring certain non-critical validation errors, when supported. * @param {UpdateByUuidRecordReturnFormatEnum} [recordReturnFormat] Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateByUuid(uuid: string, recordDTO: RecordDTO, object?: string, parse?: UpdateByUuidParseEnum, ignoreErrors?: boolean, recordReturnFormat?: UpdateByUuidRecordReturnFormatEnum, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).updateByUuid(uuid, recordDTO, object, parse, ignoreErrors, recordReturnFormat, options).then((request) => request(this.axios, this.basePath)); } /** * Patches values stored on an existing relation edge. Only keys present in edgeProperties are written; a null value clears a key. * @summary Update relation edge properties * @param {string} fromUuid * @param {string} relationName * @param {string} toUuid * @param {RelationEdgeRequestDTO} relationEdgeRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateRelationEdge(fromUuid: string, relationName: string, toUuid: string, relationEdgeRequestDTO: RelationEdgeRequestDTO, options?: RawAxiosRequestConfig) { return RecordsApiFp(this.configuration).updateRelationEdge(fromUuid, relationName, toUuid, relationEdgeRequestDTO, options).then((request) => request(this.axios, this.basePath)); } } export const CreateParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type CreateParseEnum = typeof CreateParseEnum[keyof typeof CreateParseEnum]; export const CreateRecordReturnFormatEnum = { Legacy: 'LEGACY', UserFriendly: 'USER_FRIENDLY', Expanded: 'EXPANDED', } as const; export type CreateRecordReturnFormatEnum = typeof CreateRecordReturnFormatEnum[keyof typeof CreateRecordReturnFormatEnum]; export const CreateOrUpdateParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type CreateOrUpdateParseEnum = typeof CreateOrUpdateParseEnum[keyof typeof CreateOrUpdateParseEnum]; export const CreateOrUpdateRecordReturnFormatEnum = { Legacy: 'LEGACY', UserFriendly: 'USER_FRIENDLY', Expanded: 'EXPANDED', } as const; export type CreateOrUpdateRecordReturnFormatEnum = typeof CreateOrUpdateRecordReturnFormatEnum[keyof typeof CreateOrUpdateRecordReturnFormatEnum]; export const ExtendRecordReturnFormatEnum = { Legacy: 'LEGACY', UserFriendly: 'USER_FRIENDLY', Expanded: 'EXPANDED', } as const; export type ExtendRecordReturnFormatEnum = typeof ExtendRecordReturnFormatEnum[keyof typeof ExtendRecordReturnFormatEnum]; export const ExtendParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type ExtendParseEnum = typeof ExtendParseEnum[keyof typeof ExtendParseEnum]; export const IndexParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type IndexParseEnum = typeof IndexParseEnum[keyof typeof IndexParseEnum]; export const IndexRecordReturnFormatEnum = { Legacy: 'LEGACY', UserFriendly: 'USER_FRIENDLY', Expanded: 'EXPANDED', } as const; export type IndexRecordReturnFormatEnum = typeof IndexRecordReturnFormatEnum[keyof typeof IndexRecordReturnFormatEnum]; export const IndexFlowParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type IndexFlowParseEnum = typeof IndexFlowParseEnum[keyof typeof IndexFlowParseEnum]; export const PreviewParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type PreviewParseEnum = typeof PreviewParseEnum[keyof typeof PreviewParseEnum]; export const SearchParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type SearchParseEnum = typeof SearchParseEnum[keyof typeof SearchParseEnum]; export const SearchRecordReturnFormatEnum = { Legacy: 'LEGACY', UserFriendly: 'USER_FRIENDLY', Expanded: 'EXPANDED', } as const; export type SearchRecordReturnFormatEnum = typeof SearchRecordReturnFormatEnum[keyof typeof SearchRecordReturnFormatEnum]; export const SearchCrossObjectParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type SearchCrossObjectParseEnum = typeof SearchCrossObjectParseEnum[keyof typeof SearchCrossObjectParseEnum]; export const ShowRecordReturnFormatEnum = { Legacy: 'LEGACY', UserFriendly: 'USER_FRIENDLY', Expanded: 'EXPANDED', } as const; export type ShowRecordReturnFormatEnum = typeof ShowRecordReturnFormatEnum[keyof typeof ShowRecordReturnFormatEnum]; export const ShowParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type ShowParseEnum = typeof ShowParseEnum[keyof typeof ShowParseEnum]; export const ShowByObjectRecordReturnFormatEnum = { Legacy: 'LEGACY', UserFriendly: 'USER_FRIENDLY', Expanded: 'EXPANDED', } as const; export type ShowByObjectRecordReturnFormatEnum = typeof ShowByObjectRecordReturnFormatEnum[keyof typeof ShowByObjectRecordReturnFormatEnum]; export const ShowByObjectParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type ShowByObjectParseEnum = typeof ShowByObjectParseEnum[keyof typeof ShowByObjectParseEnum]; export const UpdateParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type UpdateParseEnum = typeof UpdateParseEnum[keyof typeof UpdateParseEnum]; export const UpdateRecordReturnFormatEnum = { Legacy: 'LEGACY', UserFriendly: 'USER_FRIENDLY', Expanded: 'EXPANDED', } as const; export type UpdateRecordReturnFormatEnum = typeof UpdateRecordReturnFormatEnum[keyof typeof UpdateRecordReturnFormatEnum]; export const UpdateByUuidParseEnum = { Db: 'DB', HumanReadable: 'HUMAN_READABLE', Structured: 'STRUCTURED', } as const; export type UpdateByUuidParseEnum = typeof UpdateByUuidParseEnum[keyof typeof UpdateByUuidParseEnum]; export const UpdateByUuidRecordReturnFormatEnum = { Legacy: 'LEGACY', UserFriendly: 'USER_FRIENDLY', Expanded: 'EXPANDED', } as const; export type UpdateByUuidRecordReturnFormatEnum = typeof UpdateByUuidRecordReturnFormatEnum[keyof typeof UpdateByUuidRecordReturnFormatEnum]; /** * RelationsApi - axios parameter creator */ export const RelationsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a connection between two objects for a given relation. The \'from\' and \'to\' UUIDs identify the objects to connect. * @summary Add a connection to a relation * @param {string} relationUuid * @param {string} from * @param {string} to * @param {*} [options] Override http request option. * @throws {RequiredError} */ addConnection: async (relationUuid: string, from: string, to: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'relationUuid' is not null or undefined assertParamExists('addConnection', 'relationUuid', relationUuid) // verify required parameter 'from' is not null or undefined assertParamExists('addConnection', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('addConnection', 'to', to) const localVarPath = `/api/v2/relations/{relationUuid}/connection/{from}/{to}` .replace('{relationUuid}', encodeURIComponent(String(relationUuid))) .replace('{from}', encodeURIComponent(String(from))) .replace('{to}', encodeURIComponent(String(to))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new relation or updates an existing one for the specified object. If a relation with the same name exists, it is updated; otherwise, a new relation is created. Returns an UpdateResponse if updated or a CreateResponse if created. * @summary Create or update a relation * @param {string} objectUuid * @param {RelationDTO} relationDTO Relation data * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRelationOrUpdate: async (objectUuid: string, relationDTO: RelationDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('createRelationOrUpdate', 'objectUuid', objectUuid) // verify required parameter 'relationDTO' is not null or undefined assertParamExists('createRelationOrUpdate', 'relationDTO', relationDTO) const localVarPath = `/api/v2/relations/{objectUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(relationDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes a connection between two objects for a given relation using the specified UUIDs. * @summary Delete a connection from a relation * @param {string} relationUuid * @param {string} from * @param {string} to * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteConnection: async (relationUuid: string, from: string, to: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'relationUuid' is not null or undefined assertParamExists('deleteConnection', 'relationUuid', relationUuid) // verify required parameter 'from' is not null or undefined assertParamExists('deleteConnection', 'from', from) // verify required parameter 'to' is not null or undefined assertParamExists('deleteConnection', 'to', to) const localVarPath = `/api/v2/relations/{relationUuid}/connection/{from}/{to}` .replace('{relationUuid}', encodeURIComponent(String(relationUuid))) .replace('{from}', encodeURIComponent(String(from))) .replace('{to}', encodeURIComponent(String(to))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes a relation specified by its UUID. Returns a DeleteResponse with the deleted relation details. * @summary Delete a relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteRelation1: async (relationUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'relationUuid' is not null or undefined assertParamExists('deleteRelation1', 'relationUuid', relationUuid) const localVarPath = `/api/v2/relations/{relationUuid}` .replace('{relationUuid}', encodeURIComponent(String(relationUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves the details of a relation by its UUID. Returns a ShowResponse containing a RelationDTO. * @summary Get relation details * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRelation: async (relationUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'relationUuid' is not null or undefined assertParamExists('getRelation', 'relationUuid', relationUuid) const localVarPath = `/api/v2/relations/{relationUuid}` .replace('{relationUuid}', encodeURIComponent(String(relationUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a relation by its UUID and associates it with the specified object, returning a RelationDTO that includes details from the related object. * @summary Get relation details for a specific object * @param {string} relationUuid * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRelationForObject: async (relationUuid: string, objectUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'relationUuid' is not null or undefined assertParamExists('getRelationForObject', 'relationUuid', relationUuid) // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getRelationForObject', 'objectUuid', objectUuid) const localVarPath = `/api/v2/relations/{relationUuid}/{objectUuid}` .replace('{relationUuid}', encodeURIComponent(String(relationUuid))) .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a paginated list of relations. Returns a PaginationResponse containing RelationDTO objects based on the provided pagination criteria. * @summary Fetch paginated relations * @param {PaginationRequest} paginationRequest Pagination request for relations * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRelations: async (paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getRelations', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/relations/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves all relations between two objects based on the provided object UUIDs. * @summary Get all relations between two objects * @param {string} fromObjectUuid * @param {string} toObjectUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRelationsBetweenObjects: async (fromObjectUuid: string, toObjectUuid: string, paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'fromObjectUuid' is not null or undefined assertParamExists('getRelationsBetweenObjects', 'fromObjectUuid', fromObjectUuid) // verify required parameter 'toObjectUuid' is not null or undefined assertParamExists('getRelationsBetweenObjects', 'toObjectUuid', toObjectUuid) // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getRelationsBetweenObjects', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/relations/index/{fromObjectUuid}/{toObjectUuid}` .replace('{fromObjectUuid}', encodeURIComponent(String(fromObjectUuid))) .replace('{toObjectUuid}', encodeURIComponent(String(toObjectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns relation definitions where this object participates in the **schema** graph for that relation name: either as origin `(thisObject)-[:relationName]->(:Object)` or as target `(:Object)-[:relationName]->(thisObject)`. Unrelated relations (same name elsewhere, or no typed edge touching this object) are excluded. Uses the object’s `name` to filter; request path uses object UUID. * @summary Fetch relations for a specific object * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request for relations * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRelationsByObject: async (objectUuid: string, paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getRelationsByObject', 'objectUuid', objectUuid) // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getRelationsByObject', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/relations/index/{objectUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Hard-deletes a soft-deleted relation. Only relations with deletedAt set can be removed. * @summary Permanently delete archived relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ permanentlyDeleteArchivedRelation: async (relationUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'relationUuid' is not null or undefined assertParamExists('permanentlyDeleteArchivedRelation', 'relationUuid', relationUuid) const localVarPath = `/api/v2/relations/{relationUuid}/permanent` .replace('{relationUuid}', encodeURIComponent(String(relationUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Restores a previously deleted relation by its UUID. Returns a RestoreResponse with the restored relation details. * @summary Restore a deleted relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreRelation: async (relationUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'relationUuid' is not null or undefined assertParamExists('restoreRelation', 'relationUuid', relationUuid) const localVarPath = `/api/v2/relations/{relationUuid}/restore` .replace('{relationUuid}', encodeURIComponent(String(relationUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the indices for relations. The request body should contain a mapping of relation UUIDs to their new index values. Returns a SuccessResponse containing the updated relation objects. * @summary Update relation indices * @param {{ [key: string]: number; }} requestBody Mapping of relation UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateIndices: async (requestBody: { [key: string]: number; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'requestBody' is not null or undefined assertParamExists('updateIndices', 'requestBody', requestBody) const localVarPath = `/api/v2/relations/updateIndices`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * RelationsApi - functional programming interface */ export const RelationsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = RelationsApiAxiosParamCreator(configuration) return { /** * Creates a connection between two objects for a given relation. The \'from\' and \'to\' UUIDs identify the objects to connect. * @summary Add a connection to a relation * @param {string} relationUuid * @param {string} from * @param {string} to * @param {*} [options] Override http request option. * @throws {RequiredError} */ async addConnection(relationUuid: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addConnection(relationUuid, from, to, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.addConnection']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a new relation or updates an existing one for the specified object. If a relation with the same name exists, it is updated; otherwise, a new relation is created. Returns an UpdateResponse if updated or a CreateResponse if created. * @summary Create or update a relation * @param {string} objectUuid * @param {RelationDTO} relationDTO Relation data * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createRelationOrUpdate(objectUuid: string, relationDTO: RelationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRelationOrUpdate(objectUuid, relationDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.createRelationOrUpdate']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a connection between two objects for a given relation using the specified UUIDs. * @summary Delete a connection from a relation * @param {string} relationUuid * @param {string} from * @param {string} to * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteConnection(relationUuid: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteConnection(relationUuid, from, to, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.deleteConnection']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes a relation specified by its UUID. Returns a DeleteResponse with the deleted relation details. * @summary Delete a relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteRelation1(relationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRelation1(relationUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.deleteRelation1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves the details of a relation by its UUID. Returns a ShowResponse containing a RelationDTO. * @summary Get relation details * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRelation(relationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRelation(relationUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.getRelation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a relation by its UUID and associates it with the specified object, returning a RelationDTO that includes details from the related object. * @summary Get relation details for a specific object * @param {string} relationUuid * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRelationForObject(relationUuid: string, objectUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRelationForObject(relationUuid, objectUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.getRelationForObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a paginated list of relations. Returns a PaginationResponse containing RelationDTO objects based on the provided pagination criteria. * @summary Fetch paginated relations * @param {PaginationRequest} paginationRequest Pagination request for relations * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRelations(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRelations(paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.getRelations']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves all relations between two objects based on the provided object UUIDs. * @summary Get all relations between two objects * @param {string} fromObjectUuid * @param {string} toObjectUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRelationsBetweenObjects(fromObjectUuid: string, toObjectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRelationsBetweenObjects(fromObjectUuid, toObjectUuid, paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.getRelationsBetweenObjects']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns relation definitions where this object participates in the **schema** graph for that relation name: either as origin `(thisObject)-[:relationName]->(:Object)` or as target `(:Object)-[:relationName]->(thisObject)`. Unrelated relations (same name elsewhere, or no typed edge touching this object) are excluded. Uses the object’s `name` to filter; request path uses object UUID. * @summary Fetch relations for a specific object * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request for relations * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRelationsByObject(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRelationsByObject(objectUuid, paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.getRelationsByObject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Hard-deletes a soft-deleted relation. Only relations with deletedAt set can be removed. * @summary Permanently delete archived relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async permanentlyDeleteArchivedRelation(relationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.permanentlyDeleteArchivedRelation(relationUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.permanentlyDeleteArchivedRelation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restores a previously deleted relation by its UUID. Returns a RestoreResponse with the restored relation details. * @summary Restore a deleted relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async restoreRelation(relationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreRelation(relationUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.restoreRelation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates the indices for relations. The request body should contain a mapping of relation UUIDs to their new index values. Returns a SuccessResponse containing the updated relation objects. * @summary Update relation indices * @param {{ [key: string]: number; }} requestBody Mapping of relation UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateIndices(requestBody: { [key: string]: number; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateIndices(requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['RelationsApi.updateIndices']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * RelationsApi - factory interface */ export const RelationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = RelationsApiFp(configuration) return { /** * Creates a connection between two objects for a given relation. The \'from\' and \'to\' UUIDs identify the objects to connect. * @summary Add a connection to a relation * @param {string} relationUuid * @param {string} from * @param {string} to * @param {*} [options] Override http request option. * @throws {RequiredError} */ addConnection(relationUuid: string, from: string, to: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addConnection(relationUuid, from, to, options).then((request) => request(axios, basePath)); }, /** * Creates a new relation or updates an existing one for the specified object. If a relation with the same name exists, it is updated; otherwise, a new relation is created. Returns an UpdateResponse if updated or a CreateResponse if created. * @summary Create or update a relation * @param {string} objectUuid * @param {RelationDTO} relationDTO Relation data * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRelationOrUpdate(objectUuid: string, relationDTO: RelationDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRelationOrUpdate(objectUuid, relationDTO, options).then((request) => request(axios, basePath)); }, /** * Deletes a connection between two objects for a given relation using the specified UUIDs. * @summary Delete a connection from a relation * @param {string} relationUuid * @param {string} from * @param {string} to * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteConnection(relationUuid: string, from: string, to: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteConnection(relationUuid, from, to, options).then((request) => request(axios, basePath)); }, /** * Deletes a relation specified by its UUID. Returns a DeleteResponse with the deleted relation details. * @summary Delete a relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteRelation1(relationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteRelation1(relationUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves the details of a relation by its UUID. Returns a ShowResponse containing a RelationDTO. * @summary Get relation details * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRelation(relationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRelation(relationUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves a relation by its UUID and associates it with the specified object, returning a RelationDTO that includes details from the related object. * @summary Get relation details for a specific object * @param {string} relationUuid * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRelationForObject(relationUuid: string, objectUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRelationForObject(relationUuid, objectUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves a paginated list of relations. Returns a PaginationResponse containing RelationDTO objects based on the provided pagination criteria. * @summary Fetch paginated relations * @param {PaginationRequest} paginationRequest Pagination request for relations * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRelations(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRelations(paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Retrieves all relations between two objects based on the provided object UUIDs. * @summary Get all relations between two objects * @param {string} fromObjectUuid * @param {string} toObjectUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRelationsBetweenObjects(fromObjectUuid: string, toObjectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRelationsBetweenObjects(fromObjectUuid, toObjectUuid, paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Returns relation definitions where this object participates in the **schema** graph for that relation name: either as origin `(thisObject)-[:relationName]->(:Object)` or as target `(:Object)-[:relationName]->(thisObject)`. Unrelated relations (same name elsewhere, or no typed edge touching this object) are excluded. Uses the object’s `name` to filter; request path uses object UUID. * @summary Fetch relations for a specific object * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request for relations * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRelationsByObject(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRelationsByObject(objectUuid, paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Hard-deletes a soft-deleted relation. Only relations with deletedAt set can be removed. * @summary Permanently delete archived relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ permanentlyDeleteArchivedRelation(relationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.permanentlyDeleteArchivedRelation(relationUuid, options).then((request) => request(axios, basePath)); }, /** * Restores a previously deleted relation by its UUID. Returns a RestoreResponse with the restored relation details. * @summary Restore a deleted relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreRelation(relationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreRelation(relationUuid, options).then((request) => request(axios, basePath)); }, /** * Updates the indices for relations. The request body should contain a mapping of relation UUIDs to their new index values. Returns a SuccessResponse containing the updated relation objects. * @summary Update relation indices * @param {{ [key: string]: number; }} requestBody Mapping of relation UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateIndices(requestBody: { [key: string]: number; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateIndices(requestBody, options).then((request) => request(axios, basePath)); }, }; }; /** * RelationsApi - object-oriented interface */ export class RelationsApi extends BaseAPI { /** * Creates a connection between two objects for a given relation. The \'from\' and \'to\' UUIDs identify the objects to connect. * @summary Add a connection to a relation * @param {string} relationUuid * @param {string} from * @param {string} to * @param {*} [options] Override http request option. * @throws {RequiredError} */ public addConnection(relationUuid: string, from: string, to: string, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).addConnection(relationUuid, from, to, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a new relation or updates an existing one for the specified object. If a relation with the same name exists, it is updated; otherwise, a new relation is created. Returns an UpdateResponse if updated or a CreateResponse if created. * @summary Create or update a relation * @param {string} objectUuid * @param {RelationDTO} relationDTO Relation data * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createRelationOrUpdate(objectUuid: string, relationDTO: RelationDTO, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).createRelationOrUpdate(objectUuid, relationDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes a connection between two objects for a given relation using the specified UUIDs. * @summary Delete a connection from a relation * @param {string} relationUuid * @param {string} from * @param {string} to * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteConnection(relationUuid: string, from: string, to: string, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).deleteConnection(relationUuid, from, to, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes a relation specified by its UUID. Returns a DeleteResponse with the deleted relation details. * @summary Delete a relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteRelation1(relationUuid: string, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).deleteRelation1(relationUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves the details of a relation by its UUID. Returns a ShowResponse containing a RelationDTO. * @summary Get relation details * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getRelation(relationUuid: string, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).getRelation(relationUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a relation by its UUID and associates it with the specified object, returning a RelationDTO that includes details from the related object. * @summary Get relation details for a specific object * @param {string} relationUuid * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getRelationForObject(relationUuid: string, objectUuid: string, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).getRelationForObject(relationUuid, objectUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a paginated list of relations. Returns a PaginationResponse containing RelationDTO objects based on the provided pagination criteria. * @summary Fetch paginated relations * @param {PaginationRequest} paginationRequest Pagination request for relations * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getRelations(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).getRelations(paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves all relations between two objects based on the provided object UUIDs. * @summary Get all relations between two objects * @param {string} fromObjectUuid * @param {string} toObjectUuid * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getRelationsBetweenObjects(fromObjectUuid: string, toObjectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).getRelationsBetweenObjects(fromObjectUuid, toObjectUuid, paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Returns relation definitions where this object participates in the **schema** graph for that relation name: either as origin `(thisObject)-[:relationName]->(:Object)` or as target `(:Object)-[:relationName]->(thisObject)`. Unrelated relations (same name elsewhere, or no typed edge touching this object) are excluded. Uses the object’s `name` to filter; request path uses object UUID. * @summary Fetch relations for a specific object * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request for relations * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getRelationsByObject(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).getRelationsByObject(objectUuid, paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Hard-deletes a soft-deleted relation. Only relations with deletedAt set can be removed. * @summary Permanently delete archived relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public permanentlyDeleteArchivedRelation(relationUuid: string, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).permanentlyDeleteArchivedRelation(relationUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Restores a previously deleted relation by its UUID. Returns a RestoreResponse with the restored relation details. * @summary Restore a deleted relation * @param {string} relationUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public restoreRelation(relationUuid: string, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).restoreRelation(relationUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Updates the indices for relations. The request body should contain a mapping of relation UUIDs to their new index values. Returns a SuccessResponse containing the updated relation objects. * @summary Update relation indices * @param {{ [key: string]: number; }} requestBody Mapping of relation UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateIndices(requestBody: { [key: string]: number; }, options?: RawAxiosRequestConfig) { return RelationsApiFp(this.configuration).updateIndices(requestBody, options).then((request) => request(this.axios, this.basePath)); } } /** * ServerlessFunctionsApi - axios parameter creator */ export const ServerlessFunctionsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a new serverless function attached to the specified app. * @summary Create a serverless function * @param {string} appUuid UUID of the app to attach the serverless function to * @param {ServerlessFunctionDTO} serverlessFunctionDTO Serverless function payload (runtime and code) * @param {*} [options] Override http request option. * @throws {RequiredError} */ create5: async (appUuid: string, serverlessFunctionDTO: ServerlessFunctionDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('create5', 'appUuid', appUuid) // verify required parameter 'serverlessFunctionDTO' is not null or undefined assertParamExists('create5', 'serverlessFunctionDTO', serverlessFunctionDTO) const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(serverlessFunctionDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Tears down the GCP Cloud Function (if provisioned) and deletes the serverless function entity. * @summary Delete a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ delete2: async (appUuid: string, uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('delete2', 'appUuid', appUuid) // verify required parameter 'uuid' is not null or undefined assertParamExists('delete2', 'uuid', uuid) const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/{uuid}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a paginated list of serverless functions that belong to the specified app. * @summary List serverless functions for an app * @param {string} appUuid UUID of the app whose serverless functions to list * @param {PaginationRequest} paginationRequest Pagination and filtering options for the request * @param {*} [options] Override http request option. * @throws {RequiredError} */ index2: async (appUuid: string, paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('index2', 'appUuid', appUuid) // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('index2', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/index` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Queries Cloud Logging for recent log entries emitted by the Cloud Function backing this serverless function. * @summary Get serverless function logs * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function * @param {string} [since] Lookback window, e.g. 15m, 1h, 24h * @param {number} [limit] Maximum number of log entries to return * @param {*} [options] Override http request option. * @throws {RequiredError} */ logs: async (appUuid: string, uuid: string, since?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('logs', 'appUuid', appUuid) // verify required parameter 'uuid' is not null or undefined assertParamExists('logs', 'uuid', uuid) const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/{uuid}/logs` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (since !== undefined) { localVarQueryParameter['since'] = since; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Builds the same payload shape used for serverless invocations and webhook delivery from a record and event type, without invoking anything. * @summary Generate a sample webhook payload * @param {string} appUuid UUID of the app * @param {SamplePayloadRequest} samplePayloadRequest Sample payload request (recordUuid and eventType) * @param {*} [options] Override http request option. * @throws {RequiredError} */ samplePayload: async (appUuid: string, samplePayloadRequest: SamplePayloadRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('samplePayload', 'appUuid', appUuid) // verify required parameter 'samplePayloadRequest' is not null or undefined assertParamExists('samplePayload', 'samplePayloadRequest', samplePayloadRequest) const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/sample-payload` .replace('{appUuid}', encodeURIComponent(String(appUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(samplePayloadRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a serverless function by its UUID, ensuring it belongs to the specified app. * @summary Get a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function * @param {*} [options] Override http request option. * @throws {RequiredError} */ show1: async (appUuid: string, uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('show1', 'appUuid', appUuid) // verify required parameter 'uuid' is not null or undefined assertParamExists('show1', 'uuid', uuid) const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/{uuid}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Provisions (if needed) and invokes a serverless function for a given record and event type, using the same payload shape as webhooks. * @summary Test a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to test * @param {TestServerlessFunctionRequest} testServerlessFunctionRequest Test serverless function payload (recordUuid and eventType) * @param {*} [options] Override http request option. * @throws {RequiredError} */ testServerlessFunction: async (appUuid: string, uuid: string, testServerlessFunctionRequest: TestServerlessFunctionRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('testServerlessFunction', 'appUuid', appUuid) // verify required parameter 'uuid' is not null or undefined assertParamExists('testServerlessFunction', 'uuid', uuid) // verify required parameter 'testServerlessFunctionRequest' is not null or undefined assertParamExists('testServerlessFunction', 'testServerlessFunctionRequest', testServerlessFunctionRequest) const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/{uuid}/test` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(testServerlessFunctionRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates an existing serverless function\'s runtime and code, keeping it attached to the same app. * @summary Update a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to update * @param {ServerlessFunctionDTO} serverlessFunctionDTO Updated serverless function payload (runtime and code) * @param {*} [options] Override http request option. * @throws {RequiredError} */ update2: async (appUuid: string, uuid: string, serverlessFunctionDTO: ServerlessFunctionDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'appUuid' is not null or undefined assertParamExists('update2', 'appUuid', appUuid) // verify required parameter 'uuid' is not null or undefined assertParamExists('update2', 'uuid', uuid) // verify required parameter 'serverlessFunctionDTO' is not null or undefined assertParamExists('update2', 'serverlessFunctionDTO', serverlessFunctionDTO) const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/{uuid}` .replace('{appUuid}', encodeURIComponent(String(appUuid))) .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(serverlessFunctionDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ServerlessFunctionsApi - functional programming interface */ export const ServerlessFunctionsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ServerlessFunctionsApiAxiosParamCreator(configuration) return { /** * Creates a new serverless function attached to the specified app. * @summary Create a serverless function * @param {string} appUuid UUID of the app to attach the serverless function to * @param {ServerlessFunctionDTO} serverlessFunctionDTO Serverless function payload (runtime and code) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async create5(appUuid: string, serverlessFunctionDTO: ServerlessFunctionDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.create5(appUuid, serverlessFunctionDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ServerlessFunctionsApi.create5']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Tears down the GCP Cloud Function (if provisioned) and deletes the serverless function entity. * @summary Delete a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ async delete2(appUuid: string, uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.delete2(appUuid, uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ServerlessFunctionsApi.delete2']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a paginated list of serverless functions that belong to the specified app. * @summary List serverless functions for an app * @param {string} appUuid UUID of the app whose serverless functions to list * @param {PaginationRequest} paginationRequest Pagination and filtering options for the request * @param {*} [options] Override http request option. * @throws {RequiredError} */ async index2(appUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.index2(appUuid, paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ServerlessFunctionsApi.index2']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Queries Cloud Logging for recent log entries emitted by the Cloud Function backing this serverless function. * @summary Get serverless function logs * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function * @param {string} [since] Lookback window, e.g. 15m, 1h, 24h * @param {number} [limit] Maximum number of log entries to return * @param {*} [options] Override http request option. * @throws {RequiredError} */ async logs(appUuid: string, uuid: string, since?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.logs(appUuid, uuid, since, limit, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ServerlessFunctionsApi.logs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Builds the same payload shape used for serverless invocations and webhook delivery from a record and event type, without invoking anything. * @summary Generate a sample webhook payload * @param {string} appUuid UUID of the app * @param {SamplePayloadRequest} samplePayloadRequest Sample payload request (recordUuid and eventType) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async samplePayload(appUuid: string, samplePayloadRequest: SamplePayloadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.samplePayload(appUuid, samplePayloadRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ServerlessFunctionsApi.samplePayload']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a serverless function by its UUID, ensuring it belongs to the specified app. * @summary Get a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function * @param {*} [options] Override http request option. * @throws {RequiredError} */ async show1(appUuid: string, uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.show1(appUuid, uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ServerlessFunctionsApi.show1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Provisions (if needed) and invokes a serverless function for a given record and event type, using the same payload shape as webhooks. * @summary Test a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to test * @param {TestServerlessFunctionRequest} testServerlessFunctionRequest Test serverless function payload (recordUuid and eventType) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async testServerlessFunction(appUuid: string, uuid: string, testServerlessFunctionRequest: TestServerlessFunctionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.testServerlessFunction(appUuid, uuid, testServerlessFunctionRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ServerlessFunctionsApi.testServerlessFunction']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates an existing serverless function\'s runtime and code, keeping it attached to the same app. * @summary Update a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to update * @param {ServerlessFunctionDTO} serverlessFunctionDTO Updated serverless function payload (runtime and code) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async update2(appUuid: string, uuid: string, serverlessFunctionDTO: ServerlessFunctionDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.update2(appUuid, uuid, serverlessFunctionDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ServerlessFunctionsApi.update2']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ServerlessFunctionsApi - factory interface */ export const ServerlessFunctionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ServerlessFunctionsApiFp(configuration) return { /** * Creates a new serverless function attached to the specified app. * @summary Create a serverless function * @param {string} appUuid UUID of the app to attach the serverless function to * @param {ServerlessFunctionDTO} serverlessFunctionDTO Serverless function payload (runtime and code) * @param {*} [options] Override http request option. * @throws {RequiredError} */ create5(appUuid: string, serverlessFunctionDTO: ServerlessFunctionDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.create5(appUuid, serverlessFunctionDTO, options).then((request) => request(axios, basePath)); }, /** * Tears down the GCP Cloud Function (if provisioned) and deletes the serverless function entity. * @summary Delete a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ delete2(appUuid: string, uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.delete2(appUuid, uuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves a paginated list of serverless functions that belong to the specified app. * @summary List serverless functions for an app * @param {string} appUuid UUID of the app whose serverless functions to list * @param {PaginationRequest} paginationRequest Pagination and filtering options for the request * @param {*} [options] Override http request option. * @throws {RequiredError} */ index2(appUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.index2(appUuid, paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Queries Cloud Logging for recent log entries emitted by the Cloud Function backing this serverless function. * @summary Get serverless function logs * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function * @param {string} [since] Lookback window, e.g. 15m, 1h, 24h * @param {number} [limit] Maximum number of log entries to return * @param {*} [options] Override http request option. * @throws {RequiredError} */ logs(appUuid: string, uuid: string, since?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logs(appUuid, uuid, since, limit, options).then((request) => request(axios, basePath)); }, /** * Builds the same payload shape used for serverless invocations and webhook delivery from a record and event type, without invoking anything. * @summary Generate a sample webhook payload * @param {string} appUuid UUID of the app * @param {SamplePayloadRequest} samplePayloadRequest Sample payload request (recordUuid and eventType) * @param {*} [options] Override http request option. * @throws {RequiredError} */ samplePayload(appUuid: string, samplePayloadRequest: SamplePayloadRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.samplePayload(appUuid, samplePayloadRequest, options).then((request) => request(axios, basePath)); }, /** * Retrieves a serverless function by its UUID, ensuring it belongs to the specified app. * @summary Get a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function * @param {*} [options] Override http request option. * @throws {RequiredError} */ show1(appUuid: string, uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.show1(appUuid, uuid, options).then((request) => request(axios, basePath)); }, /** * Provisions (if needed) and invokes a serverless function for a given record and event type, using the same payload shape as webhooks. * @summary Test a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to test * @param {TestServerlessFunctionRequest} testServerlessFunctionRequest Test serverless function payload (recordUuid and eventType) * @param {*} [options] Override http request option. * @throws {RequiredError} */ testServerlessFunction(appUuid: string, uuid: string, testServerlessFunctionRequest: TestServerlessFunctionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testServerlessFunction(appUuid, uuid, testServerlessFunctionRequest, options).then((request) => request(axios, basePath)); }, /** * Updates an existing serverless function\'s runtime and code, keeping it attached to the same app. * @summary Update a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to update * @param {ServerlessFunctionDTO} serverlessFunctionDTO Updated serverless function payload (runtime and code) * @param {*} [options] Override http request option. * @throws {RequiredError} */ update2(appUuid: string, uuid: string, serverlessFunctionDTO: ServerlessFunctionDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.update2(appUuid, uuid, serverlessFunctionDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * ServerlessFunctionsApi - object-oriented interface */ export class ServerlessFunctionsApi extends BaseAPI { /** * Creates a new serverless function attached to the specified app. * @summary Create a serverless function * @param {string} appUuid UUID of the app to attach the serverless function to * @param {ServerlessFunctionDTO} serverlessFunctionDTO Serverless function payload (runtime and code) * @param {*} [options] Override http request option. * @throws {RequiredError} */ public create5(appUuid: string, serverlessFunctionDTO: ServerlessFunctionDTO, options?: RawAxiosRequestConfig) { return ServerlessFunctionsApiFp(this.configuration).create5(appUuid, serverlessFunctionDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Tears down the GCP Cloud Function (if provisioned) and deletes the serverless function entity. * @summary Delete a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ public delete2(appUuid: string, uuid: string, options?: RawAxiosRequestConfig) { return ServerlessFunctionsApiFp(this.configuration).delete2(appUuid, uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a paginated list of serverless functions that belong to the specified app. * @summary List serverless functions for an app * @param {string} appUuid UUID of the app whose serverless functions to list * @param {PaginationRequest} paginationRequest Pagination and filtering options for the request * @param {*} [options] Override http request option. * @throws {RequiredError} */ public index2(appUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return ServerlessFunctionsApiFp(this.configuration).index2(appUuid, paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Queries Cloud Logging for recent log entries emitted by the Cloud Function backing this serverless function. * @summary Get serverless function logs * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function * @param {string} [since] Lookback window, e.g. 15m, 1h, 24h * @param {number} [limit] Maximum number of log entries to return * @param {*} [options] Override http request option. * @throws {RequiredError} */ public logs(appUuid: string, uuid: string, since?: string, limit?: number, options?: RawAxiosRequestConfig) { return ServerlessFunctionsApiFp(this.configuration).logs(appUuid, uuid, since, limit, options).then((request) => request(this.axios, this.basePath)); } /** * Builds the same payload shape used for serverless invocations and webhook delivery from a record and event type, without invoking anything. * @summary Generate a sample webhook payload * @param {string} appUuid UUID of the app * @param {SamplePayloadRequest} samplePayloadRequest Sample payload request (recordUuid and eventType) * @param {*} [options] Override http request option. * @throws {RequiredError} */ public samplePayload(appUuid: string, samplePayloadRequest: SamplePayloadRequest, options?: RawAxiosRequestConfig) { return ServerlessFunctionsApiFp(this.configuration).samplePayload(appUuid, samplePayloadRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a serverless function by its UUID, ensuring it belongs to the specified app. * @summary Get a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function * @param {*} [options] Override http request option. * @throws {RequiredError} */ public show1(appUuid: string, uuid: string, options?: RawAxiosRequestConfig) { return ServerlessFunctionsApiFp(this.configuration).show1(appUuid, uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Provisions (if needed) and invokes a serverless function for a given record and event type, using the same payload shape as webhooks. * @summary Test a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to test * @param {TestServerlessFunctionRequest} testServerlessFunctionRequest Test serverless function payload (recordUuid and eventType) * @param {*} [options] Override http request option. * @throws {RequiredError} */ public testServerlessFunction(appUuid: string, uuid: string, testServerlessFunctionRequest: TestServerlessFunctionRequest, options?: RawAxiosRequestConfig) { return ServerlessFunctionsApiFp(this.configuration).testServerlessFunction(appUuid, uuid, testServerlessFunctionRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Updates an existing serverless function\'s runtime and code, keeping it attached to the same app. * @summary Update a serverless function * @param {string} appUuid UUID of the app * @param {string} uuid UUID of the serverless function to update * @param {ServerlessFunctionDTO} serverlessFunctionDTO Updated serverless function payload (runtime and code) * @param {*} [options] Override http request option. * @throws {RequiredError} */ public update2(appUuid: string, uuid: string, serverlessFunctionDTO: ServerlessFunctionDTO, options?: RawAxiosRequestConfig) { return ServerlessFunctionsApiFp(this.configuration).update2(appUuid, uuid, serverlessFunctionDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * SyncApi - axios parameter creator */ export const SyncApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a new sync. Returns a CreateResponse containing the created sync details. * @summary Create a sync * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSync: async (syncDTO: SyncDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'syncDTO' is not null or undefined assertParamExists('createSync', 'syncDTO', syncDTO) const localVarPath = `/api/v2/sync/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(syncDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes an existing sync. Returns a DeleteResponse containing the deleted sync details. * @summary Delete a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSync: async (uuid: string, syncDTO: SyncDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('deleteSync', 'uuid', uuid) // verify required parameter 'syncDTO' is not null or undefined assertParamExists('deleteSync', 'syncDTO', syncDTO) const localVarPath = `/api/v2/sync/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(syncDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a sync by its UUID. Returns a SyncDTO containing the sync details. * @summary Get a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSync: async (uuid: string, syncDTO: SyncDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('getSync', 'uuid', uuid) // verify required parameter 'syncDTO' is not null or undefined assertParamExists('getSync', 'syncDTO', syncDTO) const localVarPath = `/api/v2/sync/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(syncDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a paginated list of syncs. Returns a PaginationResponse containing SyncDTO objects based on the provided pagination criteria. * @summary Fetch paginated syncs * @param {PaginationRequest} paginationRequest Pagination request for syncs * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSyncs: async (paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getSyncs', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/sync/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Restores a previously deleted sync by its UUID. Returns a RestoreResponse containing the restored sync details. * @summary Restore a deleted sync * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreSync: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('restoreSync', 'uuid', uuid) const localVarPath = `/api/v2/sync/{uuid}/restore` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates an existing sync. Returns a UpdateResponse containing the updated sync details. * @summary Update a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSync: async (uuid: string, syncDTO: SyncDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('updateSync', 'uuid', uuid) // verify required parameter 'syncDTO' is not null or undefined assertParamExists('updateSync', 'syncDTO', syncDTO) const localVarPath = `/api/v2/sync/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(syncDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * SyncApi - functional programming interface */ export const SyncApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = SyncApiAxiosParamCreator(configuration) return { /** * Creates a new sync. Returns a CreateResponse containing the created sync details. * @summary Create a sync * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createSync(syncDTO: SyncDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSync(syncDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SyncApi.createSync']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes an existing sync. Returns a DeleteResponse containing the deleted sync details. * @summary Delete a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteSync(uuid: string, syncDTO: SyncDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSync(uuid, syncDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SyncApi.deleteSync']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a sync by its UUID. Returns a SyncDTO containing the sync details. * @summary Get a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSync(uuid: string, syncDTO: SyncDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSync(uuid, syncDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SyncApi.getSync']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a paginated list of syncs. Returns a PaginationResponse containing SyncDTO objects based on the provided pagination criteria. * @summary Fetch paginated syncs * @param {PaginationRequest} paginationRequest Pagination request for syncs * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSyncs(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSyncs(paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SyncApi.getSyncs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restores a previously deleted sync by its UUID. Returns a RestoreResponse containing the restored sync details. * @summary Restore a deleted sync * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async restoreSync(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreSync(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SyncApi.restoreSync']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates an existing sync. Returns a UpdateResponse containing the updated sync details. * @summary Update a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateSync(uuid: string, syncDTO: SyncDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateSync(uuid, syncDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SyncApi.updateSync']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * SyncApi - factory interface */ export const SyncApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = SyncApiFp(configuration) return { /** * Creates a new sync. Returns a CreateResponse containing the created sync details. * @summary Create a sync * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSync(syncDTO: SyncDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createSync(syncDTO, options).then((request) => request(axios, basePath)); }, /** * Deletes an existing sync. Returns a DeleteResponse containing the deleted sync details. * @summary Delete a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSync(uuid: string, syncDTO: SyncDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteSync(uuid, syncDTO, options).then((request) => request(axios, basePath)); }, /** * Retrieves a sync by its UUID. Returns a SyncDTO containing the sync details. * @summary Get a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSync(uuid: string, syncDTO: SyncDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSync(uuid, syncDTO, options).then((request) => request(axios, basePath)); }, /** * Retrieves a paginated list of syncs. Returns a PaginationResponse containing SyncDTO objects based on the provided pagination criteria. * @summary Fetch paginated syncs * @param {PaginationRequest} paginationRequest Pagination request for syncs * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSyncs(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSyncs(paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Restores a previously deleted sync by its UUID. Returns a RestoreResponse containing the restored sync details. * @summary Restore a deleted sync * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreSync(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreSync(uuid, options).then((request) => request(axios, basePath)); }, /** * Updates an existing sync. Returns a UpdateResponse containing the updated sync details. * @summary Update a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSync(uuid: string, syncDTO: SyncDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateSync(uuid, syncDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * SyncApi - object-oriented interface */ export class SyncApi extends BaseAPI { /** * Creates a new sync. Returns a CreateResponse containing the created sync details. * @summary Create a sync * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createSync(syncDTO: SyncDTO, options?: RawAxiosRequestConfig) { return SyncApiFp(this.configuration).createSync(syncDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes an existing sync. Returns a DeleteResponse containing the deleted sync details. * @summary Delete a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteSync(uuid: string, syncDTO: SyncDTO, options?: RawAxiosRequestConfig) { return SyncApiFp(this.configuration).deleteSync(uuid, syncDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a sync by its UUID. Returns a SyncDTO containing the sync details. * @summary Get a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getSync(uuid: string, syncDTO: SyncDTO, options?: RawAxiosRequestConfig) { return SyncApiFp(this.configuration).getSync(uuid, syncDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a paginated list of syncs. Returns a PaginationResponse containing SyncDTO objects based on the provided pagination criteria. * @summary Fetch paginated syncs * @param {PaginationRequest} paginationRequest Pagination request for syncs * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getSyncs(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return SyncApiFp(this.configuration).getSyncs(paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Restores a previously deleted sync by its UUID. Returns a RestoreResponse containing the restored sync details. * @summary Restore a deleted sync * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public restoreSync(uuid: string, options?: RawAxiosRequestConfig) { return SyncApiFp(this.configuration).restoreSync(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Updates an existing sync. Returns a UpdateResponse containing the updated sync details. * @summary Update a sync * @param {string} uuid * @param {SyncDTO} syncDTO Sync data * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateSync(uuid: string, syncDTO: SyncDTO, options?: RawAxiosRequestConfig) { return SyncApiFp(this.configuration).updateSync(uuid, syncDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * TraitsApi - axios parameter creator */ export const TraitsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a new trait or updates an existing trait for the specified object. The trait name is provided in the URL, and trait details are supplied in the request body as a JSON map. If a trait with the specified name exists, it will be updated; otherwise, a new trait is created. Returns a CreateResponse containing the TraitDTO of the created or updated trait. * @summary Create or update a trait for an object * @param {string} objectUuid * @param {string} traitName * @param {object} body Trait details as a JSON map * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTrait: async (objectUuid: string, traitName: string, body: object, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('createTrait', 'objectUuid', objectUuid) // verify required parameter 'traitName' is not null or undefined assertParamExists('createTrait', 'traitName', traitName) // verify required parameter 'body' is not null or undefined assertParamExists('createTrait', 'body', body) const localVarPath = `/api/v2/traits/{objectUuid}/{traitName}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{traitName}', encodeURIComponent(String(traitName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Removes a trait identified by its name from the specified object. Returns a DeleteResponse confirming that the trait has been removed. * @summary Delete a trait from an object * @param {string} objectUuid * @param {string} traitName * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteTrait: async (objectUuid: string, traitName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('deleteTrait', 'objectUuid', objectUuid) // verify required parameter 'traitName' is not null or undefined assertParamExists('deleteTrait', 'traitName', traitName) const localVarPath = `/api/v2/traits/{objectUuid}/{traitName}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{traitName}', encodeURIComponent(String(traitName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves details of a specific trait associated with the specified object, identified by the trait name. Returns a ShowResponse containing the TraitDTO. If the trait is not found, a NotFoundError is thrown. * @summary Fetch a specific trait for an object * @param {string} objectUuid * @param {string} traitName * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTrait: async (objectUuid: string, traitName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getTrait', 'objectUuid', objectUuid) // verify required parameter 'traitName' is not null or undefined assertParamExists('getTrait', 'traitName', traitName) const localVarPath = `/api/v2/traits/{objectUuid}/{traitName}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{traitName}', encodeURIComponent(String(traitName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a list of traits associated with the specified object. Returns a paginated response containing TraitDTO objects. The page is set to 0 by default, with a maximum limit of 100. * @summary Fetch all traits for an object * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTraits: async (objectUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getTraits', 'objectUuid', objectUuid) const localVarPath = `/api/v2/traits/{objectUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Public browser RSVP. Without partstat shows a choice page; with partstat applies after login when the attendee has a user trait. Non-user-trait attendees need no login. * @summary Respond to an event invitation (email link) * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} [partstat] * @param {string} [scope] * @param {string} [switchAccount] * @param {*} [options] Override http request option. * @throws {RequiredError} */ rsvpBrowserGet: async (companyUuid: string, eventUuid: string, attendeeUuid: string, partstat?: string, scope?: string, switchAccount?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('rsvpBrowserGet', 'companyUuid', companyUuid) // verify required parameter 'eventUuid' is not null or undefined assertParamExists('rsvpBrowserGet', 'eventUuid', eventUuid) // verify required parameter 'attendeeUuid' is not null or undefined assertParamExists('rsvpBrowserGet', 'attendeeUuid', attendeeUuid) const localVarPath = `/api/v2/traits/event/{companyUuid}/{eventUuid}/rsvp/{attendeeUuid}` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))) .replace('{eventUuid}', encodeURIComponent(String(eventUuid))) .replace('{attendeeUuid}', encodeURIComponent(String(attendeeUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (partstat !== undefined) { localVarQueryParameter['partstat'] = partstat; } if (scope !== undefined) { localVarQueryParameter['scope'] = scope; } if (switchAccount !== undefined) { localVarQueryParameter['switchAccount'] = switchAccount; } localVarHeaderParameter['Accept'] = 'text/html,application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Email/password login for RSVP * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} email * @param {string} password * @param {string} [partstat] * @param {string} [scope] * @param {*} [options] Override http request option. * @throws {RequiredError} */ rsvpBrowserLogin: async (companyUuid: string, eventUuid: string, attendeeUuid: string, email: string, password: string, partstat?: string, scope?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('rsvpBrowserLogin', 'companyUuid', companyUuid) // verify required parameter 'eventUuid' is not null or undefined assertParamExists('rsvpBrowserLogin', 'eventUuid', eventUuid) // verify required parameter 'attendeeUuid' is not null or undefined assertParamExists('rsvpBrowserLogin', 'attendeeUuid', attendeeUuid) // verify required parameter 'email' is not null or undefined assertParamExists('rsvpBrowserLogin', 'email', email) // verify required parameter 'password' is not null or undefined assertParamExists('rsvpBrowserLogin', 'password', password) const localVarPath = `/api/v2/traits/event/{companyUuid}/{eventUuid}/rsvp/{attendeeUuid}/login` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))) .replace('{eventUuid}', encodeURIComponent(String(eventUuid))) .replace('{attendeeUuid}', encodeURIComponent(String(attendeeUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new URLSearchParams(); // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (email !== undefined) { localVarFormParams.set('email', email as any); } if (password !== undefined) { localVarFormParams.set('password', password as any); } if (partstat !== undefined) { localVarFormParams.set('partstat', partstat as any); } if (scope !== undefined) { localVarFormParams.set('scope', scope as any); } localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = localVarFormParams.toString(); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Start social login for RSVP * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} provider * @param {string} [partstat] * @param {string} [scope] * @param {*} [options] Override http request option. * @throws {RequiredError} */ rsvpBrowserSocial: async (companyUuid: string, eventUuid: string, attendeeUuid: string, provider: string, partstat?: string, scope?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('rsvpBrowserSocial', 'companyUuid', companyUuid) // verify required parameter 'eventUuid' is not null or undefined assertParamExists('rsvpBrowserSocial', 'eventUuid', eventUuid) // verify required parameter 'attendeeUuid' is not null or undefined assertParamExists('rsvpBrowserSocial', 'attendeeUuid', attendeeUuid) // verify required parameter 'provider' is not null or undefined assertParamExists('rsvpBrowserSocial', 'provider', provider) const localVarPath = `/api/v2/traits/event/{companyUuid}/{eventUuid}/rsvp/{attendeeUuid}/social/{provider}` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))) .replace('{eventUuid}', encodeURIComponent(String(eventUuid))) .replace('{attendeeUuid}', encodeURIComponent(String(attendeeUuid))) .replace('{provider}', encodeURIComponent(String(provider))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (partstat !== undefined) { localVarQueryParameter['partstat'] = partstat; } if (scope !== undefined) { localVarQueryParameter['scope'] = scope; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Patches partstat on the attendees edge. No tools @AccessControl — auth is bearer/session + self-only / partner login rules. * @summary Update event RSVP (JSON) * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {EventRsvpRequest} eventRsvpRequest RSVP payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ rsvpJson: async (companyUuid: string, eventUuid: string, attendeeUuid: string, eventRsvpRequest: EventRsvpRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'companyUuid' is not null or undefined assertParamExists('rsvpJson', 'companyUuid', companyUuid) // verify required parameter 'eventUuid' is not null or undefined assertParamExists('rsvpJson', 'eventUuid', eventUuid) // verify required parameter 'attendeeUuid' is not null or undefined assertParamExists('rsvpJson', 'attendeeUuid', attendeeUuid) // verify required parameter 'eventRsvpRequest' is not null or undefined assertParamExists('rsvpJson', 'eventRsvpRequest', eventRsvpRequest) const localVarPath = `/api/v2/traits/event/{companyUuid}/{eventUuid}/rsvp/{attendeeUuid}` .replace('{companyUuid}', encodeURIComponent(String(companyUuid))) .replace('{eventUuid}', encodeURIComponent(String(eventUuid))) .replace('{attendeeUuid}', encodeURIComponent(String(attendeeUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(eventRsvpRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * TraitsApi - functional programming interface */ export const TraitsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = TraitsApiAxiosParamCreator(configuration) return { /** * Creates a new trait or updates an existing trait for the specified object. The trait name is provided in the URL, and trait details are supplied in the request body as a JSON map. If a trait with the specified name exists, it will be updated; otherwise, a new trait is created. Returns a CreateResponse containing the TraitDTO of the created or updated trait. * @summary Create or update a trait for an object * @param {string} objectUuid * @param {string} traitName * @param {object} body Trait details as a JSON map * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createTrait(objectUuid: string, traitName: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createTrait(objectUuid, traitName, body, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TraitsApi.createTrait']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Removes a trait identified by its name from the specified object. Returns a DeleteResponse confirming that the trait has been removed. * @summary Delete a trait from an object * @param {string} objectUuid * @param {string} traitName * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteTrait(objectUuid: string, traitName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTrait(objectUuid, traitName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TraitsApi.deleteTrait']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves details of a specific trait associated with the specified object, identified by the trait name. Returns a ShowResponse containing the TraitDTO. If the trait is not found, a NotFoundError is thrown. * @summary Fetch a specific trait for an object * @param {string} objectUuid * @param {string} traitName * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTrait(objectUuid: string, traitName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTrait(objectUuid, traitName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TraitsApi.getTrait']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a list of traits associated with the specified object. Returns a paginated response containing TraitDTO objects. The page is set to 0 by default, with a maximum limit of 100. * @summary Fetch all traits for an object * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTraits(objectUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTraits(objectUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TraitsApi.getTraits']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Public browser RSVP. Without partstat shows a choice page; with partstat applies after login when the attendee has a user trait. Non-user-trait attendees need no login. * @summary Respond to an event invitation (email link) * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} [partstat] * @param {string} [scope] * @param {string} [switchAccount] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async rsvpBrowserGet(companyUuid: string, eventUuid: string, attendeeUuid: string, partstat?: string, scope?: string, switchAccount?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rsvpBrowserGet(companyUuid, eventUuid, attendeeUuid, partstat, scope, switchAccount, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TraitsApi.rsvpBrowserGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Email/password login for RSVP * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} email * @param {string} password * @param {string} [partstat] * @param {string} [scope] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async rsvpBrowserLogin(companyUuid: string, eventUuid: string, attendeeUuid: string, email: string, password: string, partstat?: string, scope?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rsvpBrowserLogin(companyUuid, eventUuid, attendeeUuid, email, password, partstat, scope, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TraitsApi.rsvpBrowserLogin']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Start social login for RSVP * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} provider * @param {string} [partstat] * @param {string} [scope] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async rsvpBrowserSocial(companyUuid: string, eventUuid: string, attendeeUuid: string, provider: string, partstat?: string, scope?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rsvpBrowserSocial(companyUuid, eventUuid, attendeeUuid, provider, partstat, scope, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TraitsApi.rsvpBrowserSocial']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Patches partstat on the attendees edge. No tools @AccessControl — auth is bearer/session + self-only / partner login rules. * @summary Update event RSVP (JSON) * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {EventRsvpRequest} eventRsvpRequest RSVP payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ async rsvpJson(companyUuid: string, eventUuid: string, attendeeUuid: string, eventRsvpRequest: EventRsvpRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rsvpJson(companyUuid, eventUuid, attendeeUuid, eventRsvpRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TraitsApi.rsvpJson']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * TraitsApi - factory interface */ export const TraitsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = TraitsApiFp(configuration) return { /** * Creates a new trait or updates an existing trait for the specified object. The trait name is provided in the URL, and trait details are supplied in the request body as a JSON map. If a trait with the specified name exists, it will be updated; otherwise, a new trait is created. Returns a CreateResponse containing the TraitDTO of the created or updated trait. * @summary Create or update a trait for an object * @param {string} objectUuid * @param {string} traitName * @param {object} body Trait details as a JSON map * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTrait(objectUuid: string, traitName: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createTrait(objectUuid, traitName, body, options).then((request) => request(axios, basePath)); }, /** * Removes a trait identified by its name from the specified object. Returns a DeleteResponse confirming that the trait has been removed. * @summary Delete a trait from an object * @param {string} objectUuid * @param {string} traitName * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteTrait(objectUuid: string, traitName: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteTrait(objectUuid, traitName, options).then((request) => request(axios, basePath)); }, /** * Retrieves details of a specific trait associated with the specified object, identified by the trait name. Returns a ShowResponse containing the TraitDTO. If the trait is not found, a NotFoundError is thrown. * @summary Fetch a specific trait for an object * @param {string} objectUuid * @param {string} traitName * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTrait(objectUuid: string, traitName: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTrait(objectUuid, traitName, options).then((request) => request(axios, basePath)); }, /** * Retrieves a list of traits associated with the specified object. Returns a paginated response containing TraitDTO objects. The page is set to 0 by default, with a maximum limit of 100. * @summary Fetch all traits for an object * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTraits(objectUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTraits(objectUuid, options).then((request) => request(axios, basePath)); }, /** * Public browser RSVP. Without partstat shows a choice page; with partstat applies after login when the attendee has a user trait. Non-user-trait attendees need no login. * @summary Respond to an event invitation (email link) * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} [partstat] * @param {string} [scope] * @param {string} [switchAccount] * @param {*} [options] Override http request option. * @throws {RequiredError} */ rsvpBrowserGet(companyUuid: string, eventUuid: string, attendeeUuid: string, partstat?: string, scope?: string, switchAccount?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rsvpBrowserGet(companyUuid, eventUuid, attendeeUuid, partstat, scope, switchAccount, options).then((request) => request(axios, basePath)); }, /** * * @summary Email/password login for RSVP * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} email * @param {string} password * @param {string} [partstat] * @param {string} [scope] * @param {*} [options] Override http request option. * @throws {RequiredError} */ rsvpBrowserLogin(companyUuid: string, eventUuid: string, attendeeUuid: string, email: string, password: string, partstat?: string, scope?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rsvpBrowserLogin(companyUuid, eventUuid, attendeeUuid, email, password, partstat, scope, options).then((request) => request(axios, basePath)); }, /** * * @summary Start social login for RSVP * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} provider * @param {string} [partstat] * @param {string} [scope] * @param {*} [options] Override http request option. * @throws {RequiredError} */ rsvpBrowserSocial(companyUuid: string, eventUuid: string, attendeeUuid: string, provider: string, partstat?: string, scope?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rsvpBrowserSocial(companyUuid, eventUuid, attendeeUuid, provider, partstat, scope, options).then((request) => request(axios, basePath)); }, /** * Patches partstat on the attendees edge. No tools @AccessControl — auth is bearer/session + self-only / partner login rules. * @summary Update event RSVP (JSON) * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {EventRsvpRequest} eventRsvpRequest RSVP payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ rsvpJson(companyUuid: string, eventUuid: string, attendeeUuid: string, eventRsvpRequest: EventRsvpRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rsvpJson(companyUuid, eventUuid, attendeeUuid, eventRsvpRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * TraitsApi - object-oriented interface */ export class TraitsApi extends BaseAPI { /** * Creates a new trait or updates an existing trait for the specified object. The trait name is provided in the URL, and trait details are supplied in the request body as a JSON map. If a trait with the specified name exists, it will be updated; otherwise, a new trait is created. Returns a CreateResponse containing the TraitDTO of the created or updated trait. * @summary Create or update a trait for an object * @param {string} objectUuid * @param {string} traitName * @param {object} body Trait details as a JSON map * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createTrait(objectUuid: string, traitName: string, body: object, options?: RawAxiosRequestConfig) { return TraitsApiFp(this.configuration).createTrait(objectUuid, traitName, body, options).then((request) => request(this.axios, this.basePath)); } /** * Removes a trait identified by its name from the specified object. Returns a DeleteResponse confirming that the trait has been removed. * @summary Delete a trait from an object * @param {string} objectUuid * @param {string} traitName * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteTrait(objectUuid: string, traitName: string, options?: RawAxiosRequestConfig) { return TraitsApiFp(this.configuration).deleteTrait(objectUuid, traitName, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves details of a specific trait associated with the specified object, identified by the trait name. Returns a ShowResponse containing the TraitDTO. If the trait is not found, a NotFoundError is thrown. * @summary Fetch a specific trait for an object * @param {string} objectUuid * @param {string} traitName * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getTrait(objectUuid: string, traitName: string, options?: RawAxiosRequestConfig) { return TraitsApiFp(this.configuration).getTrait(objectUuid, traitName, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a list of traits associated with the specified object. Returns a paginated response containing TraitDTO objects. The page is set to 0 by default, with a maximum limit of 100. * @summary Fetch all traits for an object * @param {string} objectUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getTraits(objectUuid: string, options?: RawAxiosRequestConfig) { return TraitsApiFp(this.configuration).getTraits(objectUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Public browser RSVP. Without partstat shows a choice page; with partstat applies after login when the attendee has a user trait. Non-user-trait attendees need no login. * @summary Respond to an event invitation (email link) * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} [partstat] * @param {string} [scope] * @param {string} [switchAccount] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public rsvpBrowserGet(companyUuid: string, eventUuid: string, attendeeUuid: string, partstat?: string, scope?: string, switchAccount?: string, options?: RawAxiosRequestConfig) { return TraitsApiFp(this.configuration).rsvpBrowserGet(companyUuid, eventUuid, attendeeUuid, partstat, scope, switchAccount, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Email/password login for RSVP * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} email * @param {string} password * @param {string} [partstat] * @param {string} [scope] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public rsvpBrowserLogin(companyUuid: string, eventUuid: string, attendeeUuid: string, email: string, password: string, partstat?: string, scope?: string, options?: RawAxiosRequestConfig) { return TraitsApiFp(this.configuration).rsvpBrowserLogin(companyUuid, eventUuid, attendeeUuid, email, password, partstat, scope, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Start social login for RSVP * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {string} provider * @param {string} [partstat] * @param {string} [scope] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public rsvpBrowserSocial(companyUuid: string, eventUuid: string, attendeeUuid: string, provider: string, partstat?: string, scope?: string, options?: RawAxiosRequestConfig) { return TraitsApiFp(this.configuration).rsvpBrowserSocial(companyUuid, eventUuid, attendeeUuid, provider, partstat, scope, options).then((request) => request(this.axios, this.basePath)); } /** * Patches partstat on the attendees edge. No tools @AccessControl — auth is bearer/session + self-only / partner login rules. * @summary Update event RSVP (JSON) * @param {string} companyUuid * @param {string} eventUuid * @param {string} attendeeUuid * @param {EventRsvpRequest} eventRsvpRequest RSVP payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ public rsvpJson(companyUuid: string, eventUuid: string, attendeeUuid: string, eventRsvpRequest: EventRsvpRequest, options?: RawAxiosRequestConfig) { return TraitsApiFp(this.configuration).rsvpJson(companyUuid, eventUuid, attendeeUuid, eventRsvpRequest, options).then((request) => request(this.axios, this.basePath)); } } /** * ViewsApi - axios parameter creator */ export const ViewsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a new view for the specified object. The request body must contain the view details as a ViewDTO. Returns a CreateResponse containing the newly created view as a ViewDTO. * @summary Create a new view * @param {string} objectUuid * @param {ViewDTO} viewDTO View details to create * @param {*} [options] Override http request option. * @throws {RequiredError} */ createView: async (objectUuid: string, viewDTO: ViewDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('createView', 'objectUuid', objectUuid) // verify required parameter 'viewDTO' is not null or undefined assertParamExists('createView', 'viewDTO', viewDTO) const localVarPath = `/api/v2/objects/{objectUuid}/views/` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(viewDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes the view identified by its UUID from the specified object. Returns a DeleteResponse confirming the deletion. * @summary Delete a view * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteView: async (objectUuid: string, viewUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('deleteView', 'objectUuid', objectUuid) // verify required parameter 'viewUuid' is not null or undefined assertParamExists('deleteView', 'viewUuid', viewUuid) const localVarPath = `/api/v2/objects/{objectUuid}/views/{viewUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{viewUuid}', encodeURIComponent(String(viewUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Toggles the favorite status of the specified view. Returns an UpdateResponse containing the updated view details. * @summary Toggle view favorite status * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ favoriteView: async (objectUuid: string, viewUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('favoriteView', 'objectUuid', objectUuid) // verify required parameter 'viewUuid' is not null or undefined assertParamExists('favoriteView', 'viewUuid', viewUuid) const localVarPath = `/api/v2/objects/{objectUuid}/views/{viewUuid}/favorite` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{viewUuid}', encodeURIComponent(String(viewUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves detailed information for a view identified by its UUID for the specified object. Returns a ShowResponse containing the ViewDTO. * @summary Get view details * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getView: async (objectUuid: string, viewUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getView', 'objectUuid', objectUuid) // verify required parameter 'viewUuid' is not null or undefined assertParamExists('getView', 'viewUuid', viewUuid) const localVarPath = `/api/v2/objects/{objectUuid}/views/{viewUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{viewUuid}', encodeURIComponent(String(viewUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a paginated list of views for the specified object. A custom Cypher query is used to filter views based on the object\'s UUID. Returns a PaginationResponse containing ViewDTO objects. * @summary Fetch paginated views for an object * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request details (limit, page, filters, sort, query) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getViews: async (objectUuid: string, paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('getViews', 'objectUuid', objectUuid) // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('getViews', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/objects/{objectUuid}/views/index` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the indices for views associated with the specified object. The request body must include a mapping of view UUIDs to their new index values. Returns a SuccessResponse with the updated view DTOs. * @summary Update view indices * @param {string} objectUuid * @param {{ [key: string]: number; }} requestBody Mapping of view UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateIndices1: async (objectUuid: string, requestBody: { [key: string]: number; }, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('updateIndices1', 'objectUuid', objectUuid) // verify required parameter 'requestBody' is not null or undefined assertParamExists('updateIndices1', 'requestBody', requestBody) const localVarPath = `/api/v2/objects/{objectUuid}/views/updateIndices` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the details of an existing view identified by its UUID for the specified object. The request body must contain the updated view details as a ViewDTO. Returns an UpdateResponse with the updated view data. * @summary Update an existing view * @param {string} objectUuid * @param {string} viewUuid * @param {ViewDTO} viewDTO Updated view details * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateView: async (objectUuid: string, viewUuid: string, viewDTO: ViewDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectUuid' is not null or undefined assertParamExists('updateView', 'objectUuid', objectUuid) // verify required parameter 'viewUuid' is not null or undefined assertParamExists('updateView', 'viewUuid', viewUuid) // verify required parameter 'viewDTO' is not null or undefined assertParamExists('updateView', 'viewDTO', viewDTO) const localVarPath = `/api/v2/objects/{objectUuid}/views/{viewUuid}` .replace('{objectUuid}', encodeURIComponent(String(objectUuid))) .replace('{viewUuid}', encodeURIComponent(String(viewUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(viewDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ViewsApi - functional programming interface */ export const ViewsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ViewsApiAxiosParamCreator(configuration) return { /** * Creates a new view for the specified object. The request body must contain the view details as a ViewDTO. Returns a CreateResponse containing the newly created view as a ViewDTO. * @summary Create a new view * @param {string} objectUuid * @param {ViewDTO} viewDTO View details to create * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createView(objectUuid: string, viewDTO: ViewDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createView(objectUuid, viewDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ViewsApi.createView']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes the view identified by its UUID from the specified object. Returns a DeleteResponse confirming the deletion. * @summary Delete a view * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteView(objectUuid: string, viewUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteView(objectUuid, viewUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ViewsApi.deleteView']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Toggles the favorite status of the specified view. Returns an UpdateResponse containing the updated view details. * @summary Toggle view favorite status * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async favoriteView(objectUuid: string, viewUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.favoriteView(objectUuid, viewUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ViewsApi.favoriteView']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves detailed information for a view identified by its UUID for the specified object. Returns a ShowResponse containing the ViewDTO. * @summary Get view details * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getView(objectUuid: string, viewUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getView(objectUuid, viewUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ViewsApi.getView']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a paginated list of views for the specified object. A custom Cypher query is used to filter views based on the object\'s UUID. Returns a PaginationResponse containing ViewDTO objects. * @summary Fetch paginated views for an object * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request details (limit, page, filters, sort, query) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getViews(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getViews(objectUuid, paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ViewsApi.getViews']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates the indices for views associated with the specified object. The request body must include a mapping of view UUIDs to their new index values. Returns a SuccessResponse with the updated view DTOs. * @summary Update view indices * @param {string} objectUuid * @param {{ [key: string]: number; }} requestBody Mapping of view UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateIndices1(objectUuid: string, requestBody: { [key: string]: number; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateIndices1(objectUuid, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ViewsApi.updateIndices1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates the details of an existing view identified by its UUID for the specified object. The request body must contain the updated view details as a ViewDTO. Returns an UpdateResponse with the updated view data. * @summary Update an existing view * @param {string} objectUuid * @param {string} viewUuid * @param {ViewDTO} viewDTO Updated view details * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateView(objectUuid: string, viewUuid: string, viewDTO: ViewDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateView(objectUuid, viewUuid, viewDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ViewsApi.updateView']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ViewsApi - factory interface */ export const ViewsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ViewsApiFp(configuration) return { /** * Creates a new view for the specified object. The request body must contain the view details as a ViewDTO. Returns a CreateResponse containing the newly created view as a ViewDTO. * @summary Create a new view * @param {string} objectUuid * @param {ViewDTO} viewDTO View details to create * @param {*} [options] Override http request option. * @throws {RequiredError} */ createView(objectUuid: string, viewDTO: ViewDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createView(objectUuid, viewDTO, options).then((request) => request(axios, basePath)); }, /** * Deletes the view identified by its UUID from the specified object. Returns a DeleteResponse confirming the deletion. * @summary Delete a view * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteView(objectUuid: string, viewUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteView(objectUuid, viewUuid, options).then((request) => request(axios, basePath)); }, /** * Toggles the favorite status of the specified view. Returns an UpdateResponse containing the updated view details. * @summary Toggle view favorite status * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ favoriteView(objectUuid: string, viewUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.favoriteView(objectUuid, viewUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves detailed information for a view identified by its UUID for the specified object. Returns a ShowResponse containing the ViewDTO. * @summary Get view details * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getView(objectUuid: string, viewUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getView(objectUuid, viewUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves a paginated list of views for the specified object. A custom Cypher query is used to filter views based on the object\'s UUID. Returns a PaginationResponse containing ViewDTO objects. * @summary Fetch paginated views for an object * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request details (limit, page, filters, sort, query) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getViews(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getViews(objectUuid, paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Updates the indices for views associated with the specified object. The request body must include a mapping of view UUIDs to their new index values. Returns a SuccessResponse with the updated view DTOs. * @summary Update view indices * @param {string} objectUuid * @param {{ [key: string]: number; }} requestBody Mapping of view UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateIndices1(objectUuid: string, requestBody: { [key: string]: number; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateIndices1(objectUuid, requestBody, options).then((request) => request(axios, basePath)); }, /** * Updates the details of an existing view identified by its UUID for the specified object. The request body must contain the updated view details as a ViewDTO. Returns an UpdateResponse with the updated view data. * @summary Update an existing view * @param {string} objectUuid * @param {string} viewUuid * @param {ViewDTO} viewDTO Updated view details * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateView(objectUuid: string, viewUuid: string, viewDTO: ViewDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateView(objectUuid, viewUuid, viewDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * ViewsApi - object-oriented interface */ export class ViewsApi extends BaseAPI { /** * Creates a new view for the specified object. The request body must contain the view details as a ViewDTO. Returns a CreateResponse containing the newly created view as a ViewDTO. * @summary Create a new view * @param {string} objectUuid * @param {ViewDTO} viewDTO View details to create * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createView(objectUuid: string, viewDTO: ViewDTO, options?: RawAxiosRequestConfig) { return ViewsApiFp(this.configuration).createView(objectUuid, viewDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes the view identified by its UUID from the specified object. Returns a DeleteResponse confirming the deletion. * @summary Delete a view * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteView(objectUuid: string, viewUuid: string, options?: RawAxiosRequestConfig) { return ViewsApiFp(this.configuration).deleteView(objectUuid, viewUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Toggles the favorite status of the specified view. Returns an UpdateResponse containing the updated view details. * @summary Toggle view favorite status * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public favoriteView(objectUuid: string, viewUuid: string, options?: RawAxiosRequestConfig) { return ViewsApiFp(this.configuration).favoriteView(objectUuid, viewUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves detailed information for a view identified by its UUID for the specified object. Returns a ShowResponse containing the ViewDTO. * @summary Get view details * @param {string} objectUuid * @param {string} viewUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getView(objectUuid: string, viewUuid: string, options?: RawAxiosRequestConfig) { return ViewsApiFp(this.configuration).getView(objectUuid, viewUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a paginated list of views for the specified object. A custom Cypher query is used to filter views based on the object\'s UUID. Returns a PaginationResponse containing ViewDTO objects. * @summary Fetch paginated views for an object * @param {string} objectUuid * @param {PaginationRequest} paginationRequest Pagination request details (limit, page, filters, sort, query) * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getViews(objectUuid: string, paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return ViewsApiFp(this.configuration).getViews(objectUuid, paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Updates the indices for views associated with the specified object. The request body must include a mapping of view UUIDs to their new index values. Returns a SuccessResponse with the updated view DTOs. * @summary Update view indices * @param {string} objectUuid * @param {{ [key: string]: number; }} requestBody Mapping of view UUIDs to new index values * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateIndices1(objectUuid: string, requestBody: { [key: string]: number; }, options?: RawAxiosRequestConfig) { return ViewsApiFp(this.configuration).updateIndices1(objectUuid, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * Updates the details of an existing view identified by its UUID for the specified object. The request body must contain the updated view details as a ViewDTO. Returns an UpdateResponse with the updated view data. * @summary Update an existing view * @param {string} objectUuid * @param {string} viewUuid * @param {ViewDTO} viewDTO Updated view details * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateView(objectUuid: string, viewUuid: string, viewDTO: ViewDTO, options?: RawAxiosRequestConfig) { return ViewsApiFp(this.configuration).updateView(objectUuid, viewUuid, viewDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * WebMenusApi - axios parameter creator */ export const WebMenusApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create web menu * @summary Create web menu * @param {WebMenuDTO} webMenuDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createWebMenu: async (webMenuDTO: WebMenuDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'webMenuDTO' is not null or undefined assertParamExists('createWebMenu', 'webMenuDTO', webMenuDTO) const localVarPath = `/api/v2/webmenus`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(webMenuDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Delete web menu * @summary Delete web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteWebMenu: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('deleteWebMenu', 'uuid', uuid) const localVarPath = `/api/v2/webmenus/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json,*/*'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Show web menu * @summary Show web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebMenu: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('getWebMenu', 'uuid', uuid) const localVarPath = `/api/v2/webmenus/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Index web menus * @summary Index web menus * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ indexWebMenus: async (paginationRequest: PaginationRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'paginationRequest' is not null or undefined assertParamExists('indexWebMenus', 'paginationRequest', paginationRequest) const localVarPath = `/api/v2/webmenus/index`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(paginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Restore a deleted web menu by its UUID * @summary Restore deleted web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreWebMenu: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('restoreWebMenu', 'uuid', uuid) const localVarPath = `/api/v2/webmenus/{uuid}/restore` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update web menu * @summary Update web menu * @param {string} uuid * @param {WebMenuDTO} webMenuDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateWebMenu: async (uuid: string, webMenuDTO: WebMenuDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('updateWebMenu', 'uuid', uuid) // verify required parameter 'webMenuDTO' is not null or undefined assertParamExists('updateWebMenu', 'webMenuDTO', webMenuDTO) const localVarPath = `/api/v2/webmenus/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(webMenuDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * WebMenusApi - functional programming interface */ export const WebMenusApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = WebMenusApiAxiosParamCreator(configuration) return { /** * Create web menu * @summary Create web menu * @param {WebMenuDTO} webMenuDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createWebMenu(webMenuDTO: WebMenuDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createWebMenu(webMenuDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebMenusApi.createWebMenu']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete web menu * @summary Delete web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteWebMenu(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWebMenu(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebMenusApi.deleteWebMenu']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Show web menu * @summary Show web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getWebMenu(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWebMenu(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebMenusApi.getWebMenu']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Index web menus * @summary Index web menus * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async indexWebMenus(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.indexWebMenus(paginationRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebMenusApi.indexWebMenus']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted web menu by its UUID * @summary Restore deleted web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async restoreWebMenu(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreWebMenu(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebMenusApi.restoreWebMenu']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update web menu * @summary Update web menu * @param {string} uuid * @param {WebMenuDTO} webMenuDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateWebMenu(uuid: string, webMenuDTO: WebMenuDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateWebMenu(uuid, webMenuDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebMenusApi.updateWebMenu']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * WebMenusApi - factory interface */ export const WebMenusApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = WebMenusApiFp(configuration) return { /** * Create web menu * @summary Create web menu * @param {WebMenuDTO} webMenuDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createWebMenu(webMenuDTO: WebMenuDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createWebMenu(webMenuDTO, options).then((request) => request(axios, basePath)); }, /** * Delete web menu * @summary Delete web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteWebMenu(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteWebMenu(uuid, options).then((request) => request(axios, basePath)); }, /** * Show web menu * @summary Show web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebMenu(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWebMenu(uuid, options).then((request) => request(axios, basePath)); }, /** * Index web menus * @summary Index web menus * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ indexWebMenus(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.indexWebMenus(paginationRequest, options).then((request) => request(axios, basePath)); }, /** * Restore a deleted web menu by its UUID * @summary Restore deleted web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ restoreWebMenu(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreWebMenu(uuid, options).then((request) => request(axios, basePath)); }, /** * Update web menu * @summary Update web menu * @param {string} uuid * @param {WebMenuDTO} webMenuDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateWebMenu(uuid: string, webMenuDTO: WebMenuDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateWebMenu(uuid, webMenuDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * WebMenusApi - object-oriented interface */ export class WebMenusApi extends BaseAPI { /** * Create web menu * @summary Create web menu * @param {WebMenuDTO} webMenuDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createWebMenu(webMenuDTO: WebMenuDTO, options?: RawAxiosRequestConfig) { return WebMenusApiFp(this.configuration).createWebMenu(webMenuDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Delete web menu * @summary Delete web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteWebMenu(uuid: string, options?: RawAxiosRequestConfig) { return WebMenusApiFp(this.configuration).deleteWebMenu(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Show web menu * @summary Show web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getWebMenu(uuid: string, options?: RawAxiosRequestConfig) { return WebMenusApiFp(this.configuration).getWebMenu(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Index web menus * @summary Index web menus * @param {PaginationRequest} paginationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public indexWebMenus(paginationRequest: PaginationRequest, options?: RawAxiosRequestConfig) { return WebMenusApiFp(this.configuration).indexWebMenus(paginationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Restore a deleted web menu by its UUID * @summary Restore deleted web menu * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public restoreWebMenu(uuid: string, options?: RawAxiosRequestConfig) { return WebMenusApiFp(this.configuration).restoreWebMenu(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Update web menu * @summary Update web menu * @param {string} uuid * @param {WebMenuDTO} webMenuDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateWebMenu(uuid: string, webMenuDTO: WebMenuDTO, options?: RawAxiosRequestConfig) { return WebMenusApiFp(this.configuration).updateWebMenu(uuid, webMenuDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * WebpagesApi - axios parameter creator */ export const WebpagesApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Registers the current user as editing the template webpage so other users are blocked from opening the builder. * @summary Claim a template webpage editing session * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ claimTemplateWebpageEditingSession: async (objectName: string, environment: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('claimTemplateWebpageEditingSession', 'objectName', objectName) // verify required parameter 'environment' is not null or undefined assertParamExists('claimTemplateWebpageEditingSession', 'environment', environment) const localVarPath = `/api/v2/webpages/template/{objectName}/{environment}/editing-session` .replace('{objectName}', encodeURIComponent(String(objectName))) .replace('{environment}', encodeURIComponent(String(environment))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Registers the current user as editing this webpage so other users are blocked from opening the builder. * @summary Claim a webpage editing session * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ claimWebpageEditingSession: async (uuid: string, environment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('claimWebpageEditingSession', 'uuid', uuid) const localVarPath = `/api/v2/webpages/{uuid}/editing-session` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Copies selected properties for the chosen environments (e.g. production_title → german_production_title). * @summary Copy properties to environments * @param {CopyPropertyToEnvironmentsRequest} copyPropertyToEnvironmentsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ copyPropertyToEnvironments: async (copyPropertyToEnvironmentsRequest: CopyPropertyToEnvironmentsRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'copyPropertyToEnvironmentsRequest' is not null or undefined assertParamExists('copyPropertyToEnvironments', 'copyPropertyToEnvironmentsRequest', copyPropertyToEnvironmentsRequest) const localVarPath = `/api/v2/webpages/environments/properties`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(copyPropertyToEnvironmentsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Copies a template webpage by object name from one environment to another. Returns a CreateResponse containing the copied template webpage as a TemplateWebpageDTO. * @summary Copy a template webpage from one environment to another * @param {string} objectName * @param {string} fromEnvironment * @param {string} toEnvironment * @param {*} [options] Override http request option. * @throws {RequiredError} */ copyTemplateWebpage: async (objectName: string, fromEnvironment: string, toEnvironment: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('copyTemplateWebpage', 'objectName', objectName) // verify required parameter 'fromEnvironment' is not null or undefined assertParamExists('copyTemplateWebpage', 'fromEnvironment', fromEnvironment) // verify required parameter 'toEnvironment' is not null or undefined assertParamExists('copyTemplateWebpage', 'toEnvironment', toEnvironment) const localVarPath = `/api/v2/webpages/template/{objectName}/copy/{fromEnvironment}/{toEnvironment}` .replace('{objectName}', encodeURIComponent(String(objectName))) .replace('{fromEnvironment}', encodeURIComponent(String(fromEnvironment))) .replace('{toEnvironment}', encodeURIComponent(String(toEnvironment))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Copies a webpage by its UUID from one environment to another. Returns a CreateResponse containing the copied webpage as a WebpageDTO. * @summary Copy a webpage from one environment to another * @param {string} uuid * @param {string} fromEnvironment * @param {string} toEnvironment * @param {*} [options] Override http request option. * @throws {RequiredError} */ copyWebpage: async (uuid: string, fromEnvironment: string, toEnvironment: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('copyWebpage', 'uuid', uuid) // verify required parameter 'fromEnvironment' is not null or undefined assertParamExists('copyWebpage', 'fromEnvironment', fromEnvironment) // verify required parameter 'toEnvironment' is not null or undefined assertParamExists('copyWebpage', 'toEnvironment', toEnvironment) const localVarPath = `/api/v2/webpages/{uuid}/copy/{fromEnvironment}/{toEnvironment}` .replace('{uuid}', encodeURIComponent(String(uuid))) .replace('{fromEnvironment}', encodeURIComponent(String(fromEnvironment))) .replace('{toEnvironment}', encodeURIComponent(String(toEnvironment))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates an environment. * @summary Create an environment * @param {CreateOrUpdateEnvironmentRequest} createOrUpdateEnvironmentRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEnvironments: async (createOrUpdateEnvironmentRequest: CreateOrUpdateEnvironmentRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'createOrUpdateEnvironmentRequest' is not null or undefined assertParamExists('createEnvironments', 'createOrUpdateEnvironmentRequest', createOrUpdateEnvironmentRequest) const localVarPath = `/api/v2/webpages/environments`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createOrUpdateEnvironmentRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new or updates an existing template webpage for the specified object. An event is published after the template is changed. Returns an UpdateResponse or CreateResponse with the template webpage details. * @summary Create or update template webpage * @param {string} objectName * @param {string} environment * @param {TemplateWebpageDTO} templateWebpageDTO Template webpage details * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrUpdateTemplateWebpage: async (objectName: string, environment: string, templateWebpageDTO: TemplateWebpageDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('createOrUpdateTemplateWebpage', 'objectName', objectName) // verify required parameter 'environment' is not null or undefined assertParamExists('createOrUpdateTemplateWebpage', 'environment', environment) // verify required parameter 'templateWebpageDTO' is not null or undefined assertParamExists('createOrUpdateTemplateWebpage', 'templateWebpageDTO', templateWebpageDTO) const localVarPath = `/api/v2/webpages/template/{objectName}/{environment}` .replace('{objectName}', encodeURIComponent(String(objectName))) .replace('{environment}', encodeURIComponent(String(environment))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(templateWebpageDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Generate signed URL for protected webpage * @param {string} uuid * @param {string} [environment] * @param {CreateSignedUrlRequest} [createSignedUrlRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSignedUrl: async (uuid: string, environment?: string, createSignedUrlRequest?: CreateSignedUrlRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('createSignedUrl', 'uuid', uuid) const localVarPath = `/api/v2/webpages/{uuid}/protection/signed-url` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createSignedUrlRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new webpage using the provided webpage details. Returns a CreateResponse containing the newly created webpage as a WebpageDTO. Validation: Webpage fields are validated according to the Webpage validation rules. Required fields and format constraints are enforced. * @summary Create a new webpage * @param {WebpageDTO} webpageDTO Webpage details * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createWebpage: async (webpageDTO: WebpageDTO, environment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'webpageDTO' is not null or undefined assertParamExists('createWebpage', 'webpageDTO', webpageDTO) const localVarPath = `/api/v2/webpages/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(webpageDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Soft deletes an environment. * @summary Delete an environment * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEnvironment: async (environment: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'environment' is not null or undefined assertParamExists('deleteEnvironment', 'environment', environment) const localVarPath = `/api/v2/webpages/environments/{environment}` .replace('{environment}', encodeURIComponent(String(environment))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a list of all webpage slugs for the public site. Returns a PaginationResponse containing WebpageMapItemDTO objects. * @summary Get all public webpage slugs * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllSlugs: async (xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('getAllSlugs', 'xCaraerSubdomain', xCaraerSubdomain) const localVarPath = `/api/v2/webpages/public/getSlugs`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerEnvironment != null) { localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment); } if (xCaraerPrimaryEnvironment != null) { localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves the public company configuration for the given subdomain. Returns a ShowResponse containing PublicCompanyDTO details. * @summary Fetch public company settings * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCompanySettings: async (xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('getCompanySettings', 'xCaraerSubdomain', xCaraerSubdomain) const localVarPath = `/api/v2/webpages/public/companySettings`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerEnvironment != null) { localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment); } if (xCaraerPrimaryEnvironment != null) { localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a list of all environments. * @summary Get all environments * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEnvironments: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/webpages/environments`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a list of web menus for the public site. Returns a PaginationResponse containing WebMenuDTO objects. * @summary Fetch public web menus * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMenus: async (xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('getMenus', 'xCaraerSubdomain', xCaraerSubdomain) const localVarPath = `/api/v2/webpages/public/getMenus`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerEnvironment != null) { localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment); } if (xCaraerPrimaryEnvironment != null) { localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap. * @summary Get filtered map markers for a public webpage * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {RecordPaginationRequest} recordPaginationRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicMapLocations: async (xCaraerSubdomain: string, pageUuid: string, componentUuid: string, recordPaginationRequest: RecordPaginationRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('getPublicMapLocations', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'pageUuid' is not null or undefined assertParamExists('getPublicMapLocations', 'pageUuid', pageUuid) // verify required parameter 'componentUuid' is not null or undefined assertParamExists('getPublicMapLocations', 'componentUuid', componentUuid) // verify required parameter 'recordPaginationRequest' is not null or undefined assertParamExists('getPublicMapLocations', 'recordPaginationRequest', recordPaginationRequest) const localVarPath = `/api/v2/webpages/public/maps/{pageUuid}/{componentUuid}` .replace('{pageUuid}', encodeURIComponent(String(pageUuid))) .replace('{componentUuid}', encodeURIComponent(String(componentUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (access !== undefined) { localVarQueryParameter['access'] = access; } if (token !== undefined) { localVarQueryParameter['token'] = token; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerEnvironment != null) { localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment); } if (xCaraerPrimaryEnvironment != null) { localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment); } if (authorization != null) { localVarHeaderParameter['Authorization'] = String(authorization); } if (xCaraerWebpageAccess != null) { localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recordPaginationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Hydrates the hover preview selected on a bound map location for a published record. * @summary Get a hydrated preview for one public map marker * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicMapMarkerPreview: async (xCaraerSubdomain: string, pageUuid: string, componentUuid: string, mapMarkerPreviewRequest: MapMarkerPreviewRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('getPublicMapMarkerPreview', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'pageUuid' is not null or undefined assertParamExists('getPublicMapMarkerPreview', 'pageUuid', pageUuid) // verify required parameter 'componentUuid' is not null or undefined assertParamExists('getPublicMapMarkerPreview', 'componentUuid', componentUuid) // verify required parameter 'mapMarkerPreviewRequest' is not null or undefined assertParamExists('getPublicMapMarkerPreview', 'mapMarkerPreviewRequest', mapMarkerPreviewRequest) const localVarPath = `/api/v2/webpages/public/maps/{pageUuid}/{componentUuid}/marker-preview` .replace('{pageUuid}', encodeURIComponent(String(pageUuid))) .replace('{componentUuid}', encodeURIComponent(String(componentUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (access !== undefined) { localVarQueryParameter['access'] = access; } if (token !== undefined) { localVarQueryParameter['token'] = token; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerEnvironment != null) { localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment); } if (xCaraerPrimaryEnvironment != null) { localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment); } if (authorization != null) { localVarHeaderParameter['Authorization'] = String(authorization); } if (xCaraerWebpageAccess != null) { localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(mapMarkerPreviewRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects. * @summary Get previews for a public webpage * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {string} layout * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicPreviews: async (xCaraerSubdomain: string, pageUuid: string, componentUuid: string, layout: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('getPublicPreviews', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'pageUuid' is not null or undefined assertParamExists('getPublicPreviews', 'pageUuid', pageUuid) // verify required parameter 'componentUuid' is not null or undefined assertParamExists('getPublicPreviews', 'componentUuid', componentUuid) // verify required parameter 'layout' is not null or undefined assertParamExists('getPublicPreviews', 'layout', layout) const localVarPath = `/api/v2/webpages/public/previews/{pageUuid}/{componentUuid}/{layout}` .replace('{pageUuid}', encodeURIComponent(String(pageUuid))) .replace('{componentUuid}', encodeURIComponent(String(componentUuid))) .replace('{layout}', encodeURIComponent(String(layout))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (access !== undefined) { localVarQueryParameter['access'] = access; } if (token !== undefined) { localVarQueryParameter['token'] = token; } localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerEnvironment != null) { localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment); } if (xCaraerPrimaryEnvironment != null) { localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment); } if (authorization != null) { localVarHeaderParameter['Authorization'] = String(authorization); } if (xCaraerWebpageAccess != null) { localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a published webpage based on the provided root slug and slug. Returns a ShowResponse containing WebpageDTO data. * @summary Get a public webpage by slug * @param {string} xCaraerSubdomain * @param {string} rootSlug * @param {string} slug * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicWebpage: async (xCaraerSubdomain: string, rootSlug: string, slug: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('getPublicWebpage', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'rootSlug' is not null or undefined assertParamExists('getPublicWebpage', 'rootSlug', rootSlug) // verify required parameter 'slug' is not null or undefined assertParamExists('getPublicWebpage', 'slug', slug) const localVarPath = `/api/v2/webpages/public/{rootSlug}/{slug}` .replace('{rootSlug}', encodeURIComponent(String(rootSlug))) .replace('{slug}', encodeURIComponent(String(slug))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (access !== undefined) { localVarQueryParameter['access'] = access; } if (token !== undefined) { localVarQueryParameter['token'] = token; } localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerEnvironment != null) { localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment); } if (xCaraerPrimaryEnvironment != null) { localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment); } if (authorization != null) { localVarHeaderParameter['Authorization'] = String(authorization); } if (xCaraerWebpageAccess != null) { localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves a published webpage based on its UUID. Returns a ShowResponse containing WebpageDTO data. * @summary Get a public webpage by UUID * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicWebpageByUuid: async (xCaraerSubdomain: string, uuid: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('getPublicWebpageByUuid', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'uuid' is not null or undefined assertParamExists('getPublicWebpageByUuid', 'uuid', uuid) const localVarPath = `/api/v2/webpages/public/uuid/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (access !== undefined) { localVarQueryParameter['access'] = access; } if (token !== undefined) { localVarQueryParameter['token'] = token; } localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerEnvironment != null) { localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment); } if (xCaraerPrimaryEnvironment != null) { localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment); } if (authorization != null) { localVarHeaderParameter['Authorization'] = String(authorization); } if (xCaraerWebpageAccess != null) { localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns protection requirements without page content. * @summary Get webpage protection metadata * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicWebpageProtection: async (xCaraerSubdomain: string, uuid: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('getPublicWebpageProtection', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'uuid' is not null or undefined assertParamExists('getPublicWebpageProtection', 'uuid', uuid) const localVarPath = `/api/v2/webpages/public/uuid/{uuid}/protection` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerEnvironment != null) { localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment); } if (xCaraerPrimaryEnvironment != null) { localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the PageContent tree for a module exposed by website settings, such as the custom footer or the cookie banner. Requires X-Caraer-Subdomain; only the UUIDs configured in website settings are accessible. * @summary Fetch public website module * @param {string} xCaraerSubdomain * @param {string} moduleUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicWebsiteModule: async (xCaraerSubdomain: string, moduleUuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('getPublicWebsiteModule', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'moduleUuid' is not null or undefined assertParamExists('getPublicWebsiteModule', 'moduleUuid', moduleUuid) const localVarPath = `/api/v2/webpages/public/module/{moduleUuid}` .replace('{moduleUuid}', encodeURIComponent(String(moduleUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves the template webpage for the given object name by querying the TemplateWebpage associated with it. Returns a ShowResponse containing TemplateWebpageDTO data. * @summary Get template webpage * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTemplateWebpage: async (objectName: string, environment: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('getTemplateWebpage', 'objectName', objectName) // verify required parameter 'environment' is not null or undefined assertParamExists('getTemplateWebpage', 'environment', environment) const localVarPath = `/api/v2/webpages/template/{objectName}/{environment}` .replace('{objectName}', encodeURIComponent(String(objectName))) .replace('{environment}', encodeURIComponent(String(environment))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns whether another user is actively editing the template webpage for the given object and environment. * @summary Check if a template webpage is being edited * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTemplateWebpageEditingStatus: async (objectName: string, environment: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('getTemplateWebpageEditingStatus', 'objectName', objectName) // verify required parameter 'environment' is not null or undefined assertParamExists('getTemplateWebpageEditingStatus', 'environment', environment) const localVarPath = `/api/v2/webpages/template/{objectName}/{environment}/editing-status` .replace('{objectName}', encodeURIComponent(String(objectName))) .replace('{environment}', encodeURIComponent(String(environment))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves detailed information for a webpage identified by its UUID. Optionally, the webpage title is \'smartened\' if the smartened parameter is true. * @summary Get webpage details * @param {string} uuid * @param {boolean} [smartened] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebpage: async (uuid: string, smartened?: boolean, environment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('getWebpage', 'uuid', uuid) const localVarPath = `/api/v2/webpages/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (smartened !== undefined) { localVarQueryParameter['smartened'] = smartened; } if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns whether another user is actively editing this webpage (via an open builder session or collaborative WebSocket connection). * @summary Check if a webpage is being edited * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebpageEditingStatus: async (uuid: string, environment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('getWebpageEditingStatus', 'uuid', uuid) const localVarPath = `/api/v2/webpages/{uuid}/editing-status` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns uuid and title for all webpage records across objects with a Page trait. Supports optional filters for published pages and excluding template-related pages. * @summary List webpages for picker dropdowns * @param {string} [environment] Environment to resolve webpage properties from (e.g. \'production\' or \'staging\'). * @param {boolean} [publishedOnly] When true, only returns pages that are published in the given environment. * @param {boolean} [excludeTemplateRelated] When true, excludes pages whose options mark them as related to a template. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebpagePickerPages: async (environment?: string, publishedOnly?: boolean, excludeTemplateRelated?: boolean, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/api/v2/webpages/picker/pages`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } if (publishedOnly !== undefined) { localVarQueryParameter['publishedOnly'] = publishedOnly; } if (excludeTemplateRelated !== undefined) { localVarQueryParameter['excludeTemplateRelated'] = excludeTemplateRelated; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List signed URL grants for a webpage * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listProtectionGrants: async (uuid: string, environment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('listProtectionGrants', 'uuid', uuid) const localVarPath = `/api/v2/webpages/{uuid}/protection/grants` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Makes an existing company file public and returns its stable public URL. The file is not copied and is not tied to a webpage. * @summary Public URL for a library file * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ publishFile: async (key: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'key' is not null or undefined assertParamExists('publishFile', 'key', key) const localVarPath = `/api/v2/webpages/publishFile`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (key !== undefined) { localVarQueryParameter['key'] = key; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Publishes a webpage by its UUID. Optionally, a publish_at timestamp (in seconds) may be provided. Returns an UpdateResponse containing the published webpage details. * @summary Publish a webpage * @param {string} uuid * @param {string} [publishAt] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ publishWebpage: async (uuid: string, publishAt?: string, environment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('publishWebpage', 'uuid', uuid) const localVarPath = `/api/v2/webpages/{uuid}/publish` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (publishAt !== undefined) { localVarQueryParameter['publishAt'] = publishAt; } if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Releases the editing session held by the current user for this template webpage. * @summary Release a template webpage editing session * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ releaseTemplateWebpageEditingSession: async (objectName: string, environment: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'objectName' is not null or undefined assertParamExists('releaseTemplateWebpageEditingSession', 'objectName', objectName) // verify required parameter 'environment' is not null or undefined assertParamExists('releaseTemplateWebpageEditingSession', 'environment', environment) const localVarPath = `/api/v2/webpages/template/{objectName}/{environment}/editing-session` .replace('{objectName}', encodeURIComponent(String(objectName))) .replace('{environment}', encodeURIComponent(String(environment))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Releases the editing session held by the current user for this webpage. * @summary Release a webpage editing session * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ releaseWebpageEditingSession: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('releaseWebpageEditingSession', 'uuid', uuid) const localVarPath = `/api/v2/webpages/{uuid}/editing-session` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Revoke a signed URL grant * @param {string} uuid * @param {string} grantUuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ revokeProtectionGrant: async (uuid: string, grantUuid: string, environment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('revokeProtectionGrant', 'uuid', uuid) // verify required parameter 'grantUuid' is not null or undefined assertParamExists('revokeProtectionGrant', 'grantUuid', grantUuid) const localVarPath = `/api/v2/webpages/{uuid}/protection/grants/{grantUuid}` .replace('{uuid}', encodeURIComponent(String(uuid))) .replace('{grantUuid}', encodeURIComponent(String(grantUuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Validates password and returns a short-lived access token. * @summary Unlock password-protected webpage * @param {string} xCaraerSubdomain * @param {string} uuid * @param {WebpageUnlockRequest} webpageUnlockRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ unlockPublicWebpage: async (xCaraerSubdomain: string, uuid: string, webpageUnlockRequest: WebpageUnlockRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'xCaraerSubdomain' is not null or undefined assertParamExists('unlockPublicWebpage', 'xCaraerSubdomain', xCaraerSubdomain) // verify required parameter 'uuid' is not null or undefined assertParamExists('unlockPublicWebpage', 'uuid', uuid) // verify required parameter 'webpageUnlockRequest' is not null or undefined assertParamExists('unlockPublicWebpage', 'webpageUnlockRequest', webpageUnlockRequest) const localVarPath = `/api/v2/webpages/public/uuid/{uuid}/unlock` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; if (xCaraerSubdomain != null) { localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain); } if (xCaraerEnvironment != null) { localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment); } if (xCaraerPrimaryEnvironment != null) { localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(webpageUnlockRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Unpublishes a webpage by its UUID. Optionally, an unpublishAt timestamp (in seconds) may be provided. Returns an UpdateResponse containing the unpublished webpage details. * @summary Unpublish a webpage * @param {string} uuid * @param {string} [unpublishAt] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ unpublishWebpage: async (uuid: string, unpublishAt?: string, environment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('unpublishWebpage', 'uuid', uuid) const localVarPath = `/api/v2/webpages/{uuid}/unpublish` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (unpublishAt !== undefined) { localVarQueryParameter['unpublishAt'] = unpublishAt; } if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates an existing webpage identified by its UUID using the provided webpage details. Returns an UpdateResponse containing the updated webpage as a WebpageDTO. Validation: Webpage fields are validated according to the Webpage validation rules. Required fields and format constraints are enforced. * @summary Update a webpage * @param {string} uuid * @param {WebpageDTO} webpageDTO Webpage details * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateWebpage: async (uuid: string, webpageDTO: WebpageDTO, environment?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('updateWebpage', 'uuid', uuid) // verify required parameter 'webpageDTO' is not null or undefined assertParamExists('updateWebpage', 'webpageDTO', webpageDTO) const localVarPath = `/api/v2/webpages/{uuid}` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (environment !== undefined) { localVarQueryParameter['environment'] = environment; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(webpageDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Uploads a file to S3 storage under the specified webpage\'s attachments folder, sets the file\'s ACL to public, and returns the public URL for the file in a SuccessResponse. * @summary Upload a file for a webpage * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'uuid' is not null or undefined assertParamExists('uploadFile', 'uuid', uuid) const localVarPath = `/api/v2/webpages/{uuid}/uploadFile` .replace('{uuid}', encodeURIComponent(String(uuid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Uploads a file to S3 storage and returns the public URL for the file in a SuccessResponse. * @summary Upload a file * @param {File} file * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile1: async (file: File, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'file' is not null or undefined assertParamExists('uploadFile1', 'file', file) const localVarPath = `/api/v2/webpages/uploadFile`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); // authentication bearerAuth required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (file !== undefined) { localVarFormParams.append('file', file as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; localVarHeaderParameter['Accept'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * WebpagesApi - functional programming interface */ export const WebpagesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = WebpagesApiAxiosParamCreator(configuration) return { /** * Registers the current user as editing the template webpage so other users are blocked from opening the builder. * @summary Claim a template webpage editing session * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ async claimTemplateWebpageEditingSession(objectName: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.claimTemplateWebpageEditingSession(objectName, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.claimTemplateWebpageEditingSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Registers the current user as editing this webpage so other users are blocked from opening the builder. * @summary Claim a webpage editing session * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async claimWebpageEditingSession(uuid: string, environment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.claimWebpageEditingSession(uuid, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.claimWebpageEditingSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Copies selected properties for the chosen environments (e.g. production_title → german_production_title). * @summary Copy properties to environments * @param {CopyPropertyToEnvironmentsRequest} copyPropertyToEnvironmentsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async copyPropertyToEnvironments(copyPropertyToEnvironmentsRequest: CopyPropertyToEnvironmentsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.copyPropertyToEnvironments(copyPropertyToEnvironmentsRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.copyPropertyToEnvironments']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Copies a template webpage by object name from one environment to another. Returns a CreateResponse containing the copied template webpage as a TemplateWebpageDTO. * @summary Copy a template webpage from one environment to another * @param {string} objectName * @param {string} fromEnvironment * @param {string} toEnvironment * @param {*} [options] Override http request option. * @throws {RequiredError} */ async copyTemplateWebpage(objectName: string, fromEnvironment: string, toEnvironment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.copyTemplateWebpage(objectName, fromEnvironment, toEnvironment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.copyTemplateWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Copies a webpage by its UUID from one environment to another. Returns a CreateResponse containing the copied webpage as a WebpageDTO. * @summary Copy a webpage from one environment to another * @param {string} uuid * @param {string} fromEnvironment * @param {string} toEnvironment * @param {*} [options] Override http request option. * @throws {RequiredError} */ async copyWebpage(uuid: string, fromEnvironment: string, toEnvironment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.copyWebpage(uuid, fromEnvironment, toEnvironment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.copyWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates an environment. * @summary Create an environment * @param {CreateOrUpdateEnvironmentRequest} createOrUpdateEnvironmentRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createEnvironments(createOrUpdateEnvironmentRequest: CreateOrUpdateEnvironmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createEnvironments(createOrUpdateEnvironmentRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.createEnvironments']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a new or updates an existing template webpage for the specified object. An event is published after the template is changed. Returns an UpdateResponse or CreateResponse with the template webpage details. * @summary Create or update template webpage * @param {string} objectName * @param {string} environment * @param {TemplateWebpageDTO} templateWebpageDTO Template webpage details * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createOrUpdateTemplateWebpage(objectName: string, environment: string, templateWebpageDTO: TemplateWebpageDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createOrUpdateTemplateWebpage(objectName, environment, templateWebpageDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.createOrUpdateTemplateWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Generate signed URL for protected webpage * @param {string} uuid * @param {string} [environment] * @param {CreateSignedUrlRequest} [createSignedUrlRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createSignedUrl(uuid: string, environment?: string, createSignedUrlRequest?: CreateSignedUrlRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSignedUrl(uuid, environment, createSignedUrlRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.createSignedUrl']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a new webpage using the provided webpage details. Returns a CreateResponse containing the newly created webpage as a WebpageDTO. Validation: Webpage fields are validated according to the Webpage validation rules. Required fields and format constraints are enforced. * @summary Create a new webpage * @param {WebpageDTO} webpageDTO Webpage details * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createWebpage(webpageDTO: WebpageDTO, environment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createWebpage(webpageDTO, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.createWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Soft deletes an environment. * @summary Delete an environment * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteEnvironment(environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvironment(environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.deleteEnvironment']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a list of all webpage slugs for the public site. Returns a PaginationResponse containing WebpageMapItemDTO objects. * @summary Get all public webpage slugs * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAllSlugs(xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSlugs(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getAllSlugs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves the public company configuration for the given subdomain. Returns a ShowResponse containing PublicCompanyDTO details. * @summary Fetch public company settings * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCompanySettings(xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanySettings(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getCompanySettings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a list of all environments. * @summary Get all environments * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getEnvironments(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironments(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getEnvironments']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a list of web menus for the public site. Returns a PaginationResponse containing WebMenuDTO objects. * @summary Fetch public web menus * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getMenus(xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getMenus']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap. * @summary Get filtered map markers for a public webpage * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {RecordPaginationRequest} recordPaginationRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicMapLocations(xCaraerSubdomain: string, pageUuid: string, componentUuid: string, recordPaginationRequest: RecordPaginationRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getPublicMapLocations']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Hydrates the hover preview selected on a bound map location for a published record. * @summary Get a hydrated preview for one public map marker * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicMapMarkerPreview(xCaraerSubdomain: string, pageUuid: string, componentUuid: string, mapMarkerPreviewRequest: MapMarkerPreviewRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getPublicMapMarkerPreview']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects. * @summary Get previews for a public webpage * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {string} layout * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicPreviews(xCaraerSubdomain: string, pageUuid: string, componentUuid: string, layout: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPreviews(xCaraerSubdomain, pageUuid, componentUuid, layout, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getPublicPreviews']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a published webpage based on the provided root slug and slug. Returns a ShowResponse containing WebpageDTO data. * @summary Get a public webpage by slug * @param {string} xCaraerSubdomain * @param {string} rootSlug * @param {string} slug * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicWebpage(xCaraerSubdomain: string, rootSlug: string, slug: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicWebpage(xCaraerSubdomain, rootSlug, slug, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getPublicWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves a published webpage based on its UUID. Returns a ShowResponse containing WebpageDTO data. * @summary Get a public webpage by UUID * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicWebpageByUuid(xCaraerSubdomain: string, uuid: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicWebpageByUuid(xCaraerSubdomain, uuid, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getPublicWebpageByUuid']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns protection requirements without page content. * @summary Get webpage protection metadata * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicWebpageProtection(xCaraerSubdomain: string, uuid: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicWebpageProtection(xCaraerSubdomain, uuid, xCaraerEnvironment, xCaraerPrimaryEnvironment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getPublicWebpageProtection']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the PageContent tree for a module exposed by website settings, such as the custom footer or the cookie banner. Requires X-Caraer-Subdomain; only the UUIDs configured in website settings are accessible. * @summary Fetch public website module * @param {string} xCaraerSubdomain * @param {string} moduleUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPublicWebsiteModule(xCaraerSubdomain: string, moduleUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicWebsiteModule(xCaraerSubdomain, moduleUuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getPublicWebsiteModule']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves the template webpage for the given object name by querying the TemplateWebpage associated with it. Returns a ShowResponse containing TemplateWebpageDTO data. * @summary Get template webpage * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTemplateWebpage(objectName: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplateWebpage(objectName, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getTemplateWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns whether another user is actively editing the template webpage for the given object and environment. * @summary Check if a template webpage is being edited * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTemplateWebpageEditingStatus(objectName: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplateWebpageEditingStatus(objectName, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getTemplateWebpageEditingStatus']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves detailed information for a webpage identified by its UUID. Optionally, the webpage title is \'smartened\' if the smartened parameter is true. * @summary Get webpage details * @param {string} uuid * @param {boolean} [smartened] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getWebpage(uuid: string, smartened?: boolean, environment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWebpage(uuid, smartened, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns whether another user is actively editing this webpage (via an open builder session or collaborative WebSocket connection). * @summary Check if a webpage is being edited * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getWebpageEditingStatus(uuid: string, environment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWebpageEditingStatus(uuid, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getWebpageEditingStatus']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns uuid and title for all webpage records across objects with a Page trait. Supports optional filters for published pages and excluding template-related pages. * @summary List webpages for picker dropdowns * @param {string} [environment] Environment to resolve webpage properties from (e.g. \'production\' or \'staging\'). * @param {boolean} [publishedOnly] When true, only returns pages that are published in the given environment. * @param {boolean} [excludeTemplateRelated] When true, excludes pages whose options mark them as related to a template. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getWebpagePickerPages(environment?: string, publishedOnly?: boolean, excludeTemplateRelated?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWebpagePickerPages(environment, publishedOnly, excludeTemplateRelated, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.getWebpagePickerPages']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List signed URL grants for a webpage * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listProtectionGrants(uuid: string, environment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listProtectionGrants(uuid, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.listProtectionGrants']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Makes an existing company file public and returns its stable public URL. The file is not copied and is not tied to a webpage. * @summary Public URL for a library file * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ async publishFile(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.publishFile(key, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.publishFile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Publishes a webpage by its UUID. Optionally, a publish_at timestamp (in seconds) may be provided. Returns an UpdateResponse containing the published webpage details. * @summary Publish a webpage * @param {string} uuid * @param {string} [publishAt] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async publishWebpage(uuid: string, publishAt?: string, environment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.publishWebpage(uuid, publishAt, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.publishWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Releases the editing session held by the current user for this template webpage. * @summary Release a template webpage editing session * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ async releaseTemplateWebpageEditingSession(objectName: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.releaseTemplateWebpageEditingSession(objectName, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.releaseTemplateWebpageEditingSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Releases the editing session held by the current user for this webpage. * @summary Release a webpage editing session * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async releaseWebpageEditingSession(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.releaseWebpageEditingSession(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.releaseWebpageEditingSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Revoke a signed URL grant * @param {string} uuid * @param {string} grantUuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async revokeProtectionGrant(uuid: string, grantUuid: string, environment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeProtectionGrant(uuid, grantUuid, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.revokeProtectionGrant']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Validates password and returns a short-lived access token. * @summary Unlock password-protected webpage * @param {string} xCaraerSubdomain * @param {string} uuid * @param {WebpageUnlockRequest} webpageUnlockRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unlockPublicWebpage(xCaraerSubdomain: string, uuid: string, webpageUnlockRequest: WebpageUnlockRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unlockPublicWebpage(xCaraerSubdomain, uuid, webpageUnlockRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.unlockPublicWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Unpublishes a webpage by its UUID. Optionally, an unpublishAt timestamp (in seconds) may be provided. Returns an UpdateResponse containing the unpublished webpage details. * @summary Unpublish a webpage * @param {string} uuid * @param {string} [unpublishAt] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unpublishWebpage(uuid: string, unpublishAt?: string, environment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unpublishWebpage(uuid, unpublishAt, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.unpublishWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Updates an existing webpage identified by its UUID using the provided webpage details. Returns an UpdateResponse containing the updated webpage as a WebpageDTO. Validation: Webpage fields are validated according to the Webpage validation rules. Required fields and format constraints are enforced. * @summary Update a webpage * @param {string} uuid * @param {WebpageDTO} webpageDTO Webpage details * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateWebpage(uuid: string, webpageDTO: WebpageDTO, environment?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateWebpage(uuid, webpageDTO, environment, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.updateWebpage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Uploads a file to S3 storage under the specified webpage\'s attachments folder, sets the file\'s ACL to public, and returns the public URL for the file in a SuccessResponse. * @summary Upload a file for a webpage * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async uploadFile(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(uuid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.uploadFile']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Uploads a file to S3 storage and returns the public URL for the file in a SuccessResponse. * @summary Upload a file * @param {File} file * @param {*} [options] Override http request option. * @throws {RequiredError} */ async uploadFile1(file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile1(file, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['WebpagesApi.uploadFile1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * WebpagesApi - factory interface */ export const WebpagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = WebpagesApiFp(configuration) return { /** * Registers the current user as editing the template webpage so other users are blocked from opening the builder. * @summary Claim a template webpage editing session * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ claimTemplateWebpageEditingSession(objectName: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.claimTemplateWebpageEditingSession(objectName, environment, options).then((request) => request(axios, basePath)); }, /** * Registers the current user as editing this webpage so other users are blocked from opening the builder. * @summary Claim a webpage editing session * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ claimWebpageEditingSession(uuid: string, environment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.claimWebpageEditingSession(uuid, environment, options).then((request) => request(axios, basePath)); }, /** * Copies selected properties for the chosen environments (e.g. production_title → german_production_title). * @summary Copy properties to environments * @param {CopyPropertyToEnvironmentsRequest} copyPropertyToEnvironmentsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ copyPropertyToEnvironments(copyPropertyToEnvironmentsRequest: CopyPropertyToEnvironmentsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.copyPropertyToEnvironments(copyPropertyToEnvironmentsRequest, options).then((request) => request(axios, basePath)); }, /** * Copies a template webpage by object name from one environment to another. Returns a CreateResponse containing the copied template webpage as a TemplateWebpageDTO. * @summary Copy a template webpage from one environment to another * @param {string} objectName * @param {string} fromEnvironment * @param {string} toEnvironment * @param {*} [options] Override http request option. * @throws {RequiredError} */ copyTemplateWebpage(objectName: string, fromEnvironment: string, toEnvironment: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.copyTemplateWebpage(objectName, fromEnvironment, toEnvironment, options).then((request) => request(axios, basePath)); }, /** * Copies a webpage by its UUID from one environment to another. Returns a CreateResponse containing the copied webpage as a WebpageDTO. * @summary Copy a webpage from one environment to another * @param {string} uuid * @param {string} fromEnvironment * @param {string} toEnvironment * @param {*} [options] Override http request option. * @throws {RequiredError} */ copyWebpage(uuid: string, fromEnvironment: string, toEnvironment: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.copyWebpage(uuid, fromEnvironment, toEnvironment, options).then((request) => request(axios, basePath)); }, /** * Creates an environment. * @summary Create an environment * @param {CreateOrUpdateEnvironmentRequest} createOrUpdateEnvironmentRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEnvironments(createOrUpdateEnvironmentRequest: CreateOrUpdateEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createEnvironments(createOrUpdateEnvironmentRequest, options).then((request) => request(axios, basePath)); }, /** * Creates a new or updates an existing template webpage for the specified object. An event is published after the template is changed. Returns an UpdateResponse or CreateResponse with the template webpage details. * @summary Create or update template webpage * @param {string} objectName * @param {string} environment * @param {TemplateWebpageDTO} templateWebpageDTO Template webpage details * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrUpdateTemplateWebpage(objectName: string, environment: string, templateWebpageDTO: TemplateWebpageDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createOrUpdateTemplateWebpage(objectName, environment, templateWebpageDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Generate signed URL for protected webpage * @param {string} uuid * @param {string} [environment] * @param {CreateSignedUrlRequest} [createSignedUrlRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSignedUrl(uuid: string, environment?: string, createSignedUrlRequest?: CreateSignedUrlRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createSignedUrl(uuid, environment, createSignedUrlRequest, options).then((request) => request(axios, basePath)); }, /** * Creates a new webpage using the provided webpage details. Returns a CreateResponse containing the newly created webpage as a WebpageDTO. Validation: Webpage fields are validated according to the Webpage validation rules. Required fields and format constraints are enforced. * @summary Create a new webpage * @param {WebpageDTO} webpageDTO Webpage details * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createWebpage(webpageDTO: WebpageDTO, environment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createWebpage(webpageDTO, environment, options).then((request) => request(axios, basePath)); }, /** * Soft deletes an environment. * @summary Delete an environment * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEnvironment(environment: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteEnvironment(environment, options).then((request) => request(axios, basePath)); }, /** * Retrieves a list of all webpage slugs for the public site. Returns a PaginationResponse containing WebpageMapItemDTO objects. * @summary Get all public webpage slugs * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllSlugs(xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAllSlugs(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(axios, basePath)); }, /** * Retrieves the public company configuration for the given subdomain. Returns a ShowResponse containing PublicCompanyDTO details. * @summary Fetch public company settings * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCompanySettings(xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCompanySettings(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(axios, basePath)); }, /** * Retrieves a list of all environments. * @summary Get all environments * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEnvironments(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getEnvironments(options).then((request) => request(axios, basePath)); }, /** * Retrieves a list of web menus for the public site. Returns a PaginationResponse containing WebMenuDTO objects. * @summary Fetch public web menus * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMenus(xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(axios, basePath)); }, /** * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap. * @summary Get filtered map markers for a public webpage * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {RecordPaginationRequest} recordPaginationRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicMapLocations(xCaraerSubdomain: string, pageUuid: string, componentUuid: string, recordPaginationRequest: RecordPaginationRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(axios, basePath)); }, /** * Hydrates the hover preview selected on a bound map location for a published record. * @summary Get a hydrated preview for one public map marker * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicMapMarkerPreview(xCaraerSubdomain: string, pageUuid: string, componentUuid: string, mapMarkerPreviewRequest: MapMarkerPreviewRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(axios, basePath)); }, /** * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects. * @summary Get previews for a public webpage * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {string} layout * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicPreviews(xCaraerSubdomain: string, pageUuid: string, componentUuid: string, layout: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicPreviews(xCaraerSubdomain, pageUuid, componentUuid, layout, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(axios, basePath)); }, /** * Retrieves a published webpage based on the provided root slug and slug. Returns a ShowResponse containing WebpageDTO data. * @summary Get a public webpage by slug * @param {string} xCaraerSubdomain * @param {string} rootSlug * @param {string} slug * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicWebpage(xCaraerSubdomain: string, rootSlug: string, slug: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicWebpage(xCaraerSubdomain, rootSlug, slug, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(axios, basePath)); }, /** * Retrieves a published webpage based on its UUID. Returns a ShowResponse containing WebpageDTO data. * @summary Get a public webpage by UUID * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicWebpageByUuid(xCaraerSubdomain: string, uuid: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicWebpageByUuid(xCaraerSubdomain, uuid, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(axios, basePath)); }, /** * Returns protection requirements without page content. * @summary Get webpage protection metadata * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicWebpageProtection(xCaraerSubdomain: string, uuid: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicWebpageProtection(xCaraerSubdomain, uuid, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(axios, basePath)); }, /** * Returns the PageContent tree for a module exposed by website settings, such as the custom footer or the cookie banner. Requires X-Caraer-Subdomain; only the UUIDs configured in website settings are accessible. * @summary Fetch public website module * @param {string} xCaraerSubdomain * @param {string} moduleUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicWebsiteModule(xCaraerSubdomain: string, moduleUuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPublicWebsiteModule(xCaraerSubdomain, moduleUuid, options).then((request) => request(axios, basePath)); }, /** * Retrieves the template webpage for the given object name by querying the TemplateWebpage associated with it. Returns a ShowResponse containing TemplateWebpageDTO data. * @summary Get template webpage * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTemplateWebpage(objectName: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTemplateWebpage(objectName, environment, options).then((request) => request(axios, basePath)); }, /** * Returns whether another user is actively editing the template webpage for the given object and environment. * @summary Check if a template webpage is being edited * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTemplateWebpageEditingStatus(objectName: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTemplateWebpageEditingStatus(objectName, environment, options).then((request) => request(axios, basePath)); }, /** * Retrieves detailed information for a webpage identified by its UUID. Optionally, the webpage title is \'smartened\' if the smartened parameter is true. * @summary Get webpage details * @param {string} uuid * @param {boolean} [smartened] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebpage(uuid: string, smartened?: boolean, environment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWebpage(uuid, smartened, environment, options).then((request) => request(axios, basePath)); }, /** * Returns whether another user is actively editing this webpage (via an open builder session or collaborative WebSocket connection). * @summary Check if a webpage is being edited * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebpageEditingStatus(uuid: string, environment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWebpageEditingStatus(uuid, environment, options).then((request) => request(axios, basePath)); }, /** * Returns uuid and title for all webpage records across objects with a Page trait. Supports optional filters for published pages and excluding template-related pages. * @summary List webpages for picker dropdowns * @param {string} [environment] Environment to resolve webpage properties from (e.g. \'production\' or \'staging\'). * @param {boolean} [publishedOnly] When true, only returns pages that are published in the given environment. * @param {boolean} [excludeTemplateRelated] When true, excludes pages whose options mark them as related to a template. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWebpagePickerPages(environment?: string, publishedOnly?: boolean, excludeTemplateRelated?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWebpagePickerPages(environment, publishedOnly, excludeTemplateRelated, options).then((request) => request(axios, basePath)); }, /** * * @summary List signed URL grants for a webpage * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listProtectionGrants(uuid: string, environment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listProtectionGrants(uuid, environment, options).then((request) => request(axios, basePath)); }, /** * Makes an existing company file public and returns its stable public URL. The file is not copied and is not tied to a webpage. * @summary Public URL for a library file * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ publishFile(key: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.publishFile(key, options).then((request) => request(axios, basePath)); }, /** * Publishes a webpage by its UUID. Optionally, a publish_at timestamp (in seconds) may be provided. Returns an UpdateResponse containing the published webpage details. * @summary Publish a webpage * @param {string} uuid * @param {string} [publishAt] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ publishWebpage(uuid: string, publishAt?: string, environment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.publishWebpage(uuid, publishAt, environment, options).then((request) => request(axios, basePath)); }, /** * Releases the editing session held by the current user for this template webpage. * @summary Release a template webpage editing session * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ releaseTemplateWebpageEditingSession(objectName: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.releaseTemplateWebpageEditingSession(objectName, environment, options).then((request) => request(axios, basePath)); }, /** * Releases the editing session held by the current user for this webpage. * @summary Release a webpage editing session * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ releaseWebpageEditingSession(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.releaseWebpageEditingSession(uuid, options).then((request) => request(axios, basePath)); }, /** * * @summary Revoke a signed URL grant * @param {string} uuid * @param {string} grantUuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ revokeProtectionGrant(uuid: string, grantUuid: string, environment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.revokeProtectionGrant(uuid, grantUuid, environment, options).then((request) => request(axios, basePath)); }, /** * Validates password and returns a short-lived access token. * @summary Unlock password-protected webpage * @param {string} xCaraerSubdomain * @param {string} uuid * @param {WebpageUnlockRequest} webpageUnlockRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ unlockPublicWebpage(xCaraerSubdomain: string, uuid: string, webpageUnlockRequest: WebpageUnlockRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unlockPublicWebpage(xCaraerSubdomain, uuid, webpageUnlockRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(axios, basePath)); }, /** * Unpublishes a webpage by its UUID. Optionally, an unpublishAt timestamp (in seconds) may be provided. Returns an UpdateResponse containing the unpublished webpage details. * @summary Unpublish a webpage * @param {string} uuid * @param {string} [unpublishAt] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ unpublishWebpage(uuid: string, unpublishAt?: string, environment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unpublishWebpage(uuid, unpublishAt, environment, options).then((request) => request(axios, basePath)); }, /** * Updates an existing webpage identified by its UUID using the provided webpage details. Returns an UpdateResponse containing the updated webpage as a WebpageDTO. Validation: Webpage fields are validated according to the Webpage validation rules. Required fields and format constraints are enforced. * @summary Update a webpage * @param {string} uuid * @param {WebpageDTO} webpageDTO Webpage details * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateWebpage(uuid: string, webpageDTO: WebpageDTO, environment?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateWebpage(uuid, webpageDTO, environment, options).then((request) => request(axios, basePath)); }, /** * Uploads a file to S3 storage under the specified webpage\'s attachments folder, sets the file\'s ACL to public, and returns the public URL for the file in a SuccessResponse. * @summary Upload a file for a webpage * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(uuid, options).then((request) => request(axios, basePath)); }, /** * Uploads a file to S3 storage and returns the public URL for the file in a SuccessResponse. * @summary Upload a file * @param {File} file * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile1(file: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile1(file, options).then((request) => request(axios, basePath)); }, }; }; /** * WebpagesApi - object-oriented interface */ export class WebpagesApi extends BaseAPI { /** * Registers the current user as editing the template webpage so other users are blocked from opening the builder. * @summary Claim a template webpage editing session * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ public claimTemplateWebpageEditingSession(objectName: string, environment: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).claimTemplateWebpageEditingSession(objectName, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Registers the current user as editing this webpage so other users are blocked from opening the builder. * @summary Claim a webpage editing session * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public claimWebpageEditingSession(uuid: string, environment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).claimWebpageEditingSession(uuid, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Copies selected properties for the chosen environments (e.g. production_title → german_production_title). * @summary Copy properties to environments * @param {CopyPropertyToEnvironmentsRequest} copyPropertyToEnvironmentsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public copyPropertyToEnvironments(copyPropertyToEnvironmentsRequest: CopyPropertyToEnvironmentsRequest, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).copyPropertyToEnvironments(copyPropertyToEnvironmentsRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Copies a template webpage by object name from one environment to another. Returns a CreateResponse containing the copied template webpage as a TemplateWebpageDTO. * @summary Copy a template webpage from one environment to another * @param {string} objectName * @param {string} fromEnvironment * @param {string} toEnvironment * @param {*} [options] Override http request option. * @throws {RequiredError} */ public copyTemplateWebpage(objectName: string, fromEnvironment: string, toEnvironment: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).copyTemplateWebpage(objectName, fromEnvironment, toEnvironment, options).then((request) => request(this.axios, this.basePath)); } /** * Copies a webpage by its UUID from one environment to another. Returns a CreateResponse containing the copied webpage as a WebpageDTO. * @summary Copy a webpage from one environment to another * @param {string} uuid * @param {string} fromEnvironment * @param {string} toEnvironment * @param {*} [options] Override http request option. * @throws {RequiredError} */ public copyWebpage(uuid: string, fromEnvironment: string, toEnvironment: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).copyWebpage(uuid, fromEnvironment, toEnvironment, options).then((request) => request(this.axios, this.basePath)); } /** * Creates an environment. * @summary Create an environment * @param {CreateOrUpdateEnvironmentRequest} createOrUpdateEnvironmentRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createEnvironments(createOrUpdateEnvironmentRequest: CreateOrUpdateEnvironmentRequest, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).createEnvironments(createOrUpdateEnvironmentRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a new or updates an existing template webpage for the specified object. An event is published after the template is changed. Returns an UpdateResponse or CreateResponse with the template webpage details. * @summary Create or update template webpage * @param {string} objectName * @param {string} environment * @param {TemplateWebpageDTO} templateWebpageDTO Template webpage details * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createOrUpdateTemplateWebpage(objectName: string, environment: string, templateWebpageDTO: TemplateWebpageDTO, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).createOrUpdateTemplateWebpage(objectName, environment, templateWebpageDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Generate signed URL for protected webpage * @param {string} uuid * @param {string} [environment] * @param {CreateSignedUrlRequest} [createSignedUrlRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createSignedUrl(uuid: string, environment?: string, createSignedUrlRequest?: CreateSignedUrlRequest, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).createSignedUrl(uuid, environment, createSignedUrlRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a new webpage using the provided webpage details. Returns a CreateResponse containing the newly created webpage as a WebpageDTO. Validation: Webpage fields are validated according to the Webpage validation rules. Required fields and format constraints are enforced. * @summary Create a new webpage * @param {WebpageDTO} webpageDTO Webpage details * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createWebpage(webpageDTO: WebpageDTO, environment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).createWebpage(webpageDTO, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Soft deletes an environment. * @summary Delete an environment * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteEnvironment(environment: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).deleteEnvironment(environment, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a list of all webpage slugs for the public site. Returns a PaginationResponse containing WebpageMapItemDTO objects. * @summary Get all public webpage slugs * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getAllSlugs(xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getAllSlugs(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves the public company configuration for the given subdomain. Returns a ShowResponse containing PublicCompanyDTO details. * @summary Fetch public company settings * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getCompanySettings(xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getCompanySettings(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a list of all environments. * @summary Get all environments * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getEnvironments(options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getEnvironments(options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a list of web menus for the public site. Returns a PaginationResponse containing WebMenuDTO objects. * @summary Fetch public web menus * @param {string} xCaraerSubdomain * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getMenus(xCaraerSubdomain: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(this.axios, this.basePath)); } /** * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap. * @summary Get filtered map markers for a public webpage * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {RecordPaginationRequest} recordPaginationRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPublicMapLocations(xCaraerSubdomain: string, pageUuid: string, componentUuid: string, recordPaginationRequest: RecordPaginationRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(this.axios, this.basePath)); } /** * Hydrates the hover preview selected on a bound map location for a published record. * @summary Get a hydrated preview for one public map marker * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPublicMapMarkerPreview(xCaraerSubdomain: string, pageUuid: string, componentUuid: string, mapMarkerPreviewRequest: MapMarkerPreviewRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects. * @summary Get previews for a public webpage * @param {string} xCaraerSubdomain * @param {string} pageUuid * @param {string} componentUuid * @param {string} layout * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPublicPreviews(xCaraerSubdomain: string, pageUuid: string, componentUuid: string, layout: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getPublicPreviews(xCaraerSubdomain, pageUuid, componentUuid, layout, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a published webpage based on the provided root slug and slug. Returns a ShowResponse containing WebpageDTO data. * @summary Get a public webpage by slug * @param {string} xCaraerSubdomain * @param {string} rootSlug * @param {string} slug * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPublicWebpage(xCaraerSubdomain: string, rootSlug: string, slug: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getPublicWebpage(xCaraerSubdomain, rootSlug, slug, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves a published webpage based on its UUID. Returns a ShowResponse containing WebpageDTO data. * @summary Get a public webpage by UUID * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {string} [authorization] * @param {string} [xCaraerWebpageAccess] * @param {string} [access] * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPublicWebpageByUuid(xCaraerSubdomain: string, uuid: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, authorization?: string, xCaraerWebpageAccess?: string, access?: string, token?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getPublicWebpageByUuid(xCaraerSubdomain, uuid, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(this.axios, this.basePath)); } /** * Returns protection requirements without page content. * @summary Get webpage protection metadata * @param {string} xCaraerSubdomain * @param {string} uuid * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPublicWebpageProtection(xCaraerSubdomain: string, uuid: string, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getPublicWebpageProtection(xCaraerSubdomain, uuid, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(this.axios, this.basePath)); } /** * Returns the PageContent tree for a module exposed by website settings, such as the custom footer or the cookie banner. Requires X-Caraer-Subdomain; only the UUIDs configured in website settings are accessible. * @summary Fetch public website module * @param {string} xCaraerSubdomain * @param {string} moduleUuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getPublicWebsiteModule(xCaraerSubdomain: string, moduleUuid: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getPublicWebsiteModule(xCaraerSubdomain, moduleUuid, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves the template webpage for the given object name by querying the TemplateWebpage associated with it. Returns a ShowResponse containing TemplateWebpageDTO data. * @summary Get template webpage * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getTemplateWebpage(objectName: string, environment: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getTemplateWebpage(objectName, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Returns whether another user is actively editing the template webpage for the given object and environment. * @summary Check if a template webpage is being edited * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getTemplateWebpageEditingStatus(objectName: string, environment: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getTemplateWebpageEditingStatus(objectName, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves detailed information for a webpage identified by its UUID. Optionally, the webpage title is \'smartened\' if the smartened parameter is true. * @summary Get webpage details * @param {string} uuid * @param {boolean} [smartened] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getWebpage(uuid: string, smartened?: boolean, environment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getWebpage(uuid, smartened, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Returns whether another user is actively editing this webpage (via an open builder session or collaborative WebSocket connection). * @summary Check if a webpage is being edited * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getWebpageEditingStatus(uuid: string, environment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getWebpageEditingStatus(uuid, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Returns uuid and title for all webpage records across objects with a Page trait. Supports optional filters for published pages and excluding template-related pages. * @summary List webpages for picker dropdowns * @param {string} [environment] Environment to resolve webpage properties from (e.g. \'production\' or \'staging\'). * @param {boolean} [publishedOnly] When true, only returns pages that are published in the given environment. * @param {boolean} [excludeTemplateRelated] When true, excludes pages whose options mark them as related to a template. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getWebpagePickerPages(environment?: string, publishedOnly?: boolean, excludeTemplateRelated?: boolean, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).getWebpagePickerPages(environment, publishedOnly, excludeTemplateRelated, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List signed URL grants for a webpage * @param {string} uuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public listProtectionGrants(uuid: string, environment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).listProtectionGrants(uuid, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Makes an existing company file public and returns its stable public URL. The file is not copied and is not tied to a webpage. * @summary Public URL for a library file * @param {string} key * @param {*} [options] Override http request option. * @throws {RequiredError} */ public publishFile(key: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).publishFile(key, options).then((request) => request(this.axios, this.basePath)); } /** * Publishes a webpage by its UUID. Optionally, a publish_at timestamp (in seconds) may be provided. Returns an UpdateResponse containing the published webpage details. * @summary Publish a webpage * @param {string} uuid * @param {string} [publishAt] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public publishWebpage(uuid: string, publishAt?: string, environment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).publishWebpage(uuid, publishAt, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Releases the editing session held by the current user for this template webpage. * @summary Release a template webpage editing session * @param {string} objectName * @param {string} environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ public releaseTemplateWebpageEditingSession(objectName: string, environment: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).releaseTemplateWebpageEditingSession(objectName, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Releases the editing session held by the current user for this webpage. * @summary Release a webpage editing session * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public releaseWebpageEditingSession(uuid: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).releaseWebpageEditingSession(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Revoke a signed URL grant * @param {string} uuid * @param {string} grantUuid * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public revokeProtectionGrant(uuid: string, grantUuid: string, environment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).revokeProtectionGrant(uuid, grantUuid, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Validates password and returns a short-lived access token. * @summary Unlock password-protected webpage * @param {string} xCaraerSubdomain * @param {string} uuid * @param {WebpageUnlockRequest} webpageUnlockRequest * @param {string} [xCaraerEnvironment] * @param {string} [xCaraerPrimaryEnvironment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public unlockPublicWebpage(xCaraerSubdomain: string, uuid: string, webpageUnlockRequest: WebpageUnlockRequest, xCaraerEnvironment?: string, xCaraerPrimaryEnvironment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).unlockPublicWebpage(xCaraerSubdomain, uuid, webpageUnlockRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(this.axios, this.basePath)); } /** * Unpublishes a webpage by its UUID. Optionally, an unpublishAt timestamp (in seconds) may be provided. Returns an UpdateResponse containing the unpublished webpage details. * @summary Unpublish a webpage * @param {string} uuid * @param {string} [unpublishAt] * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public unpublishWebpage(uuid: string, unpublishAt?: string, environment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).unpublishWebpage(uuid, unpublishAt, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Updates an existing webpage identified by its UUID using the provided webpage details. Returns an UpdateResponse containing the updated webpage as a WebpageDTO. Validation: Webpage fields are validated according to the Webpage validation rules. Required fields and format constraints are enforced. * @summary Update a webpage * @param {string} uuid * @param {WebpageDTO} webpageDTO Webpage details * @param {string} [environment] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public updateWebpage(uuid: string, webpageDTO: WebpageDTO, environment?: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).updateWebpage(uuid, webpageDTO, environment, options).then((request) => request(this.axios, this.basePath)); } /** * Uploads a file to S3 storage under the specified webpage\'s attachments folder, sets the file\'s ACL to public, and returns the public URL for the file in a SuccessResponse. * @summary Upload a file for a webpage * @param {string} uuid * @param {*} [options] Override http request option. * @throws {RequiredError} */ public uploadFile(uuid: string, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).uploadFile(uuid, options).then((request) => request(this.axios, this.basePath)); } /** * Uploads a file to S3 storage and returns the public URL for the file in a SuccessResponse. * @summary Upload a file * @param {File} file * @param {*} [options] Override http request option. * @throws {RequiredError} */ public uploadFile1(file: File, options?: RawAxiosRequestConfig) { return WebpagesApiFp(this.configuration).uploadFile1(file, options).then((request) => request(this.axios, this.basePath)); } }