{"version":3,"file":"CtaServicesApiClientFactory.IamVlIaY.js","sources":["../../../../../../src/lib/api/generated/cta-services/core/BaseHttpRequest.ts","../../../../../../src/lib/api/generated/cta-services/core/ApiError.ts","../../../../../../src/lib/api/generated/cta-services/core/CancelablePromise.ts","../../../../../../src/lib/api/generated/cta-services/core/request.ts","../../../../../../src/lib/api/generated/cta-services/core/FetchHttpRequest.ts","../../../../../../src/lib/api/generated/cta-services/services/DefaultService.ts","../../../../../../src/lib/api/generated/cta-services/CtaServicesApiClient.ts","../../../../../../src/lib/api/ExtendedCtaServiceProxy.ts","../../../../../../src/lib/api/CtaServicesApiClientFactory.ts"],"sourcesContent":["/* generated using openapi-typescript-codegen -- do not edit */\n/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { CancelablePromise } from './CancelablePromise';\nimport type { OpenAPIConfig } from './OpenAPI';\n\nexport abstract class BaseHttpRequest {\n\n constructor(public readonly config: OpenAPIConfig) {}\n\n public abstract request(options: ApiRequestOptions): CancelablePromise;\n}\n","/* generated using openapi-typescript-codegen -- do not edit */\n/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\n\nexport class ApiError extends Error {\n public readonly url: string;\n public readonly status: number;\n public readonly statusText: string;\n public readonly body: any;\n public readonly request: ApiRequestOptions;\n\n constructor(request: ApiRequestOptions, response: ApiResult, message: string) {\n super(message);\n\n this.name = 'ApiError';\n this.url = response.url;\n this.status = response.status;\n this.statusText = response.statusText;\n this.body = response.body;\n this.request = request;\n }\n}\n","/* generated using openapi-typescript-codegen -- do not edit */\n/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nexport class CancelError extends Error {\n\n constructor(message: string) {\n super(message);\n this.name = 'CancelError';\n }\n\n public get isCancelled(): boolean {\n return true;\n }\n}\n\nexport interface OnCancel {\n readonly isResolved: boolean;\n readonly isRejected: boolean;\n readonly isCancelled: boolean;\n\n (cancelHandler: () => void): void;\n}\n\nexport class CancelablePromise implements Promise {\n #isResolved: boolean;\n #isRejected: boolean;\n #isCancelled: boolean;\n readonly #cancelHandlers: (() => void)[];\n readonly #promise: Promise;\n #resolve?: (value: T | PromiseLike) => void;\n #reject?: (reason?: any) => void;\n\n constructor(\n executor: (\n resolve: (value: T | PromiseLike) => void,\n reject: (reason?: any) => void,\n onCancel: OnCancel\n ) => void\n ) {\n this.#isResolved = false;\n this.#isRejected = false;\n this.#isCancelled = false;\n this.#cancelHandlers = [];\n this.#promise = new Promise((resolve, reject) => {\n this.#resolve = resolve;\n this.#reject = reject;\n\n const onResolve = (value: T | PromiseLike): void => {\n if (this.#isResolved || this.#isRejected || this.#isCancelled) {\n return;\n }\n this.#isResolved = true;\n if (this.#resolve) this.#resolve(value);\n };\n\n const onReject = (reason?: any): void => {\n if (this.#isResolved || this.#isRejected || this.#isCancelled) {\n return;\n }\n this.#isRejected = true;\n if (this.#reject) this.#reject(reason);\n };\n\n const onCancel = (cancelHandler: () => void): void => {\n if (this.#isResolved || this.#isRejected || this.#isCancelled) {\n return;\n }\n this.#cancelHandlers.push(cancelHandler);\n };\n\n Object.defineProperty(onCancel, 'isResolved', {\n get: (): boolean => this.#isResolved,\n });\n\n Object.defineProperty(onCancel, 'isRejected', {\n get: (): boolean => this.#isRejected,\n });\n\n Object.defineProperty(onCancel, 'isCancelled', {\n get: (): boolean => this.#isCancelled,\n });\n\n return executor(onResolve, onReject, onCancel as OnCancel);\n });\n }\n\n get [Symbol.toStringTag]() {\n return \"Cancellable Promise\";\n }\n\n public then(\n onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null,\n onRejected?: ((reason: any) => TResult2 | PromiseLike) | null\n ): Promise {\n return this.#promise.then(onFulfilled, onRejected);\n }\n\n public catch(\n onRejected?: ((reason: any) => TResult | PromiseLike) | null\n ): Promise {\n return this.#promise.catch(onRejected);\n }\n\n public finally(onFinally?: (() => void) | null): Promise {\n return this.#promise.finally(onFinally);\n }\n\n public cancel(): void {\n if (this.#isResolved || this.#isRejected || this.#isCancelled) {\n return;\n }\n this.#isCancelled = true;\n if (this.#cancelHandlers.length) {\n try {\n for (const cancelHandler of this.#cancelHandlers) {\n cancelHandler();\n }\n } catch (error) {\n console.warn('Cancellation threw an error', error);\n return;\n }\n }\n this.#cancelHandlers.length = 0;\n if (this.#reject) this.#reject(new CancelError('Request aborted'));\n }\n\n public get isCancelled(): boolean {\n return this.#isCancelled;\n }\n}\n","/* generated using openapi-typescript-codegen -- do not edit */\n/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport type { OpenAPIConfig } from './OpenAPI';\n\nexport const isDefined = (value: T | null | undefined): value is Exclude => {\n return value !== undefined && value !== null;\n};\n\nexport const isString = (value: any): value is string => {\n return typeof value === 'string';\n};\n\nexport const isStringWithValue = (value: any): value is string => {\n return isString(value) && value !== '';\n};\n\nexport const isBlob = (value: any): value is Blob => {\n return (\n typeof value === 'object' &&\n typeof value.type === 'string' &&\n typeof value.stream === 'function' &&\n typeof value.arrayBuffer === 'function' &&\n typeof value.constructor === 'function' &&\n typeof value.constructor.name === 'string' &&\n /^(Blob|File)$/.test(value.constructor.name) &&\n /^(Blob|File)$/.test(value[Symbol.toStringTag])\n );\n};\n\nexport const isFormData = (value: any): value is FormData => {\n return value instanceof FormData;\n};\n\nexport const base64 = (str: string): string => {\n try {\n return btoa(str);\n } catch (err) {\n // @ts-ignore\n return Buffer.from(str).toString('base64');\n }\n};\n\nexport const getQueryString = (params: Record): string => {\n const qs: string[] = [];\n\n const append = (key: string, value: any) => {\n qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\n };\n\n const process = (key: string, value: any) => {\n if (isDefined(value)) {\n if (Array.isArray(value)) {\n value.forEach(v => {\n process(key, v);\n });\n } else if (typeof value === 'object') {\n Object.entries(value).forEach(([k, v]) => {\n process(`${key}[${k}]`, v);\n });\n } else {\n append(key, value);\n }\n }\n };\n\n Object.entries(params).forEach(([key, value]) => {\n process(key, value);\n });\n\n if (qs.length > 0) {\n return `?${qs.join('&')}`;\n }\n\n return '';\n};\n\nconst getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {\n const encoder = config.ENCODE_PATH || encodeURI;\n\n const path = options.url\n .replace('{api-version}', config.VERSION)\n .replace(/{(.*?)}/g, (substring: string, group: string) => {\n if (options.path?.hasOwnProperty(group)) {\n return encoder(String(options.path[group]));\n }\n return substring;\n });\n\n const url = `${config.BASE}${path}`;\n if (options.query) {\n return `${url}${getQueryString(options.query)}`;\n }\n return url;\n};\n\nexport const getFormData = (options: ApiRequestOptions): FormData | undefined => {\n if (options.formData) {\n const formData = new FormData();\n\n const process = (key: string, value: any) => {\n if (isString(value) || isBlob(value)) {\n formData.append(key, value);\n } else {\n formData.append(key, JSON.stringify(value));\n }\n };\n\n Object.entries(options.formData)\n .filter(([_, value]) => isDefined(value))\n .forEach(([key, value]) => {\n if (Array.isArray(value)) {\n value.forEach(v => process(key, v));\n } else {\n process(key, value);\n }\n });\n\n return formData;\n }\n return undefined;\n};\n\ntype Resolver = (options: ApiRequestOptions) => Promise;\n\nexport const resolve = async (options: ApiRequestOptions, resolver?: T | Resolver): Promise => {\n if (typeof resolver === 'function') {\n return (resolver as Resolver)(options);\n }\n return resolver;\n};\n\nexport const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise => {\n const [token, username, password, additionalHeaders] = await Promise.all([\n resolve(options, config.TOKEN),\n resolve(options, config.USERNAME),\n resolve(options, config.PASSWORD),\n resolve(options, config.HEADERS),\n ]);\n\n const headers = Object.entries({\n Accept: 'application/json',\n ...additionalHeaders,\n ...options.headers,\n })\n .filter(([_, value]) => isDefined(value))\n .reduce((headers, [key, value]) => ({\n ...headers,\n [key]: String(value),\n }), {} as Record);\n\n if (isStringWithValue(token)) {\n headers['Authorization'] = `Bearer ${token}`;\n }\n\n if (isStringWithValue(username) && isStringWithValue(password)) {\n const credentials = base64(`${username}:${password}`);\n headers['Authorization'] = `Basic ${credentials}`;\n }\n\n if (options.body !== undefined) {\n if (options.mediaType) {\n headers['Content-Type'] = options.mediaType;\n } else if (isBlob(options.body)) {\n headers['Content-Type'] = options.body.type || 'application/octet-stream';\n } else if (isString(options.body)) {\n headers['Content-Type'] = 'text/plain';\n } else if (!isFormData(options.body)) {\n headers['Content-Type'] = 'application/json';\n }\n }\n\n return new Headers(headers);\n};\n\nexport const getRequestBody = (options: ApiRequestOptions): any => {\n if (options.body !== undefined) {\n if (options.mediaType?.includes('/json')) {\n return JSON.stringify(options.body)\n } else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {\n return options.body;\n } else {\n return JSON.stringify(options.body);\n }\n }\n return undefined;\n};\n\nexport const sendRequest = async (\n config: OpenAPIConfig,\n options: ApiRequestOptions,\n url: string,\n body: any,\n formData: FormData | undefined,\n headers: Headers,\n onCancel: OnCancel\n): Promise => {\n const controller = new AbortController();\n\n const request: RequestInit = {\n headers,\n body: body ?? formData,\n method: options.method,\n signal: controller.signal,\n };\n\n if (config.WITH_CREDENTIALS) {\n request.credentials = config.CREDENTIALS;\n }\n\n onCancel(() => controller.abort());\n\n return await fetch(url, request);\n};\n\nexport const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => {\n if (responseHeader) {\n const content = response.headers.get(responseHeader);\n if (isString(content)) {\n return content;\n }\n }\n return undefined;\n};\n\nexport const getResponseBody = async (response: Response): Promise => {\n if (response.status !== 204) {\n try {\n const contentType = response.headers.get('Content-Type');\n if (contentType) {\n const jsonTypes = ['application/json', 'application/problem+json']\n const isJSON = jsonTypes.some(type => contentType.toLowerCase().startsWith(type));\n if (isJSON) {\n return await response.json();\n } else {\n return await response.text();\n }\n }\n } catch (error) {\n console.error(error);\n }\n }\n return undefined;\n};\n\nexport const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {\n const errors: Record = {\n 400: 'Bad Request',\n 401: 'Unauthorized',\n 403: 'Forbidden',\n 404: 'Not Found',\n 500: 'Internal Server Error',\n 502: 'Bad Gateway',\n 503: 'Service Unavailable',\n ...options.errors,\n }\n\n const error = errors[result.status];\n if (error) {\n throw new ApiError(options, result, error);\n }\n\n if (!result.ok) {\n const errorStatus = result.status ?? 'unknown';\n const errorStatusText = result.statusText ?? 'unknown';\n const errorBody = (() => {\n try {\n return JSON.stringify(result.body, null, 2);\n } catch (e) {\n return undefined;\n }\n })();\n\n throw new ApiError(options, result,\n `Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`\n );\n }\n};\n\n/**\n * Request method\n * @param config The OpenAPI configuration object\n * @param options The request options from the service\n * @returns CancelablePromise\n * @throws ApiError\n */\nexport const request = (config: OpenAPIConfig, options: ApiRequestOptions): CancelablePromise => {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(config, options);\n const formData = getFormData(options);\n const body = getRequestBody(options);\n const headers = await getHeaders(config, options);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(config, options, url, body, formData, headers, onCancel);\n const responseBody = await getResponseBody(response);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult = {\n url,\n ok: response.ok,\n status: response.status,\n statusText: response.statusText,\n body: responseHeader ?? responseBody,\n };\n\n catchErrorCodes(options, result);\n\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n};\n","/* generated using openapi-typescript-codegen -- do not edit */\n/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport { BaseHttpRequest } from './BaseHttpRequest';\nimport type { CancelablePromise } from './CancelablePromise';\nimport type { OpenAPIConfig } from './OpenAPI';\nimport { request as __request } from './request';\n\nexport class FetchHttpRequest extends BaseHttpRequest {\n\n constructor(config: OpenAPIConfig) {\n super(config);\n }\n\n /**\n * Request method\n * @param options The request options from the service\n * @returns CancelablePromise\n * @throws ApiError\n */\n public override request(options: ApiRequestOptions): CancelablePromise {\n return __request(this.config, options);\n }\n}\n","/* generated using openapi-typescript-codegen -- do not edit */\n/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type { ActivateUserRequest } from '../models/ActivateUserRequest';\nimport type { ActivateUserResponse } from '../models/ActivateUserResponse';\nimport type { BookEventRequest } from '../models/BookEventRequest';\nimport type { BookEventResponse } from '../models/BookEventResponse';\nimport type { CallMeBackRequest } from '../models/CallMeBackRequest';\nimport type { CallMeBackResponse } from '../models/CallMeBackResponse';\nimport type { CheckoutShopifyRequest } from '../models/CheckoutShopifyRequest';\nimport type { CheckoutShopifyResponse } from '../models/CheckoutShopifyResponse';\nimport type { EnrollInstructorToEventRequest } from '../models/EnrollInstructorToEventRequest';\nimport type { EnrollInstructorToEventResponse } from '../models/EnrollInstructorToEventResponse';\nimport type { GetSessionHistoryRequest } from '../models/GetSessionHistoryRequest';\nimport type { GetSessionHistoryResponse } from '../models/GetSessionHistoryResponse';\nimport type { InformationRequestRequest } from '../models/InformationRequestRequest';\nimport type { LogErrorsRequest } from '../models/LogErrorsRequest';\nimport type { LogErrorsResponse } from '../models/LogErrorsResponse';\nimport type { PostDownloadBrochureRequest } from '../models/PostDownloadBrochureRequest';\nimport type { SignupRequest } from '../models/SignupRequest';\nimport type { SignupResponse } from '../models/SignupResponse';\nimport type { SocialSignupRequest } from '../models/SocialSignupRequest';\nimport type { SubmitAdmissionRequestRequest } from '../models/SubmitAdmissionRequestRequest';\nimport type { SubmitAdmissionRequestResponse } from '../models/SubmitAdmissionRequestResponse';\nimport type { SubmitDownloadBrochureResponse } from '../models/SubmitDownloadBrochureResponse';\nimport type { SubmitInformationRequestResponse } from '../models/SubmitInformationRequestResponse';\nimport type { SubmitOrientationRequestRequest } from '../models/SubmitOrientationRequestRequest';\nimport type { SubmitOrientationRequestResponse } from '../models/SubmitOrientationRequestResponse';\nimport type { SubmitPartialAdmissionRequestRequest } from '../models/SubmitPartialAdmissionRequestRequest';\nimport type { SubmitPartialAdmissionRequestResponse } from '../models/SubmitPartialAdmissionRequestResponse';\nimport type { SubmitScholarshipRequestRequest } from '../models/SubmitScholarshipRequestRequest';\nimport type { SubmitScholarshipRequestResponse } from '../models/SubmitScholarshipRequestResponse';\nimport type { UpdateDownloadBrochureRequest } from '../models/UpdateDownloadBrochureRequest';\nimport type { UpdateDownloadBrochureResponse } from '../models/UpdateDownloadBrochureResponse';\nimport type { UpdateUserProfileRequest } from '../models/UpdateUserProfileRequest';\nimport type { UpdateUserProfileResponse } from '../models/UpdateUserProfileResponse';\nimport type { CancelablePromise } from '../core/CancelablePromise';\nimport type { BaseHttpRequest } from '../core/BaseHttpRequest';\nexport class DefaultService {\n constructor(public readonly httpRequest: BaseHttpRequest) {}\n /**\n * @param uid\n * @param requestBody\n * @returns UpdateDownloadBrochureResponse 200 response\n * @throws ApiError\n */\n public updateDownloadBrochure(\n uid: string,\n requestBody: UpdateDownloadBrochureRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'PUT',\n url: '/brochure/download/{uid}',\n path: {\n 'uid': uid,\n },\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 404: `404 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @param uid\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsBrochureDownload(\n uid: string,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/brochure/download/{uid}',\n path: {\n 'uid': uid,\n },\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns SubmitAdmissionRequestResponse 200 response\n * @throws ApiError\n */\n public submitAdmissionRequest(\n requestBody: SubmitAdmissionRequestRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/admissionRequest',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsAdmissionRequest(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/admissionRequest',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @throws ApiError\n */\n public version(): CancelablePromise {\n return this.httpRequest.request({\n method: 'GET',\n url: '/version',\n });\n }\n /**\n * @param requestBody\n * @returns CallMeBackResponse 200 response\n * @throws ApiError\n */\n public callMeBack(\n requestBody: CallMeBackRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/callMeBack',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsCallMeBack(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/callMeBack',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns SignupResponse 200 response\n * @throws ApiError\n */\n public socialSignup(\n requestBody: SocialSignupRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/user/socialSignup',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsUserSocialSignup(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/user/socialSignup',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns LogErrorsResponse 200 response\n * @throws ApiError\n */\n public logErrors(\n requestBody: LogErrorsRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/logging/errors',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsLoggingErrors(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/logging/errors',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param token\n * @throws ApiError\n */\n public streamBrochure(\n token: string,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'GET',\n url: '/brochure/stream',\n query: {\n 'token': token,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsBrochureStream(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/brochure/stream',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns SignupResponse 200 response\n * @throws ApiError\n */\n public signup(\n requestBody: SignupRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/user/signup',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsUserSignup(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/user/signup',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns SubmitOrientationRequestResponse 200 response\n * @throws ApiError\n */\n public submitOrientationRequest(\n requestBody: SubmitOrientationRequestRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/orientationRequest',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsOrientationRequest(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/orientationRequest',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns SubmitPartialAdmissionRequestResponse 200 response\n * @throws ApiError\n */\n public submitPartialAdmissionRequest(\n requestBody: SubmitPartialAdmissionRequestRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/partialAdmissionRequest',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsPartialAdmissionRequest(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/partialAdmissionRequest',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns EnrollInstructorToEventResponse 200 response\n * @throws ApiError\n */\n public enrollInstructorToEvent(\n requestBody: EnrollInstructorToEventRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/event/enrollInstructor',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsEventEnrollInstructor(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/event/enrollInstructor',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns BookEventResponse 200 response\n * @throws ApiError\n */\n public bookEvent(\n requestBody: BookEventRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/event/book',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsEventBook(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/event/book',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns UpdateUserProfileResponse 200 response\n * @throws ApiError\n */\n public updateUserProfile(\n requestBody: UpdateUserProfileRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/user/update',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsUserUpdate(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/user/update',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns SubmitDownloadBrochureResponse 200 response\n * @throws ApiError\n */\n public submitDownloadBrochure(\n requestBody: PostDownloadBrochureRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/brochure/download',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsBrochureDownload1(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/brochure/download',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns GetSessionHistoryResponse 200 response\n * @throws ApiError\n */\n public getSessionHistory(\n requestBody: GetSessionHistoryRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/history/session',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsHistorySession(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/history/session',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns CheckoutShopifyResponse 200 response\n * @throws ApiError\n */\n public checkoutShopify(\n requestBody: CheckoutShopifyRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/checkoutShopify',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsCheckoutShopify(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/checkoutShopify',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns ActivateUserResponse 200 response\n * @throws ApiError\n */\n public activateUser(\n requestBody: ActivateUserRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/user/activate',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsUserActivate(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/user/activate',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns SubmitScholarshipRequestResponse 200 response\n * @throws ApiError\n */\n public submitScholarshipRequest(\n requestBody: SubmitScholarshipRequestRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/scholarshipRequest',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsScholarshipRequest(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/scholarshipRequest',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n /**\n * @param requestBody\n * @returns SubmitInformationRequestResponse 200 response\n * @throws ApiError\n */\n public submitInformationRequest(\n requestBody: InformationRequestRequest,\n ): CancelablePromise {\n return this.httpRequest.request({\n method: 'POST',\n url: '/informationRequest',\n body: requestBody,\n mediaType: 'application/json',\n errors: {\n 400: `400 response`,\n 500: `500 response`,\n },\n });\n }\n /**\n * @returns string 200 response\n * @throws ApiError\n */\n public optionsInformationRequest(): CancelablePromise {\n return this.httpRequest.request({\n method: 'OPTIONS',\n url: '/informationRequest',\n responseHeader: 'Access-Control-Allow-Origin',\n });\n }\n}\n","/* generated using openapi-typescript-codegen -- do not edit */\n/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */\nimport type { BaseHttpRequest } from './core/BaseHttpRequest';\nimport type { OpenAPIConfig } from './core/OpenAPI';\nimport { FetchHttpRequest } from './core/FetchHttpRequest';\nimport { DefaultService } from './services/DefaultService';\ntype HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;\nexport class CtaServicesApiClient {\n public readonly default: DefaultService;\n public readonly request: BaseHttpRequest;\n constructor(config?: Partial, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {\n this.request = new HttpRequest({\n BASE: config?.BASE ?? 'https://api.alpha.24orebs.com/cta-services',\n VERSION: config?.VERSION ?? '2025-01-03T00:08:12Z',\n WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,\n CREDENTIALS: config?.CREDENTIALS ?? 'include',\n TOKEN: config?.TOKEN,\n USERNAME: config?.USERNAME,\n PASSWORD: config?.PASSWORD,\n HEADERS: config?.HEADERS,\n ENCODE_PATH: config?.ENCODE_PATH,\n });\n this.default = new DefaultService(this.request);\n }\n}\n\n","import { CancelablePromise, DefaultService } from './generated/cta-services';\n\n\nexport type CustomEventCallback = (response: T) => void;\n\nexport type ExtendedDefaultService = {\n [K in keyof DefaultService]: DefaultService[K] extends (...args: infer A) => CancelablePromise\n ? (...args: [...A, CustomEventCallback?]) => CancelablePromise\n : DefaultService[K];\n};\n\n/**\n * Creates a proxy for a given service that extends `DefaultService`, allowing methods\n * to accept an optional callback function. This callback will be invoked with the result \n * of the `CancelablePromise` if provided, enabling custom handling of the response without \n * altering the original method signatures.\n * \n * The proxy wraps each method of the `defaultService` that returns a `CancelablePromise`.\n * If the last argument of the method is a function, it is treated as a callback and will be \n * called with the resolved response of the `CancelablePromise`. Errors during promise resolution \n * are caught and logged.\n * \n * @template T - An extension of `ExtendedDefaultService`, representing the proxied service type.\n * @param {T} defaultService - The original service object to be proxied, which contains methods \n * that return `CancelablePromise`.\n * @returns {T} - A proxied version of the input service, where methods can accept an additional \n * callback parameter for handling the promise resolution.\n **/\nfunction createProxiedService(defaultService: T): T {\n return new Proxy(defaultService, {\n get(target, prop: string | symbol, receiver) {\n if (typeof target[prop as keyof T] === 'function') {\n const originalMethod = target[prop as keyof T] as (...args: any[]) => any;\n\n return function (this: T, ...args: any[]) {\n const callback: CustomEventCallback | undefined =\n typeof args[args.length - 1] === 'function' ? args.pop() : undefined;\n\n const result = originalMethod.apply(this, args);\n\n if (result instanceof CancelablePromise && callback) {\n return result.then((response: any) => {\n callback(response);\n return response;\n }).catch((error: any) => {\n console.error(`Error in method ${String(prop)}:`, error);\n throw error;\n });\n }\n\n return result;\n }.bind(target);\n }\n\n return Reflect.get(target, prop, receiver);\n },\n }) as T;\n}\n\n\nexport default createProxiedService","import { CtaServicesApiClient } from './generated/cta-services';\nimport { useOktaStore } from '$lib/utils/auth-store';\nimport { PUBLIC_CTA_SERVICES_API_KEY, PUBLIC_CTA_SERVICES_URL } from '$env/static/public';\nimport createProxiedService, { type ExtendedDefaultService } from './ExtendedCtaServiceProxy';\n\n/**\n * Get the CTA Services API client instance.\n * @returns The CTA Services API client instance.\n */\nexport const useCtaServicesApiClient = (): ExtendedDefaultService => {\n const apiKey = PUBLIC_CTA_SERVICES_API_KEY ?? '';\n const apiUrl = PUBLIC_CTA_SERVICES_URL ?? '';\n\n if (!apiKey) {\n throw new Error('No API key found');\n }\n\n if (!apiUrl) {\n throw new Error('No API URL found');\n }\n\n const headers: any = {\n 'x-api-key': apiKey\n };\n\n const authStore = useOktaStore();\n const accessToken = authStore.accessToken;\n\n if (accessToken) {\n headers['Authorization'] = 'Bearer ' + accessToken;\n } else {\n console.warn('No access token found');\n }\n\n const defaultService = new CtaServicesApiClient({\n HEADERS: headers,\n BASE: apiUrl\n }).default;\n\n return createProxiedService(defaultService);\n}\n\nexport default useCtaServicesApiClient;"],"names":["BaseHttpRequest","config","ApiError","request","response","message","__publicField","CancelError","CancelablePromise","executor","__privateAdd","_isResolved","_isRejected","_isCancelled","_cancelHandlers","_promise","_resolve","_reject","__privateSet","resolve","reject","onResolve","value","__privateGet","onReject","reason","onCancel","cancelHandler","onFulfilled","onRejected","onFinally","error","isDefined","isString","isStringWithValue","isBlob","isFormData","base64","str","getQueryString","params","qs","append","key","process","v","k","getUrl","options","encoder","path","substring","group","_a","url","getFormData","formData","_","resolver","getHeaders","token","username","password","additionalHeaders","headers","credentials","getRequestBody","sendRequest","body","controller","getResponseHeader","responseHeader","content","getResponseBody","contentType","type","catchErrorCodes","result","errorStatus","errorStatusText","errorBody","responseBody","FetchHttpRequest","__request","DefaultService","httpRequest","uid","requestBody","CtaServicesApiClient","HttpRequest","createProxiedService","defaultService","target","prop","receiver","originalMethod","args","callback","useCtaServicesApiClient","apiKey","PUBLIC_CTA_SERVICES_API_KEY","apiUrl","PUBLIC_CTA_SERVICES_URL","accessToken","useOktaStore"],"mappings":"umBAQO,MAAeA,CAAgB,CAElC,YAA4BC,EAAuB,CAAvB,KAAA,OAAAA,CAAA,CAGhC,CCNO,MAAMC,UAAiB,KAAM,CAOhC,YAAYC,EAA4BC,EAAqBC,EAAiB,CAC1E,MAAMA,CAAO,EAPDC,EAAA,YACAA,EAAA,eACAA,EAAA,mBACAA,EAAA,aACAA,EAAA,gBAKZ,KAAK,KAAO,WACZ,KAAK,IAAMF,EAAS,IACpB,KAAK,OAASA,EAAS,OACvB,KAAK,WAAaA,EAAS,WAC3B,KAAK,KAAOA,EAAS,KACrB,KAAK,QAAUD,CAAA,CAEvB,CCpBO,MAAMI,UAAoB,KAAM,CAEnC,YAAYF,EAAiB,CACzB,MAAMA,CAAO,EACb,KAAK,KAAO,aAAA,CAGhB,IAAW,aAAuB,CACvB,MAAA,EAAA,CAEf,mBAUO,MAAMG,CAA2C,CASpD,YACIC,EAKF,CAdFC,EAAA,KAAAC,GACAD,EAAA,KAAAE,GACAF,EAAA,KAAAG,GACSH,EAAA,KAAAI,GACAJ,EAAA,KAAAK,GACTL,EAAA,KAAAM,GACAN,EAAA,KAAAO,GASIC,EAAA,KAAKP,EAAc,IACnBO,EAAA,KAAKN,EAAc,IACnBM,EAAA,KAAKL,EAAe,IACpBK,EAAA,KAAKJ,EAAkB,CAAC,GACxBI,EAAA,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