Skip to main content
Glama

Remote MCP Server (Authless)

by evimeyer
index.js2.28 MB
var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var __esm = (fn, res) => function __init() { return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; }; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); // node_modules/unenv/dist/runtime/_internal/utils.mjs // @__NO_SIDE_EFFECTS__ function createNotImplementedError(name) { return new Error(`[unenv] ${name} is not implemented yet!`); } // @__NO_SIDE_EFFECTS__ function notImplemented(name) { const fn = /* @__PURE__ */ __name(() => { throw /* @__PURE__ */ createNotImplementedError(name); }, "fn"); return Object.assign(fn, { __unenv__: true }); } // @__NO_SIDE_EFFECTS__ function notImplementedAsync(name) { const fn = /* @__PURE__ */ notImplemented(name); fn.__promisify__ = () => /* @__PURE__ */ notImplemented(name + ".__promisify__"); fn.native = fn; return fn; } // @__NO_SIDE_EFFECTS__ function notImplementedClass(name) { return class { __unenv__ = true; constructor() { throw new Error(`[unenv] ${name} is not implemented yet!`); } }; } var init_utils = __esm({ "node_modules/unenv/dist/runtime/_internal/utils.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); __name(createNotImplementedError, "createNotImplementedError"); __name(notImplemented, "notImplemented"); __name(notImplementedAsync, "notImplementedAsync"); __name(notImplementedClass, "notImplementedClass"); } }); // node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs var _timeOrigin, _performanceNow, nodeTiming, PerformanceEntry, PerformanceMark, PerformanceMeasure, PerformanceResourceTiming, PerformanceObserverEntryList, Performance, PerformanceObserver, performance; var init_performance = __esm({ "node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_utils(); _timeOrigin = globalThis.performance?.timeOrigin ?? Date.now(); _performanceNow = globalThis.performance?.now ? globalThis.performance.now.bind(globalThis.performance) : () => Date.now() - _timeOrigin; nodeTiming = { name: "node", entryType: "node", startTime: 0, duration: 0, nodeStart: 0, v8Start: 0, bootstrapComplete: 0, environment: 0, loopStart: 0, loopExit: 0, idleTime: 0, uvMetricsInfo: { loopCount: 0, events: 0, eventsWaiting: 0 }, detail: void 0, toJSON() { return this; } }; PerformanceEntry = class { static { __name(this, "PerformanceEntry"); } __unenv__ = true; detail; entryType = "event"; name; startTime; constructor(name, options) { this.name = name; this.startTime = options?.startTime || _performanceNow(); this.detail = options?.detail; } get duration() { return _performanceNow() - this.startTime; } toJSON() { return { name: this.name, entryType: this.entryType, startTime: this.startTime, duration: this.duration, detail: this.detail }; } }; PerformanceMark = class PerformanceMark2 extends PerformanceEntry { static { __name(this, "PerformanceMark"); } entryType = "mark"; constructor() { super(...arguments); } get duration() { return 0; } }; PerformanceMeasure = class extends PerformanceEntry { static { __name(this, "PerformanceMeasure"); } entryType = "measure"; }; PerformanceResourceTiming = class extends PerformanceEntry { static { __name(this, "PerformanceResourceTiming"); } entryType = "resource"; serverTiming = []; connectEnd = 0; connectStart = 0; decodedBodySize = 0; domainLookupEnd = 0; domainLookupStart = 0; encodedBodySize = 0; fetchStart = 0; initiatorType = ""; name = ""; nextHopProtocol = ""; redirectEnd = 0; redirectStart = 0; requestStart = 0; responseEnd = 0; responseStart = 0; secureConnectionStart = 0; startTime = 0; transferSize = 0; workerStart = 0; responseStatus = 0; }; PerformanceObserverEntryList = class { static { __name(this, "PerformanceObserverEntryList"); } __unenv__ = true; getEntries() { return []; } getEntriesByName(_name, _type) { return []; } getEntriesByType(type) { return []; } }; Performance = class { static { __name(this, "Performance"); } __unenv__ = true; timeOrigin = _timeOrigin; eventCounts = /* @__PURE__ */ new Map(); _entries = []; _resourceTimingBufferSize = 0; navigation = void 0; timing = void 0; timerify(_fn, _options) { throw createNotImplementedError("Performance.timerify"); } get nodeTiming() { return nodeTiming; } eventLoopUtilization() { return {}; } markResourceTiming() { return new PerformanceResourceTiming(""); } onresourcetimingbufferfull = null; now() { if (this.timeOrigin === _timeOrigin) { return _performanceNow(); } return Date.now() - this.timeOrigin; } clearMarks(markName) { this._entries = markName ? this._entries.filter((e) => e.name !== markName) : this._entries.filter((e) => e.entryType !== "mark"); } clearMeasures(measureName) { this._entries = measureName ? this._entries.filter((e) => e.name !== measureName) : this._entries.filter((e) => e.entryType !== "measure"); } clearResourceTimings() { this._entries = this._entries.filter((e) => e.entryType !== "resource" || e.entryType !== "navigation"); } getEntries() { return this._entries; } getEntriesByName(name, type) { return this._entries.filter((e) => e.name === name && (!type || e.entryType === type)); } getEntriesByType(type) { return this._entries.filter((e) => e.entryType === type); } mark(name, options) { const entry = new PerformanceMark(name, options); this._entries.push(entry); return entry; } measure(measureName, startOrMeasureOptions, endMark) { let start; let end; if (typeof startOrMeasureOptions === "string") { start = this.getEntriesByName(startOrMeasureOptions, "mark")[0]?.startTime; end = this.getEntriesByName(endMark, "mark")[0]?.startTime; } else { start = Number.parseFloat(startOrMeasureOptions?.start) || this.now(); end = Number.parseFloat(startOrMeasureOptions?.end) || this.now(); } const entry = new PerformanceMeasure(measureName, { startTime: start, detail: { start, end } }); this._entries.push(entry); return entry; } setResourceTimingBufferSize(maxSize) { this._resourceTimingBufferSize = maxSize; } addEventListener(type, listener, options) { throw createNotImplementedError("Performance.addEventListener"); } removeEventListener(type, listener, options) { throw createNotImplementedError("Performance.removeEventListener"); } dispatchEvent(event) { throw createNotImplementedError("Performance.dispatchEvent"); } toJSON() { return this; } }; PerformanceObserver = class { static { __name(this, "PerformanceObserver"); } __unenv__ = true; static supportedEntryTypes = []; _callback = null; constructor(callback) { this._callback = callback; } takeRecords() { return []; } disconnect() { throw createNotImplementedError("PerformanceObserver.disconnect"); } observe(options) { throw createNotImplementedError("PerformanceObserver.observe"); } bind(fn) { return fn; } runInAsyncScope(fn, thisArg, ...args) { return fn.call(thisArg, ...args); } asyncId() { return 0; } triggerAsyncId() { return 0; } emitDestroy() { return this; } }; performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance(); } }); // node_modules/unenv/dist/runtime/node/perf_hooks.mjs var init_perf_hooks = __esm({ "node_modules/unenv/dist/runtime/node/perf_hooks.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_performance(); } }); // node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs var init_performance2 = __esm({ "node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs"() { init_perf_hooks(); globalThis.performance = performance; globalThis.Performance = Performance; globalThis.PerformanceEntry = PerformanceEntry; globalThis.PerformanceMark = PerformanceMark; globalThis.PerformanceMeasure = PerformanceMeasure; globalThis.PerformanceObserver = PerformanceObserver; globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList; globalThis.PerformanceResourceTiming = PerformanceResourceTiming; } }); // node_modules/unenv/dist/runtime/mock/noop.mjs var noop_default; var init_noop = __esm({ "node_modules/unenv/dist/runtime/mock/noop.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); noop_default = Object.assign(() => { }, { __unenv__: true }); } }); // node_modules/unenv/dist/runtime/node/console.mjs import { Writable } from "node:stream"; var _console, _ignoreErrors, _stderr, _stdout, log, info, trace, debug, table, error, warn, createTask, clear, count, countReset, dir, dirxml, group, groupEnd, groupCollapsed, profile, profileEnd, time, timeEnd, timeLog, timeStamp, Console, _times, _stdoutErrorHandler, _stderrErrorHandler; var init_console = __esm({ "node_modules/unenv/dist/runtime/node/console.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_noop(); init_utils(); _console = globalThis.console; _ignoreErrors = true; _stderr = new Writable(); _stdout = new Writable(); log = _console?.log ?? noop_default; info = _console?.info ?? log; trace = _console?.trace ?? info; debug = _console?.debug ?? log; table = _console?.table ?? log; error = _console?.error ?? log; warn = _console?.warn ?? error; createTask = _console?.createTask ?? /* @__PURE__ */ notImplemented("console.createTask"); clear = _console?.clear ?? noop_default; count = _console?.count ?? noop_default; countReset = _console?.countReset ?? noop_default; dir = _console?.dir ?? noop_default; dirxml = _console?.dirxml ?? noop_default; group = _console?.group ?? noop_default; groupEnd = _console?.groupEnd ?? noop_default; groupCollapsed = _console?.groupCollapsed ?? noop_default; profile = _console?.profile ?? noop_default; profileEnd = _console?.profileEnd ?? noop_default; time = _console?.time ?? noop_default; timeEnd = _console?.timeEnd ?? noop_default; timeLog = _console?.timeLog ?? noop_default; timeStamp = _console?.timeStamp ?? noop_default; Console = _console?.Console ?? /* @__PURE__ */ notImplementedClass("console.Console"); _times = /* @__PURE__ */ new Map(); _stdoutErrorHandler = noop_default; _stderrErrorHandler = noop_default; } }); // node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs var workerdConsole, assert, clear2, context, count2, countReset2, createTask2, debug2, dir2, dirxml2, error2, group2, groupCollapsed2, groupEnd2, info2, log2, profile2, profileEnd2, table2, time2, timeEnd2, timeLog2, timeStamp2, trace2, warn2, console_default; var init_console2 = __esm({ "node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_console(); workerdConsole = globalThis["console"]; ({ assert, clear: clear2, context: ( // @ts-expect-error undocumented public API context ), count: count2, countReset: countReset2, createTask: ( // @ts-expect-error undocumented public API createTask2 ), debug: debug2, dir: dir2, dirxml: dirxml2, error: error2, group: group2, groupCollapsed: groupCollapsed2, groupEnd: groupEnd2, info: info2, log: log2, profile: profile2, profileEnd: profileEnd2, table: table2, time: time2, timeEnd: timeEnd2, timeLog: timeLog2, timeStamp: timeStamp2, trace: trace2, warn: warn2 } = workerdConsole); Object.assign(workerdConsole, { Console, _ignoreErrors, _stderr, _stderrErrorHandler, _stdout, _stdoutErrorHandler, _times }); console_default = workerdConsole; } }); // node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console var init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console = __esm({ "node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console"() { init_console2(); globalThis.console = console_default; } }); // node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs var hrtime; var init_hrtime = __esm({ "node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtime2(startTime) { const now = Date.now(); const seconds = Math.trunc(now / 1e3); const nanos = now % 1e3 * 1e6; if (startTime) { let diffSeconds = seconds - startTime[0]; let diffNanos = nanos - startTime[0]; if (diffNanos < 0) { diffSeconds = diffSeconds - 1; diffNanos = 1e9 + diffNanos; } return [diffSeconds, diffNanos]; } return [seconds, nanos]; }, "hrtime"), { bigint: /* @__PURE__ */ __name(function bigint() { return BigInt(Date.now() * 1e6); }, "bigint") }); } }); // node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs var WriteStream; var init_write_stream = __esm({ "node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); WriteStream = class { static { __name(this, "WriteStream"); } fd; columns = 80; rows = 24; isTTY = false; constructor(fd) { this.fd = fd; } clearLine(dir3, callback) { callback && callback(); return false; } clearScreenDown(callback) { callback && callback(); return false; } cursorTo(x, y, callback) { callback && typeof callback === "function" && callback(); return false; } moveCursor(dx, dy, callback) { callback && callback(); return false; } getColorDepth(env2) { return 1; } hasColors(count3, env2) { return false; } getWindowSize() { return [this.columns, this.rows]; } write(str, encoding, cb) { if (str instanceof Uint8Array) { str = new TextDecoder().decode(str); } try { console.log(str); } catch { } cb && typeof cb === "function" && cb(); return false; } }; } }); // node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs var ReadStream; var init_read_stream = __esm({ "node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); ReadStream = class { static { __name(this, "ReadStream"); } fd; isRaw = false; isTTY = false; constructor(fd) { this.fd = fd; } setRawMode(mode) { this.isRaw = mode; return this; } }; } }); // node_modules/unenv/dist/runtime/node/tty.mjs var init_tty = __esm({ "node_modules/unenv/dist/runtime/node/tty.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_read_stream(); init_write_stream(); } }); // node_modules/unenv/dist/runtime/node/internal/process/process.mjs import { EventEmitter } from "node:events"; var Process; var init_process = __esm({ "node_modules/unenv/dist/runtime/node/internal/process/process.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_tty(); init_utils(); Process = class _Process extends EventEmitter { static { __name(this, "Process"); } env; hrtime; nextTick; constructor(impl) { super(); this.env = impl.env; this.hrtime = impl.hrtime; this.nextTick = impl.nextTick; for (const prop of [...Object.getOwnPropertyNames(_Process.prototype), ...Object.getOwnPropertyNames(EventEmitter.prototype)]) { const value = this[prop]; if (typeof value === "function") { this[prop] = value.bind(this); } } } emitWarning(warning, type, code) { console.warn(`${code ? `[${code}] ` : ""}${type ? `${type}: ` : ""}${warning}`); } emit(...args) { return super.emit(...args); } listeners(eventName) { return super.listeners(eventName); } #stdin; #stdout; #stderr; get stdin() { return this.#stdin ??= new ReadStream(0); } get stdout() { return this.#stdout ??= new WriteStream(1); } get stderr() { return this.#stderr ??= new WriteStream(2); } #cwd = "/"; chdir(cwd2) { this.#cwd = cwd2; } cwd() { return this.#cwd; } arch = ""; platform = ""; argv = []; argv0 = ""; execArgv = []; execPath = ""; title = ""; pid = 200; ppid = 100; get version() { return ""; } get versions() { return {}; } get allowedNodeEnvironmentFlags() { return /* @__PURE__ */ new Set(); } get sourceMapsEnabled() { return false; } get debugPort() { return 0; } get throwDeprecation() { return false; } get traceDeprecation() { return false; } get features() { return {}; } get release() { return {}; } get connected() { return false; } get config() { return {}; } get moduleLoadList() { return []; } constrainedMemory() { return 0; } availableMemory() { return 0; } uptime() { return 0; } resourceUsage() { return {}; } ref() { } unref() { } umask() { throw createNotImplementedError("process.umask"); } getBuiltinModule() { return void 0; } getActiveResourcesInfo() { throw createNotImplementedError("process.getActiveResourcesInfo"); } exit() { throw createNotImplementedError("process.exit"); } reallyExit() { throw createNotImplementedError("process.reallyExit"); } kill() { throw createNotImplementedError("process.kill"); } abort() { throw createNotImplementedError("process.abort"); } dlopen() { throw createNotImplementedError("process.dlopen"); } setSourceMapsEnabled() { throw createNotImplementedError("process.setSourceMapsEnabled"); } loadEnvFile() { throw createNotImplementedError("process.loadEnvFile"); } disconnect() { throw createNotImplementedError("process.disconnect"); } cpuUsage() { throw createNotImplementedError("process.cpuUsage"); } setUncaughtExceptionCaptureCallback() { throw createNotImplementedError("process.setUncaughtExceptionCaptureCallback"); } hasUncaughtExceptionCaptureCallback() { throw createNotImplementedError("process.hasUncaughtExceptionCaptureCallback"); } initgroups() { throw createNotImplementedError("process.initgroups"); } openStdin() { throw createNotImplementedError("process.openStdin"); } assert() { throw createNotImplementedError("process.assert"); } binding() { throw createNotImplementedError("process.binding"); } permission = { has: /* @__PURE__ */ notImplemented("process.permission.has") }; report = { directory: "", filename: "", signal: "SIGUSR2", compact: false, reportOnFatalError: false, reportOnSignal: false, reportOnUncaughtException: false, getReport: /* @__PURE__ */ notImplemented("process.report.getReport"), writeReport: /* @__PURE__ */ notImplemented("process.report.writeReport") }; finalization = { register: /* @__PURE__ */ notImplemented("process.finalization.register"), unregister: /* @__PURE__ */ notImplemented("process.finalization.unregister"), registerBeforeExit: /* @__PURE__ */ notImplemented("process.finalization.registerBeforeExit") }; memoryUsage = Object.assign(() => ({ arrayBuffers: 0, rss: 0, external: 0, heapTotal: 0, heapUsed: 0 }), { rss: /* @__PURE__ */ __name(() => 0, "rss") }); mainModule = void 0; domain = void 0; send = void 0; exitCode = void 0; channel = void 0; getegid = void 0; geteuid = void 0; getgid = void 0; getgroups = void 0; getuid = void 0; setegid = void 0; seteuid = void 0; setgid = void 0; setgroups = void 0; setuid = void 0; _events = void 0; _eventsCount = void 0; _exiting = void 0; _maxListeners = void 0; _debugEnd = void 0; _debugProcess = void 0; _fatalException = void 0; _getActiveHandles = void 0; _getActiveRequests = void 0; _kill = void 0; _preload_modules = void 0; _rawDebug = void 0; _startProfilerIdleNotifier = void 0; _stopProfilerIdleNotifier = void 0; _tickCallback = void 0; _disconnect = void 0; _handleQueue = void 0; _pendingMessage = void 0; _channel = void 0; _send = void 0; _linkedBinding = void 0; }; } }); // node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs var globalProcess, getBuiltinModule, exit, platform, nextTick, unenvProcess, abort, addListener, allowedNodeEnvironmentFlags, hasUncaughtExceptionCaptureCallback, setUncaughtExceptionCaptureCallback, loadEnvFile, sourceMapsEnabled, arch, argv, argv0, chdir, config, connected, constrainedMemory, availableMemory, cpuUsage, cwd, debugPort, dlopen, disconnect, emit, emitWarning, env, eventNames, execArgv, execPath, finalization, features, getActiveResourcesInfo, getMaxListeners, hrtime3, kill, listeners, listenerCount, memoryUsage, on, off, once, pid, ppid, prependListener, prependOnceListener, rawListeners, release, removeAllListeners, removeListener, report, resourceUsage, setMaxListeners, setSourceMapsEnabled, stderr, stdin, stdout, title, throwDeprecation, traceDeprecation, umask, uptime, version, versions, domain, initgroups, moduleLoadList, reallyExit, openStdin, assert2, binding, send, exitCode, channel, getegid, geteuid, getgid, getgroups, getuid, setegid, seteuid, setgid, setgroups, setuid, permission, mainModule, _events, _eventsCount, _exiting, _maxListeners, _debugEnd, _debugProcess, _fatalException, _getActiveHandles, _getActiveRequests, _kill, _preload_modules, _rawDebug, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, _tickCallback, _disconnect, _handleQueue, _pendingMessage, _channel, _send, _linkedBinding, _process, process_default; var init_process2 = __esm({ "node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_hrtime(); init_process(); globalProcess = globalThis["process"]; getBuiltinModule = globalProcess.getBuiltinModule; ({ exit, platform, nextTick } = getBuiltinModule( "node:process" )); unenvProcess = new Process({ env: globalProcess.env, hrtime, nextTick }); ({ abort, addListener, allowedNodeEnvironmentFlags, hasUncaughtExceptionCaptureCallback, setUncaughtExceptionCaptureCallback, loadEnvFile, sourceMapsEnabled, arch, argv, argv0, chdir, config, connected, constrainedMemory, availableMemory, cpuUsage, cwd, debugPort, dlopen, disconnect, emit, emitWarning, env, eventNames, execArgv, execPath, finalization, features, getActiveResourcesInfo, getMaxListeners, hrtime: hrtime3, kill, listeners, listenerCount, memoryUsage, on, off, once, pid, ppid, prependListener, prependOnceListener, rawListeners, release, removeAllListeners, removeListener, report, resourceUsage, setMaxListeners, setSourceMapsEnabled, stderr, stdin, stdout, title, throwDeprecation, traceDeprecation, umask, uptime, version, versions, domain, initgroups, moduleLoadList, reallyExit, openStdin, assert: assert2, binding, send, exitCode, channel, getegid, geteuid, getgid, getgroups, getuid, setegid, seteuid, setgid, setgroups, setuid, permission, mainModule, _events, _eventsCount, _exiting, _maxListeners, _debugEnd, _debugProcess, _fatalException, _getActiveHandles, _getActiveRequests, _kill, _preload_modules, _rawDebug, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, _tickCallback, _disconnect, _handleQueue, _pendingMessage, _channel, _send, _linkedBinding } = unenvProcess); _process = { abort, addListener, allowedNodeEnvironmentFlags, hasUncaughtExceptionCaptureCallback, setUncaughtExceptionCaptureCallback, loadEnvFile, sourceMapsEnabled, arch, argv, argv0, chdir, config, connected, constrainedMemory, availableMemory, cpuUsage, cwd, debugPort, dlopen, disconnect, emit, emitWarning, env, eventNames, execArgv, execPath, exit, finalization, features, getBuiltinModule, getActiveResourcesInfo, getMaxListeners, hrtime: hrtime3, kill, listeners, listenerCount, memoryUsage, nextTick, on, off, once, pid, platform, ppid, prependListener, prependOnceListener, rawListeners, release, removeAllListeners, removeListener, report, resourceUsage, setMaxListeners, setSourceMapsEnabled, stderr, stdin, stdout, title, throwDeprecation, traceDeprecation, umask, uptime, version, versions, // @ts-expect-error old API domain, initgroups, moduleLoadList, reallyExit, openStdin, assert: assert2, binding, send, exitCode, channel, getegid, geteuid, getgid, getgroups, getuid, setegid, seteuid, setgid, setgroups, setuid, permission, mainModule, _events, _eventsCount, _exiting, _maxListeners, _debugEnd, _debugProcess, _fatalException, _getActiveHandles, _getActiveRequests, _kill, _preload_modules, _rawDebug, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, _tickCallback, _disconnect, _handleQueue, _pendingMessage, _channel, _send, _linkedBinding }; process_default = _process; } }); // node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process var init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process = __esm({ "node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process"() { init_process2(); globalThis.process = process_default; } }); // wrangler-modules-watch:wrangler:modules-watch var init_wrangler_modules_watch = __esm({ "wrangler-modules-watch:wrangler:modules-watch"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); } }); // node_modules/wrangler/templates/modules-watch-stub.js var init_modules_watch_stub = __esm({ "node_modules/wrangler/templates/modules-watch-stub.js"() { init_wrangler_modules_watch(); } }); // node_modules/unenv/dist/runtime/node/internal/fs/promises.mjs var access, copyFile, cp, open, opendir, rename, truncate, rm, rmdir, mkdir, readdir, readlink, symlink, lstat, stat, link, unlink, chmod, lchmod, lchown, chown, utimes, lutimes, realpath, mkdtemp, writeFile, appendFile, readFile, watch, statfs, glob; var init_promises = __esm({ "node_modules/unenv/dist/runtime/node/internal/fs/promises.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_utils(); access = /* @__PURE__ */ notImplemented("fs.access"); copyFile = /* @__PURE__ */ notImplemented("fs.copyFile"); cp = /* @__PURE__ */ notImplemented("fs.cp"); open = /* @__PURE__ */ notImplemented("fs.open"); opendir = /* @__PURE__ */ notImplemented("fs.opendir"); rename = /* @__PURE__ */ notImplemented("fs.rename"); truncate = /* @__PURE__ */ notImplemented("fs.truncate"); rm = /* @__PURE__ */ notImplemented("fs.rm"); rmdir = /* @__PURE__ */ notImplemented("fs.rmdir"); mkdir = /* @__PURE__ */ notImplemented("fs.mkdir"); readdir = /* @__PURE__ */ notImplemented("fs.readdir"); readlink = /* @__PURE__ */ notImplemented("fs.readlink"); symlink = /* @__PURE__ */ notImplemented("fs.symlink"); lstat = /* @__PURE__ */ notImplemented("fs.lstat"); stat = /* @__PURE__ */ notImplemented("fs.stat"); link = /* @__PURE__ */ notImplemented("fs.link"); unlink = /* @__PURE__ */ notImplemented("fs.unlink"); chmod = /* @__PURE__ */ notImplemented("fs.chmod"); lchmod = /* @__PURE__ */ notImplemented("fs.lchmod"); lchown = /* @__PURE__ */ notImplemented("fs.lchown"); chown = /* @__PURE__ */ notImplemented("fs.chown"); utimes = /* @__PURE__ */ notImplemented("fs.utimes"); lutimes = /* @__PURE__ */ notImplemented("fs.lutimes"); realpath = /* @__PURE__ */ notImplemented("fs.realpath"); mkdtemp = /* @__PURE__ */ notImplemented("fs.mkdtemp"); writeFile = /* @__PURE__ */ notImplemented("fs.writeFile"); appendFile = /* @__PURE__ */ notImplemented("fs.appendFile"); readFile = /* @__PURE__ */ notImplemented("fs.readFile"); watch = /* @__PURE__ */ notImplemented("fs.watch"); statfs = /* @__PURE__ */ notImplemented("fs.statfs"); glob = /* @__PURE__ */ notImplemented("fs.glob"); } }); // node_modules/unenv/dist/runtime/node/internal/fs/constants.mjs var constants_exports = {}; __export(constants_exports, { COPYFILE_EXCL: () => COPYFILE_EXCL, COPYFILE_FICLONE: () => COPYFILE_FICLONE, COPYFILE_FICLONE_FORCE: () => COPYFILE_FICLONE_FORCE, EXTENSIONLESS_FORMAT_JAVASCRIPT: () => EXTENSIONLESS_FORMAT_JAVASCRIPT, EXTENSIONLESS_FORMAT_WASM: () => EXTENSIONLESS_FORMAT_WASM, F_OK: () => F_OK, O_APPEND: () => O_APPEND, O_CREAT: () => O_CREAT, O_DIRECT: () => O_DIRECT, O_DIRECTORY: () => O_DIRECTORY, O_DSYNC: () => O_DSYNC, O_EXCL: () => O_EXCL, O_NOATIME: () => O_NOATIME, O_NOCTTY: () => O_NOCTTY, O_NOFOLLOW: () => O_NOFOLLOW, O_NONBLOCK: () => O_NONBLOCK, O_RDONLY: () => O_RDONLY, O_RDWR: () => O_RDWR, O_SYNC: () => O_SYNC, O_TRUNC: () => O_TRUNC, O_WRONLY: () => O_WRONLY, R_OK: () => R_OK, S_IFBLK: () => S_IFBLK, S_IFCHR: () => S_IFCHR, S_IFDIR: () => S_IFDIR, S_IFIFO: () => S_IFIFO, S_IFLNK: () => S_IFLNK, S_IFMT: () => S_IFMT, S_IFREG: () => S_IFREG, S_IFSOCK: () => S_IFSOCK, S_IRGRP: () => S_IRGRP, S_IROTH: () => S_IROTH, S_IRUSR: () => S_IRUSR, S_IRWXG: () => S_IRWXG, S_IRWXO: () => S_IRWXO, S_IRWXU: () => S_IRWXU, S_IWGRP: () => S_IWGRP, S_IWOTH: () => S_IWOTH, S_IWUSR: () => S_IWUSR, S_IXGRP: () => S_IXGRP, S_IXOTH: () => S_IXOTH, S_IXUSR: () => S_IXUSR, UV_DIRENT_BLOCK: () => UV_DIRENT_BLOCK, UV_DIRENT_CHAR: () => UV_DIRENT_CHAR, UV_DIRENT_DIR: () => UV_DIRENT_DIR, UV_DIRENT_FIFO: () => UV_DIRENT_FIFO, UV_DIRENT_FILE: () => UV_DIRENT_FILE, UV_DIRENT_LINK: () => UV_DIRENT_LINK, UV_DIRENT_SOCKET: () => UV_DIRENT_SOCKET, UV_DIRENT_UNKNOWN: () => UV_DIRENT_UNKNOWN, UV_FS_COPYFILE_EXCL: () => UV_FS_COPYFILE_EXCL, UV_FS_COPYFILE_FICLONE: () => UV_FS_COPYFILE_FICLONE, UV_FS_COPYFILE_FICLONE_FORCE: () => UV_FS_COPYFILE_FICLONE_FORCE, UV_FS_O_FILEMAP: () => UV_FS_O_FILEMAP, UV_FS_SYMLINK_DIR: () => UV_FS_SYMLINK_DIR, UV_FS_SYMLINK_JUNCTION: () => UV_FS_SYMLINK_JUNCTION, W_OK: () => W_OK, X_OK: () => X_OK }); var UV_FS_SYMLINK_DIR, UV_FS_SYMLINK_JUNCTION, O_RDONLY, O_WRONLY, O_RDWR, UV_DIRENT_UNKNOWN, UV_DIRENT_FILE, UV_DIRENT_DIR, UV_DIRENT_LINK, UV_DIRENT_FIFO, UV_DIRENT_SOCKET, UV_DIRENT_CHAR, UV_DIRENT_BLOCK, EXTENSIONLESS_FORMAT_JAVASCRIPT, EXTENSIONLESS_FORMAT_WASM, S_IFMT, S_IFREG, S_IFDIR, S_IFCHR, S_IFBLK, S_IFIFO, S_IFLNK, S_IFSOCK, O_CREAT, O_EXCL, UV_FS_O_FILEMAP, O_NOCTTY, O_TRUNC, O_APPEND, O_DIRECTORY, O_NOATIME, O_NOFOLLOW, O_SYNC, O_DSYNC, O_DIRECT, O_NONBLOCK, S_IRWXU, S_IRUSR, S_IWUSR, S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH, S_IWOTH, S_IXOTH, F_OK, R_OK, W_OK, X_OK, UV_FS_COPYFILE_EXCL, COPYFILE_EXCL, UV_FS_COPYFILE_FICLONE, COPYFILE_FICLONE, UV_FS_COPYFILE_FICLONE_FORCE, COPYFILE_FICLONE_FORCE; var init_constants = __esm({ "node_modules/unenv/dist/runtime/node/internal/fs/constants.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); UV_FS_SYMLINK_DIR = 1; UV_FS_SYMLINK_JUNCTION = 2; O_RDONLY = 0; O_WRONLY = 1; O_RDWR = 2; UV_DIRENT_UNKNOWN = 0; UV_DIRENT_FILE = 1; UV_DIRENT_DIR = 2; UV_DIRENT_LINK = 3; UV_DIRENT_FIFO = 4; UV_DIRENT_SOCKET = 5; UV_DIRENT_CHAR = 6; UV_DIRENT_BLOCK = 7; EXTENSIONLESS_FORMAT_JAVASCRIPT = 0; EXTENSIONLESS_FORMAT_WASM = 1; S_IFMT = 61440; S_IFREG = 32768; S_IFDIR = 16384; S_IFCHR = 8192; S_IFBLK = 24576; S_IFIFO = 4096; S_IFLNK = 40960; S_IFSOCK = 49152; O_CREAT = 64; O_EXCL = 128; UV_FS_O_FILEMAP = 0; O_NOCTTY = 256; O_TRUNC = 512; O_APPEND = 1024; O_DIRECTORY = 65536; O_NOATIME = 262144; O_NOFOLLOW = 131072; O_SYNC = 1052672; O_DSYNC = 4096; O_DIRECT = 16384; O_NONBLOCK = 2048; S_IRWXU = 448; S_IRUSR = 256; S_IWUSR = 128; S_IXUSR = 64; S_IRWXG = 56; S_IRGRP = 32; S_IWGRP = 16; S_IXGRP = 8; S_IRWXO = 7; S_IROTH = 4; S_IWOTH = 2; S_IXOTH = 1; F_OK = 0; R_OK = 4; W_OK = 2; X_OK = 1; UV_FS_COPYFILE_EXCL = 1; COPYFILE_EXCL = 1; UV_FS_COPYFILE_FICLONE = 2; COPYFILE_FICLONE = 2; UV_FS_COPYFILE_FICLONE_FORCE = 4; COPYFILE_FICLONE_FORCE = 4; } }); // node_modules/unenv/dist/runtime/node/fs/promises.mjs var promises_default; var init_promises2 = __esm({ "node_modules/unenv/dist/runtime/node/fs/promises.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_promises(); init_constants(); init_promises(); promises_default = { constants: constants_exports, access, appendFile, chmod, chown, copyFile, cp, glob, lchmod, lchown, link, lstat, lutimes, mkdir, mkdtemp, open, opendir, readFile, readdir, readlink, realpath, rename, rm, rmdir, stat, statfs, symlink, truncate, unlink, utimes, watch, writeFile }; } }); // node_modules/unenv/dist/runtime/node/internal/fs/classes.mjs var Dir, Dirent, Stats, ReadStream2, WriteStream2, FileReadStream, FileWriteStream; var init_classes = __esm({ "node_modules/unenv/dist/runtime/node/internal/fs/classes.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_utils(); Dir = /* @__PURE__ */ notImplementedClass("fs.Dir"); Dirent = /* @__PURE__ */ notImplementedClass("fs.Dirent"); Stats = /* @__PURE__ */ notImplementedClass("fs.Stats"); ReadStream2 = /* @__PURE__ */ notImplementedClass("fs.ReadStream"); WriteStream2 = /* @__PURE__ */ notImplementedClass("fs.WriteStream"); FileReadStream = ReadStream2; FileWriteStream = WriteStream2; } }); // node_modules/unenv/dist/runtime/node/internal/fs/fs.mjs function callbackify(fn) { const fnc = /* @__PURE__ */ __name(function(...args) { const cb = args.pop(); fn().catch((error3) => cb(error3)).then((val) => cb(void 0, val)); }, "fnc"); fnc.__promisify__ = fn; fnc.native = fnc; return fnc; } var access2, appendFile2, chown2, chmod2, copyFile2, cp2, lchown2, lchmod2, link2, lstat2, lutimes2, mkdir2, mkdtemp2, realpath2, open2, opendir2, readdir2, readFile2, readlink2, rename2, rm2, rmdir2, stat2, symlink2, truncate2, unlink2, utimes2, writeFile2, statfs2, close, createReadStream, createWriteStream, exists, fchown, fchmod, fdatasync, fstat, fsync, ftruncate, futimes, lstatSync, read, readv, realpathSync, statSync, unwatchFile, watch2, watchFile, write, writev, _toUnixTimestamp, openAsBlob, glob2, appendFileSync, accessSync, chownSync, chmodSync, closeSync, copyFileSync, cpSync, existsSync, fchownSync, fchmodSync, fdatasyncSync, fstatSync, fsyncSync, ftruncateSync, futimesSync, lchownSync, lchmodSync, linkSync, lutimesSync, mkdirSync, mkdtempSync, openSync, opendirSync, readdirSync, readSync, readvSync, readFileSync, readlinkSync, renameSync, rmSync, rmdirSync, symlinkSync, truncateSync, unlinkSync, utimesSync, writeFileSync, writeSync, writevSync, statfsSync, globSync; var init_fs = __esm({ "node_modules/unenv/dist/runtime/node/internal/fs/fs.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_utils(); init_promises(); __name(callbackify, "callbackify"); access2 = callbackify(access); appendFile2 = callbackify(appendFile); chown2 = callbackify(chown); chmod2 = callbackify(chmod); copyFile2 = callbackify(copyFile); cp2 = callbackify(cp); lchown2 = callbackify(lchown); lchmod2 = callbackify(lchmod); link2 = callbackify(link); lstat2 = callbackify(lstat); lutimes2 = callbackify(lutimes); mkdir2 = callbackify(mkdir); mkdtemp2 = callbackify(mkdtemp); realpath2 = callbackify(realpath); open2 = callbackify(open); opendir2 = callbackify(opendir); readdir2 = callbackify(readdir); readFile2 = callbackify(readFile); readlink2 = callbackify(readlink); rename2 = callbackify(rename); rm2 = callbackify(rm); rmdir2 = callbackify(rmdir); stat2 = callbackify(stat); symlink2 = callbackify(symlink); truncate2 = callbackify(truncate); unlink2 = callbackify(unlink); utimes2 = callbackify(utimes); writeFile2 = callbackify(writeFile); statfs2 = callbackify(statfs); close = /* @__PURE__ */ notImplementedAsync("fs.close"); createReadStream = /* @__PURE__ */ notImplementedAsync("fs.createReadStream"); createWriteStream = /* @__PURE__ */ notImplementedAsync("fs.createWriteStream"); exists = /* @__PURE__ */ notImplementedAsync("fs.exists"); fchown = /* @__PURE__ */ notImplementedAsync("fs.fchown"); fchmod = /* @__PURE__ */ notImplementedAsync("fs.fchmod"); fdatasync = /* @__PURE__ */ notImplementedAsync("fs.fdatasync"); fstat = /* @__PURE__ */ notImplementedAsync("fs.fstat"); fsync = /* @__PURE__ */ notImplementedAsync("fs.fsync"); ftruncate = /* @__PURE__ */ notImplementedAsync("fs.ftruncate"); futimes = /* @__PURE__ */ notImplementedAsync("fs.futimes"); lstatSync = /* @__PURE__ */ notImplementedAsync("fs.lstatSync"); read = /* @__PURE__ */ notImplementedAsync("fs.read"); readv = /* @__PURE__ */ notImplementedAsync("fs.readv"); realpathSync = /* @__PURE__ */ notImplementedAsync("fs.realpathSync"); statSync = /* @__PURE__ */ notImplementedAsync("fs.statSync"); unwatchFile = /* @__PURE__ */ notImplementedAsync("fs.unwatchFile"); watch2 = /* @__PURE__ */ notImplementedAsync("fs.watch"); watchFile = /* @__PURE__ */ notImplementedAsync("fs.watchFile"); write = /* @__PURE__ */ notImplementedAsync("fs.write"); writev = /* @__PURE__ */ notImplementedAsync("fs.writev"); _toUnixTimestamp = /* @__PURE__ */ notImplementedAsync("fs._toUnixTimestamp"); openAsBlob = /* @__PURE__ */ notImplementedAsync("fs.openAsBlob"); glob2 = /* @__PURE__ */ notImplementedAsync("fs.glob"); appendFileSync = /* @__PURE__ */ notImplemented("fs.appendFileSync"); accessSync = /* @__PURE__ */ notImplemented("fs.accessSync"); chownSync = /* @__PURE__ */ notImplemented("fs.chownSync"); chmodSync = /* @__PURE__ */ notImplemented("fs.chmodSync"); closeSync = /* @__PURE__ */ notImplemented("fs.closeSync"); copyFileSync = /* @__PURE__ */ notImplemented("fs.copyFileSync"); cpSync = /* @__PURE__ */ notImplemented("fs.cpSync"); existsSync = /* @__PURE__ */ __name(() => false, "existsSync"); fchownSync = /* @__PURE__ */ notImplemented("fs.fchownSync"); fchmodSync = /* @__PURE__ */ notImplemented("fs.fchmodSync"); fdatasyncSync = /* @__PURE__ */ notImplemented("fs.fdatasyncSync"); fstatSync = /* @__PURE__ */ notImplemented("fs.fstatSync"); fsyncSync = /* @__PURE__ */ notImplemented("fs.fsyncSync"); ftruncateSync = /* @__PURE__ */ notImplemented("fs.ftruncateSync"); futimesSync = /* @__PURE__ */ notImplemented("fs.futimesSync"); lchownSync = /* @__PURE__ */ notImplemented("fs.lchownSync"); lchmodSync = /* @__PURE__ */ notImplemented("fs.lchmodSync"); linkSync = /* @__PURE__ */ notImplemented("fs.linkSync"); lutimesSync = /* @__PURE__ */ notImplemented("fs.lutimesSync"); mkdirSync = /* @__PURE__ */ notImplemented("fs.mkdirSync"); mkdtempSync = /* @__PURE__ */ notImplemented("fs.mkdtempSync"); openSync = /* @__PURE__ */ notImplemented("fs.openSync"); opendirSync = /* @__PURE__ */ notImplemented("fs.opendirSync"); readdirSync = /* @__PURE__ */ notImplemented("fs.readdirSync"); readSync = /* @__PURE__ */ notImplemented("fs.readSync"); readvSync = /* @__PURE__ */ notImplemented("fs.readvSync"); readFileSync = /* @__PURE__ */ notImplemented("fs.readFileSync"); readlinkSync = /* @__PURE__ */ notImplemented("fs.readlinkSync"); renameSync = /* @__PURE__ */ notImplemented("fs.renameSync"); rmSync = /* @__PURE__ */ notImplemented("fs.rmSync"); rmdirSync = /* @__PURE__ */ notImplemented("fs.rmdirSync"); symlinkSync = /* @__PURE__ */ notImplemented("fs.symlinkSync"); truncateSync = /* @__PURE__ */ notImplemented("fs.truncateSync"); unlinkSync = /* @__PURE__ */ notImplemented("fs.unlinkSync"); utimesSync = /* @__PURE__ */ notImplemented("fs.utimesSync"); writeFileSync = /* @__PURE__ */ notImplemented("fs.writeFileSync"); writeSync = /* @__PURE__ */ notImplemented("fs.writeSync"); writevSync = /* @__PURE__ */ notImplemented("fs.writevSync"); statfsSync = /* @__PURE__ */ notImplemented("fs.statfsSync"); globSync = /* @__PURE__ */ notImplemented("fs.globSync"); } }); // node_modules/unenv/dist/runtime/node/fs.mjs var fs_default; var init_fs2 = __esm({ "node_modules/unenv/dist/runtime/node/fs.mjs"() { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_promises2(); init_classes(); init_fs(); init_constants(); init_constants(); init_fs(); init_classes(); fs_default = { F_OK, R_OK, W_OK, X_OK, constants: constants_exports, promises: promises_default, Dir, Dirent, FileReadStream, FileWriteStream, ReadStream: ReadStream2, Stats, WriteStream: WriteStream2, _toUnixTimestamp, access: access2, accessSync, appendFile: appendFile2, appendFileSync, chmod: chmod2, chmodSync, chown: chown2, chownSync, close, closeSync, copyFile: copyFile2, copyFileSync, cp: cp2, cpSync, createReadStream, createWriteStream, exists, existsSync, fchmod, fchmodSync, fchown, fchownSync, fdatasync, fdatasyncSync, fstat, fstatSync, fsync, fsyncSync, ftruncate, ftruncateSync, futimes, futimesSync, glob: glob2, lchmod: lchmod2, globSync, lchmodSync, lchown: lchown2, lchownSync, link: link2, linkSync, lstat: lstat2, lstatSync, lutimes: lutimes2, lutimesSync, mkdir: mkdir2, mkdirSync, mkdtemp: mkdtemp2, mkdtempSync, open: open2, openAsBlob, openSync, opendir: opendir2, opendirSync, read, readFile: readFile2, readFileSync, readSync, readdir: readdir2, readdirSync, readlink: readlink2, readlinkSync, readv, readvSync, realpath: realpath2, realpathSync, rename: rename2, renameSync, rm: rm2, rmSync, rmdir: rmdir2, rmdirSync, stat: stat2, statSync, statfs: statfs2, statfsSync, symlink: symlink2, symlinkSync, truncate: truncate2, truncateSync, unlink: unlink2, unlinkSync, unwatchFile, utimes: utimes2, utimesSync, watch: watch2, watchFile, write, writeFile: writeFile2, writeFileSync, writeSync, writev, writevSync }; } }); // node-built-in-modules:fs var require_fs = __commonJS({ "node-built-in-modules:fs"(exports2, module2) { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); init_fs2(); module2.exports = fs_default; } }); // node-built-in-modules:path import libDefault from "path"; var require_path = __commonJS({ "node-built-in-modules:path"(exports2, module2) { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); module2.exports = libDefault; } }); // node_modules/axios/dist/browser/axios.cjs var require_axios = __commonJS({ "node_modules/axios/dist/browser/axios.cjs"(exports2, module2) { "use strict"; init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function bind(fn, thisArg) { return /* @__PURE__ */ __name(function wrap() { return fn.apply(thisArg, arguments); }, "wrap"); } __name(bind, "bind"); var { toString } = Object.prototype; var { getPrototypeOf } = Object; var { iterator, toStringTag } = Symbol; var kindOf = /* @__PURE__ */ ((cache) => (thing) => { const str = toString.call(thing); return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); })(/* @__PURE__ */ Object.create(null)); var kindOfTest = /* @__PURE__ */ __name((type) => { type = type.toLowerCase(); return (thing) => kindOf(thing) === type; }, "kindOfTest"); var typeOfTest = /* @__PURE__ */ __name((type) => (thing) => typeof thing === type, "typeOfTest"); var { isArray } = Array; var isUndefined = typeOfTest("undefined"); function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); } __name(isBuffer, "isBuffer"); var isArrayBuffer = kindOfTest("ArrayBuffer"); function isArrayBufferView(val) { let result; if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) { result = ArrayBuffer.isView(val); } else { result = val && val.buffer && isArrayBuffer(val.buffer); } return result; } __name(isArrayBufferView, "isArrayBufferView"); var isString = typeOfTest("string"); var isFunction = typeOfTest("function"); var isNumber = typeOfTest("number"); var isObject = /* @__PURE__ */ __name((thing) => thing !== null && typeof thing === "object", "isObject"); var isBoolean = /* @__PURE__ */ __name((thing) => thing === true || thing === false, "isBoolean"); var isPlainObject = /* @__PURE__ */ __name((val) => { if (kindOf(val) !== "object") { return false; } const prototype2 = getPrototypeOf(val); return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val); }, "isPlainObject"); var isDate = kindOfTest("Date"); var isFile = kindOfTest("File"); var isBlob = kindOfTest("Blob"); var isFileList = kindOfTest("FileList"); var isStream = /* @__PURE__ */ __name((val) => isObject(val) && isFunction(val.pipe), "isStream"); var isFormData = /* @__PURE__ */ __name((thing) => { let kind; return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]")); }, "isFormData"); var isURLSearchParams = kindOfTest("URLSearchParams"); var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest); var trim = /* @__PURE__ */ __name((str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), "trim"); function forEach(obj, fn, { allOwnKeys = false } = {}) { if (obj === null || typeof obj === "undefined") { return; } let i; let l; if (typeof obj !== "object") { obj = [obj]; } if (isArray(obj)) { for (i = 0, l = obj.length; i < l; i++) { fn.call(null, obj[i], i, obj); } } else { const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); const len = keys.length; let key; for (i = 0; i < len; i++) { key = keys[i]; fn.call(null, obj[key], key, obj); } } } __name(forEach, "forEach"); function findKey(obj, key) { key = key.toLowerCase(); const keys = Object.keys(obj); let i = keys.length; let _key; while (i-- > 0) { _key = keys[i]; if (key === _key.toLowerCase()) { return _key; } } return null; } __name(findKey, "findKey"); var _global = (() => { if (typeof globalThis !== "undefined") return globalThis; return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global; })(); var isContextDefined = /* @__PURE__ */ __name((context2) => !isUndefined(context2) && context2 !== _global, "isContextDefined"); function merge() { const { caseless } = isContextDefined(this) && this || {}; const result = {}; const assignValue = /* @__PURE__ */ __name((val, key) => { const targetKey = caseless && findKey(result, key) || key; if (isPlainObject(result[targetKey]) && isPlainObject(val)) { result[targetKey] = merge(result[targetKey], val); } else if (isPlainObject(val)) { result[targetKey] = merge({}, val); } else if (isArray(val)) { result[targetKey] = val.slice(); } else { result[targetKey] = val; } }, "assignValue"); for (let i = 0, l = arguments.length; i < l; i++) { arguments[i] && forEach(arguments[i], assignValue); } return result; } __name(merge, "merge"); var extend = /* @__PURE__ */ __name((a, b, thisArg, { allOwnKeys } = {}) => { forEach(b, (val, key) => { if (thisArg && isFunction(val)) { a[key] = bind(val, thisArg); } else { a[key] = val; } }, { allOwnKeys }); return a; }, "extend"); var stripBOM = /* @__PURE__ */ __name((content) => { if (content.charCodeAt(0) === 65279) { content = content.slice(1); } return content; }, "stripBOM"); var inherits = /* @__PURE__ */ __name((constructor, superConstructor, props, descriptors2) => { constructor.prototype = Object.create(superConstructor.prototype, descriptors2); constructor.prototype.constructor = constructor; Object.defineProperty(constructor, "super", { value: superConstructor.prototype }); props && Object.assign(constructor.prototype, props); }, "inherits"); var toFlatObject = /* @__PURE__ */ __name((sourceObj, destObj, filter, propFilter) => { let props; let i; let prop; const merged = {}; destObj = destObj || {}; if (sourceObj == null) return destObj; do { props = Object.getOwnPropertyNames(sourceObj); i = props.length; while (i-- > 0) { prop = props[i]; if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { destObj[prop] = sourceObj[prop]; merged[prop] = true; } } sourceObj = filter !== false && getPrototypeOf(sourceObj); } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); return destObj; }, "toFlatObject"); var endsWith = /* @__PURE__ */ __name((str, searchString, position) => { str = String(str); if (position === void 0 || position > str.length) { position = str.length; } position -= searchString.length; const lastIndex = str.indexOf(searchString, position); return lastIndex !== -1 && lastIndex === position; }, "endsWith"); var toArray = /* @__PURE__ */ __name((thing) => { if (!thing) return null; if (isArray(thing)) return thing; let i = thing.length; if (!isNumber(i)) return null; const arr = new Array(i); while (i-- > 0) { arr[i] = thing[i]; } return arr; }, "toArray"); var isTypedArray = /* @__PURE__ */ ((TypedArray) => { return (thing) => { return TypedArray && thing instanceof TypedArray; }; })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array)); var forEachEntry = /* @__PURE__ */ __name((obj, fn) => { const generator = obj && obj[iterator]; const _iterator = generator.call(obj); let result; while ((result = _iterator.next()) && !result.done) { const pair = result.value; fn.call(obj, pair[0], pair[1]); } }, "forEachEntry"); var matchAll = /* @__PURE__ */ __name((regExp, str) => { let matches; const arr = []; while ((matches = regExp.exec(str)) !== null) { arr.push(matches); } return arr; }, "matchAll"); var isHTMLForm = kindOfTest("HTMLFormElement"); var toCamelCase = /* @__PURE__ */ __name((str) => { return str.toLowerCase().replace( /[-_\s]([a-z\d])(\w*)/g, /* @__PURE__ */ __name(function replacer(m, p1, p2) { return p1.toUpperCase() + p2; }, "replacer") ); }, "toCamelCase"); var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype); var isRegExp = kindOfTest("RegExp"); var reduceDescriptors = /* @__PURE__ */ __name((obj, reducer) => { const descriptors2 = Object.getOwnPropertyDescriptors(obj); const reducedDescriptors = {}; forEach(descriptors2, (descriptor, name) => { let ret; if ((ret = reducer(descriptor, name, obj)) !== false) { reducedDescriptors[name] = ret || descriptor; } }); Object.defineProperties(obj, reducedDescriptors); }, "reduceDescriptors"); var freezeMethods = /* @__PURE__ */ __name((obj) => { reduceDescriptors(obj, (descriptor, name) => { if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) { return false; } const value = obj[name]; if (!isFunction(value)) return; descriptor.enumerable = false; if ("writable" in descriptor) { descriptor.writable = false; return; } if (!descriptor.set) { descriptor.set = () => { throw Error("Can not rewrite read-only method '" + name + "'"); }; } }); }, "freezeMethods"); var toObjectSet = /* @__PURE__ */ __name((arrayOrString, delimiter) => { const obj = {}; const define2 = /* @__PURE__ */ __name((arr) => { arr.forEach((value) => { obj[value] = true; }); }, "define"); isArray(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter)); return obj; }, "toObjectSet"); var noop = /* @__PURE__ */ __name(() => { }, "noop"); var toFiniteNumber = /* @__PURE__ */ __name((value, defaultValue) => { return value != null && Number.isFinite(value = +value) ? value : defaultValue; }, "toFiniteNumber"); function isSpecCompliantForm(thing) { return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]); } __name(isSpecCompliantForm, "isSpecCompliantForm"); var toJSONObject = /* @__PURE__ */ __name((obj) => { const stack = new Array(10); const visit = /* @__PURE__ */ __name((source, i) => { if (isObject(source)) { if (stack.indexOf(source) >= 0) { return; } if (!("toJSON" in source)) { stack[i] = source; const target = isArray(source) ? [] : {}; forEach(source, (value, key) => { const reducedValue = visit(value, i + 1); !isUndefined(reducedValue) && (target[key] = reducedValue); }); stack[i] = void 0; return target; } } return source; }, "visit"); return visit(obj, 0); }, "toJSONObject"); var isAsyncFn = kindOfTest("AsyncFunction"); var isThenable = /* @__PURE__ */ __name((thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch), "isThenable"); var _setImmediate = ((setImmediateSupported, postMessageSupported) => { if (setImmediateSupported) { return setImmediate; } return postMessageSupported ? ((token, callbacks) => { _global.addEventListener("message", ({ source, data }) => { if (source === _global && data === token) { callbacks.length && callbacks.shift()(); } }, false); return (cb) => { callbacks.push(cb); _global.postMessage(token, "*"); }; })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb); })( typeof setImmediate === "function", isFunction(_global.postMessage) ); var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate; var isIterable = /* @__PURE__ */ __name((thing) => thing != null && isFunction(thing[iterator]), "isIterable"); var utils$1 = { isArray, isArrayBuffer, isBuffer, isFormData, isArrayBufferView, isString, isNumber, isBoolean, isObject, isPlainObject, isReadableStream, isRequest, isResponse, isHeaders, isUndefined, isDate, isFile, isBlob, isRegExp, isFunction, isStream, isURLSearchParams, isTypedArray, isFileList, forEach, merge, extend, trim, stripBOM, inherits, toFlatObject, kindOf, kindOfTest, endsWith, toArray, forEachEntry, matchAll, isHTMLForm, hasOwnProperty, hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection reduceDescriptors, freezeMethods, toObjectSet, toCamelCase, noop, toFiniteNumber, findKey, global: _global, isContextDefined, isSpecCompliantForm, toJSONObject, isAsyncFn, isThenable, setImmediate: _setImmediate, asap, isIterable }; function AxiosError(message, code, config2, request, response) { Error.call(this); if (Error.captureStackTrace) { Error.captureStackTrace(this, this.constructor); } else { this.stack = new Error().stack; } this.message = message; this.name = "AxiosError"; code && (this.code = code); config2 && (this.config = config2); request && (this.request = request); if (response) { this.response = response; this.status = response.status ? response.status : null; } } __name(AxiosError, "AxiosError"); utils$1.inherits(AxiosError, Error, { toJSON: /* @__PURE__ */ __name(function toJSON() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: utils$1.toJSONObject(this.config), code: this.code, status: this.status }; }, "toJSON") }); var prototype$1 = AxiosError.prototype; var descriptors = {}; [ "ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL" // eslint-disable-next-line func-names ].forEach((code) => { descriptors[code] = { value: code }; }); Object.defineProperties(AxiosError, descriptors); Object.defineProperty(prototype$1, "isAxiosError", { value: true }); AxiosError.from = (error3, code, config2, request, response, customProps) => { const axiosError = Object.create(prototype$1); utils$1.toFlatObject(error3, axiosError, /* @__PURE__ */ __name(function filter(obj) { return obj !== Error.prototype; }, "filter"), (prop) => { return prop !== "isAxiosError"; }); AxiosError.call(axiosError, error3.message, code, config2, request, response); axiosError.cause = error3; axiosError.name = error3.name; customProps && Object.assign(axiosError, customProps); return axiosError; }; var httpAdapter = null; function isVisitable(thing) { return utils$1.isPlainObject(thing) || utils$1.isArray(thing); } __name(isVisitable, "isVisitable"); function removeBrackets(key) { return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key; } __name(removeBrackets, "removeBrackets"); function renderKey(path, key, dots) { if (!path) return key; return path.concat(key).map(/* @__PURE__ */ __name(function each(token, i) { token = removeBrackets(token); return !dots && i ? "[" + token + "]" : token; }, "each")).join(dots ? "." : ""); } __name(renderKey, "renderKey"); function isFlatArray(arr) { return utils$1.isArray(arr) && !arr.some(isVisitable); } __name(isFlatArray, "isFlatArray"); var predicates = utils$1.toFlatObject(utils$1, {}, null, /* @__PURE__ */ __name(function filter(prop) { return /^is[A-Z]/.test(prop); }, "filter")); function toFormData(obj, formData, options) { if (!utils$1.isObject(obj)) { throw new TypeError("target must be an object"); } formData = formData || new FormData(); options = utils$1.toFlatObject(options, { metaTokens: true, dots: false, indexes: false }, false, /* @__PURE__ */ __name(function defined(option, source) { return !utils$1.isUndefined(source[option]); }, "defined")); const metaTokens = options.metaTokens; const visitor = options.visitor || defaultVisitor; const dots = options.dots; const indexes = options.indexes; const _Blob = options.Blob || typeof Blob !== "undefined" && Blob; const useBlob = _Blob && utils$1.isSpecCompliantForm(formData); if (!utils$1.isFunction(visitor)) { throw new TypeError("visitor must be a function"); } function convertValue(value) { if (value === null) return ""; if (utils$1.isDate(value)) { return value.toISOString(); } if (!useBlob && utils$1.isBlob(value)) { throw new AxiosError("Blob is not supported. Use a Buffer instead."); } if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) { return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value); } return value; } __name(convertValue, "convertValue"); function defaultVisitor(value, key, path) { let arr = value; if (value && !path && typeof value === "object") { if (utils$1.endsWith(key, "{}")) { key = metaTokens ? key : key.slice(0, -2); value = JSON.stringify(value); } else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) { key = removeBrackets(key); arr.forEach(/* @__PURE__ */ __name(function each(el, index) { !(utils$1.isUndefined(el) || el === null) && formData.append( // eslint-disable-next-line no-nested-ternary indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el) ); }, "each")); return false; } } if (isVisitable(value)) { return true; } formData.append(renderKey(path, key, dots), convertValue(value)); return false; } __name(defaultVisitor, "defaultVisitor"); const stack = []; const exposedHelpers = Object.assign(predicates, { defaultVisitor, convertValue, isVisitable }); function build(value, path) { if (utils$1.isUndefined(value)) return; if (stack.indexOf(value) !== -1) { throw Error("Circular reference detected in " + path.join(".")); } stack.push(value); utils$1.forEach(value, /* @__PURE__ */ __name(function each(el, key) { const result = !(utils$1.isUndefined(el) || el === null) && visitor.call( formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers ); if (result === true) { build(el, path ? path.concat(key) : [key]); } }, "each")); stack.pop(); } __name(build, "build"); if (!utils$1.isObject(obj)) { throw new TypeError("data must be an object"); } build(obj); return formData; } __name(toFormData, "toFormData"); function encode$1(str) { const charMap = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, /* @__PURE__ */ __name(function replacer(match) { return charMap[match]; }, "replacer")); } __name(encode$1, "encode$1"); function AxiosURLSearchParams(params, options) { this._pairs = []; params && toFormData(params, this, options); } __name(AxiosURLSearchParams, "AxiosURLSearchParams"); var prototype = AxiosURLSearchParams.prototype; prototype.append = /* @__PURE__ */ __name(function append(name, value) { this._pairs.push([name, value]); }, "append"); prototype.toString = /* @__PURE__ */ __name(function toString2(encoder) { const _encode = encoder ? function(value) { return encoder.call(this, value, encode$1); } : encode$1; return this._pairs.map(/* @__PURE__ */ __name(function each(pair) { return _encode(pair[0]) + "=" + _encode(pair[1]); }, "each"), "").join("&"); }, "toString"); function encode(val) { return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); } __name(encode, "encode"); function buildURL(url, params, options) { if (!params) { return url; } const _encode = options && options.encode || encode; if (utils$1.isFunction(options)) { options = { serialize: options }; } const serializeFn = options && options.serialize; let serializedParams; if (serializeFn) { serializedParams = serializeFn(params, options); } else { serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode); } if (serializedParams) { const hashmarkIndex = url.indexOf("#"); if (hashmarkIndex !== -1) { url = url.slice(0, hashmarkIndex); } url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams; } return url; } __name(buildURL, "buildURL"); var InterceptorManager = class { static { __name(this, "InterceptorManager"); } constructor() { this.handlers = []; } /** * Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} rejected The function to handle `reject` for a `Promise` * * @return {Number} An ID used to remove interceptor later */ use(fulfilled, rejected, options) { this.handlers.push({ fulfilled, rejected, synchronous: options ? options.synchronous : false, runWhen: options ? options.runWhen : null }); return this.handlers.length - 1; } /** * Remove an interceptor from the stack * * @param {Number} id The ID that was returned by `use` * * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise */ eject(id) { if (this.handlers[id]) { this.handlers[id] = null; } } /** * Clear all interceptors from the stack * * @returns {void} */ clear() { if (this.handlers) { this.handlers = []; } } /** * Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have become `null` calling `eject`. * * @param {Function} fn The function to call for each interceptor * * @returns {void} */ forEach(fn) { utils$1.forEach(this.handlers, /* @__PURE__ */ __name(function forEachHandler(h) { if (h !== null) { fn(h); } }, "forEachHandler")); } }; var InterceptorManager$1 = InterceptorManager; var transitionalDefaults = { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }; var URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams; var FormData$1 = typeof FormData !== "undefined" ? FormData : null; var Blob$1 = typeof Blob !== "undefined" ? Blob : null; var platform$1 = { isBrowser: true, classes: { URLSearchParams: URLSearchParams$1, FormData: FormData$1, Blob: Blob$1 }, protocols: ["http", "https", "file", "blob", "url", "data"] }; var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined"; var _navigator = typeof navigator === "object" && navigator || void 0; var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0); var hasStandardBrowserWebWorkerEnv = (() => { return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef self instanceof WorkerGlobalScope && typeof self.importScripts === "function"; })(); var origin = hasBrowserEnv && window.location.href || "http://localhost"; var utils = /* @__PURE__ */ Object.freeze({ __proto__: null, hasBrowserEnv, hasStandardBrowserWebWorkerEnv, hasStandardBrowserEnv, navigator: _navigator, origin }); var platform2 = { ...utils, ...platform$1 }; function toURLEncodedForm(data, options) { return toFormData(data, new platform2.classes.URLSearchParams(), Object.assign({ visitor: /* @__PURE__ */ __name(function(value, key, path, helpers) { if (platform2.isNode && utils$1.isBuffer(value)) { this.append(key, value.toString("base64")); return false; } return helpers.defaultVisitor.apply(this, arguments); }, "visitor") }, options)); } __name(toURLEncodedForm, "toURLEncodedForm"); function parsePropPath(name) { return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match) => { return match[0] === "[]" ? "" : match[1] || match[0]; }); } __name(parsePropPath, "parsePropPath"); function arrayToObject(arr) { const obj = {}; const keys = Object.keys(arr); let i; const len = keys.length; let key; for (i = 0; i < len; i++) { key = keys[i]; obj[key] = arr[key]; } return obj; } __name(arrayToObject, "arrayToObject"); function formDataToJSON(formData) { function buildPath(path, value, target, index) { let name = path[index++]; if (name === "__proto__") return true; const isNumericKey = Number.isFinite(+name); const isLast = index >= path.length; name = !name && utils$1.isArray(target) ? target.length : name; if (isLast) { if (utils$1.hasOwnProp(target, name)) { target[name] = [target[name], value]; } else { target[name] = value; } return !isNumericKey; } if (!target[name] || !utils$1.isObject(target[name])) { target[name] = []; } const result = buildPath(path, value, target[name], index); if (result && utils$1.isArray(target[name])) { target[name] = arrayToObject(target[name]); } return !isNumericKey; } __name(buildPath, "buildPath"); if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) { const obj = {}; utils$1.forEachEntry(formData, (name, value) => { buildPath(parsePropPath(name), value, obj, 0); }); return obj; } return null; } __name(formDataToJSON, "formDataToJSON"); function stringifySafely(rawValue, parser, encoder) { if (utils$1.isString(rawValue)) { try { (parser || JSON.parse)(rawValue); return utils$1.trim(rawValue); } catch (e) { if (e.name !== "SyntaxError") { throw e; } } } return (encoder || JSON.stringify)(rawValue); } __name(stringifySafely, "stringifySafely"); var defaults = { transitional: transitionalDefaults, adapter: ["xhr", "http", "fetch"], transformRequest: [/* @__PURE__ */ __name(function transformRequest(data, headers) { const contentType = headers.getContentType() || ""; const hasJSONContentType = contentType.indexOf("application/json") > -1; const isObjectPayload = utils$1.isObject(data); if (isObjectPayload && utils$1.isHTMLForm(data)) { data = new FormData(data); } const isFormData2 = utils$1.isFormData(data); if (isFormData2) { return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data; } if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) { return data; } if (utils$1.isArrayBufferView(data)) { return data.buffer; } if (utils$1.isURLSearchParams(data)) { headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false); return data.toString(); } let isFileList2; if (isObjectPayload) { if (contentType.indexOf("application/x-www-form-urlencoded") > -1) { return toURLEncodedForm(data, this.formSerializer).toString(); } if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) { const _FormData = this.env && this.env.FormData; return toFormData( isFileList2 ? { "files[]": data } : data, _FormData && new _FormData(), this.formSerializer ); } } if (isObjectPayload || hasJSONContentType) { headers.setContentType("application/json", false); return stringifySafely(data); } return data; }, "transformRequest")], transformResponse: [/* @__PURE__ */ __name(function transformResponse(data) { const transitional = this.transitional || defaults.transitional; const forcedJSONParsing = transitional && transitional.forcedJSONParsing; const JSONRequested = this.responseType === "json"; if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) { return data; } if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) { const silentJSONParsing = transitional && transitional.silentJSONParsing; const strictJSONParsing = !silentJSONParsing && JSONRequested; try { return JSON.parse(data); } catch (e) { if (strictJSONParsing) { if (e.name === "SyntaxError") { throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response); } throw e; } } } return data; }, "transformResponse")], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: platform2.classes.FormData, Blob: platform2.classes.Blob }, validateStatus: /* @__PURE__ */ __name(function validateStatus(status) { return status >= 200 && status < 300; }, "validateStatus"), headers: { common: { "Accept": "application/json, text/plain, */*", "Content-Type": void 0 } } }; utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method2) => { defaults.headers[method2] = {}; }); var defaults$1 = defaults; var ignoreDuplicateOf = utils$1.toObjectSet([ "age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent" ]); var parseHeaders = /* @__PURE__ */ __name((rawHeaders) => { const parsed = {}; let key; let val; let i; rawHeaders && rawHeaders.split("\n").forEach(/* @__PURE__ */ __name(function parser(line) { i = line.indexOf(":"); key = line.substring(0, i).trim().toLowerCase(); val = line.substring(i + 1).trim(); if (!key || parsed[key] && ignoreDuplicateOf[key]) { return; } if (key === "set-cookie") { if (parsed[key]) { parsed[key].push(val); } else { parsed[key] = [val]; } } else { parsed[key] = parsed[key] ? parsed[key] + ", " + val : val; } }, "parser")); return parsed; }, "parseHeaders"); var $internals = Symbol("internals"); function normalizeHeader(header) { return header && String(header).trim().toLowerCase(); } __name(normalizeHeader, "normalizeHeader"); function normalizeValue(value) { if (value === false || value == null) { return value; } return utils$1.isArray(value) ? value.map(normalizeValue) : String(value); } __name(normalizeValue, "normalizeValue"); function parseTokens(str) { const tokens = /* @__PURE__ */ Object.create(null); const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let match; while (match = tokensRE.exec(str)) { tokens[match[1]] = match[2]; } return tokens; } __name(parseTokens, "parseTokens"); var isValidHeaderName = /* @__PURE__ */ __name((str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()), "isValidHeaderName"); function matchHeaderValue(context2, value, header, filter, isHeaderNameFilter) { if (utils$1.isFunction(filter)) { return filter.call(this, value, header); } if (isHeaderNameFilter) { value = header; } if (!utils$1.isString(value)) return; if (utils$1.isString(filter)) { return value.indexOf(filter) !== -1; } if (utils$1.isRegExp(filter)) { return filter.test(value); } } __name(matchHeaderValue, "matchHeaderValue"); function formatHeader(header) { return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { return char.toUpperCase() + str; }); } __name(formatHeader, "formatHeader"); function buildAccessors(obj, header) { const accessorName = utils$1.toCamelCase(" " + header); ["get", "set", "has"].forEach((methodName) => { Object.defineProperty(obj, methodName + accessorName, { value: /* @__PURE__ */ __name(function(arg1, arg2, arg3) { return this[methodName].call(this, header, arg1, arg2, arg3); }, "value"), configurable: true }); }); } __name(buildAccessors, "buildAccessors"); var AxiosHeaders = class { static { __name(this, "AxiosHeaders"); } constructor(headers) { headers && this.set(headers); } set(header, valueOrRewrite, rewrite) { const self2 = this; function setHeader(_value, _header, _rewrite) { const lHeader = normalizeHeader(_header); if (!lHeader) { throw new Error("header name must be a non-empty string"); } const key = utils$1.findKey(self2, lHeader); if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) { self2[key || _header] = normalizeValue(_value); } } __name(setHeader, "setHeader"); const setHeaders = /* @__PURE__ */ __name((headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)), "setHeaders"); if (utils$1.isPlainObject(header) || header instanceof this.constructor) { setHeaders(header, valueOrRewrite); } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { setHeaders(parseHeaders(header), valueOrRewrite); } else if (utils$1.isObject(header) && utils$1.isIterable(header)) { let obj = {}, dest, key; for (const entry of header) { if (!utils$1.isArray(entry)) { throw TypeError("Object iterator must return a key-value pair"); } obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1]; } setHeaders(obj, valueOrRewrite); } else { header != null && setHeader(valueOrRewrite, header, rewrite); } return this; } get(header, parser) { header = normalizeHeader(header); if (header) { const key = utils$1.findKey(this, header); if (key) { const value = this[key]; if (!parser) { return value; } if (parser === true) { return parseTokens(value); } if (utils$1.isFunction(parser)) { return parser.call(this, value, key); } if (utils$1.isRegExp(parser)) { return parser.exec(value); } throw new TypeError("parser must be boolean|regexp|function"); } } } has(header, matcher) { header = normalizeHeader(header); if (header) { const key = utils$1.findKey(this, header); return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher))); } return false; } delete(header, matcher) { const self2 = this; let deleted = false; function deleteHeader(_header) { _header = normalizeHeader(_header); if (_header) { const key = utils$1.findKey(self2, _header); if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) { delete self2[key]; deleted = true; } } } __name(deleteHeader, "deleteHeader"); if (utils$1.isArray(header)) { header.forEach(deleteHeader); } else { deleteHeader(header); } return deleted; } clear(matcher) { const keys = Object.keys(this); let i = keys.length; let deleted = false; while (i--) { const key = keys[i]; if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { delete this[key]; deleted = true; } } return deleted; } normalize(format) { const self2 = this; const headers = {}; utils$1.forEach(this, (value, header) => { const key = utils$1.findKey(headers, header); if (key) { self2[key] = normalizeValue(value); delete self2[header]; return; } const normalized = format ? formatHeader(header) : String(header).trim(); if (normalized !== header) { delete self2[header]; } self2[normalized] = normalizeValue(value); headers[normalized] = true; }); return this; } concat(...targets) { return this.constructor.concat(this, ...targets); } toJSON(asStrings) { const obj = /* @__PURE__ */ Object.create(null); utils$1.forEach(this, (value, header) => { value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value); }); return obj; } [Symbol.iterator]() { return Object.entries(this.toJSON())[Symbol.iterator](); } toString() { return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n"); } getSetCookie() { return this.get("set-cookie") || []; } get [Symbol.toStringTag]() { return "AxiosHeaders"; } static from(thing) { return thing instanceof this ? thing : new this(thing); } static concat(first, ...targets) { const computed = new this(first); targets.forEach((target) => computed.set(target)); return computed; } static accessor(header) { const internals = this[$internals] = this[$internals] = { accessors: {} }; const accessors = internals.accessors; const prototype2 = this.prototype; function defineAccessor(_header) { const lHeader = normalizeHeader(_header); if (!accessors[lHeader]) { buildAccessors(prototype2, _header); accessors[lHeader] = true; } } __name(defineAccessor, "defineAccessor"); utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); return this; } }; AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => { let mapped = key[0].toUpperCase() + key.slice(1); return { get: /* @__PURE__ */ __name(() => value, "get"), set(headerValue) { this[mapped] = headerValue; } }; }); utils$1.freezeMethods(AxiosHeaders); var AxiosHeaders$1 = AxiosHeaders; function transformData(fns, response) { const config2 = this || defaults$1; const context2 = response || config2; const headers = AxiosHeaders$1.from(context2.headers); let data = context2.data; utils$1.forEach(fns, /* @__PURE__ */ __name(function transform(fn) { data = fn.call(config2, data, headers.normalize(), response ? response.status : void 0); }, "transform")); headers.normalize(); return data; } __name(transformData, "transformData"); function isCancel(value) { return !!(value && value.__CANCEL__); } __name(isCancel, "isCancel"); function CanceledError(message, config2, request) { AxiosError.call(this, message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config2, request); this.name = "CanceledError"; } __name(CanceledError, "CanceledError"); utils$1.inherits(CanceledError, AxiosError, { __CANCEL__: true }); function settle(resolve, reject, response) { const validateStatus = response.config.validateStatus; if (!response.status || !validateStatus || validateStatus(response.status)) { resolve(response); } else { reject(new AxiosError( "Request failed with status code " + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response )); } } __name(settle, "settle"); function parseProtocol(url) { const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); return match && match[1] || ""; } __name(parseProtocol, "parseProtocol"); function speedometer(samplesCount, min) { samplesCount = samplesCount || 10; const bytes = new Array(samplesCount); const timestamps = new Array(samplesCount); let head = 0; let tail = 0; let firstSampleTS; min = min !== void 0 ? min : 1e3; return /* @__PURE__ */ __name(function push(chunkLength) { const now = Date.now(); const startedAt = timestamps[tail]; if (!firstSampleTS) { firstSampleTS = now; } bytes[head] = chunkLength; timestamps[head] = now; let i = tail; let bytesCount = 0; while (i !== head) { bytesCount += bytes[i++]; i = i % samplesCount; } head = (head + 1) % samplesCount; if (head === tail) { tail = (tail + 1) % samplesCount; } if (now - firstSampleTS < min) { return; } const passed = startedAt && now - startedAt; return passed ? Math.round(bytesCount * 1e3 / passed) : void 0; }, "push"); } __name(speedometer, "speedometer"); function throttle(fn, freq) { let timestamp = 0; let threshold = 1e3 / freq; let lastArgs; let timer; const invoke = /* @__PURE__ */ __name((args, now = Date.now()) => { timestamp = now; lastArgs = null; if (timer) { clearTimeout(timer); timer = null; } fn.apply(null, args); }, "invoke"); const throttled = /* @__PURE__ */ __name((...args) => { const now = Date.now(); const passed = now - timestamp; if (passed >= threshold) { invoke(args, now); } else { lastArgs = args; if (!timer) { timer = setTimeout(() => { timer = null; invoke(lastArgs); }, threshold - passed); } } }, "throttled"); const flush = /* @__PURE__ */ __name(() => lastArgs && invoke(lastArgs), "flush"); return [throttled, flush]; } __name(throttle, "throttle"); var progressEventReducer = /* @__PURE__ */ __name((listener, isDownloadStream, freq = 3) => { let bytesNotified = 0; const _speedometer = speedometer(50, 250); return throttle((e) => { const loaded = e.loaded; const total = e.lengthComputable ? e.total : void 0; const progressBytes = loaded - bytesNotified; const rate = _speedometer(progressBytes); const inRange = loaded <= total; bytesNotified = loaded; const data = { loaded, total, progress: total ? loaded / total : void 0, bytes: progressBytes, rate: rate ? rate : void 0, estimated: rate && total && inRange ? (total - loaded) / rate : void 0, event: e, lengthComputable: total != null, [isDownloadStream ? "download" : "upload"]: true }; listener(data); }, freq); }, "progressEventReducer"); var progressEventDecorator = /* @__PURE__ */ __name((total, throttled) => { const lengthComputable = total != null; return [(loaded) => throttled[0]({ lengthComputable, total, loaded }), throttled[1]]; }, "progressEventDecorator"); var asyncDecorator = /* @__PURE__ */ __name((fn) => (...args) => utils$1.asap(() => fn(...args)), "asyncDecorator"); var isURLSameOrigin = platform2.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => { url = new URL(url, platform2.origin); return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port); })( new URL(platform2.origin), platform2.navigator && /(msie|trident)/i.test(platform2.navigator.userAgent) ) : () => true; var cookies = platform2.hasStandardBrowserEnv ? ( // Standard browser envs support document.cookie { write(name, value, expires, path, domain2, secure) { const cookie = [name + "=" + encodeURIComponent(value)]; utils$1.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString()); utils$1.isString(path) && cookie.push("path=" + path); utils$1.isString(domain2) && cookie.push("domain=" + domain2); secure === true && cookie.push("secure"); document.cookie = cookie.join("; "); }, read(name) { const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)")); return match ? decodeURIComponent(match[3]) : null; }, remove(name) { this.write(name, "", Date.now() - 864e5); } } ) : ( // Non-standard browser env (web workers, react-native) lack needed support. { write() { }, read() { return null; }, remove() { } } ); function isAbsoluteURL(url) { return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); } __name(isAbsoluteURL, "isAbsoluteURL"); function combineURLs(baseURL, relativeURL) { return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL; } __name(combineURLs, "combineURLs"); function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) { let isRelativeUrl = !isAbsoluteURL(requestedURL); if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) { return combineURLs(baseURL, requestedURL); } return requestedURL; } __name(buildFullPath, "buildFullPath"); var headersToObject = /* @__PURE__ */ __name((thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing, "headersToObject"); function mergeConfig(config1, config2) { config2 = config2 || {}; const config3 = {}; function getMergedValue(target, source, prop, caseless) { if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) { return utils$1.merge.call({ caseless }, target, source); } else if (utils$1.isPlainObject(source)) { return utils$1.merge({}, source); } else if (utils$1.isArray(source)) { return source.slice(); } return source; } __name(getMergedValue, "getMergedValue"); function mergeDeepProperties(a, b, prop, caseless) { if (!utils$1.isUndefined(b)) { return getMergedValue(a, b, prop, caseless); } else if (!utils$1.isUndefined(a)) { return getMergedValue(void 0, a, prop, caseless); } } __name(mergeDeepProperties, "mergeDeepProperties"); function valueFromConfig2(a, b) { if (!utils$1.isUndefined(b)) { return getMergedValue(void 0, b); } } __name(valueFromConfig2, "valueFromConfig2"); function defaultToConfig2(a, b) { if (!utils$1.isUndefined(b)) { return getMergedValue(void 0, b); } else if (!utils$1.isUndefined(a)) { return getMergedValue(void 0, a); } } __name(defaultToConfig2, "defaultToConfig2"); function mergeDirectKeys(a, b, prop) { if (prop in config2) { return getMergedValue(a, b); } else if (prop in config1) { return getMergedValue(void 0, a); } } __name(mergeDirectKeys, "mergeDirectKeys"); const mergeMap = { url: valueFromConfig2, method: valueFromConfig2, data: valueFromConfig2, baseURL: defaultToConfig2, transformRequest: defaultToConfig2, transformResponse: defaultToConfig2, paramsSerializer: defaultToConfig2, timeout: defaultToConfig2, timeoutMessage: defaultToConfig2, withCredentials: defaultToConfig2, withXSRFToken: defaultToConfig2, adapter: defaultToConfig2, responseType: defaultToConfig2, xsrfCookieName: defaultToConfig2, xsrfHeaderName: defaultToConfig2, onUploadProgress: defaultToConfig2, onDownloadProgress: defaultToConfig2, decompress: defaultToConfig2, maxContentLength: defaultToConfig2, maxBodyLength: defaultToConfig2, beforeRedirect: defaultToConfig2, transport: defaultToConfig2, httpAgent: defaultToConfig2, httpsAgent: defaultToConfig2, cancelToken: defaultToConfig2, socketPath: defaultToConfig2, responseEncoding: defaultToConfig2, validateStatus: mergeDirectKeys, headers: /* @__PURE__ */ __name((a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true), "headers") }; utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), /* @__PURE__ */ __name(function computeConfigValue(prop) { const merge2 = mergeMap[prop] || mergeDeepProperties; const configValue = merge2(config1[prop], config2[prop], prop); utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue); }, "computeConfigValue")); return config3; } __name(mergeConfig, "mergeConfig"); var resolveConfig = /* @__PURE__ */ __name((config2) => { const newConfig = mergeConfig({}, config2); let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig; newConfig.headers = headers = AxiosHeaders$1.from(headers); newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config2.params, config2.paramsSerializer); if (auth) { headers.set( "Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")) ); } let contentType; if (utils$1.isFormData(data)) { if (platform2.hasStandardBrowserEnv || platform2.hasStandardBrowserWebWorkerEnv) { headers.setContentType(void 0); } else if ((contentType = headers.getContentType()) !== false) { const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : []; headers.setContentType([type || "multipart/form-data", ...tokens].join("; ")); } } if (platform2.hasStandardBrowserEnv) { withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig)); if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(newConfig.url)) { const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName); if (xsrfValue) { headers.set(xsrfHeaderName, xsrfValue); } } } return newConfig; }, "resolveConfig"); var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined"; var xhrAdapter = isXHRAdapterSupported && function(config2) { return new Promise(/* @__PURE__ */ __name(function dispatchXhrRequest(resolve, reject) { const _config = resolveConfig(config2); let requestData = _config.data; const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize(); let { responseType, onUploadProgress, onDownloadProgress } = _config; let onCanceled; let uploadThrottled, downloadThrottled; let flushUpload, flushDownload; function done() { flushUpload && flushUpload(); flushDownload && flushDownload(); _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled); _config.signal && _config.signal.removeEventListener("abort", onCanceled); } __name(done, "done"); let request = new XMLHttpRequest(); request.open(_config.method.toUpperCase(), _config.url, true); request.timeout = _config.timeout; function onloadend() { if (!request) { return; } const responseHeaders = AxiosHeaders$1.from( "getAllResponseHeaders" in request && request.getAllResponseHeaders() ); const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response; const response = { data: responseData, status: request.status, statusText: request.statusText, headers: responseHeaders, config: config2, request }; settle(/* @__PURE__ */ __name(function _resolve(value) { resolve(value); done(); }, "_resolve"), /* @__PURE__ */ __name(function _reject(err) { reject(err); done(); }, "_reject"), response); request = null; } __name(onloadend, "onloadend"); if ("onloadend" in request) { request.onloadend = onloadend; } else { request.onreadystatechange = /* @__PURE__ */ __name(function handleLoad() { if (!request || request.readyState !== 4) { return; } if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) { return; } setTimeout(onloadend); }, "handleLoad"); } request.onabort = /* @__PURE__ */ __name(function handleAbort() { if (!request) { return; } reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config2, request)); request = null; }, "handleAbort"); request.onerror = /* @__PURE__ */ __name(function handleError() { reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config2, request)); request = null; }, "handleError"); request.ontimeout = /* @__PURE__ */ __name(function handleTimeout() { let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded"; const transitional = _config.transitional || transitionalDefaults; if (_config.timeoutErrorMessage) { timeoutErrorMessage = _config.timeoutErrorMessage; } reject(new AxiosError( timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config2, request )); request = null; }, "handleTimeout"); requestData === void 0 && requestHeaders.setContentType(null); if ("setRequestHeader" in request) { utils$1.forEach(requestHeaders.toJSON(), /* @__PURE__ */ __name(function setRequestHeader(val, key) { request.setRequestHeader(key, val); }, "setRequestHeader")); } if (!utils$1.isUndefined(_config.withCredentials)) { request.withCredentials = !!_config.withCredentials; } if (responseType && responseType !== "json") { request.responseType = _config.responseType; } if (onDownloadProgress) { [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true); request.addEventListener("progress", downloadThrottled); } if (onUploadProgress && request.upload) { [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress); request.upload.addEventListener("progress", uploadThrottled); request.upload.addEventListener("loadend", flushUpload); } if (_config.cancelToken || _config.signal) { onCanceled = /* @__PURE__ */ __name((cancel) => { if (!request) { return; } reject(!cancel || cancel.type ? new CanceledError(null, config2, request) : cancel); request.abort(); request = null; }, "onCanceled"); _config.cancelToken && _config.cancelToken.subscribe(onCanceled); if (_config.signal) { _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled); } } const protocol = parseProtocol(_config.url); if (protocol && platform2.protocols.indexOf(protocol) === -1) { reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config2)); return; } request.send(requestData || null); }, "dispatchXhrRequest")); }; var composeSignals = /* @__PURE__ */ __name((signals, timeout) => { const { length } = signals = signals ? signals.filter(Boolean) : []; if (timeout || length) { let controller = new AbortController(); let aborted; const onabort = /* @__PURE__ */ __name(function(reason) { if (!aborted) { aborted = true; unsubscribe(); const err = reason instanceof Error ? reason : this.reason; controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err)); } }, "onabort"); let timer = timeout && setTimeout(() => { timer = null; onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT)); }, timeout); const unsubscribe = /* @__PURE__ */ __name(() => { if (signals) { timer && clearTimeout(timer); timer = null; signals.forEach((signal2) => { signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort); }); signals = null; } }, "unsubscribe"); signals.forEach((signal2) => signal2.addEventListener("abort", onabort)); const { signal } = controller; signal.unsubscribe = () => utils$1.asap(unsubscribe); return signal; } }, "composeSignals"); var composeSignals$1 = composeSignals; var streamChunk = /* @__PURE__ */ __name(function* (chunk, chunkSize) { let len = chunk.byteLength; if (!chunkSize || len < chunkSize) { yield chunk; return; } let pos = 0; let end; while (pos < len) { end = pos + chunkSize; yield chunk.slice(pos, end); pos = end; } }, "streamChunk"); var readBytes = /* @__PURE__ */ __name(async function* (iterable, chunkSize) { for await (const chunk of readStream(iterable)) { yield* streamChunk(chunk, chunkSize); } }, "readBytes"); var readStream = /* @__PURE__ */ __name(async function* (stream) { if (stream[Symbol.asyncIterator]) { yield* stream; return; } const reader = stream.getReader(); try { for (; ; ) { const { done, value } = await reader.read(); if (done) { break; } yield value; } } finally { await reader.cancel(); } }, "readStream"); var trackStream = /* @__PURE__ */ __name((stream, chunkSize, onProgress, onFinish) => { const iterator2 = readBytes(stream, chunkSize); let bytes = 0; let done; let _onFinish = /* @__PURE__ */ __name((e) => { if (!done) { done = true; onFinish && onFinish(e); } }, "_onFinish"); return new ReadableStream({ async pull(controller) { try { const { done: done2, value } = await iterator2.next(); if (done2) { _onFinish(); controller.close(); return; } let len = value.byteLength; if (onProgress) { let loadedBytes = bytes += len; onProgress(loadedBytes); } controller.enqueue(new Uint8Array(value)); } catch (err) { _onFinish(err); throw err; } }, cancel(reason) { _onFinish(reason); return iterator2.return(); } }, { highWaterMark: 2 }); }, "trackStream"); var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function"; var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function"; var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer())); var test = /* @__PURE__ */ __name((fn, ...args) => { try { return !!fn(...args); } catch (e) { return false; } }, "test"); var supportsRequestStream = isReadableStreamSupported && test(() => { let duplexAccessed = false; const hasContentType = new Request(platform2.origin, { body: new ReadableStream(), method: "POST", get duplex() { duplexAccessed = true; return "half"; } }).headers.has("Content-Type"); return duplexAccessed && !hasContentType; }); var DEFAULT_CHUNK_SIZE = 64 * 1024; var supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body)); var resolvers = { stream: supportsResponseStream && ((res) => res.body) }; isFetchSupported && ((res) => { ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => { !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config2) => { throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config2); }); }); })(new Response()); var getBodyLength = /* @__PURE__ */ __name(async (body) => { if (body == null) { return 0; } if (utils$1.isBlob(body)) { return body.size; } if (utils$1.isSpecCompliantForm(body)) { const _request = new Request(platform2.origin, { method: "POST", body }); return (await _request.arrayBuffer()).byteLength; } if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) { return body.byteLength; } if (utils$1.isURLSearchParams(body)) { body = body + ""; } if (utils$1.isString(body)) { return (await encodeText(body)).byteLength; } }, "getBodyLength"); var resolveBodyLength = /* @__PURE__ */ __name(async (headers, body) => { const length = utils$1.toFiniteNumber(headers.getContentLength()); return length == null ? getBodyLength(body) : length; }, "resolveBodyLength"); var fetchAdapter = isFetchSupported && (async (config2) => { let { url, method: method2, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions } = resolveConfig(config2); responseType = responseType ? (responseType + "").toLowerCase() : "text"; let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout); let request; const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => { composedSignal.unsubscribe(); }); let requestContentLength; try { if (onUploadProgress && supportsRequestStream && method2 !== "get" && method2 !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) { let _request = new Request(url, { method: "POST", body: data, duplex: "half" }); let contentTypeHeader; if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) { headers.setContentType(contentTypeHeader); } if (_request.body) { const [onProgress, flush] = progressEventDecorator( requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)) ); data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush); } } if (!utils$1.isString(withCredentials)) { withCredentials = withCredentials ? "include" : "omit"; } const isCredentialsSupported = "credentials" in Request.prototype; request = new Request(url, { ...fetchOptions, signal: composedSignal, method: method2.toUpperCase(), headers: headers.normalize().toJSON(), body: data, duplex: "half", credentials: isCredentialsSupported ? withCredentials : void 0 }); let response = await fetch(request); const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response"); if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) { const options = {}; ["status", "statusText", "headers"].forEach((prop) => { options[prop] = response[prop]; }); const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length")); const [onProgress, flush] = onDownloadProgress && progressEventDecorator( responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true) ) || []; response = new Response( trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => { flush && flush(); unsubscribe && unsubscribe(); }), options ); } responseType = responseType || "text"; let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config2); !isStreamResponse && unsubscribe && unsubscribe(); return await new Promise((resolve, reject) => { settle(resolve, reject, { data: responseData, headers: AxiosHeaders$1.from(response.headers), status: response.status, statusText: response.statusText, config: config2, request }); }); } catch (err) { unsubscribe && unsubscribe(); if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) { throw Object.assign( new AxiosError("Network Error", AxiosError.ERR_NETWORK, config2, request), { cause: err.cause || err } ); } throw AxiosError.from(err, err && err.code, config2, request); } }); var knownAdapters = { http: httpAdapter, xhr: xhrAdapter, fetch: fetchAdapter }; utils$1.forEach(knownAdapters, (fn, value) => { if (fn) { try { Object.defineProperty(fn, "name", { value }); } catch (e) { } Object.defineProperty(fn, "adapterName", { value }); } }); var renderReason = /* @__PURE__ */ __name((reason) => `- ${reason}`, "renderReason"); var isResolvedHandle = /* @__PURE__ */ __name((adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false, "isResolvedHandle"); var adapters = { getAdapter: /* @__PURE__ */ __name((adapters2) => { adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2]; const { length } = adapters2; let nameOrAdapter; let adapter; const rejectedReasons = {}; for (let i = 0; i < length; i++) { nameOrAdapter = adapters2[i]; let id; adapter = nameOrAdapter; if (!isResolvedHandle(nameOrAdapter)) { adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; if (adapter === void 0) { throw new AxiosError(`Unknown adapter '${id}'`); } } if (adapter) { break; } rejectedReasons[id || "#" + i] = adapter; } if (!adapter) { const reasons = Object.entries(rejectedReasons).map( ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build") ); let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"; throw new AxiosError( `There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT" ); } return adapter; }, "getAdapter"), adapters: knownAdapters }; function throwIfCancellationRequested(config2) { if (config2.cancelToken) { config2.cancelToken.throwIfRequested(); } if (config2.signal && config2.signal.aborted) { throw new CanceledError(null, config2); } } __name(throwIfCancellationRequested, "throwIfCancellationRequested"); function dispatchRequest(config2) { throwIfCancellationRequested(config2); config2.headers = AxiosHeaders$1.from(config2.headers); config2.data = transformData.call( config2, config2.transformRequest ); if (["post", "put", "patch"].indexOf(config2.method) !== -1) { config2.headers.setContentType("application/x-www-form-urlencoded", false); } const adapter = adapters.getAdapter(config2.adapter || defaults$1.adapter); return adapter(config2).then(/* @__PURE__ */ __name(function onAdapterResolution(response) { throwIfCancellationRequested(config2); response.data = transformData.call( config2, config2.transformResponse, response ); response.headers = AxiosHeaders$1.from(response.headers); return response; }, "onAdapterResolution"), /* @__PURE__ */ __name(function onAdapterRejection(reason) { if (!isCancel(reason)) { throwIfCancellationRequested(config2); if (reason && reason.response) { reason.response.data = transformData.call( config2, config2.transformResponse, reason.response ); reason.response.headers = AxiosHeaders$1.from(reason.response.headers); } } return Promise.reject(reason); }, "onAdapterRejection")); } __name(dispatchRequest, "dispatchRequest"); var VERSION = "1.9.0"; var validators$1 = {}; ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => { validators$1[type] = /* @__PURE__ */ __name(function validator2(thing) { return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type; }, "validator"); }); var deprecatedWarnings = {}; validators$1.transitional = /* @__PURE__ */ __name(function transitional(validator2, version2, message) { function formatMessage(opt, desc) { return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : ""); } __name(formatMessage, "formatMessage"); return (value, opt, opts) => { if (validator2 === false) { throw new AxiosError( formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")), AxiosError.ERR_DEPRECATED ); } if (version2 && !deprecatedWarnings[opt]) { deprecatedWarnings[opt] = true; console.warn( formatMessage( opt, " has been deprecated since v" + version2 + " and will be removed in the near future" ) ); } return validator2 ? validator2(value, opt, opts) : true; }; }, "transitional"); validators$1.spelling = /* @__PURE__ */ __name(function spelling(correctSpelling) { return (value, opt) => { console.warn(`${opt} is likely a misspelling of ${correctSpelling}`); return true; }; }, "spelling"); function assertOptions(options, schema, allowUnknown) { if (typeof options !== "object") { throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE); } const keys = Object.keys(options); let i = keys.length; while (i-- > 0) { const opt = keys[i]; const validator2 = schema[opt]; if (validator2) { const value = options[opt]; const result = value === void 0 || validator2(value, opt, options); if (result !== true) { throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE); } continue; } if (allowUnknown !== true) { throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION); } } } __name(assertOptions, "assertOptions"); var validator = { assertOptions, validators: validators$1 }; var validators = validator.validators; var Axios = class { static { __name(this, "Axios"); } constructor(instanceConfig) { this.defaults = instanceConfig || {}; this.interceptors = { request: new InterceptorManager$1(), response: new InterceptorManager$1() }; } /** * Dispatch a request * * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) * @param {?Object} config * * @returns {Promise} The Promise to be fulfilled */ async request(configOrUrl, config2) { try { return await this._request(configOrUrl, config2); } catch (err) { if (err instanceof Error) { let dummy = {}; Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error(); const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : ""; try { if (!err.stack) { err.stack = stack; } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) { err.stack += "\n" + stack; } } catch (e) { } } throw err; } } _request(configOrUrl, config2) { if (typeof configOrUrl === "string") { config2 = config2 || {}; config2.url = configOrUrl; } else { config2 = configOrUrl || {}; } config2 = mergeConfig(this.defaults, config2); const { transitional, paramsSerializer, headers } = config2; if (transitional !== void 0) { validator.assertOptions(transitional, { silentJSONParsing: validators.transitional(validators.boolean), forcedJSONParsing: validators.transitional(validators.boolean), clarifyTimeoutError: validators.transitional(validators.boolean) }, false); } if (paramsSerializer != null) { if (utils$1.isFunction(paramsSerializer)) { config2.paramsSerializer = { serialize: paramsSerializer }; } else { validator.assertOptions(paramsSerializer, { encode: validators.function, serialize: validators.function }, true); } } if (config2.allowAbsoluteUrls !== void 0) ; else if (this.defaults.allowAbsoluteUrls !== void 0) { config2.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls; } else { config2.allowAbsoluteUrls = true; } validator.assertOptions(config2, { baseUrl: validators.spelling("baseURL"), withXsrfToken: validators.spelling("withXSRFToken") }, true); config2.method = (config2.method || this.defaults.method || "get").toLowerCase(); let contextHeaders = headers && utils$1.merge( headers.common, headers[config2.method] ); headers && utils$1.forEach( ["delete", "get", "head", "post", "put", "patch", "common"], (method2) => { delete headers[method2]; } ); config2.headers = AxiosHeaders$1.concat(contextHeaders, headers); const requestInterceptorChain = []; let synchronousRequestInterceptors = true; this.interceptors.request.forEach(/* @__PURE__ */ __name(function unshiftRequestInterceptors(interceptor) { if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config2) === false) { return; } synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); }, "unshiftRequestInterceptors")); const responseInterceptorChain = []; this.interceptors.response.forEach(/* @__PURE__ */ __name(function pushResponseInterceptors(interceptor) { responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); }, "pushResponseInterceptors")); let promise; let i = 0; let len; if (!synchronousRequestInterceptors) { const chain = [dispatchRequest.bind(this), void 0]; chain.unshift.apply(chain, requestInterceptorChain); chain.push.apply(chain, responseInterceptorChain); len = chain.length; promise = Promise.resolve(config2); while (i < len) { promise = promise.then(chain[i++], chain[i++]); } return promise; } len = requestInterceptorChain.length; let newConfig = config2; i = 0; while (i < len) { const onFulfilled = requestInterceptorChain[i++]; const onRejected = requestInterceptorChain[i++]; try { newConfig = onFulfilled(newConfig); } catch (error3) { onRejected.call(this, error3); break; } } try { promise = dispatchRequest.call(this, newConfig); } catch (error3) { return Promise.reject(error3); } i = 0; len = responseInterceptorChain.length; while (i < len) { promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); } return promise; } getUri(config2) { config2 = mergeConfig(this.defaults, config2); const fullPath = buildFullPath(config2.baseURL, config2.url, config2.allowAbsoluteUrls); return buildURL(fullPath, config2.params, config2.paramsSerializer); } }; utils$1.forEach(["delete", "get", "head", "options"], /* @__PURE__ */ __name(function forEachMethodNoData(method2) { Axios.prototype[method2] = function(url, config2) { return this.request(mergeConfig(config2 || {}, { method: method2, url, data: (config2 || {}).data })); }; }, "forEachMethodNoData")); utils$1.forEach(["post", "put", "patch"], /* @__PURE__ */ __name(function forEachMethodWithData(method2) { function generateHTTPMethod(isForm) { return /* @__PURE__ */ __name(function httpMethod(url, data, config2) { return this.request(mergeConfig(config2 || {}, { method: method2, headers: isForm ? { "Content-Type": "multipart/form-data" } : {}, url, data })); }, "httpMethod"); } __name(generateHTTPMethod, "generateHTTPMethod"); Axios.prototype[method2] = generateHTTPMethod(); Axios.prototype[method2 + "Form"] = generateHTTPMethod(true); }, "forEachMethodWithData")); var Axios$1 = Axios; var CancelToken = class _CancelToken { static { __name(this, "CancelToken"); } constructor(executor) { if (typeof executor !== "function") { throw new TypeError("executor must be a function."); } let resolvePromise; this.promise = new Promise(/* @__PURE__ */ __name(function promiseExecutor(resolve) { resolvePromise = resolve; }, "promiseExecutor")); const token = this; this.promise.then((cancel) => { if (!token._listeners) return; let i = token._listeners.length; while (i-- > 0) { token._listeners[i](cancel); } token._listeners = null; }); this.promise.then = (onfulfilled) => { let _resolve; const promise = new Promise((resolve) => { token.subscribe(resolve); _resolve = resolve; }).then(onfulfilled); promise.cancel = /* @__PURE__ */ __name(function reject() { token.unsubscribe(_resolve); }, "reject"); return promise; }; executor(/* @__PURE__ */ __name(function cancel(message, config2, request) { if (token.reason) { return; } token.reason = new CanceledError(message, config2, request); resolvePromise(token.reason); }, "cancel")); } /** * Throws a `CanceledError` if cancellation has been requested. */ throwIfRequested() { if (this.reason) { throw this.reason; } } /** * Subscribe to the cancel signal */ subscribe(listener) { if (this.reason) { listener(this.reason); return; } if (this._listeners) { this._listeners.push(listener); } else { this._listeners = [listener]; } } /** * Unsubscribe from the cancel signal */ unsubscribe(listener) { if (!this._listeners) { return; } const index = this._listeners.indexOf(listener); if (index !== -1) { this._listeners.splice(index, 1); } } toAbortSignal() { const controller = new AbortController(); const abort2 = /* @__PURE__ */ __name((err) => { controller.abort(err); }, "abort"); this.subscribe(abort2); controller.signal.unsubscribe = () => this.unsubscribe(abort2); return controller.signal; } /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ static source() { let cancel; const token = new _CancelToken(/* @__PURE__ */ __name(function executor(c) { cancel = c; }, "executor")); return { token, cancel }; } }; var CancelToken$1 = CancelToken; function spread(callback) { return /* @__PURE__ */ __name(function wrap(arr) { return callback.apply(null, arr); }, "wrap"); } __name(spread, "spread"); function isAxiosError(payload) { return utils$1.isObject(payload) && payload.isAxiosError === true; } __name(isAxiosError, "isAxiosError"); var HttpStatusCode = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleChoices: 300, MovedPermanently: 301, Found: 302, SeeOther: 303, NotModified: 304, UseProxy: 305, Unused: 306, TemporaryRedirect: 307, PermanentRedirect: 308, BadRequest: 400, Unauthorized: 401, PaymentRequired: 402, Forbidden: 403, NotFound: 404, MethodNotAllowed: 405, NotAcceptable: 406, ProxyAuthenticationRequired: 407, RequestTimeout: 408, Conflict: 409, Gone: 410, LengthRequired: 411, PreconditionFailed: 412, PayloadTooLarge: 413, UriTooLong: 414, UnsupportedMediaType: 415, RangeNotSatisfiable: 416, ExpectationFailed: 417, ImATeapot: 418, MisdirectedRequest: 421, UnprocessableEntity: 422, Locked: 423, FailedDependency: 424, TooEarly: 425, UpgradeRequired: 426, PreconditionRequired: 428, TooManyRequests: 429, RequestHeaderFieldsTooLarge: 431, UnavailableForLegalReasons: 451, InternalServerError: 500, NotImplemented: 501, BadGateway: 502, ServiceUnavailable: 503, GatewayTimeout: 504, HttpVersionNotSupported: 505, VariantAlsoNegotiates: 506, InsufficientStorage: 507, LoopDetected: 508, NotExtended: 510, NetworkAuthenticationRequired: 511 }; Object.entries(HttpStatusCode).forEach(([key, value]) => { HttpStatusCode[value] = key; }); var HttpStatusCode$1 = HttpStatusCode; function createInstance(defaultConfig) { const context2 = new Axios$1(defaultConfig); const instance = bind(Axios$1.prototype.request, context2); utils$1.extend(instance, Axios$1.prototype, context2, { allOwnKeys: true }); utils$1.extend(instance, context2, null, { allOwnKeys: true }); instance.create = /* @__PURE__ */ __name(function create(instanceConfig) { return createInstance(mergeConfig(defaultConfig, instanceConfig)); }, "create"); return instance; } __name(createInstance, "createInstance"); var axios = createInstance(defaults$1); axios.Axios = Axios$1; axios.CanceledError = CanceledError; axios.CancelToken = CancelToken$1; axios.isCancel = isCancel; axios.VERSION = VERSION; axios.toFormData = toFormData; axios.AxiosError = AxiosError; axios.Cancel = axios.CanceledError; axios.all = /* @__PURE__ */ __name(function all(promises) { return Promise.all(promises); }, "all"); axios.spread = spread; axios.isAxiosError = isAxiosError; axios.mergeConfig = mergeConfig; axios.AxiosHeaders = AxiosHeaders$1; axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing); axios.getAdapter = adapters.getAdapter; axios.HttpStatusCode = HttpStatusCode$1; axios.default = axios; module2.exports = axios; } }); // node_modules/js-sha256/src/sha256.js var require_sha256 = __commonJS({ "node_modules/js-sha256/src/sha256.js"(exports, module) { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); (function() { "use strict"; var ERROR = "input is invalid type"; var WINDOW = typeof window === "object"; var root = WINDOW ? window : {}; if (root.JS_SHA256_NO_WINDOW) { WINDOW = false; } var WEB_WORKER = !WINDOW && typeof self === "object"; var NODE_JS = !root.JS_SHA256_NO_NODE_JS && typeof process === "object" && process.versions && process.versions.node; if (NODE_JS) { root = global; } else if (WEB_WORKER) { root = self; } var COMMON_JS = !root.JS_SHA256_NO_COMMON_JS && typeof module === "object" && module.exports; var AMD = typeof define === "function" && define.amd; var ARRAY_BUFFER = !root.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer !== "undefined"; var HEX_CHARS = "0123456789abcdef".split(""); var EXTRA = [-2147483648, 8388608, 32768, 128]; var SHIFT = [24, 16, 8, 0]; var K = [ 1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298 ]; var OUTPUT_TYPES = ["hex", "array", "digest", "arrayBuffer"]; var blocks = []; if (root.JS_SHA256_NO_NODE_JS || !Array.isArray) { Array.isArray = function(obj) { return Object.prototype.toString.call(obj) === "[object Array]"; }; } if (ARRAY_BUFFER && (root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { ArrayBuffer.isView = function(obj) { return typeof obj === "object" && obj.buffer && obj.buffer.constructor === ArrayBuffer; }; } var createOutputMethod = /* @__PURE__ */ __name(function(outputType, is2242) { return function(message) { return new Sha256(is2242, true).update(message)[outputType](); }; }, "createOutputMethod"); var createMethod = /* @__PURE__ */ __name(function(is2242) { var method2 = createOutputMethod("hex", is2242); if (NODE_JS) { method2 = nodeWrap(method2, is2242); } method2.create = function() { return new Sha256(is2242); }; method2.update = function(message) { return method2.create().update(message); }; for (var i = 0; i < OUTPUT_TYPES.length; ++i) { var type = OUTPUT_TYPES[i]; method2[type] = createOutputMethod(type, is2242); } return method2; }, "createMethod"); var nodeWrap = /* @__PURE__ */ __name(function(method, is224) { var crypto = eval("require('crypto')"); var Buffer = eval("require('buffer').Buffer"); var algorithm = is224 ? "sha224" : "sha256"; var nodeMethod = /* @__PURE__ */ __name(function(message) { if (typeof message === "string") { return crypto.createHash(algorithm).update(message, "utf8").digest("hex"); } else { if (message === null || message === void 0) { throw new Error(ERROR); } else if (message.constructor === ArrayBuffer) { message = new Uint8Array(message); } } if (Array.isArray(message) || ArrayBuffer.isView(message) || message.constructor === Buffer) { return crypto.createHash(algorithm).update(new Buffer(message)).digest("hex"); } else { return method(message); } }, "nodeMethod"); return nodeMethod; }, "nodeWrap"); var createHmacOutputMethod = /* @__PURE__ */ __name(function(outputType, is2242) { return function(key, message) { return new HmacSha256(key, is2242, true).update(message)[outputType](); }; }, "createHmacOutputMethod"); var createHmacMethod = /* @__PURE__ */ __name(function(is2242) { var method2 = createHmacOutputMethod("hex", is2242); method2.create = function(key) { return new HmacSha256(key, is2242); }; method2.update = function(key, message) { return method2.create(key).update(message); }; for (var i = 0; i < OUTPUT_TYPES.length; ++i) { var type = OUTPUT_TYPES[i]; method2[type] = createHmacOutputMethod(type, is2242); } return method2; }, "createHmacMethod"); function Sha256(is2242, sharedMemory) { if (sharedMemory) { blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; this.blocks = blocks; } else { this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } if (is2242) { this.h0 = 3238371032; this.h1 = 914150663; this.h2 = 812702999; this.h3 = 4144912697; this.h4 = 4290775857; this.h5 = 1750603025; this.h6 = 1694076839; this.h7 = 3204075428; } else { this.h0 = 1779033703; this.h1 = 3144134277; this.h2 = 1013904242; this.h3 = 2773480762; this.h4 = 1359893119; this.h5 = 2600822924; this.h6 = 528734635; this.h7 = 1541459225; } this.block = this.start = this.bytes = this.hBytes = 0; this.finalized = this.hashed = false; this.first = true; this.is224 = is2242; } __name(Sha256, "Sha256"); Sha256.prototype.update = function(message) { if (this.finalized) { return; } var notString, type = typeof message; if (type !== "string") { if (type === "object") { if (message === null) { throw new Error(ERROR); } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) { message = new Uint8Array(message); } else if (!Array.isArray(message)) { if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) { throw new Error(ERROR); } } } else { throw new Error(ERROR); } notString = true; } var code, index = 0, i, length = message.length, blocks2 = this.blocks; while (index < length) { if (this.hashed) { this.hashed = false; blocks2[0] = this.block; blocks2[16] = blocks2[1] = blocks2[2] = blocks2[3] = blocks2[4] = blocks2[5] = blocks2[6] = blocks2[7] = blocks2[8] = blocks2[9] = blocks2[10] = blocks2[11] = blocks2[12] = blocks2[13] = blocks2[14] = blocks2[15] = 0; } if (notString) { for (i = this.start; index < length && i < 64; ++index) { blocks2[i >> 2] |= message[index] << SHIFT[i++ & 3]; } } else { for (i = this.start; index < length && i < 64; ++index) { code = message.charCodeAt(index); if (code < 128) { blocks2[i >> 2] |= code << SHIFT[i++ & 3]; } else if (code < 2048) { blocks2[i >> 2] |= (192 | code >> 6) << SHIFT[i++ & 3]; blocks2[i >> 2] |= (128 | code & 63) << SHIFT[i++ & 3]; } else if (code < 55296 || code >= 57344) { blocks2[i >> 2] |= (224 | code >> 12) << SHIFT[i++ & 3]; blocks2[i >> 2] |= (128 | code >> 6 & 63) << SHIFT[i++ & 3]; blocks2[i >> 2] |= (128 | code & 63) << SHIFT[i++ & 3]; } else { code = 65536 + ((code & 1023) << 10 | message.charCodeAt(++index) & 1023); blocks2[i >> 2] |= (240 | code >> 18) << SHIFT[i++ & 3]; blocks2[i >> 2] |= (128 | code >> 12 & 63) << SHIFT[i++ & 3]; blocks2[i >> 2] |= (128 | code >> 6 & 63) << SHIFT[i++ & 3]; blocks2[i >> 2] |= (128 | code & 63) << SHIFT[i++ & 3]; } } } this.lastByteIndex = i; this.bytes += i - this.start; if (i >= 64) { this.block = blocks2[16]; this.start = i - 64; this.hash(); this.hashed = true; } else { this.start = i; } } if (this.bytes > 4294967295) { this.hBytes += this.bytes / 4294967296 << 0; this.bytes = this.bytes % 4294967296; } return this; }; Sha256.prototype.finalize = function() { if (this.finalized) { return; } this.finalized = true; var blocks2 = this.blocks, i = this.lastByteIndex; blocks2[16] = this.block; blocks2[i >> 2] |= EXTRA[i & 3]; this.block = blocks2[16]; if (i >= 56) { if (!this.hashed) { this.hash(); } blocks2[0] = this.block; blocks2[16] = blocks2[1] = blocks2[2] = blocks2[3] = blocks2[4] = blocks2[5] = blocks2[6] = blocks2[7] = blocks2[8] = blocks2[9] = blocks2[10] = blocks2[11] = blocks2[12] = blocks2[13] = blocks2[14] = blocks2[15] = 0; } blocks2[14] = this.hBytes << 3 | this.bytes >>> 29; blocks2[15] = this.bytes << 3; this.hash(); }; Sha256.prototype.hash = function() { var a = this.h0, b = this.h1, c = this.h2, d = this.h3, e = this.h4, f = this.h5, g = this.h6, h = this.h7, blocks2 = this.blocks, j, s0, s1, maj, t1, t2, ch, ab, da, cd, bc; for (j = 16; j < 64; ++j) { t1 = blocks2[j - 15]; s0 = (t1 >>> 7 | t1 << 25) ^ (t1 >>> 18 | t1 << 14) ^ t1 >>> 3; t1 = blocks2[j - 2]; s1 = (t1 >>> 17 | t1 << 15) ^ (t1 >>> 19 | t1 << 13) ^ t1 >>> 10; blocks2[j] = blocks2[j - 16] + s0 + blocks2[j - 7] + s1 << 0; } bc = b & c; for (j = 0; j < 64; j += 4) { if (this.first) { if (this.is224) { ab = 300032; t1 = blocks2[0] - 1413257819; h = t1 - 150054599 << 0; d = t1 + 24177077 << 0; } else { ab = 704751109; t1 = blocks2[0] - 210244248; h = t1 - 1521486534 << 0; d = t1 + 143694565 << 0; } this.first = false; } else { s0 = (a >>> 2 | a << 30) ^ (a >>> 13 | a << 19) ^ (a >>> 22 | a << 10); s1 = (e >>> 6 | e << 26) ^ (e >>> 11 | e << 21) ^ (e >>> 25 | e << 7); ab = a & b; maj = ab ^ a & c ^ bc; ch = e & f ^ ~e & g; t1 = h + s1 + ch + K[j] + blocks2[j]; t2 = s0 + maj; h = d + t1 << 0; d = t1 + t2 << 0; } s0 = (d >>> 2 | d << 30) ^ (d >>> 13 | d << 19) ^ (d >>> 22 | d << 10); s1 = (h >>> 6 | h << 26) ^ (h >>> 11 | h << 21) ^ (h >>> 25 | h << 7); da = d & a; maj = da ^ d & b ^ ab; ch = h & e ^ ~h & f; t1 = g + s1 + ch + K[j + 1] + blocks2[j + 1]; t2 = s0 + maj; g = c + t1 << 0; c = t1 + t2 << 0; s0 = (c >>> 2 | c << 30) ^ (c >>> 13 | c << 19) ^ (c >>> 22 | c << 10); s1 = (g >>> 6 | g << 26) ^ (g >>> 11 | g << 21) ^ (g >>> 25 | g << 7); cd = c & d; maj = cd ^ c & a ^ da; ch = g & h ^ ~g & e; t1 = f + s1 + ch + K[j + 2] + blocks2[j + 2]; t2 = s0 + maj; f = b + t1 << 0; b = t1 + t2 << 0; s0 = (b >>> 2 | b << 30) ^ (b >>> 13 | b << 19) ^ (b >>> 22 | b << 10); s1 = (f >>> 6 | f << 26) ^ (f >>> 11 | f << 21) ^ (f >>> 25 | f << 7); bc = b & c; maj = bc ^ b & d ^ cd; ch = f & g ^ ~f & h; t1 = e + s1 + ch + K[j + 3] + blocks2[j + 3]; t2 = s0 + maj; e = a + t1 << 0; a = t1 + t2 << 0; } this.h0 = this.h0 + a << 0; this.h1 = this.h1 + b << 0; this.h2 = this.h2 + c << 0; this.h3 = this.h3 + d << 0; this.h4 = this.h4 + e << 0; this.h5 = this.h5 + f << 0; this.h6 = this.h6 + g << 0; this.h7 = this.h7 + h << 0; }; Sha256.prototype.hex = function() { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4, h5 = this.h5, h6 = this.h6, h7 = this.h7; var hex = HEX_CHARS[h0 >> 28 & 15] + HEX_CHARS[h0 >> 24 & 15] + HEX_CHARS[h0 >> 20 & 15] + HEX_CHARS[h0 >> 16 & 15] + HEX_CHARS[h0 >> 12 & 15] + HEX_CHARS[h0 >> 8 & 15] + HEX_CHARS[h0 >> 4 & 15] + HEX_CHARS[h0 & 15] + HEX_CHARS[h1 >> 28 & 15] + HEX_CHARS[h1 >> 24 & 15] + HEX_CHARS[h1 >> 20 & 15] + HEX_CHARS[h1 >> 16 & 15] + HEX_CHARS[h1 >> 12 & 15] + HEX_CHARS[h1 >> 8 & 15] + HEX_CHARS[h1 >> 4 & 15] + HEX_CHARS[h1 & 15] + HEX_CHARS[h2 >> 28 & 15] + HEX_CHARS[h2 >> 24 & 15] + HEX_CHARS[h2 >> 20 & 15] + HEX_CHARS[h2 >> 16 & 15] + HEX_CHARS[h2 >> 12 & 15] + HEX_CHARS[h2 >> 8 & 15] + HEX_CHARS[h2 >> 4 & 15] + HEX_CHARS[h2 & 15] + HEX_CHARS[h3 >> 28 & 15] + HEX_CHARS[h3 >> 24 & 15] + HEX_CHARS[h3 >> 20 & 15] + HEX_CHARS[h3 >> 16 & 15] + HEX_CHARS[h3 >> 12 & 15] + HEX_CHARS[h3 >> 8 & 15] + HEX_CHARS[h3 >> 4 & 15] + HEX_CHARS[h3 & 15] + HEX_CHARS[h4 >> 28 & 15] + HEX_CHARS[h4 >> 24 & 15] + HEX_CHARS[h4 >> 20 & 15] + HEX_CHARS[h4 >> 16 & 15] + HEX_CHARS[h4 >> 12 & 15] + HEX_CHARS[h4 >> 8 & 15] + HEX_CHARS[h4 >> 4 & 15] + HEX_CHARS[h4 & 15] + HEX_CHARS[h5 >> 28 & 15] + HEX_CHARS[h5 >> 24 & 15] + HEX_CHARS[h5 >> 20 & 15] + HEX_CHARS[h5 >> 16 & 15] + HEX_CHARS[h5 >> 12 & 15] + HEX_CHARS[h5 >> 8 & 15] + HEX_CHARS[h5 >> 4 & 15] + HEX_CHARS[h5 & 15] + HEX_CHARS[h6 >> 28 & 15] + HEX_CHARS[h6 >> 24 & 15] + HEX_CHARS[h6 >> 20 & 15] + HEX_CHARS[h6 >> 16 & 15] + HEX_CHARS[h6 >> 12 & 15] + HEX_CHARS[h6 >> 8 & 15] + HEX_CHARS[h6 >> 4 & 15] + HEX_CHARS[h6 & 15]; if (!this.is224) { hex += HEX_CHARS[h7 >> 28 & 15] + HEX_CHARS[h7 >> 24 & 15] + HEX_CHARS[h7 >> 20 & 15] + HEX_CHARS[h7 >> 16 & 15] + HEX_CHARS[h7 >> 12 & 15] + HEX_CHARS[h7 >> 8 & 15] + HEX_CHARS[h7 >> 4 & 15] + HEX_CHARS[h7 & 15]; } return hex; }; Sha256.prototype.toString = Sha256.prototype.hex; Sha256.prototype.digest = function() { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4, h5 = this.h5, h6 = this.h6, h7 = this.h7; var arr = [ h0 >> 24 & 255, h0 >> 16 & 255, h0 >> 8 & 255, h0 & 255, h1 >> 24 & 255, h1 >> 16 & 255, h1 >> 8 & 255, h1 & 255, h2 >> 24 & 255, h2 >> 16 & 255, h2 >> 8 & 255, h2 & 255, h3 >> 24 & 255, h3 >> 16 & 255, h3 >> 8 & 255, h3 & 255, h4 >> 24 & 255, h4 >> 16 & 255, h4 >> 8 & 255, h4 & 255, h5 >> 24 & 255, h5 >> 16 & 255, h5 >> 8 & 255, h5 & 255, h6 >> 24 & 255, h6 >> 16 & 255, h6 >> 8 & 255, h6 & 255 ]; if (!this.is224) { arr.push(h7 >> 24 & 255, h7 >> 16 & 255, h7 >> 8 & 255, h7 & 255); } return arr; }; Sha256.prototype.array = Sha256.prototype.digest; Sha256.prototype.arrayBuffer = function() { this.finalize(); var buffer = new ArrayBuffer(this.is224 ? 28 : 32); var dataView = new DataView(buffer); dataView.setUint32(0, this.h0); dataView.setUint32(4, this.h1); dataView.setUint32(8, this.h2); dataView.setUint32(12, this.h3); dataView.setUint32(16, this.h4); dataView.setUint32(20, this.h5); dataView.setUint32(24, this.h6); if (!this.is224) { dataView.setUint32(28, this.h7); } return buffer; }; function HmacSha256(key, is2242, sharedMemory) { var i, type = typeof key; if (type === "string") { var bytes = [], length = key.length, index = 0, code; for (i = 0; i < length; ++i) { code = key.charCodeAt(i); if (code < 128) { bytes[index++] = code; } else if (code < 2048) { bytes[index++] = 192 | code >> 6; bytes[index++] = 128 | code & 63; } else if (code < 55296 || code >= 57344) { bytes[index++] = 224 | code >> 12; bytes[index++] = 128 | code >> 6 & 63; bytes[index++] = 128 | code & 63; } else { code = 65536 + ((code & 1023) << 10 | key.charCodeAt(++i) & 1023); bytes[index++] = 240 | code >> 18; bytes[index++] = 128 | code >> 12 & 63; bytes[index++] = 128 | code >> 6 & 63; bytes[index++] = 128 | code & 63; } } key = bytes; } else { if (type === "object") { if (key === null) { throw new Error(ERROR); } else if (ARRAY_BUFFER && key.constructor === ArrayBuffer) { key = new Uint8Array(key); } else if (!Array.isArray(key)) { if (!ARRAY_BUFFER || !ArrayBuffer.isView(key)) { throw new Error(ERROR); } } } else { throw new Error(ERROR); } } if (key.length > 64) { key = new Sha256(is2242, true).update(key).array(); } var oKeyPad = [], iKeyPad = []; for (i = 0; i < 64; ++i) { var b = key[i] || 0; oKeyPad[i] = 92 ^ b; iKeyPad[i] = 54 ^ b; } Sha256.call(this, is2242, sharedMemory); this.update(iKeyPad); this.oKeyPad = oKeyPad; this.inner = true; this.sharedMemory = sharedMemory; } __name(HmacSha256, "HmacSha256"); HmacSha256.prototype = new Sha256(); HmacSha256.prototype.finalize = function() { Sha256.prototype.finalize.call(this); if (this.inner) { this.inner = false; var innerHash = this.array(); Sha256.call(this, this.is224, this.sharedMemory); this.update(this.oKeyPad); this.update(innerHash); Sha256.prototype.finalize.call(this); } }; var exports = createMethod(); exports.sha256 = exports; exports.sha224 = createMethod(true); exports.sha256.hmac = createHmacMethod(); exports.sha224.hmac = createHmacMethod(true); if (COMMON_JS) { module.exports = exports; } else { root.sha256 = exports.sha256; root.sha224 = exports.sha224; if (AMD) { define(function() { return exports; }); } } })(); } }); // node_modules/first-match/index.js var require_first_match = __commonJS({ "node_modules/first-match/index.js"(exports2, module2) { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function truthy(d) { return d; } __name(truthy, "truthy"); function first(array, callback, context2) { var callback = callback || truthy, context2 = context2 || array, value; for (var i = 0, l = array.length; i < l; i += 1) { if (value = callback.call(context2, array[i], i)) return array[i]; } } __name(first, "first"); module2.exports = first; } }); // node_modules/nub/index.js var require_nub = __commonJS({ "node_modules/nub/index.js"(exports2, module2) { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var nub = module2.exports = function(xs, cmp) { if (typeof xs === "function" || cmp) { return nub.by(xs, cmp); } var keys = { "object": [], "function": [], "string": {}, "number": {}, "boolean": {}, "undefined": {} }; var res = []; for (var i = 0; i < xs.length; i++) { var x = xs[i]; var recs = x === "__proto__" ? keys.objects : keys[typeof x] || keys.objects; if (Array.isArray(recs)) { if (recs.indexOf(x) < 0) { recs.push(x); res.push(x); } } else if (!Object.hasOwnProperty.call(recs, x)) { recs[x] = true; res.push(x); } } return res; }; nub.by = function(xs, cmp) { if (typeof xs === "function") { var cmp_ = cmp; cmp = xs; xs = cmp_; } var res = []; for (var i = 0; i < xs.length; i++) { var x = xs[i]; var found = false; for (var j = 0; j < res.length; j++) { var y = res[j]; if (cmp.call(res, x, y)) { found = true; break; } } if (!found) res.push(x); } return res; }; } }); // node_modules/currency-codes/data.js var require_data = __commonJS({ "node_modules/currency-codes/data.js"(exports2, module2) { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); module2.exports = [ { "code": "AED", "number": "784", "digits": 2, "currency": "UAE Dirham", "countries": [ "United Arab Emirates (The)" ] }, { "code": "AFN", "number": "971", "digits": 2, "currency": "Afghani", "countries": [ "Afghanistan" ] }, { "code": "ALL", "number": "008", "digits": 2, "currency": "Lek", "countries": [ "Albania" ] }, { "code": "AMD", "number": "051", "digits": 2, "currency": "Armenian Dram", "countries": [ "Armenia" ] }, { "code": "ANG", "number": "532", "digits": 2, "currency": "Netherlands Antillean Guilder", "countries": [ "Cura\xE7Ao", "Sint Maarten (Dutch Part)" ] }, { "code": "AOA", "number": "973", "digits": 2, "currency": "Kwanza", "countries": [ "Angola" ] }, { "code": "ARS", "number": "032", "digits": 2, "currency": "Argentine Peso", "countries": [ "Argentina" ] }, { "code": "AUD", "number": "036", "digits": 2, "currency": "Australian Dollar", "countries": [ "Australia", "Christmas Island", "Cocos (Keeling) Islands (The)", "Heard Island And Mcdonald Islands", "Kiribati", "Nauru", "Norfolk Island", "Tuvalu" ] }, { "code": "AWG", "number": "533", "digits": 2, "currency": "Aruban Florin", "countries": [ "Aruba" ] }, { "code": "AZN", "number": "944", "digits": 2, "currency": "Azerbaijan Manat", "countries": [ "Azerbaijan" ] }, { "code": "BAM", "number": "977", "digits": 2, "currency": "Convertible Mark", "countries": [ "Bosnia And Herzegovina" ] }, { "code": "BBD", "number": "052", "digits": 2, "currency": "Barbados Dollar", "countries": [ "Barbados" ] }, { "code": "BDT", "number": "050", "digits": 2, "currency": "Taka", "countries": [ "Bangladesh" ] }, { "code": "BGN", "number": "975", "digits": 2, "currency": "Bulgarian Lev", "countries": [ "Bulgaria" ] }, { "code": "BHD", "number": "048", "digits": 3, "currency": "Bahraini Dinar", "countries": [ "Bahrain" ] }, { "code": "BIF", "number": "108", "digits": 0, "currency": "Burundi Franc", "countries": [ "Burundi" ] }, { "code": "BMD", "number": "060", "digits": 2, "currency": "Bermudian Dollar", "countries": [ "Bermuda" ] }, { "code": "BND", "number": "096", "digits": 2, "currency": "Brunei Dollar", "countries": [ "Brunei Darussalam" ] }, { "code": "BOB", "number": "068", "digits": 2, "currency": "Boliviano", "countries": [ "Bolivia (Plurinational State Of)" ] }, { "code": "BOV", "number": "984", "digits": 2, "currency": "Mvdol", "countries": [ "Bolivia (Plurinational State Of)" ] }, { "code": "BRL", "number": "986", "digits": 2, "currency": "Brazilian Real", "countries": [ "Brazil" ] }, { "code": "BSD", "number": "044", "digits": 2, "currency": "Bahamian Dollar", "countries": [ "Bahamas (The)" ] }, { "code": "BTN", "number": "064", "digits": 2, "currency": "Ngultrum", "countries": [ "Bhutan" ] }, { "code": "BWP", "number": "072", "digits": 2, "currency": "Pula", "countries": [ "Botswana" ] }, { "code": "BYN", "number": "933", "digits": 2, "currency": "Belarusian Ruble", "countries": [ "Belarus" ] }, { "code": "BZD", "number": "084", "digits": 2, "currency": "Belize Dollar", "countries": [ "Belize" ] }, { "code": "CAD", "number": "124", "digits": 2, "currency": "Canadian Dollar", "countries": [ "Canada" ] }, { "code": "CDF", "number": "976", "digits": 2, "currency": "Congolese Franc", "countries": [ "Congo (The Democratic Republic Of The)" ] }, { "code": "CHE", "number": "947", "digits": 2, "currency": "WIR Euro", "countries": [ "Switzerland" ] }, { "code": "CHF", "number": "756", "digits": 2, "currency": "Swiss Franc", "countries": [ "Liechtenstein", "Switzerland" ] }, { "code": "CHW", "number": "948", "digits": 2, "currency": "WIR Franc", "countries": [ "Switzerland" ] }, { "code": "CLF", "number": "990", "digits": 4, "currency": "Unidad de Fomento", "countries": [ "Chile" ] }, { "code": "CLP", "number": "152", "digits": 0, "currency": "Chilean Peso", "countries": [ "Chile" ] }, { "code": "CNY", "number": "156", "digits": 2, "currency": "Yuan Renminbi", "countries": [ "China" ] }, { "code": "COP", "number": "170", "digits": 2, "currency": "Colombian Peso", "countries": [ "Colombia" ] }, { "code": "COU", "number": "970", "digits": 2, "currency": "Unidad de Valor Real", "countries": [ "Colombia" ] }, { "code": "CRC", "number": "188", "digits": 2, "currency": "Costa Rican Colon", "countries": [ "Costa Rica" ] }, { "code": "CUC", "number": "931", "digits": 2, "currency": "Peso Convertible", "countries": [ "Cuba" ] }, { "code": "CUP", "number": "192", "digits": 2, "currency": "Cuban Peso", "countries": [ "Cuba" ] }, { "code": "CVE", "number": "132", "digits": 2, "currency": "Cabo Verde Escudo", "countries": [ "Cabo Verde" ] }, { "code": "CZK", "number": "203", "digits": 2, "currency": "Czech Koruna", "countries": [ "Czechia" ] }, { "code": "DJF", "number": "262", "digits": 0, "currency": "Djibouti Franc", "countries": [ "Djibouti" ] }, { "code": "DKK", "number": "208", "digits": 2, "currency": "Danish Krone", "countries": [ "Denmark", "Faroe Islands (The)", "Greenland" ] }, { "code": "DOP", "number": "214", "digits": 2, "currency": "Dominican Peso", "countries": [ "Dominican Republic (The)" ] }, { "code": "DZD", "number": "012", "digits": 2, "currency": "Algerian Dinar", "countries": [ "Algeria" ] }, { "code": "EGP", "number": "818", "digits": 2, "currency": "Egyptian Pound", "countries": [ "Egypt" ] }, { "code": "ERN", "number": "232", "digits": 2, "currency": "Nakfa", "countries": [ "Eritrea" ] }, { "code": "ETB", "number": "230", "digits": 2, "currency": "Ethiopian Birr", "countries": [ "Ethiopia" ] }, { "code": "EUR", "number": "978", "digits": 2, "currency": "Euro", "countries": [ "Andorra", "Austria", "Belgium", "Cyprus", "Estonia", "European Union", "Finland", "France", "French Guiana", "French Southern Territories (The)", "Germany", "Greece", "Guadeloupe", "Holy See (The)", "Ireland", "Italy", "Latvia", "Lithuania", "Luxembourg", "Malta", "Martinique", "Mayotte", "Monaco", "Montenegro", "Netherlands (The)", "Portugal", "R\xE9union", "Saint Barth\xE9lemy", "Saint Martin (French Part)", "Saint Pierre And Miquelon", "San Marino", "Slovakia", "Slovenia", "Spain", "\xC5land Islands" ] }, { "code": "FJD", "number": "242", "digits": 2, "currency": "Fiji Dollar", "countries": [ "Fiji" ] }, { "code": "FKP", "number": "238", "digits": 2, "currency": "Falkland Islands Pound", "countries": [ "Falkland Islands (The) [Malvinas]" ] }, { "code": "GBP", "number": "826", "digits": 2, "currency": "Pound Sterling", "countries": [ "Guernsey", "Isle Of Man", "Jersey", "United Kingdom Of Great Britain And Northern Ireland (The)" ] }, { "code": "GEL", "number": "981", "digits": 2, "currency": "Lari", "countries": [ "Georgia" ] }, { "code": "GHS", "number": "936", "digits": 2, "currency": "Ghana Cedi", "countries": [ "Ghana" ] }, { "code": "GIP", "number": "292", "digits": 2, "currency": "Gibraltar Pound", "countries": [ "Gibraltar" ] }, { "code": "GMD", "number": "270", "digits": 2, "currency": "Dalasi", "countries": [ "Gambia (The)" ] }, { "code": "GNF", "number": "324", "digits": 0, "currency": "Guinean Franc", "countries": [ "Guinea" ] }, { "code": "GTQ", "number": "320", "digits": 2, "currency": "Quetzal", "countries": [ "Guatemala" ] }, { "code": "GYD", "number": "328", "digits": 2, "currency": "Guyana Dollar", "countries": [ "Guyana" ] }, { "code": "HKD", "number": "344", "digits": 2, "currency": "Hong Kong Dollar", "countries": [ "Hong Kong" ] }, { "code": "HNL", "number": "340", "digits": 2, "currency": "Lempira", "countries": [ "Honduras" ] }, { "code": "HRK", "number": "191", "digits": 2, "currency": "Kuna", "countries": [ "Croatia" ] }, { "code": "HTG", "number": "332", "digits": 2, "currency": "Gourde", "countries": [ "Haiti" ] }, { "code": "HUF", "number": "348", "digits": 2, "currency": "Forint", "countries": [ "Hungary" ] }, { "code": "IDR", "number": "360", "digits": 2, "currency": "Rupiah", "countries": [ "Indonesia" ] }, { "code": "ILS", "number": "376", "digits": 2, "currency": "New Israeli Sheqel", "countries": [ "Israel" ] }, { "code": "INR", "number": "356", "digits": 2, "currency": "Indian Rupee", "countries": [ "Bhutan", "India" ] }, { "code": "IQD", "number": "368", "digits": 3, "currency": "Iraqi Dinar", "countries": [ "Iraq" ] }, { "code": "IRR", "number": "364", "digits": 2, "currency": "Iranian Rial", "countries": [ "Iran (Islamic Republic Of)" ] }, { "code": "ISK", "number": "352", "digits": 0, "currency": "Iceland Krona", "countries": [ "Iceland" ] }, { "code": "JMD", "number": "388", "digits": 2, "currency": "Jamaican Dollar", "countries": [ "Jamaica" ] }, { "code": "JOD", "number": "400", "digits": 3, "currency": "Jordanian Dinar", "countries": [ "Jordan" ] }, { "code": "JPY", "number": "392", "digits": 0, "currency": "Yen", "countries": [ "Japan" ] }, { "code": "KES", "number": "404", "digits": 2, "currency": "Kenyan Shilling", "countries": [ "Kenya" ] }, { "code": "KGS", "number": "417", "digits": 2, "currency": "Som", "countries": [ "Kyrgyzstan" ] }, { "code": "KHR", "number": "116", "digits": 2, "currency": "Riel", "countries": [ "Cambodia" ] }, { "code": "KMF", "number": "174", "digits": 0, "currency": "Comorian Franc ", "countries": [ "Comoros (The)" ] }, { "code": "KPW", "number": "408", "digits": 2, "currency": "North Korean Won", "countries": [ "Korea (The Democratic People's Republic Of)" ] }, { "code": "KRW", "number": "410", "digits": 0, "currency": "Won", "countries": [ "Korea (The Republic Of)" ] }, { "code": "KWD", "number": "414", "digits": 3, "currency": "Kuwaiti Dinar", "countries": [ "Kuwait" ] }, { "code": "KYD", "number": "136", "digits": 2, "currency": "Cayman Islands Dollar", "countries": [ "Cayman Islands (The)" ] }, { "code": "KZT", "number": "398", "digits": 2, "currency": "Tenge", "countries": [ "Kazakhstan" ] }, { "code": "LAK", "number": "418", "digits": 2, "currency": "Lao Kip", "countries": [ "Lao People's Democratic Republic (The)" ] }, { "code": "LBP", "number": "422", "digits": 2, "currency": "Lebanese Pound", "countries": [ "Lebanon" ] }, { "code": "LKR", "number": "144", "digits": 2, "currency": "Sri Lanka Rupee", "countries": [ "Sri Lanka" ] }, { "code": "LRD", "number": "430", "digits": 2, "currency": "Liberian Dollar", "countries": [ "Liberia" ] }, { "code": "LSL", "number": "426", "digits": 2, "currency": "Loti", "countries": [ "Lesotho" ] }, { "code": "LYD", "number": "434", "digits": 3, "currency": "Libyan Dinar", "countries": [ "Libya" ] }, { "code": "MAD", "number": "504", "digits": 2, "currency": "Moroccan Dirham", "countries": [ "Morocco", "Western Sahara" ] }, { "code": "MDL", "number": "498", "digits": 2, "currency": "Moldovan Leu", "countries": [ "Moldova (The Republic Of)" ] }, { "code": "MGA", "number": "969", "digits": 2, "currency": "Malagasy Ariary", "countries": [ "Madagascar" ] }, { "code": "MKD", "number": "807", "digits": 2, "currency": "Denar", "countries": [ "Macedonia (The Former Yugoslav Republic Of)" ] }, { "code": "MMK", "number": "104", "digits": 2, "currency": "Kyat", "countries": [ "Myanmar" ] }, { "code": "MNT", "number": "496", "digits": 2, "currency": "Tugrik", "countries": [ "Mongolia" ] }, { "code": "MOP", "number": "446", "digits": 2, "currency": "Pataca", "countries": [ "Macao" ] }, { "code": "MRU", "number": "929", "digits": 2, "currency": "Ouguiya", "countries": [ "Mauritania" ] }, { "code": "MUR", "number": "480", "digits": 2, "currency": "Mauritius Rupee", "countries": [ "Mauritius" ] }, { "code": "MVR", "number": "462", "digits": 2, "currency": "Rufiyaa", "countries": [ "Maldives" ] }, { "code": "MWK", "number": "454", "digits": 2, "currency": "Malawi Kwacha", "countries": [ "Malawi" ] }, { "code": "MXN", "number": "484", "digits": 2, "currency": "Mexican Peso", "countries": [ "Mexico" ] }, { "code": "MXV", "number": "979", "digits": 2, "currency": "Mexican Unidad de Inversion (UDI)", "countries": [ "Mexico" ] }, { "code": "MYR", "number": "458", "digits": 2, "currency": "Malaysian Ringgit", "countries": [ "Malaysia" ] }, { "code": "MZN", "number": "943", "digits": 2, "currency": "Mozambique Metical", "countries": [ "Mozambique" ] }, { "code": "NAD", "number": "516", "digits": 2, "currency": "Namibia Dollar", "countries": [ "Namibia" ] }, { "code": "NGN", "number": "566", "digits": 2, "currency": "Naira", "countries": [ "Nigeria" ] }, { "code": "NIO", "number": "558", "digits": 2, "currency": "Cordoba Oro", "countries": [ "Nicaragua" ] }, { "code": "NOK", "number": "578", "digits": 2, "currency": "Norwegian Krone", "countries": [ "Bouvet Island", "Norway", "Svalbard And Jan Mayen" ] }, { "code": "NPR", "number": "524", "digits": 2, "currency": "Nepalese Rupee", "countries": [ "Nepal" ] }, { "code": "NZD", "number": "554", "digits": 2, "currency": "New Zealand Dollar", "countries": [ "Cook Islands (The)", "New Zealand", "Niue", "Pitcairn", "Tokelau" ] }, { "code": "OMR", "number": "512", "digits": 3, "currency": "Rial Omani", "countries": [ "Oman" ] }, { "code": "PAB", "number": "590", "digits": 2, "currency": "Balboa", "countries": [ "Panama" ] }, { "code": "PEN", "number": "604", "digits": 2, "currency": "Sol", "countries": [ "Peru" ] }, { "code": "PGK", "number": "598", "digits": 2, "currency": "Kina", "countries": [ "Papua New Guinea" ] }, { "code": "PHP", "number": "608", "digits": 2, "currency": "Philippine Piso", "countries": [ "Philippines (The)" ] }, { "code": "PKR", "number": "586", "digits": 2, "currency": "Pakistan Rupee", "countries": [ "Pakistan" ] }, { "code": "PLN", "number": "985", "digits": 2, "currency": "Zloty", "countries": [ "Poland" ] }, { "code": "PYG", "number": "600", "digits": 0, "currency": "Guarani", "countries": [ "Paraguay" ] }, { "code": "QAR", "number": "634", "digits": 2, "currency": "Qatari Rial", "countries": [ "Qatar" ] }, { "code": "RON", "number": "946", "digits": 2, "currency": "Romanian Leu", "countries": [ "Romania" ] }, { "code": "RSD", "number": "941", "digits": 2, "currency": "Serbian Dinar", "countries": [ "Serbia" ] }, { "code": "RUB", "number": "643", "digits": 2, "currency": "Russian Ruble", "countries": [ "Russian Federation (The)" ] }, { "code": "RWF", "number": "646", "digits": 0, "currency": "Rwanda Franc", "countries": [ "Rwanda" ] }, { "code": "SAR", "number": "682", "digits": 2, "currency": "Saudi Riyal", "countries": [ "Saudi Arabia" ] }, { "code": "SBD", "number": "090", "digits": 2, "currency": "Solomon Islands Dollar", "countries": [ "Solomon Islands" ] }, { "code": "SCR", "number": "690", "digits": 2, "currency": "Seychelles Rupee", "countries": [ "Seychelles" ] }, { "code": "SDG", "number": "938", "digits": 2, "currency": "Sudanese Pound", "countries": [ "Sudan (The)" ] }, { "code": "SEK", "number": "752", "digits": 2, "currency": "Swedish Krona", "countries": [ "Sweden" ] }, { "code": "SGD", "number": "702", "digits": 2, "currency": "Singapore Dollar", "countries": [ "Singapore" ] }, { "code": "SHP", "number": "654", "digits": 2, "currency": "Saint Helena Pound", "countries": [ "Saint Helena, Ascension And Tristan Da Cunha" ] }, { "code": "SLL", "number": "694", "digits": 2, "currency": "Leone", "countries": [ "Sierra Leone" ] }, { "code": "SOS", "number": "706", "digits": 2, "currency": "Somali Shilling", "countries": [ "Somalia" ] }, { "code": "SRD", "number": "968", "digits": 2, "currency": "Surinam Dollar", "countries": [ "Suriname" ] }, { "code": "SSP", "number": "728", "digits": 2, "currency": "South Sudanese Pound", "countries": [ "South Sudan" ] }, { "code": "STN", "number": "930", "digits": 2, "currency": "Dobra", "countries": [ "Sao Tome And Principe" ] }, { "code": "SVC", "number": "222", "digits": 2, "currency": "El Salvador Colon", "countries": [ "El Salvador" ] }, { "code": "SYP", "number": "760", "digits": 2, "currency": "Syrian Pound", "countries": [ "Syrian Arab Republic" ] }, { "code": "SZL", "number": "748", "digits": 2, "currency": "Lilangeni", "countries": [ "Swaziland" ] }, { "code": "THB", "number": "764", "digits": 2, "currency": "Baht", "countries": [ "Thailand" ] }, { "code": "TJS", "number": "972", "digits": 2, "currency": "Somoni", "countries": [ "Tajikistan" ] }, { "code": "TMT", "number": "934", "digits": 2, "currency": "Turkmenistan New Manat", "countries": [ "Turkmenistan" ] }, { "code": "TND", "number": "788", "digits": 3, "currency": "Tunisian Dinar", "countries": [ "Tunisia" ] }, { "code": "TOP", "number": "776", "digits": 2, "currency": "Pa'anga", "countries": [ "Tonga" ] }, { "code": "TRY", "number": "949", "digits": 2, "currency": "Turkish Lira", "countries": [ "Turkey" ] }, { "code": "TTD", "number": "780", "digits": 2, "currency": "Trinidad and Tobago Dollar", "countries": [ "Trinidad And Tobago" ] }, { "code": "TWD", "number": "901", "digits": 2, "currency": "New Taiwan Dollar", "countries": [ "Taiwan (Province Of China)" ] }, { "code": "TZS", "number": "834", "digits": 2, "currency": "Tanzanian Shilling", "countries": [ "Tanzania, United Republic Of" ] }, { "code": "UAH", "number": "980", "digits": 2, "currency": "Hryvnia", "countries": [ "Ukraine" ] }, { "code": "UGX", "number": "800", "digits": 0, "currency": "Uganda Shilling", "countries": [ "Uganda" ] }, { "code": "USD", "number": "840", "digits": 2, "currency": "US Dollar", "countries": [ "American Samoa", "Bonaire, Sint Eustatius And Saba", "British Indian Ocean Territory (The)", "Ecuador", "El Salvador", "Guam", "Haiti", "Marshall Islands (The)", "Micronesia (Federated States Of)", "Northern Mariana Islands (The)", "Palau", "Panama", "Puerto Rico", "Timor-Leste", "Turks And Caicos Islands (The)", "United States Minor Outlying Islands (The)", "United States Of America (The)", "Virgin Islands (British)", "Virgin Islands (U.S.)" ] }, { "code": "USN", "number": "997", "digits": 2, "currency": "US Dollar (Next day)", "countries": [ "United States Of America (The)" ] }, { "code": "UYI", "number": "940", "digits": 0, "currency": "Uruguay Peso en Unidades Indexadas (URUIURUI)", "countries": [ "Uruguay" ] }, { "code": "UYU", "number": "858", "digits": 2, "currency": "Peso Uruguayo", "countries": [ "Uruguay" ] }, { "code": "UZS", "number": "860", "digits": 2, "currency": "Uzbekistan Sum", "countries": [ "Uzbekistan" ] }, { "code": "VEF", "number": "937", "digits": 2, "currency": "Bol\xEDvar", "countries": [ "Venezuela (Bolivarian Republic Of)" ] }, { "code": "VND", "number": "704", "digits": 0, "currency": "Dong", "countries": [ "Viet Nam" ] }, { "code": "VUV", "number": "548", "digits": 0, "currency": "Vatu", "countries": [ "Vanuatu" ] }, { "code": "WST", "number": "882", "digits": 2, "currency": "Tala", "countries": [ "Samoa" ] }, { "code": "XAF", "number": "950", "digits": 0, "currency": "CFA Franc BEAC", "countries": [ "Cameroon", "Central African Republic (The)", "Chad", "Congo (The)", "Equatorial Guinea", "Gabon" ] }, { "code": "XAG", "number": "961", "digits": 0, "currency": "Silver", "countries": [] }, { "code": "XAU", "number": "959", "digits": 0, "currency": "Gold", "countries": [] }, { "code": "XBA", "number": "955", "digits": 0, "currency": "Bond Markets Unit European Composite Unit (EURCO)", "countries": [] }, { "code": "XBB", "number": "956", "digits": 0, "currency": "Bond Markets Unit European Monetary Unit (E.M.U.-6)", "countries": [] }, { "code": "XBC", "number": "957", "digits": 0, "currency": "Bond Markets Unit European Unit of Account 9 (E.U.A.-9)", "countries": [] }, { "code": "XBD", "number": "958", "digits": 0, "currency": "Bond Markets Unit European Unit of Account 17 (E.U.A.-17)", "countries": [] }, { "code": "XCD", "number": "951", "digits": 2, "currency": "East Caribbean Dollar", "countries": [ "Anguilla", "Antigua And Barbuda", "Dominica", "Grenada", "Montserrat", "Saint Kitts And Nevis", "Saint Lucia", "Saint Vincent And The Grenadines" ] }, { "code": "XDR", "number": "960", "digits": 0, "currency": "SDR (Special Drawing Right)", "countries": [ "International Monetary Fund (Imf) " ] }, { "code": "XOF", "number": "952", "digits": 0, "currency": "CFA Franc BCEAO", "countries": [ "Benin", "Burkina Faso", "C\xF4te d'Ivoire", "Guinea-Bissau", "Mali", "Niger (The)", "Senegal", "Togo" ] }, { "code": "XPD", "number": "964", "digits": 0, "currency": "Palladium", "countries": [] }, { "code": "XPF", "number": "953", "digits": 0, "currency": "CFP Franc", "countries": [ "French Polynesia", "New Caledonia", "Wallis And Futuna" ] }, { "code": "XPT", "number": "962", "digits": 0, "currency": "Platinum", "countries": [] }, { "code": "XSU", "number": "994", "digits": 0, "currency": "Sucre", "countries": [ 'Sistema Unitario De Compensacion Regional De Pagos "Sucre"' ] }, { "code": "XTS", "number": "963", "digits": 0, "currency": "Codes specifically reserved for testing purposes", "countries": [] }, { "code": "XUA", "number": "965", "digits": 0, "currency": "ADB Unit of Account", "countries": [ "Member Countries Of The African Development Bank Group" ] }, { "code": "XXX", "number": "999", "digits": 0, "currency": "The codes assigned for transactions where no currency is involved", "countries": [] }, { "code": "YER", "number": "886", "digits": 2, "currency": "Yemeni Rial", "countries": [ "Yemen" ] }, { "code": "ZAR", "number": "710", "digits": 2, "currency": "Rand", "countries": [ "Lesotho", "Namibia", "South Africa" ] }, { "code": "ZMW", "number": "967", "digits": 2, "currency": "Zambian Kwacha", "countries": [ "Zambia" ] }, { "code": "ZWL", "number": "932", "digits": 2, "currency": "Zimbabwe Dollar", "countries": [ "Zimbabwe" ] } ]; } }); // node_modules/currency-codes/index.js var require_currency_codes = __commonJS({ "node_modules/currency-codes/index.js"(exports2) { init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var first = require_first_match(); var nub = require_nub(); var data = require_data(); var code = /* @__PURE__ */ __name(function(code2) { code2 = code2.toUpperCase(); return first(data, function(c) { return c.code === code2; }); }, "code"); var country = /* @__PURE__ */ __name(function(country2) { country2 = country2.toLowerCase(); return data.filter(function(c) { return (c.countries.map(function(c2) { return c2.toLowerCase(); }) || []).indexOf(country2) > -1; }); }, "country"); var number = /* @__PURE__ */ __name(function(number2) { return first(data, function(c) { return c.number === String(number2); }); }, "number"); var codes = /* @__PURE__ */ __name(function() { return data.map(function(c) { return c.code; }); }, "codes"); var numbers = /* @__PURE__ */ __name(function() { var items = data.map(function(c) { return c.number; }); return items.filter(function(n) { if (n) { return n; } }); }, "numbers"); var countries = /* @__PURE__ */ __name(function() { var m = data.filter(function(c) { return c.countries; }).map(function(c) { return c.countries; }); return nub(Array.prototype.concat.apply([], m)); }, "countries"); exports2.code = code; exports2.country = country; exports2.number = number; exports2.codes = codes; exports2.numbers = numbers; exports2.countries = countries; } }); // node_modules/iso-3166-1/dist/iso-3166.js var require_iso_3166 = __commonJS({ "node_modules/iso-3166-1/dist/iso-3166.js"(exports2) { "use strict"; init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); Object.defineProperty(exports2, "__esModule", { value: true }); var countries = [ { country: "Afghanistan", alpha2: "AF", alpha3: "AFG", numeric: "004" }, { country: "\xC5land Islands", alpha2: "AX", alpha3: "ALA", numeric: "248" }, { country: "Albania", alpha2: "AL", alpha3: "ALB", numeric: "008" }, { country: "Algeria", alpha2: "DZ", alpha3: "DZA", numeric: "012" }, { country: "American Samoa", alpha2: "AS", alpha3: "ASM", numeric: "016" }, { country: "Andorra", alpha2: "AD", alpha3: "AND", numeric: "020" }, { country: "Angola", alpha2: "AO", alpha3: "AGO", numeric: "024" }, { country: "Anguilla", alpha2: "AI", alpha3: "AIA", numeric: "660" }, { country: "Antarctica", alpha2: "AQ", alpha3: "ATA", numeric: "010" }, { country: "Antigua and Barbuda", alpha2: "AG", alpha3: "ATG", numeric: "028" }, { country: "Argentina", alpha2: "AR", alpha3: "ARG", numeric: "032" }, { country: "Armenia", alpha2: "AM", alpha3: "ARM", numeric: "051" }, { country: "Aruba", alpha2: "AW", alpha3: "ABW", numeric: "533" }, { country: "Australia", alpha2: "AU", alpha3: "AUS", numeric: "036" }, { country: "Austria", alpha2: "AT", alpha3: "AUT", numeric: "040" }, { country: "Azerbaijan", alpha2: "AZ", alpha3: "AZE", numeric: "031" }, { country: "Bahamas", alpha2: "BS", alpha3: "BHS", numeric: "044" }, { country: "Bahrain", alpha2: "BH", alpha3: "BHR", numeric: "048" }, { country: "Bangladesh", alpha2: "BD", alpha3: "BGD", numeric: "050" }, { country: "Barbados", alpha2: "BB", alpha3: "BRB", numeric: "052" }, { country: "Belarus", alpha2: "BY", alpha3: "BLR", numeric: "112" }, { country: "Belgium", alpha2: "BE", alpha3: "BEL", numeric: "056" }, { country: "Belize", alpha2: "BZ", alpha3: "BLZ", numeric: "084" }, { country: "Benin", alpha2: "BJ", alpha3: "BEN", numeric: "204" }, { country: "Bermuda", alpha2: "BM", alpha3: "BMU", numeric: "060" }, { country: "Bhutan", alpha2: "BT", alpha3: "BTN", numeric: "064" }, { country: "Bolivia", alpha2: "BO", alpha3: "BOL", numeric: "068" }, { country: "Bonaire, Sint Eustatius and Saba", alpha2: "BQ", alpha3: "BES", numeric: "535" }, { country: "Bosnia and Herzegovina", alpha2: "BA", alpha3: "BIH", numeric: "070" }, { country: "Botswana", alpha2: "BW", alpha3: "BWA", numeric: "072" }, { country: "Bouvet Island", alpha2: "BV", alpha3: "BVT", numeric: "074" }, { country: "Brazil", alpha2: "BR", alpha3: "BRA", numeric: "076" }, { country: "British Indian Ocean Territory", alpha2: "IO", alpha3: "IOT", numeric: "086" }, { country: "Brunei Darussalam", alpha2: "BN", alpha3: "BRN", numeric: "096" }, { country: "Bulgaria", alpha2: "BG", alpha3: "BGR", numeric: "100" }, { country: "Burkina Faso", alpha2: "BF", alpha3: "BFA", numeric: "854" }, { country: "Burundi", alpha2: "BI", alpha3: "BDI", numeric: "108" }, { country: "Cabo Verde", alpha2: "CV", alpha3: "CPV", numeric: "132" }, { country: "Cambodia", alpha2: "KH", alpha3: "KHM", numeric: "116" }, { country: "Cameroon", alpha2: "CM", alpha3: "CMR", numeric: "120" }, { country: "Canada", alpha2: "CA", alpha3: "CAN", numeric: "124" }, { country: "Cayman Islands", alpha2: "KY", alpha3: "CYM", numeric: "136" }, { country: "Central African Republic", alpha2: "CF", alpha3: "CAF", numeric: "140" }, { country: "Chad", alpha2: "TD", alpha3: "TCD", numeric: "148" }, { country: "Chile", alpha2: "CL", alpha3: "CHL", numeric: "152" }, { country: "China", alpha2: "CN", alpha3: "CHN", numeric: "156" }, { country: "Christmas Island", alpha2: "CX", alpha3: "CXR", numeric: "162" }, { country: "Cocos Islands", alpha2: "CC", alpha3: "CCK", numeric: "166" }, { country: "Colombia", alpha2: "CO", alpha3: "COL", numeric: "170" }, { country: "Comoros", alpha2: "KM", alpha3: "COM", numeric: "174" }, { country: "Congo", alpha2: "CG", alpha3: "COG", numeric: "178" }, { country: "Congo", alpha2: "CD", alpha3: "COD", numeric: "180" }, { country: "Cook Islands", alpha2: "CK", alpha3: "COK", numeric: "184" }, { country: "Costa Rica", alpha2: "CR", alpha3: "CRI", numeric: "188" }, { country: "C\xF4te d'Ivoire", alpha2: "CI", alpha3: "CIV", numeric: "384" }, { country: "Croatia", alpha2: "HR", alpha3: "HRV", numeric: "191" }, { country: "Cuba", alpha2: "CU", alpha3: "CUB", numeric: "192" }, { country: "Cura\xE7ao", alpha2: "CW", alpha3: "CUW", numeric: "531" }, { country: "Cyprus", alpha2: "CY", alpha3: "CYP", numeric: "196" }, { country: "Czech Republic", alpha2: "CZ", alpha3: "CZE", numeric: "203" }, { country: "Denmark", alpha2: "DK", alpha3: "DNK", numeric: "208" }, { country: "Djibouti", alpha2: "DJ", alpha3: "DJI", numeric: "262" }, { country: "Dominica", alpha2: "DM", alpha3: "DMA", numeric: "212" }, { country: "Dominican Republic", alpha2: "DO", alpha3: "DOM", numeric: "214" }, { country: "Ecuador", alpha2: "EC", alpha3: "ECU", numeric: "218" }, { country: "Egypt", alpha2: "EG", alpha3: "EGY", numeric: "818" }, { country: "El Salvador", alpha2: "SV", alpha3: "SLV", numeric: "222" }, { country: "Equatorial Guinea", alpha2: "GQ", alpha3: "GNQ", numeric: "226" }, { country: "Eritrea", alpha2: "ER", alpha3: "ERI", numeric: "232" }, { country: "Estonia", alpha2: "EE", alpha3: "EST", numeric: "233" }, { country: "Ethiopia", alpha2: "ET", alpha3: "ETH", numeric: "231" }, { country: "Falkland Islands", alpha2: "FK", alpha3: "FLK", numeric: "238" }, { country: "Faroe Islands", alpha2: "FO", alpha3: "FRO", numeric: "234" }, { country: "Fiji", alpha2: "FJ", alpha3: "FJI", numeric: "242" }, { country: "Finland", alpha2: "FI", alpha3: "FIN", numeric: "246" }, { country: "France", alpha2: "FR", alpha3: "FRA", numeric: "250" }, { country: "French Guiana", alpha2: "GF", alpha3: "GUF", numeric: "254" }, { country: "French Polynesia", alpha2: "PF", alpha3: "PYF", numeric: "258" }, { country: "French Southern Territories", alpha2: "TF", alpha3: "ATF", numeric: "260" }, { country: "Gabon", alpha2: "GA", alpha3: "GAB", numeric: "266" }, { country: "Gambia", alpha2: "GM", alpha3: "GMB", numeric: "270" }, { country: "Georgia", alpha2: "GE", alpha3: "GEO", numeric: "268" }, { country: "Germany", alpha2: "DE", alpha3: "DEU", numeric: "276" }, { country: "Ghana", alpha2: "GH", alpha3: "GHA", numeric: "288" }, { country: "Gibraltar", alpha2: "GI", alpha3: "GIB", numeric: "292" }, { country: "Greece", alpha2: "GR", alpha3: "GRC", numeric: "300" }, { country: "Greenland", alpha2: "GL", alpha3: "GRL", numeric: "304" }, { country: "Grenada", alpha2: "GD", alpha3: "GRD", numeric: "308" }, { country: "Guadeloupe", alpha2: "GP", alpha3: "GLP", numeric: "312" }, { country: "Guam", alpha2: "GU", alpha3: "GUM", numeric: "316" }, { country: "Guatemala", alpha2: "GT", alpha3: "GTM", numeric: "320" }, { country: "Guernsey", alpha2: "GG", alpha3: "GGY", numeric: "831" }, { country: "Guinea", alpha2: "GN", alpha3: "GIN", numeric: "324" }, { country: "Guinea-Bissau", alpha2: "GW", alpha3: "GNB", numeric: "624" }, { country: "Guyana", alpha2: "GY", alpha3: "GUY", numeric: "328" }, { country: "Haiti", alpha2: "HT", alpha3: "HTI", numeric: "332" }, { country: "Heard Island and McDonald Islands", alpha2: "HM", alpha3: "HMD", numeric: "334" }, { country: "Holy See", alpha2: "VA", alpha3: "VAT", numeric: "336" }, { country: "Honduras", alpha2: "HN", alpha3: "HND", numeric: "340" }, { country: "Hong Kong", alpha2: "HK", alpha3: "HKG", numeric: "344" }, { country: "Hungary", alpha2: "HU", alpha3: "HUN", numeric: "348" }, { country: "Iceland", alpha2: "IS", alpha3: "ISL", numeric: "352" }, { country: "India", alpha2: "IN", alpha3: "IND", numeric: "356" }, { country: "Indonesia", alpha2: "ID", alpha3: "IDN", numeric: "360" }, { country: "Islamic Republic of Iran", alpha2: "IR", alpha3: "IRN", numeric: "364" }, { country: "Iraq", alpha2: "IQ", alpha3: "IRQ", numeric: "368" }, { country: "Ireland", alpha2: "IE", alpha3: "IRL", numeric: "372" }, { country: "Isle of Man", alpha2: "IM", alpha3: "IMN", numeric: "833" }, { country: "Israel", alpha2: "IL", alpha3: "ISR", numeric: "376" }, { country: "Italy", alpha2: "IT", alpha3: "ITA", numeric: "380" }, { country: "Jamaica", alpha2: "JM", alpha3: "JAM", numeric: "388" }, { country: "Japan", alpha2: "JP", alpha3: "JPN", numeric: "392" }, { country: "Jersey", alpha2: "JE", alpha3: "JEY", numeric: "832" }, { country: "Jordan", alpha2: "JO", alpha3: "JOR", numeric: "400" }, { country: "Kazakhstan", alpha2: "KZ", alpha3: "KAZ", numeric: "398" }, { country: "Kenya", alpha2: "KE", alpha3: "KEN", numeric: "404" }, { country: "Kiribati", alpha2: "KI", alpha3: "KIR", numeric: "296" }, { country: "Democratic People's Republic of Korea", alpha2: "KP", alpha3: "PRK", numeric: "408" }, { country: "Republic of Korea", alpha2: "KR", alpha3: "KOR", numeric: "410" }, { country: "Kuwait", alpha2: "KW", alpha3: "KWT", numeric: "414" }, { country: "Kyrgyzstan", alpha2: "KG", alpha3: "KGZ", numeric: "417" }, { country: "Lao People's Democratic Republic", alpha2: "LA", alpha3: "LAO", numeric: "418" }, { country: "Latvia", alpha2: "LV", alpha3: "LVA", numeric: "428" }, { country: "Lebanon", alpha2: "LB", alpha3: "LBN", numeric: "422" }, { country: "Lesotho", alpha2: "LS", alpha3: "LSO", numeric: "426" }, { country: "Liberia", alpha2: "LR", alpha3: "LBR", numeric: "430" }, { country: "Libya", alpha2: "LY", alpha3: "LBY", numeric: "434" }, { country: "Liechtenstein", alpha2: "LI", alpha3: "LIE", numeric: "438" }, { country: "Lithuania", alpha2: "LT", alpha3: "LTU", numeric: "440" }, { country: "Luxembourg", alpha2: "LU", alpha3: "LUX", numeric: "442" }, { country: "Macao", alpha2: "MO", alpha3: "MAC", numeric: "446" }, { country: "Macedonia", alpha2: "MK", alpha3: "MKD", numeric: "807" }, { country: "Madagascar", alpha2: "MG", alpha3: "MDG", numeric: "450" }, { country: "Malawi", alpha2: "MW", alpha3: "MWI", numeric: "454" }, { country: "Malaysia", alpha2: "MY", alpha3: "MYS", numeric: "458" }, { country: "Maldives", alpha2: "MV", alpha3: "MDV", numeric: "462" }, { country: "Mali", alpha2: "ML", alpha3: "MLI", numeric: "466" }, { country: "Malta", alpha2: "MT", alpha3: "MLT", numeric: "470" }, { country: "Marshall Islands", alpha2: "MH", alpha3: "MHL", numeric: "584" }, { country: "Martinique", alpha2: "MQ", alpha3: "MTQ", numeric: "474" }, { country: "Mauritania", alpha2: "MR", alpha3: "MRT", numeric: "478" }, { country: "Mauritius", alpha2: "MU", alpha3: "MUS", numeric: "480" }, { country: "Mayotte", alpha2: "YT", alpha3: "MYT", numeric: "175" }, { country: "Mexico", alpha2: "MX", alpha3: "MEX", numeric: "484" }, { country: "Federated States of Micronesia", alpha2: "FM", alpha3: "FSM", numeric: "583" }, { country: "Republic of Moldova", alpha2: "MD", alpha3: "MDA", numeric: "498" }, { country: "Monaco", alpha2: "MC", alpha3: "MCO", numeric: "492" }, { country: "Mongolia", alpha2: "MN", alpha3: "MNG", numeric: "496" }, { country: "Montenegro", alpha2: "ME", alpha3: "MNE", numeric: "499" }, { country: "Montserrat", alpha2: "MS", alpha3: "MSR", numeric: "500" }, { country: "Morocco", alpha2: "MA", alpha3: "MAR", numeric: "504" }, { country: "Mozambique", alpha2: "MZ", alpha3: "MOZ", numeric: "508" }, { country: "Myanmar", alpha2: "MM", alpha3: "MMR", numeric: "104" }, { country: "Namibia", alpha2: "NA", alpha3: "NAM", numeric: "516" }, { country: "Nauru", alpha2: "NR", alpha3: "NRU", numeric: "520" }, { country: "Nepal", alpha2: "NP", alpha3: "NPL", numeric: "524" }, { country: "Netherlands", alpha2: "NL", alpha3: "NLD", numeric: "528" }, { country: "New Caledonia", alpha2: "NC", alpha3: "NCL", numeric: "540" }, { country: "New Zealand", alpha2: "NZ", alpha3: "NZL", numeric: "554" }, { country: "Nicaragua", alpha2: "NI", alpha3: "NIC", numeric: "558" }, { country: "Niger", alpha2: "NE", alpha3: "NER", numeric: "562" }, { country: "Nigeria", alpha2: "NG", alpha3: "NGA", numeric: "566" }, { country: "Niue", alpha2: "NU", alpha3: "NIU", numeric: "570" }, { country: "Norfolk Island", alpha2: "NF", alpha3: "NFK", numeric: "574" }, { country: "Northern Mariana Islands", alpha2: "MP", alpha3: "MNP", numeric: "580" }, { country: "Norway", alpha2: "NO", alpha3: "NOR", numeric: "578" }, { country: "Oman", alpha2: "OM", alpha3: "OMN", numeric: "512" }, { country: "Pakistan", alpha2: "PK", alpha3: "PAK", numeric: "586" }, { country: "Palau", alpha2: "PW", alpha3: "PLW", numeric: "585" }, { country: "State of Palestine", alpha2: "PS", alpha3: "PSE", numeric: "275" }, { country: "Panama", alpha2: "PA", alpha3: "PAN", numeric: "591" }, { country: "Papua New Guinea", alpha2: "PG", alpha3: "PNG", numeric: "598" }, { country: "Paraguay", alpha2: "PY", alpha3: "PRY", numeric: "600" }, { country: "Peru", alpha2: "PE", alpha3: "PER", numeric: "604" }, { country: "Philippines", alpha2: "PH", alpha3: "PHL", numeric: "608" }, { country: "Pitcairn", alpha2: "PN", alpha3: "PCN", numeric: "612" }, { country: "Poland", alpha2: "PL", alpha3: "POL", numeric: "616" }, { country: "Portugal", alpha2: "PT", alpha3: "PRT", numeric: "620" }, { country: "Puerto Rico", alpha2: "PR", alpha3: "PRI", numeric: "630" }, { country: "Qatar", alpha2: "QA", alpha3: "QAT", numeric: "634" }, { country: "R\xE9union", alpha2: "RE", alpha3: "REU", numeric: "638" }, { country: "Romania", alpha2: "RO", alpha3: "ROU", numeric: "642" }, { country: "Russian Federation", alpha2: "RU", alpha3: "RUS", numeric: "643" }, { country: "Rwanda", alpha2: "RW", alpha3: "RWA", numeric: "646" }, { country: "Saint Barth\xE9lemy", alpha2: "BL", alpha3: "BLM", numeric: "652" }, { country: "Saint Helena, Ascension and Tristan da Cunha", alpha2: "SH", alpha3: "SHN", numeric: "654" }, { country: "Saint Kitts and Nevis", alpha2: "KN", alpha3: "KNA", numeric: "659" }, { country: "Saint Lucia", alpha2: "LC", alpha3: "LCA", numeric: "662" }, { country: "Saint Martin", alpha2: "MF", alpha3: "MAF", numeric: "663" }, { country: "Saint Pierre and Miquelon", alpha2: "PM", alpha3: "SPM", numeric: "666" }, { country: "Saint Vincent and the Grenadines", alpha2: "VC", alpha3: "VCT", numeric: "670" }, { country: "Samoa", alpha2: "WS", alpha3: "WSM", numeric: "882" }, { country: "San Marino", alpha2: "SM", alpha3: "SMR", numeric: "674" }, { country: "Sao Tome and Principe", alpha2: "ST", alpha3: "STP", numeric: "678" }, { country: "Saudi Arabia", alpha2: "SA", alpha3: "SAU", numeric: "682" }, { country: "Senegal", alpha2: "SN", alpha3: "SEN", numeric: "686" }, { country: "Serbia", alpha2: "RS", alpha3: "SRB", numeric: "688" }, { country: "Seychelles", alpha2: "SC", alpha3: "SYC", numeric: "690" }, { country: "Sierra Leone", alpha2: "SL", alpha3: "SLE", numeric: "694" }, { country: "Singapore", alpha2: "SG", alpha3: "SGP", numeric: "702" }, { country: "Sint Maarten", alpha2: "SX", alpha3: "SXM", numeric: "534" }, { country: "Slovakia", alpha2: "SK", alpha3: "SVK", numeric: "703" }, { country: "Slovenia", alpha2: "SI", alpha3: "SVN", numeric: "705" }, { country: "Solomon Islands", alpha2: "SB", alpha3: "SLB", numeric: "090" }, { country: "Somalia", alpha2: "SO", alpha3: "SOM", numeric: "706" }, { country: "South Africa", alpha2: "ZA", alpha3: "ZAF", numeric: "710" }, { country: "South Georgia and the South Sandwich Islands", alpha2: "GS", alpha3: "SGS", numeric: "239" }, { country: "South Sudan", alpha2: "SS", alpha3: "SSD", numeric: "728" }, { country: "Spain", alpha2: "ES", alpha3: "ESP", numeric: "724" }, { country: "Sri Lanka", alpha2: "LK", alpha3: "LKA", numeric: "144" }, { country: "Sudan", alpha2: "SD", alpha3: "SDN", numeric: "729" }, { country: "Suriname", alpha2: "SR", alpha3: "SUR", numeric: "740" }, { country: "Svalbard and Jan Mayen", alpha2: "SJ", alpha3: "SJM", numeric: "744" }, { country: "Swaziland", alpha2: "SZ", alpha3: "SWZ", numeric: "748" }, { country: "Sweden", alpha2: "SE", alpha3: "SWE", numeric: "752" }, { country: "Switzerland", alpha2: "CH", alpha3: "CHE", numeric: "756" }, { country: "Syrian Arab Republic", alpha2: "SY", alpha3: "SYR", numeric: "760" }, { country: "Taiwan, Province of China", alpha2: "TW", alpha3: "TWN", numeric: "158" }, { country: "Tajikistan", alpha2: "TJ", alpha3: "TJK", numeric: "762" }, { country: "United Republic of Tanzania", alpha2: "TZ", alpha3: "TZA", numeric: "834" }, { country: "Thailand", alpha2: "TH", alpha3: "THA", numeric: "764" }, { country: "Timor-Leste", alpha2: "TL", alpha3: "TLS", numeric: "626" }, { country: "Togo", alpha2: "TG", alpha3: "TGO", numeric: "768" }, { country: "Tokelau", alpha2: "TK", alpha3: "TKL", numeric: "772" }, { country: "Tonga", alpha2: "TO", alpha3: "TON", numeric: "776" }, { country: "Trinidad and Tobago", alpha2: "TT", alpha3: "TTO", numeric: "780" }, { country: "Tunisia", alpha2: "TN", alpha3: "TUN", numeric: "788" }, { country: "Turkey", alpha2: "TR", alpha3: "TUR", numeric: "792" }, { country: "Turkmenistan", alpha2: "TM", alpha3: "TKM", numeric: "795" }, { country: "Turks and Caicos Islands", alpha2: "TC", alpha3: "TCA", numeric: "796" }, { country: "Tuvalu", alpha2: "TV", alpha3: "TUV", numeric: "798" }, { country: "Uganda", alpha2: "UG", alpha3: "UGA", numeric: "800" }, { country: "Ukraine", alpha2: "UA", alpha3: "UKR", numeric: "804" }, { country: "United Arab Emirates", alpha2: "AE", alpha3: "ARE", numeric: "784" }, { country: "United Kingdom of Great Britain and Northern Ireland", alpha2: "GB", alpha3: "GBR", numeric: "826" }, { country: "United States of America", alpha2: "US", alpha3: "USA", numeric: "840" }, { country: "United States Minor Outlying Islands", alpha2: "UM", alpha3: "UMI", numeric: "581" }, { country: "Uruguay", alpha2: "UY", alpha3: "URY", numeric: "858" }, { country: "Uzbekistan", alpha2: "UZ", alpha3: "UZB", numeric: "860" }, { country: "Vanuatu", alpha2: "VU", alpha3: "VUT", numeric: "548" }, { country: "Venezuela (Bolivarian Republic of)", alpha2: "VE", alpha3: "VEN", numeric: "862" }, { country: "Viet Nam", alpha2: "VN", alpha3: "VNM", numeric: "704" }, { country: "Virgin Islands", alpha2: "VG", alpha3: "VGB", numeric: "092" }, { country: "Virgin Islands of the United States", alpha2: "VI", alpha3: "VIR", numeric: "850" }, { country: "Wallis and Futuna", alpha2: "WF", alpha3: "WLF", numeric: "876" }, { country: "Western Sahara", alpha2: "EH", alpha3: "ESH", numeric: "732" }, { country: "Yemen", alpha2: "YE", alpha3: "YEM", numeric: "887" }, { country: "Zambia", alpha2: "ZM", alpha3: "ZMB", numeric: "894" }, { country: "Zimbabwe", alpha2: "ZW", alpha3: "ZWE", numeric: "716" } ]; exports2.default = countries; } }); // node_modules/iso-3166-1/dist/index.js var require_dist = __commonJS({ "node_modules/iso-3166-1/dist/index.js"(exports2) { "use strict"; init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var __importDefault = exports2 && exports2.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.all = exports2.whereNumeric = exports2.whereAlpha3 = exports2.whereAlpha2 = exports2.whereCountry = void 0; var iso_3166_1 = __importDefault(require_iso_3166()); exports2.whereCountry = (name) => { return iso_3166_1.default.find((country) => country.country.toUpperCase() === name.toUpperCase()); }; exports2.whereAlpha2 = (alpha2) => { return iso_3166_1.default.find((country) => country.alpha2 === alpha2.toUpperCase()); }; exports2.whereAlpha3 = (alpha3) => { return iso_3166_1.default.find((country) => country.alpha3 === alpha3.toUpperCase()); }; exports2.whereNumeric = (numeric) => { return iso_3166_1.default.find((country) => country.numeric === String(numeric)); }; exports2.all = () => iso_3166_1.default; exports2.default = { all: exports2.all, whereCountry: exports2.whereCountry, whereAlpha2: exports2.whereAlpha2, whereAlpha3: exports2.whereAlpha3, whereNumeric: exports2.whereNumeric }; } }); // node_modules/facebook-nodejs-business-sdk/dist/cjs.js var require_cjs = __commonJS({ "node_modules/facebook-nodejs-business-sdk/dist/cjs.js"(exports2) { "use strict"; init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); Object.defineProperty(exports2, "__esModule", { value: true }); function _interopDefault(ex) { return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex; } __name(_interopDefault, "_interopDefault"); var fs = _interopDefault(require_fs()); var path = _interopDefault(require_path()); var HTTP_STATUS = { OK: "200", NOT_MODIFIED: "304" }; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) { return typeof obj; } : function(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var asyncToGenerator = /* @__PURE__ */ __name(function(fn) { return function() { var gen = fn.apply(this, arguments); return new Promise(function(resolve, reject) { function step(key, arg) { try { var info3 = gen[key](arg); var value = info3.value; } catch (error3) { reject(error3); return; } if (info3.done) { resolve(value); } else { return Promise.resolve(value).then(function(value2) { step("next", value2); }, function(err) { step("throw", err); }); } } __name(step, "step"); return step("next"); }); }; }, "asyncToGenerator"); var classCallCheck = /* @__PURE__ */ __name(function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }, "classCallCheck"); var createClass = /* @__PURE__ */ function() { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } __name(defineProperties, "defineProperties"); return function(Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var get$1 = /* @__PURE__ */ __name(function get$12(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === void 0) { var parent = Object.getPrototypeOf(object); if (parent === null) { return void 0; } else { return get$12(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === void 0) { return void 0; } return getter.call(receiver); } }, "get$1"); var inherits = /* @__PURE__ */ __name(function(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }, "inherits"); var possibleConstructorReturn = /* @__PURE__ */ __name(function(self2, call) { if (!self2) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self2; }, "possibleConstructorReturn"); var toConsumableArray = /* @__PURE__ */ __name(function(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }, "toConsumableArray"); var axios = require_axios(); var Http = function() { function Http2() { classCallCheck(this, Http2); } __name(Http2, "Http"); createClass(Http2, null, [{ key: "request", /** * Request * @param {String} method * @param {String} url * @param {Object} [data] * @return {Promise} */ value: /* @__PURE__ */ __name(function request(method2, url, data, files, useMultipartFormData, showHeader) { if (typeof window !== "undefined" && window.XMLHttpRequest) { return Http2.xmlHttpRequest(method2, url, data); } return Http2.requestPromise(method2, url, data, files, useMultipartFormData, showHeader); }, "request") /** * XmlHttpRequest request * @param {String} method * @param {String} url * @param {Object} [data] * @return {Promise} */ }, { key: "xmlHttpRequest", value: /* @__PURE__ */ __name(function xmlHttpRequest(method2, url, data) { return new Promise(function(resolve, reject) { var request = new window.XMLHttpRequest(); request.open(method2, url); request.onload = function() { try { var response = JSON.parse(request.response); if (request.status.toString() === HTTP_STATUS.OK) { resolve(response); } else { reject(new Error({ body: response, status: request.status })); } } catch (e) { reject(new Error({ body: request.responseText, status: request.status })); } }; request.setRequestHeader("Content-Type", "application/json"); request.setRequestHeader("Accept", "application/json"); request.send(JSON.stringify(data)); }); }, "xmlHttpRequest") /** * Request Promise * @param {String} method The HTTP method name (e.g. 'GET'). * @param {String} url A full URL string. * @param {Object} [data] A mapping of request parameters where a key * is the parameter name and its value is a string or an object * which can be JSON-encoded. * @param {Object} [files] An optional mapping of file names to ReadStream * objects. These files will be attached to the request. * @param {Boolean} [useMultipartFormData] An optional flag to call with * multipart/form-data. * @return {Promise} */ }, { key: "requestPromise", value: /* @__PURE__ */ __name(function requestPromise(method2, url, data, files) { var useMultipartFormData = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false; var showHeader = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false; var options = { method: method2, url, baseURL: FacebookAdsApi2.GRAPH, json: !useMultipartFormData, headers: { "User-Agent": "fbbizsdk-nodejs-v" + FacebookAdsApi2.SDK_VERSION }, data: Object, resolveWithFullResponse: showHeader }; if (!data) { data = {}; } options.data = data; if (useMultipartFormData || files && Object.keys(files).length > 0) { options.data = Object.assign(data, files); delete options.data; } return axios(options).catch(function(response) { throw response; }); }, "requestPromise") }]); return Http2; }(); function FacebookError(error3) { this.name = "FacebookError"; this.message = error3.message; this.stack = new Error().stack; } __name(FacebookError, "FacebookError"); FacebookError.prototype = Object.create(Error.prototype); FacebookError.prototype.constructor = FacebookError; var FacebookRequestError = function(_FacebookError) { inherits(FacebookRequestError2, _FacebookError); function FacebookRequestError2(response, method2, url, data) { classCallCheck(this, FacebookRequestError2); var errorResponse = constructErrorResponse(response); var _this = possibleConstructorReturn(this, (FacebookRequestError2.__proto__ || Object.getPrototypeOf(FacebookRequestError2)).call(this, errorResponse)); _this.name = "FacebookRequestError"; _this.message = errorResponse.message; _this.status = errorResponse.status; _this.response = errorResponse.body; _this.headers = errorResponse.headers; _this.method = method2; _this.url = url; if (data) { _this.data = data; } return _this; } __name(FacebookRequestError2, "FacebookRequestError"); return FacebookRequestError2; }(FacebookError); function constructErrorResponse(response) { var body = void 0; var message = void 0; var status = void 0; var headers = void 0; var isBatchResponse = response.code && response.body; if (isBatchResponse) { body = typeof response.body === "string" ? JSON.parse(response.body) : response.body; status = response.code; message = body.error.message; headers = response.headers; } else { if (response.response) { body = response.response.data.error ? response.response.data.error : response.response.data; body = typeof body === "string" ? JSON.parse(body) : body; message = body.message; status = response.response.status; headers = response.response.headers; } else if (response.request) { body = null; message = "The request was made but no response was received"; status = null; headers = null; } else { body = null; message = "Something happened in setting up the request that triggered an Error"; status = null; headers = null; } } return { body, message, status, headers }; } __name(constructErrorResponse, "constructErrorResponse"); var CrashReporter = function() { function CrashReporter2() { classCallCheck(this, CrashReporter2); this._active = true; } __name(CrashReporter2, "CrashReporter"); createClass(CrashReporter2, null, [{ key: "enable", value: /* @__PURE__ */ __name(function enable() { var _this = this; if (this._instance == void 0 || this._instance == null) { this._instance = new this(); process.on("uncaughtException", function(err) { if (_this._instance._active && err instanceof Error) { var params = privateMethods.parseParam(err); if (params != null) { console.log("CrashReporter: SDK crash detected!"); privateMethods.processUncaughtException(err, params); return; } } console.log("CrashReporter: No SDK crash detected or crash reporter is disabled!"); throw err; }); } }, "enable") }, { key: "disable", value: /* @__PURE__ */ __name(function disable() { if (this._instance == void 0 || this._instance == null) { return; } this._instance._active = false; }, "disable") }]); return CrashReporter2; }(); var privateMethods = { processUncaughtException: /* @__PURE__ */ __name(function processUncaughtException(err, params) { FacebookAdsApi2.getDefaultApi().getAppID().then(function(data) { if (data["data"] !== void 0 && data["data"]["app_id"] !== void 0) { var appID = data["data"]["app_id"]; console.log("active uncaughtException : " + appID); var url = [FacebookAdsApi2.GRAPH, FacebookAdsApi2.VERSION, appID, "instruments"].join("/"); Http.request("POST", url, params).then(function(response) { console.log("Successfully sent crash report."); }).catch(function(response) { console.log("Failed to send crash report."); }).then(function() { throw err; }); } }).catch(function(error3) { console.log("Not be able to find appID, fail to send report to server."); throw err; }); }, "processUncaughtException"), parseParam: /* @__PURE__ */ __name(function parseParam(err) { var stack = err.stack.split("\n"); var params = {}; if (stack.length == 0) { return null; } var fln = stack[0].split(":"); params["reason"] = fln[0]; params["callstack"] = stack; params["platform"] = process.version; for (var i = 0; i < stack.length; i++) { if (stack[i].includes("facebook-nodejs-business-sdk")) { return { "bizsdk_crash_report": params }; } } return null; }, "parseParam") }; var FacebookAdsApi2 = function() { createClass(FacebookAdsApi3, null, [{ key: "VERSION", get: /* @__PURE__ */ __name(function get() { return "v19.0"; }, "get") }, { key: "SDK_VERSION", get: /* @__PURE__ */ __name(function get() { return "19.0.3"; }, "get") }, { key: "GRAPH", get: /* @__PURE__ */ __name(function get() { return "https://graph.facebook.com"; }, "get") }, { key: "GRAPH_VIDEO", get: /* @__PURE__ */ __name(function get() { return "https://graph-video.facebook.com"; }, "get") /** * @param {String} accessToken * @param {String} [locale] */ }]); function FacebookAdsApi3(accessToken) { var locale = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "en_US"; var crash_log = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; classCallCheck(this, FacebookAdsApi3); if (!accessToken) { throw new Error("Access token required"); } this.accessToken = accessToken; this.locale = locale; this._debug = false; this._showHeader = false; if (crash_log) { CrashReporter.enable(); } } __name(FacebookAdsApi3, "FacebookAdsApi"); createClass(FacebookAdsApi3, [{ key: "getAppID", value: /* @__PURE__ */ __name(function getAppID() { var url = [FacebookAdsApi3.GRAPH, FacebookAdsApi3.VERSION, "debug_token"].join("/"); var params = {}; params["access_token"] = this.accessToken; params["input_token"] = this.accessToken; params["fields"] = "app_id"; url += "?" + FacebookAdsApi3._encodeParams(params); return Http.request("GET", url, {}, {}, false); }, "getAppID") }, { key: "setDebug", value: /* @__PURE__ */ __name(function setDebug(flag) { this._debug = flag; return this; }, "setDebug") }, { key: "setShowHeader", value: /* @__PURE__ */ __name(function setShowHeader(flag) { this._showHeader = flag; return this; }, "setShowHeader") /** * Http Request * @param {String} method * @param {String} path * @param {Object} [params] * @param {Object} [files] * @return {Promise} */ }, { key: "call", value: /* @__PURE__ */ __name(function call(method2, path$$1) { var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; var files = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}; var _this = this; var useMultipartFormData = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false; var urlOverride = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : ""; var url = void 0; var data = {}; if (method2 === "POST" || method2 === "PUT") { data = params; params = {}; } var domain2 = urlOverride || FacebookAdsApi3.GRAPH; if (typeof path$$1 !== "string" && !(path$$1 instanceof String)) { url = [domain2, FacebookAdsApi3.VERSION].concat(toConsumableArray(path$$1)).join("/"); params["access_token"] = this.accessToken; url += "?" + FacebookAdsApi3._encodeParams(params); } else { url = path$$1; } var strUrl = url; return Http.request(method2, strUrl, data, files, useMultipartFormData, this._showHeader).then(function(response) { if (_this._showHeader) { response.data["headers"] = response.headers; } response = response.data; if (_this._debug) { console.log("200 " + method2 + " " + url + " " + (Object.keys(data).length > 0 ? JSON.stringify(data) : "")); console.log("Response: " + (response ? JSON.stringify(response) : "")); } return Promise.resolve(response); }).catch(function(response) { if (_this._debug && response.response) { console.log(response.response.status + " " + method2 + " " + url + "\n " + (Object.keys(data).length > 0 ? JSON.stringify(data) : "")); } throw new FacebookRequestError(response, method2, url, data); }); }, "call") }], [{ key: "init", value: /* @__PURE__ */ __name(function init(accessToken) { var locale = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "en_US"; var crash_log = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; var api = new this(accessToken, locale, crash_log); this.setDefaultApi(api); return api; }, "init") }, { key: "setDefaultApi", value: /* @__PURE__ */ __name(function setDefaultApi(api) { this._defaultApi = api; }, "setDefaultApi") }, { key: "getDefaultApi", value: /* @__PURE__ */ __name(function getDefaultApi() { return this._defaultApi; }, "getDefaultApi") }, { key: "_encodeParams", value: /* @__PURE__ */ __name(function _encodeParams(params) { return Object.keys(params).map(function(key) { var param = params[key]; if ((typeof param === "undefined" ? "undefined" : _typeof(param)) === "object") { param = param ? JSON.stringify(param) : ""; } return encodeURIComponent(key) + "=" + encodeURIComponent(param); }).join("&"); }, "_encodeParams") }]); return FacebookAdsApi3; }(); var APIRequest = function() { function APIRequest2(nodeId, method2, endpoint) { classCallCheck(this, APIRequest2); this._nodeId = nodeId; this._method = method2; this._endpoint = endpoint.replace("/", ""); this._path = [nodeId, this.endpoint]; this._fields = []; this._fileParams = /* @__PURE__ */ Object.create(null); this._params = /* @__PURE__ */ Object.create(null); this._fileCounter = 0; } __name(APIRequest2, "APIRequest"); createClass(APIRequest2, [{ key: "addFile", /** * @param {string} filePath Path to file attached to the request * @return {APIReqeust} APIRequest instance */ value: /* @__PURE__ */ __name(function addFile(filePath) { var fileKey = "source" + this._fileCounter; var stats = fs.lstatSync(filePath); if (!stats.isFile()) { throw Error("Cannot find file " + filePath + "!"); } this._fileParams[fileKey] = filePath; this._fileCounter += 1; return this; }, "addFile") /** * @param {string[]} filePaths Array of paths to files attached to the request * @return {APIRequest} APIRequest instance */ }, { key: "addFiles", value: /* @__PURE__ */ __name(function addFiles(filePaths) { var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = void 0; try { for (var _iterator = filePaths[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var filePath = _step.value; this.addFile(filePath); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return this; }, "addFiles") /** * @param {string} field Requested field * @return {APIReqeust} APIRequest instance */ }, { key: "addField", value: /* @__PURE__ */ __name(function addField(field) { if (!this._fields.includes(field)) { this._fields.push(field); } return this; }, "addField") /** * @param {string[]} fields Array of requested fields * @return {APIRequest} APIRequest instance */ }, { key: "addFields", value: /* @__PURE__ */ __name(function addFields(fields) { var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = void 0; try { for (var _iterator2 = fields[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var field = _step2.value; this.addField(field); } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2.return) { _iterator2.return(); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } return this; }, "addFields") /** * @param {string} key Param key * @param {*} value Param value * @return {APIRequest} APIRequest instance */ }, { key: "addParam", value: /* @__PURE__ */ __name(function addParam(key, value) { this._params[key] = value; return this; }, "addParam") /** * @param {Object} params An object containing param keys and values * @return {APIRequest} APIRequest instance */ }, { key: "addParams", value: /* @__PURE__ */ __name(function addParams(params) { this._params = params; return this; }, "addParams") }, { key: "nodeId", get: /* @__PURE__ */ __name(function get() { return this._nodeId; }, "get") /** * Getter function for HTTP method e.g. GET, POST * @return {string} HTTP method */ }, { key: "method", get: /* @__PURE__ */ __name(function get() { return this._method; }, "get") /** * Getter function for the edge of the API call * @return {string} Endpoint edge */ }, { key: "endpoint", get: /* @__PURE__ */ __name(function get() { return this._endpoint; }, "get") /** * Getter function for path tokens * @return {Array<string>} Array of path tokens */ }, { key: "path", get: /* @__PURE__ */ __name(function get() { return this._path; }, "get") /** * Getter function for requested fields * @return {Array<string>} Array of request fields */ }, { key: "fields", get: /* @__PURE__ */ __name(function get() { return this._fields; }, "get") /** * Getter function for API params * @return {Object} Object containing API Params */ }, { key: "params", get: /* @__PURE__ */ __name(function get() { return JSON.parse(JSON.stringify(this._params)); }, "get") /** * Getter function for API fileparams * @return {Object} Object containing API fileParams */ }, { key: "fileParams", get: /* @__PURE__ */ __name(function get() { return JSON.parse(JSON.stringify(this._fileParams)); }, "get") }]); return APIRequest2; }(); var APIResponse = function() { function APIResponse2(response, call) { classCallCheck(this, APIResponse2); response.body = JSON.parse(response.body); this._body = response.body; this._httpStatus = response.code; this._headers = response.headers; this._call = call; this._response = response; } __name(APIResponse2, "APIResponse"); createClass(APIResponse2, [{ key: "body", get: /* @__PURE__ */ __name(function get() { return this._body; }, "get") }, { key: "headers", get: /* @__PURE__ */ __name(function get() { return this._headers; }, "get") }, { key: "etag", get: /* @__PURE__ */ __name(function get() { return this._headers["ETag"]; }, "get") }, { key: "status", get: /* @__PURE__ */ __name(function get() { return this._httpStatus; }, "get") }, { key: "isSuccess", get: /* @__PURE__ */ __name(function get() { var body = this._body; if ("error" in body) { return false; } else if (Object.keys(body).length !== 0) { if ("success" in body) { return body["success"]; } return !("Service Unavailable" in body); } else if (this._httpStatus === HTTP_STATUS.NOT_MODIFIED) { return true; } else if (this._httpStatus === HTTP_STATUS.OK) { return true; } else { return false; } }, "get") }, { key: "error", get: /* @__PURE__ */ __name(function get() { if (this.isSuccess) { return null; } return new FacebookRequestError(this._response, this._call.method, this._call.relativeUrl, this._call.body); }, "get") }]); return APIResponse2; }(); var FacebookAdsApiBatch = function() { function FacebookAdsApiBatch2(api, successCallback, failureCallback) { classCallCheck(this, FacebookAdsApiBatch2); this._api = api; this._files = []; this._batch = []; this._requests = []; this._successCallbacks = []; this._failureCallbacks = []; if (successCallback != null) { this._successCallbacks.push(successCallback); } if (failureCallback != null) { this._failureCallbacks.push(failureCallback); } } __name(FacebookAdsApiBatch2, "FacebookAdsApiBatch"); createClass(FacebookAdsApiBatch2, [{ key: "add", value: /* @__PURE__ */ __name(function add(method2, relativePath, params, files, successCallback, failureCallback, request) { var relativeUrl = typeof relativePath === "string" ? relativePath : relativePath.join("/"); if (params != null) { var keyVals = []; for (var key in params) { var value = params[key]; if (_typeof(params[key]) === "object" && !(params[key] instanceof Date)) { value = JSON.stringify(value); } keyVals.push(key + "=" + value); } if (method2 === "GET") { relativeUrl += "?" + keyVals.join("&"); } else { var body = keyVals.join("&"); } if (params && params["name"]) { var name = params["name"]; } } if (files != null) { var attachedFiles = Object.keys(files).join(","); } var call = { method: method2, relative_url: relativeUrl, body, name, attachedFiles }; this._batch.push(call); this._files.push(files); this._successCallbacks.push(successCallback); this._failureCallbacks.push(failureCallback); if (request !== void 0) { this._requests.push(request); } return call; }, "add") /** * Interface to add a APIRequest to the batch. * @param {APIRequest} request The APIRequest object to add * @param {Function} [successCallback] A callback function which * will be called with response of this call if the call succeeded. * @param {Function} [failureCallback] A callback function which * will be called with the FacebookResponse of this call if the call failed. * @return {Object} An object describing the call */ }, { key: "addRequest", value: /* @__PURE__ */ __name(function addRequest(request, successCallback, failureCallback) { var updatedParams = request.params; updatedParams["fields"] = request.fields.join(); return this.add(request.method, request.path, updatedParams, request.fileParams, successCallback, failureCallback, request); }, "addRequest") /** * Makes a batch call to the api associated with this object. * For each individual call response, calls the success or failure callback * function if they were specified. * Note: Does not explicitly raise exceptions. Individual exceptions won't * be thrown for each call that fails. The success and failure callback * functions corresponding to a call should handle its success or failure. * @return {FacebookAdsApiBatch|None} If some of the calls have failed, * returns a new FacebookAdsApiBatch object with those calls. * Otherwise, returns None. */ }, { key: "execute", value: /* @__PURE__ */ __name(function execute() { var _this = this; if (this._batch.length < 1) { return; } var method2 = "POST"; var path$$1 = []; var params = { batch: this._batch }; return this._api.call(method2, path$$1, params).then(function(responses) { var retryIndices = []; for (var index = 0; index < responses.length; index++) { var response = responses[index]; if (response != null) { var apiResponse = new APIResponse(response, _this._batch[index]); if (apiResponse.isSuccess) { if (_this._successCallbacks[index]) { _this._successCallbacks[index](apiResponse); } } else { if (_this._failureCallbacks[index]) { _this._failureCallbacks[index](apiResponse); } } } else { retryIndices.push(index); } } if (retryIndices.length > 0) { var newBatch = new FacebookAdsApiBatch2(_this._api); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = void 0; try { for (var _iterator = retryIndices[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var _index = _step.value; newBatch._files.push(_this._files[_index]); newBatch._batch.push(_this._batch[_index]); newBatch._successCallbacks.push(_this._successCallbacks[_index]); newBatch._failureCallbacks.push(_this._failureCallbacks[_index]); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return newBatch; } return null; }).catch(function(error3) { throw error3; }); }, "execute") }]); return FacebookAdsApiBatch2; }(); var AbstractObject = function() { createClass(AbstractObject2, null, [{ key: "Fields", // This is a Flow workaround for setting `this[field]` in the set() function. get: /* @__PURE__ */ __name(function get() { return Object.freeze({}); }, "get") }]); function AbstractObject2() { var _this = this; classCallCheck(this, AbstractObject2); this._data = {}; if (this.constructor.Fields === void 0) { throw new Error('A "Fields" frozen object must be defined in the object class'); } var fields = this.constructor.Fields; this._fields = Object.keys(fields); this._fields.forEach(function(field) { _this._defineProperty(field); }); } __name(AbstractObject2, "AbstractObject"); createClass(AbstractObject2, [{ key: "_defineProperty", value: /* @__PURE__ */ __name(function _defineProperty(field) { var _this2 = this; Object.defineProperty(this, field, { get: /* @__PURE__ */ __name(function get() { return _this2._data[field]; }, "get"), set: /* @__PURE__ */ __name(function set(value) { _this2._data[field] = value; }, "set"), enumerable: true }); }, "_defineProperty") /** * Set data field * @param {String} field * @param {Mixed} value * @return this */ }, { key: "set", value: /* @__PURE__ */ __name(function set(field, value) { if (this._fields.indexOf(field) < 0) { this._defineProperty(field); } this[field] = value; return this; }, "set") /** * Set multiple data fields * @param {Object} data * @return this */ }, { key: "setData", value: /* @__PURE__ */ __name(function setData(data) { var _this3 = this; Object.keys(data).forEach(function(key) { _this3.set(key, data[key]); }); return this; }, "setData") /** * Export object data * @return {Object} */ }, { key: "exportData", value: /* @__PURE__ */ __name(function exportData() { return this._data; }, "exportData") }]); return AbstractObject2; }(); var Utils = function() { function Utils2() { classCallCheck(this, Utils2); } __name(Utils2, "Utils"); createClass(Utils2, null, [{ key: "normalizeEndpoint", value: /* @__PURE__ */ __name(function normalizeEndpoint(str) { return str.replace(/^\/|\/$/g, ""); }, "normalizeEndpoint") }, { key: "removePreceedingSlash", value: /* @__PURE__ */ __name(function removePreceedingSlash(str) { return str.length && str[0] === "/" ? str.slice(1) : str; }, "removePreceedingSlash") }]); return Utils2; }(); var Cursor = function(_Array) { inherits(Cursor2, _Array); function Cursor2(sourceObject, targetClass, params, endpoint) { classCallCheck(this, Cursor2); var _this = possibleConstructorReturn(this, (Cursor2.__proto__ || Object.getPrototypeOf(Cursor2)).call(this)); var next = [sourceObject.getId()]; if (endpoint) { next.push(Utils.normalizeEndpoint(endpoint)); } else { throw new Error("No endpoint specified for the target edge."); } _this._api = sourceObject.getApi(); _this._targetClass = targetClass; _this.paging = { next, params }; _this.clear = function() { _this.length = 0; }; _this.set = function(array) { _this.clear(); _this.push.apply(_this, toConsumableArray(array)); }; _this.next = function() { if (!_this.hasNext()) { return Promise.reject(new RangeError("end of pagination")); } return _this._loadPage(_this.paging.next); }; _this.hasNext = function() { return Boolean(_this.paging) && Boolean(_this.paging.next); }; _this.previous = function() { if (!_this.hasPrevious()) { return Promise.reject(new RangeError("start of pagination")); } return _this._loadPage(_this.paging.previous); }; _this.hasPrevious = function() { return Boolean(_this.paging) && Boolean(_this.paging.previous); }; _this._loadPage = function(path$$1) { var promise = new Promise(function(resolve, reject) { _this._api.call("GET", path$$1, _this.paging.params).then(function(response) { var objects = _this._buildObjectsFromResponse(response); _this.set(objects); _this.paging = response.paging; _this.summary = response.summary; _this.headers = response.headers; resolve(_this); }).catch(reject); }); return promise; }; _this._buildObjectsFromResponse = function(response) { return response.data.map(function(item) { var That = _this._targetClass; if (That.name === "AbstractObject") { var result = new That(); result.setData(item); return result; } return new That(item && item.id ? item.id : null, item, void 0, _this._api); }); }; return _this; } __name(Cursor2, "Cursor"); return Cursor2; }(Array); var AbstractCrudObject = function(_AbstractObject) { inherits(AbstractCrudObject2, _AbstractObject); function AbstractCrudObject2() { var id = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null; var data = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var parentId = arguments[2]; var api = arguments[3]; classCallCheck(this, AbstractCrudObject2); var _this = possibleConstructorReturn(this, (AbstractCrudObject2.__proto__ || Object.getPrototypeOf(AbstractCrudObject2)).call(this)); _this._parentId = parentId; _this._api = api || FacebookAdsApi2.getDefaultApi(); if (id) { data.id = id; } if (data) { get$1(AbstractCrudObject2.prototype.__proto__ || Object.getPrototypeOf(AbstractCrudObject2.prototype), "setData", _this).call(_this, data); } return _this; } __name(AbstractCrudObject2, "AbstractCrudObject"); createClass(AbstractCrudObject2, [{ key: "_defineProperty", value: /* @__PURE__ */ __name(function _defineProperty(field) { var _this2 = this; if (this._changes === void 0) { this._changes = {}; } Object.defineProperty(this, field, { get: /* @__PURE__ */ __name(function get() { return _this2._data[field]; }, "get"), set: /* @__PURE__ */ __name(function set(value) { _this2._changes[field] = value; _this2._data[field] = value; }, "set"), enumerable: true }); }, "_defineProperty") /** * Set object data as if it were read from the server. Wipes related changes * @param {Object} data * @return this */ }, { key: "setData", value: /* @__PURE__ */ __name(function setData(data) { var _this3 = this; get$1(AbstractCrudObject2.prototype.__proto__ || Object.getPrototypeOf(AbstractCrudObject2.prototype), "setData", this).call(this, data); Object.keys(data).forEach(function(key) { delete _this3._changes[key]; }); return this; }, "setData") /** * Export changed object data * @return {Object} */ }, { key: "exportData", value: /* @__PURE__ */ __name(function exportData() { return this._changes; }, "exportData") /** * Export object data * @return {Object} */ }, { key: "exportAllData", value: /* @__PURE__ */ __name(function exportAllData() { return this._data; }, "exportAllData") /** * Clear change history * @return this */ }, { key: "clearHistory", value: /* @__PURE__ */ __name(function clearHistory() { this._changes = {}; return this; }, "clearHistory") /** * @throws {Error} if object has no id * @return {String} */ }, { key: "getId", value: /* @__PURE__ */ __name(function getId() { if (!this.id) { throw new Error(this.constructor.name + " Id not defined"); } return this.id; }, "getId") /** * @throws {Error} if object has no parent id * @return {String} */ }, { key: "getParentId", value: /* @__PURE__ */ __name(function getParentId() { if (!this._parentId) { throw new Error(this.constructor.name + " parentId not defined"); } return this._parentId; }, "getParentId") /** * @return {String} */ }, { key: "getNodePath", value: /* @__PURE__ */ __name(function getNodePath() { return this.getId(); }, "getNodePath") /** * Return object API instance * @throws {Error} if object doesn't hold an API * @return {FacebookAdsApi} */ }, { key: "getApi", value: /* @__PURE__ */ __name(function getApi() { var api = this._api; if (!api) { throw new Error(this.constructor.name + ' does not yet have an\n associated api object.\n Did you forget to\n instantiate an API session with:\n "FacebookAdsApi.init"?'); } return api; }, "getApi") /** * Read object data * @param {Array} [fields] * @param {Object} [params] * @return {Promise} */ }, { key: "read", value: /* @__PURE__ */ __name(function read2(fields) { var _this4 = this; var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var api = this.getApi(); var path$$1 = [this.getNodePath()]; if (fields) { params["fields"] = fields.join(","); } return new Promise(function(resolve, reject) { api.call("GET", path$$1, params).then(function(data) { return resolve(_this4.setData(data)); }).catch(reject); }); }, "read") /** * Update object * @param {Object} [params] * @return {Promise} */ }, { key: "update", value: /* @__PURE__ */ __name(function update() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; var api = this.getApi(); var path$$1 = [this.getNodePath()]; params = Object.assign(params, this.exportData()); return new Promise(function(resolve, reject) { api.call("POST", path$$1, params).then(function(data) { return resolve(data); }).catch(reject); }); }, "update") /** * Delete object * @param {Object} [params] * @return {Promise} */ }, { key: "delete", value: /* @__PURE__ */ __name(function _delete() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; var api = this.getApi(); var path$$1 = [this.getNodePath()]; params = Object.assign(params, this.exportData()); return new Promise(function(resolve, reject) { api.call("DELETE", path$$1, params).then(function(data) { return resolve(data); }).catch(reject); }); }, "_delete") /** * Initialize Cursor to paginate on edges * @param {Object} targetClass * @param {Array} [fields] * @param {Object} [params] * @param {Boolean} [fetchFirstPage] * @param {String} [endpoint] * @return {Cursor} */ }, { key: "getEdge", value: /* @__PURE__ */ __name(function getEdge(targetClass, fields) { var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; var fetchFirstPage = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : true; var endpoint = arguments[4]; if (fields && fields.length > 0) { params["fields"] = fields.join(","); } var sourceObject = this; var cursor = new Cursor(sourceObject, targetClass, params, endpoint); if (fetchFirstPage) { return cursor.next(); } return cursor; }, "getEdge") /** * Create edge object * @param {String} [endpoint] * @param {Array} [fields] * @param {Object} [params] * @param {Function} [targetClassConstructor] * @return {Promise} */ }, { key: "createEdge", value: /* @__PURE__ */ __name(function createEdge(endpoint, fields) { var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; var _this5 = this; var targetClassConstructor = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null; var pathOverride = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null; if (fields && fields.length > 0) { params["fields"] = fields.join(","); } var api = this.getApi(); var path$$1 = pathOverride != null ? pathOverride : [this.getNodePath(), Utils.removePreceedingSlash(endpoint)]; params = Object.assign(params, this.exportData()); return new Promise(function(resolve, reject) { api.call("POST", path$$1, params).then(function(data) { resolve( /* eslint new-cap: "off" */ targetClassConstructor === null ? _this5.setData(data) : new targetClassConstructor(data.id, data) ); }).catch(reject); }); }, "createEdge") /** * Delete edge object * @param {String} [endpoint] * @param {Object} [params] * @return {Promise} */ }, { key: "deleteEdge", value: /* @__PURE__ */ __name(function deleteEdge(endpoint) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var api = this.getApi(); var path$$1 = [this.getNodePath(), Utils.removePreceedingSlash(endpoint)]; params = Object.assign(params, this.exportData()); return new Promise(function(resolve, reject) { api.call("DELETE", path$$1, params).then(function(data) { return resolve(data); }).catch(reject); }); }, "deleteEdge") /** * Read Objects by Ids * @param {Array} ids * @param {Array} [fields] * @param {Object} [params] * @param {FacebookAdsApi} [api] * @return {Promise} */ }], [{ key: "getByIds", value: /* @__PURE__ */ __name(function getByIds(ids, fields) { var _this6 = this; var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; var api = arguments[3]; api = api || FacebookAdsApi2.getDefaultApi(); if (fields && fields.length > 0) { params["fields"] = fields.join(","); } params["ids"] = ids.join(","); return new Promise(function(resolve, reject) { return api.call("GET", [""], params).then(function(response) { var result = []; for (var id in response) { var data = response[id]; var That = _this6; var object = new That(data); result.push(object); } resolve(result); }).catch(reject); }); }, "getByIds") }]); return AbstractCrudObject2; }(AbstractObject); var DeliveryCategory = Object.freeze({ /** * Customer needs to enter the store to get the purchased product. */ IN_STORE: "in_store", /** * Customer picks up their order by driving to a store and waiting inside their vehicle. */ CURBSIDE: "curbside", /** * Purchase is delivered to the customer's home. */ HOME_DELIVERY: "home_delivery" }); var sha256 = require_sha256(); var currency_codes = require_currency_codes(); var country_codes = require_dist(); var PHONE_NUMBER_IGNORE_CHAR_SET = /[\-@#<>'",; ]|\(|\)|\+|[a-z]/g; var PHONE_NUMBER_DROP_PREFIX_ZEROS = /^\+?0{0,2}/; var US_PHONE_NUMBER_REGEX = /^1\(?\d{3}\)?\d{7}$/; var INTL_PHONE_NUMBER_REGEX = /^\d{1,4}\(?\d{2,3}\)?\d{4,}$/; var SHA256_REGEX = /^[a-f0-9]{64}$/; var MD5_REGEX = /^[a-f0-9]{32}$/; var ServerSideUtils = function() { function ServerSideUtils2() { classCallCheck(this, ServerSideUtils2); } __name(ServerSideUtils2, "ServerSideUtils"); createClass(ServerSideUtils2, null, [{ key: "normalizeAndHash", /** * Normalizes and hashes the input given the field name. * @param {String} [input] Value to be normalized. eg: `foo@bar.com` for email input. * @param {String} [field] Key(Type) of Value to be normalized eg: 'em' for email field. * @return {String} Normalized and hashed value for the string. */ value: /* @__PURE__ */ __name(function normalizeAndHash(input, field) { if (field == null || input == null) { return null; } var normalized_input = input.trim().toLowerCase(); if (normalized_input.length === 0) { return null; } if (normalized_input.match(SHA256_REGEX) || normalized_input.match(MD5_REGEX)) { return normalized_input; } switch (field) { case "country": normalized_input = ServerSideUtils2.normalizeCountry(normalized_input); break; case "ct": normalized_input = ServerSideUtils2.normalizeCity(normalized_input); break; case "em": normalized_input = ServerSideUtils2.normalizeEmail(normalized_input); break; case "ge": normalized_input = ServerSideUtils2.normalizeGender(normalized_input); break; case "ph": normalized_input = ServerSideUtils2.normalizePhone(normalized_input); break; case "st": normalized_input = ServerSideUtils2.normalizeState(normalized_input); break; case "zp": normalized_input = ServerSideUtils2.normalizeZip(normalized_input); break; case "f5first": case "f5last": normalized_input = ServerSideUtils2.normalizeF5NameField(normalized_input); break; case "fi": normalized_input = normalized_input.charAt(0); break; case "dobd": normalized_input = ServerSideUtils2.normalizeDobd(normalized_input); break; case "dobm": normalized_input = ServerSideUtils2.normalizeDobm(normalized_input); break; case "doby": normalized_input = ServerSideUtils2.normalizeDoby(normalized_input); break; } var hashed_input = ServerSideUtils2.toSHA256(normalized_input); return hashed_input; }, "normalizeAndHash") /** * Normalizes the given country token and returns acceptable two letter ISO country code * @param {String} [country] country value to be normalized. * @return {String} Normalized ISO country code. */ }, { key: "normalizeCountry", value: /* @__PURE__ */ __name(function normalizeCountry(country) { if (!country_codes.whereAlpha2(country)) { throw new Error("Invalid country code: '" + country + "'. Please follow ISO 3166-1 2-letter standard for representing country. eg: US"); } return country; }, "normalizeCountry") /** * Normalizes the given city and returns acceptable city value * @param {String} [city] city value to be normalized. * @return {String} Normalized city value. */ }, { key: "normalizeCity", value: /* @__PURE__ */ __name(function normalizeCity(city) { city = city.replace(/[0-9\s().-]/g, ""); return city; }, "normalizeCity") /** * Normalizes the given currency string and returns acceptable three letter ISO code * @param {String} [currency] country value to be normalized. * @return {String} Normalized ISO currency code. */ }, { key: "normalizeCurrency", value: /* @__PURE__ */ __name(function normalizeCurrency(currency) { currency = currency.trim().toLowerCase(); currency = currency.replace(/[^a-zA-Z]/g, ""); if (!currency_codes.codes().includes(currency.toUpperCase())) { throw new Error("Invalid format for currency:'" + currency + "'.Please follow ISO 4217 3-letter standard for representing currency. Eg: usd"); } return currency; }, "normalizeCurrency") /** * Normalizes the given delivery category value and returns a valid string. * @param {String} [input] delivery_category input to be validated. * @return {String} Valid delivery_category value. */ }, { key: "normalizeDeliveryCategory", value: /* @__PURE__ */ __name(function normalizeDeliveryCategory(input) { var delivery_category = input.trim().toLowerCase(); if (!Object.values(DeliveryCategory).includes(delivery_category)) { throw new Error("Invalid delivery_category passed: " + input + ". Allowed values are one of " + Object.values(DeliveryCategory).join(",")); } return delivery_category; }, "normalizeDeliveryCategory") /** * Normalizes the given email to RFC 822 standard and returns acceptable email value * @param {String} [email] email value to be normalized. * @return {String} Normalized email value. */ }, { key: "normalizeEmail", value: /* @__PURE__ */ __name(function normalizeEmail(email) { var EMAIL_RE = /^[\w!#\$%&'\*\+\/\=\?\^`\{\|\}~\-]+(:?\.[\w!#\$%&'\*\+\/\=\?\^`\{\|\}~\-]+)*@(?:[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?$/i; if (!EMAIL_RE.test(email)) { throw new Error("Invalid email format for the passed email:'" + email + "'.Please check the passed email format."); } return email; }, "normalizeEmail") /** * Normalizes the given gender and returns acceptable('f' or 'm') gender value * @param {String} [gender] gender value to be normalized. * @return {String} Normalized gender value. */ }, { key: "normalizeGender", value: /* @__PURE__ */ __name(function normalizeGender(gender) { gender = gender.replace(/[^a-z]/g, ""); if (gender === "female" || gender === "f") { gender = "f"; } else if (gender === "male" || gender === "m") { gender = "m"; } else { return null; } return gender; }, "normalizeGender") /** * Normalizes the 5 character name field. * @param {String} [name] name value to be normalized. * @return {String} Normalized 5 character {first,last}name field value. */ }, { key: "normalizeF5NameField", value: /* @__PURE__ */ __name(function normalizeF5NameField(name) { return name.length <= 5 ? name : name.substring(0, 5); }, "normalizeF5NameField") /** * Normalizes the given phone and returns acceptable phone value * @param {String} [phone_number] phone number value to be normalized. * @return {String} Normalized phone number value. */ }, { key: "normalizePhone", value: /* @__PURE__ */ __name(function normalizePhone(phone_number) { phone_number = phone_number.replace(PHONE_NUMBER_IGNORE_CHAR_SET, ""); if (ServerSideUtils2.isInternationalPhoneNumber(phone_number)) { phone_number = phone_number.replace(PHONE_NUMBER_DROP_PREFIX_ZEROS, ""); } if (phone_number.length < 7 || phone_number.length > 15) { throw new Error("Invalid phone number format for the passed phone number:'" + phone_number + "'.Please check the passed phone number format."); } return phone_number; }, "normalizePhone") /** * Normalizes the given state and returns acceptable city value * @param {String} [state] state value to be normalized. * @return {String} Normalized state value. */ }, { key: "normalizeState", value: /* @__PURE__ */ __name(function normalizeState(state) { state = state.replace(/[0-9\s().-]/g, ""); return state; }, "normalizeState") /** * Normalizes the given zip/postal code and returns acceptable zip code value * @param {String} [zip] zip value to be normalized. * @return {String} Normalized zip code value. */ }, { key: "normalizeZip", value: /* @__PURE__ */ __name(function normalizeZip(zip) { zip = zip.replace(/[\s]/g, ""); zip = zip.split("-", 1)[0]; if (zip.length < 2) { return null; } return zip; }, "normalizeZip") /** * Normalizes the given date of birth day * @param {String} [dobd] value to be normalized. * @return {String} Normalized value. */ }, { key: "normalizeDobd", value: /* @__PURE__ */ __name(function normalizeDobd(dobd) { if (dobd.length === 1) { dobd = "0" + dobd; } var dobd_int = parseInt(dobd); if (dobd_int < 1 || dobd_int > 31) { throw new Error("Invalid format for dobd:'" + dobd + "'.Please use 'DD' format for dobd."); } return dobd; }, "normalizeDobd") /** * Normalizes the given date of birth month * @param {String} [dobm] value to be normalized. * @return {String} Normalized value. */ }, { key: "normalizeDobm", value: /* @__PURE__ */ __name(function normalizeDobm(dobm) { if (dobm.length === 1) { dobm = "0" + dobm; } var dobm_int = parseInt(dobm); if (dobm_int < 1 || dobm_int > 12) { throw new Error("Invalid format for dobm:'" + dobm + "'.Please use 'MM' format for dobm."); } return dobm; }, "normalizeDobm") /** * Normalizes the given date of birth year * @param {String} [doby] value to be normalized. * @return {String} Normalized value. */ }, { key: "normalizeDoby", value: /* @__PURE__ */ __name(function normalizeDoby(doby) { if (!doby.match(/^[0-9]{4}$/)) { throw new Error("Invalid format for doby:'" + doby + "'.Please use 'YYYY' format for doby."); } return doby; }, "normalizeDoby") /** * Boolean method which checks if a given number is represented in international format * @param {String} phone_number that has to be tested. * @return {Boolean} value if a number is represented international format */ }, { key: "isInternationalPhoneNumber", value: /* @__PURE__ */ __name(function isInternationalPhoneNumber(phone_number) { phone_number = phone_number.replace(PHONE_NUMBER_DROP_PREFIX_ZEROS, ""); if (phone_number.startsWith("0")) { return false; } if (phone_number.startsWith("1")) { return US_PHONE_NUMBER_REGEX.test(phone_number); } return INTL_PHONE_NUMBER_REGEX.test(phone_number); }, "isInternationalPhoneNumber") /** * Calculates the SHA 256 hash of a given non-null string. * @param {String} [input] String to be hashed * @return {String} SHA 256 Hash of the string */ }, { key: "toSHA256", value: /* @__PURE__ */ __name(function toSHA256(input) { if (input === null) return input; return sha256(input); }, "toSHA256") }]); return ServerSideUtils2; }(); var Content = function() { function Content2(id, quantity, item_price, title2, description, brand, category, delivery_category) { classCallCheck(this, Content2); this._id = id; this._quantity = quantity; this._item_price = item_price; this._title = title2; this._description = description; this._brand = brand; this._category = category; this._delivery_category = delivery_category; } __name(Content2, "Content"); createClass(Content2, [{ key: "setId", /** * Sets the Product Id of the Item. * @param id is a string representing the unique id for the product. * Example: XYZ. */ value: /* @__PURE__ */ __name(function setId(id) { this._id = id; return this; }, "setId") /** * Gets the quantity of the Item. * The number/quantity of the content that is being involved in the customer interaction. * Example: 5 */ }, { key: "setQuantity", /** * Sets the quantity of the Content/Item. * @param {Number} quantity The number/quantity of the product that is being involved in the customer interaction. * Example: 5 */ value: /* @__PURE__ */ __name(function setQuantity(quantity) { this._quantity = quantity; return this; }, "setQuantity") /** * Gets the item price for the Product. * The item_price or price per unit of the product. * Example: '123.45' */ }, { key: "setItemPrice", /** * Sets the item price for the Content. * @param {Number} item_price The item_price or price per unit of the product. * Example: '123.45' */ value: /* @__PURE__ */ __name(function setItemPrice(item_price) { this._item_price = item_price; return this; }, "setItemPrice") /** * Gets the Title of the listed Item. * A string representing the Title for the product. */ }, { key: "setTitle", /** * Sets the Title of the Item. * @param title is a string representing listed title for the product. */ value: /* @__PURE__ */ __name(function setTitle(title2) { this._title = title2; return this; }, "setTitle") /** * Gets the Description of the listed Item. * A string representing the Description for the product. */ }, { key: "setDescription", /** * Sets the Product Description of the Item. * @param description is a string representing the description for the product. */ value: /* @__PURE__ */ __name(function setDescription(description) { this._description = description; return this; }, "setDescription") /** * Gets the Brand of the listed Item. * A string representing the Brand for the product. */ }, { key: "setBrand", /** * Sets the Brand of the Product. * @param brand is a string representing the Brand for the product. */ value: /* @__PURE__ */ __name(function setBrand(brand) { this._brand = brand; return this; }, "setBrand") /** * Gets the Category of the listed Item. * A string representing the Category for the product. */ }, { key: "setCategory", /** * Sets the Category of the Product. * @param category is a string representing the Category for the product. */ value: /* @__PURE__ */ __name(function setCategory(category) { this._category = category; return this; }, "setCategory") /** * Gets the delivery category. */ }, { key: "setDeliveryCategory", /** * Sets the type of delivery for a purchase event. * @param {String} delivery_category The delivery category. */ value: /* @__PURE__ */ __name(function setDeliveryCategory(delivery_category) { this._delivery_category = delivery_category; return this; }, "setDeliveryCategory") /** * Returns the normalized payload for the Content. * @returns {Object} normalized Content payload. */ }, { key: "normalize", value: /* @__PURE__ */ __name(function normalize() { var content = {}; if (this.id) { content["id"] = this.id; } if (this.quantity) { content["quantity"] = this.quantity; } if (this.item_price) { content["item_price"] = this.item_price; } if (this.title) { content["title"] = this.title; } if (this.description) { content["description"] = this.description; } if (this.brand) { content["brand"] = this.brand; } if (this.category) { content["category"] = this.category; } if (this.delivery_category) { content["delivery_category"] = ServerSideUtils.normalizeDeliveryCategory(this.delivery_category); } return content; }, "normalize") }, { key: "id", get: /* @__PURE__ */ __name(function get() { return this._id; }, "get"), set: /* @__PURE__ */ __name(function set(id) { this._id = id; }, "set") }, { key: "quantity", get: /* @__PURE__ */ __name(function get() { return this._quantity; }, "get"), set: /* @__PURE__ */ __name(function set(quantity) { this._quantity = quantity; }, "set") }, { key: "item_price", get: /* @__PURE__ */ __name(function get() { return this._item_price; }, "get"), set: /* @__PURE__ */ __name(function set(item_price) { this._item_price = item_price; }, "set") }, { key: "title", get: /* @__PURE__ */ __name(function get() { return this._title; }, "get"), set: /* @__PURE__ */ __name(function set(title2) { this._title = title2; }, "set") }, { key: "description", get: /* @__PURE__ */ __name(function get() { return this._description; }, "get"), set: /* @__PURE__ */ __name(function set(description) { this._description = description; }, "set") }, { key: "brand", get: /* @__PURE__ */ __name(function get() { return this._brand; }, "get"), set: /* @__PURE__ */ __name(function set(brand) { this._brand = brand; }, "set") }, { key: "category", get: /* @__PURE__ */ __name(function get() { return this._category; }, "get"), set: /* @__PURE__ */ __name(function set(category) { this._category = category; }, "set") }, { key: "delivery_category", get: /* @__PURE__ */ __name(function get() { return this._delivery_category; }, "get"), set: /* @__PURE__ */ __name(function set(delivery_category) { this._delivery_category = delivery_category; }, "set") }]); return Content2; }(); var CustomData = function() { function CustomData2(value, currency, content_name, content_category, content_ids, contents, content_type, order_id, predicted_ltv, num_items, search_string, status, item_number, delivery_category, custom_properties) { classCallCheck(this, CustomData2); this._value = value; this._currency = currency; this._content_name = content_name; this._content_category = content_category; this._content_ids = content_ids; this._contents = contents; this._content_type = content_type; this._order_id = order_id; this._predicted_ltv = predicted_ltv; this._num_items = num_items; this._search_string = search_string; this._status = status; this._item_number = item_number; this._delivery_category = delivery_category; this._custom_properties = custom_properties; } __name(CustomData2, "CustomData"); createClass(CustomData2, [{ key: "setValue", /** * Sets the value of the custom data. * @param {Number} value A numeric value associated with this event. This could be a monetary value or a value in some other metric. * Example: 142.54. */ value: /* @__PURE__ */ __name(function setValue(value) { this._value = value; return this; }, "setValue") /** * Gets the currency for the custom data. * The currency for the value specified, if applicable. Currency must be a valid ISO 4217 three digit currency code. * Example: 'usd' */ }, { key: "setCurrency", /** * Sets the currency for the custom data. * @param {String} currency The currency for the value specified, if applicable. Currency must be a valid ISO 4217 three digit currency code. * Example: 'usd' */ value: /* @__PURE__ */ __name(function setCurrency(currency) { this._currency = currency; return this; }, "setCurrency") /** * Gets the content name for the custom data. The name of the page or product associated with the event. * The name of the page or product associated with the event. * Example: 'lettuce' */ }, { key: "setContentName", /** * Sets the content name for the custom data. * @param content_name The name of the page or product associated with the event. * Example: 'lettuce' */ value: /* @__PURE__ */ __name(function setContentName(content_name) { this._content_name = content_name; return this; }, "setContentName") /** * Gets the content category for the custom data. * The category of the content associated with the event. * Example: 'grocery' */ }, { key: "setContentCategory", /** * Sets the content_category for the custom data. * @param content_category The category of the content associated with the event. * Example: 'grocery' */ value: /* @__PURE__ */ __name(function setContentCategory(content_category) { this._content_category = content_category; return this; }, "setContentCategory") /** * Gets the content_ids for the custom data. * The content IDs associated with the event, such as product SKUs for items in an AddToCart, represented as Array of string. * If content_type is a product, then your content IDs must be an array with a single string value. Otherwise, this array can contain any number of string values. * Example: ['ABC123', 'XYZ789'] */ }, { key: "setContentIds", /** * Sets the content_ids for the custom data. * @param {Array} content_ids The content IDs associated with the event, such as product SKUs for items in an AddToCart, represented as Array of string. * If content_type is a product, then your content IDs must be an array with a single string value. Otherwise, this array can contain any number of string values. * Example: ['ABC123', 'XYZ789'] */ value: /* @__PURE__ */ __name(function setContentIds(content_ids) { this._content_ids = content_ids; return this; }, "setContentIds") /** * Gets the contents for the custom data. * An array of Content objects that contain the product IDs associated with the event plus information about the products. id, quantity, and item_price are available fields. * Example: [{'id':'ABC123','quantity' :2,'item_price':5.99}, {'id':'XYZ789','quantity':2, 'item_price':9.99}] */ }, { key: "setContents", /** * Sets the contents for the custom data. * @param {Array<Content>} contents An array of Content objects that contain the product IDs associated with the event plus information about the products. id, quantity, and item_price are available fields. * Example: [{'id':'ABC123','quantity' :2,'item_price':5.99}, {'id':'XYZ789','quantity':2, 'item_price':9.99}] */ value: /* @__PURE__ */ __name(function setContents(contents) { this._contents = contents; return this; }, "setContents") /** * Gets the content type for the custom data. * A String equal to either product or product_group. Set to product if the keys you send content_ids or contents represent products. * Set to product_group if the keys you send in content_ids represent product groups. */ }, { key: "setContentType", /** * Sets the content type for the custom data. * @param {String} content_type A string equal to either product or product_group. Set to product if the keys you send content_ids or contents represent products. * Set to product_group if the keys you send in content_ids represent product groups. */ value: /* @__PURE__ */ __name(function setContentType(content_type) { this._content_type = content_type; return this; }, "setContentType") /** * Gets the order id for the custom data. * order_id is the order ID for this transaction as a String. * Example: 'order1234' */ }, { key: "setOrderId", /** * Sets the order_id for the custom data. * @param {String} order_id The order ID for this transaction as a String. * Example: 'order1234' */ value: /* @__PURE__ */ __name(function setOrderId(order_id) { this._order_id = order_id; return this; }, "setOrderId") /** * Gets the predicted LifeTimeValue for the (user) in custom data. * The predicted lifetime value of a conversion event, as a String. * Example: '432.12' */ }, { key: "setPredictedLtv", /** * Sets the predicted LifeTimeValue for the custom data. * @param {Number} predicted_ltv The predicted lifetime value of a conversion event, as a String. * Example: '432.12' */ value: /* @__PURE__ */ __name(function setPredictedLtv(predicted_ltv) { this._predicted_ltv = predicted_ltv; return this; }, "setPredictedLtv") /** * Gets the number of items for the custom data. * The number of items that a user tries to buy during checkout. Use only with InitiateCheckout type events. * Example: 5 */ }, { key: "setNumItems", /** * Sets the number of items for the custom data. * @param {Number} num_items The number of items that a user tries to buy during checkout. Use only with InitiateCheckout type events. * Example: 5 */ value: /* @__PURE__ */ __name(function setNumItems(num_items) { this._num_items = num_items; return this; }, "setNumItems") /** * Gets the search string for the custom data. * A search query made by a user.Use only with Search events. * Eg: 'lettuce' */ }, { key: "setSearchString", /** * Sets the search string for the custom data. * @param search_string A search query made by a user.Use only with Search events. * Eg: 'lettuce' */ value: /* @__PURE__ */ __name(function setSearchString(search_string) { this._search_string = search_string; return this; }, "setSearchString") /** * Gets the item number. */ }, { key: "setItemNumber", /** * Sets the item number. * @param {String} item_number The item number. */ value: /* @__PURE__ */ __name(function setItemNumber(item_number) { this._item_number = item_number; return this; }, "setItemNumber") /** * Gets the delivery category. */ }, { key: "setDeliveryCategory", /** * Sets the type of delivery for a purchase event. * @param {String} delivery_category The delivery category. */ value: /* @__PURE__ */ __name(function setDeliveryCategory(delivery_category) { this._delivery_category = delivery_category; return this; }, "setDeliveryCategory") /** * Gets the custom properties to be included in the Custom Data. * If our predefined object properties don't suit your needs, you can include your own, custom properties. Custom properties can be used with both standard and custom events, and can help you further define custom audiences. * This behavior is the same for Conversions API and Facebook Pixel. * @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/custom-data#custom-properties} * Eg: '{ 'warehouse_location' : 'washington', 'package_size' : 'L'}' */ }, { key: "setCustomProperties", /** * Sets the search string for the custom data. * @param custom_properties A custom properties property bag to be included in the Custom Data. * If our predefined object properties don't suit your needs, you can include your own, custom properties. Custom properties can be used with both standard and custom events, and can help you further define custom audiences. * This behavior is the same for Conversions API and Facebook Pixel. * @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/custom-data#custom-properties} * Eg: '{ 'warehouse_location' : 'washington', 'package_size' : 'L'}' * * @returns {Object} custom_properties property bag. */ value: /* @__PURE__ */ __name(function setCustomProperties(custom_properties) { this._custom_properties = custom_properties; return this; }, "setCustomProperties") /** * Gets the status of the registration event. * Status of the registration event, as a String.Use only with CompleteRegistration events. */ }, { key: "setStatus", /** * Sets the status of the registration event. * @param {String} status Status of the registration event, as a String. Use only with CompleteRegistration events. */ value: /* @__PURE__ */ __name(function setStatus(status) { this._status = status; return this; }, "setStatus") /** * Adds the custom property (key, value) to the custom property bag. * @param {string} key The Key for the property to be added. * @param {string} value The Value for the property to be added. */ }, { key: "add_custom_property", value: /* @__PURE__ */ __name(function add_custom_property(key, value) { if (this.custom_properties == null) { this.custom_properties = {}; } this.custom_properties[key] = value; }, "add_custom_property") /** * Returns the normalized payload for the custom_data. * @returns {Object} normalized custom_data payload. */ }, { key: "normalize", value: /* @__PURE__ */ __name(function normalize() { var customData = {}; var parsedValue = Number.parseFloat(this.value); if (!Number.isNaN(parsedValue)) { customData["value"] = parsedValue; } if (this.currency) { customData["currency"] = ServerSideUtils.normalizeCurrency(this.currency); } if (this.content_name) { customData["content_name"] = this.content_name; } if (this.content_category) { customData["content_category"] = this.content_category; } if (this.content_ids) { customData["content_ids"] = this.content_ids; } if (this.contents) { var normalized_contents = []; for (var i = 0; i < this.contents.length; i++) { var content = this.contents[i]; var normalized_content = content.normalize.call(content); normalized_contents.push(normalized_content); } customData["contents"] = normalized_contents; } if (this.content_type) { customData["content_type"] = this.content_type; } if (this.order_id) { customData["order_id"] = this.order_id; } if (this.predicted_ltv) { customData["predicted_ltv"] = this.predicted_ltv; } if (this.num_items) { customData["num_items"] = this.num_items; } if (this.search_string) { customData["search_string"] = this.search_string; } if (this.status) { customData["status"] = this.status; } if (this.item_number) { customData["item_number"] = this.item_number; } if (this.delivery_category) { customData["delivery_category"] = ServerSideUtils.normalizeDeliveryCategory(this.delivery_category); } if (this.custom_properties) { for (var key in this.custom_properties) { if (customData.hasOwnProperty(key)) { throw new Error('Duplicate key in custom_properties:"' + key + '". Please make sure the keys defined in the custom_properties are not already available in standard custom_data property list.'); } customData[key] = this.custom_properties[key]; } } return customData; }, "normalize") }, { key: "value", get: /* @__PURE__ */ __name(function get() { return this._value; }, "get"), set: /* @__PURE__ */ __name(function set(value) { this._value = value; }, "set") }, { key: "currency", get: /* @__PURE__ */ __name(function get() { return this._currency; }, "get"), set: /* @__PURE__ */ __name(function set(currency) { this._currency = currency; }, "set") }, { key: "content_name", get: /* @__PURE__ */ __name(function get() { return this._content_name; }, "get"), set: /* @__PURE__ */ __name(function set(content_name) { this._content_name = content_name; }, "set") }, { key: "content_category", get: /* @__PURE__ */ __name(function get() { return this._content_category; }, "get"), set: /* @__PURE__ */ __name(function set(content_category) { this._content_category = content_category; }, "set") }, { key: "content_ids", get: /* @__PURE__ */ __name(function get() { return this._content_ids; }, "get"), set: /* @__PURE__ */ __name(function set(content_ids) { this._content_ids = content_ids; }, "set") }, { key: "contents", get: /* @__PURE__ */ __name(function get() { return this._contents; }, "get"), set: /* @__PURE__ */ __name(function set(contents) { this._contents = contents; }, "set") }, { key: "content_type", get: /* @__PURE__ */ __name(function get() { return this._content_type; }, "get"), set: /* @__PURE__ */ __name(function set(content_type) { this._content_type = content_type; }, "set") }, { key: "order_id", get: /* @__PURE__ */ __name(function get() { return this._order_id; }, "get"), set: /* @__PURE__ */ __name(function set(order_id) { this._order_id = order_id; }, "set") }, { key: "predicted_ltv", get: /* @__PURE__ */ __name(function get() { return this._predicted_ltv; }, "get"), set: /* @__PURE__ */ __name(function set(predicted_ltv) { this._predicted_ltv = predicted_ltv; }, "set") }, { key: "num_items", get: /* @__PURE__ */ __name(function get() { return this._num_items; }, "get"), set: /* @__PURE__ */ __name(function set(num_items) { this._num_items = num_items; }, "set") }, { key: "search_string", get: /* @__PURE__ */ __name(function get() { return this._search_string; }, "get"), set: /* @__PURE__ */ __name(function set(search_string) { this._search_string = search_string; }, "set") }, { key: "item_number", get: /* @__PURE__ */ __name(function get() { return this._item_number; }, "get"), set: /* @__PURE__ */ __name(function set(item_number) { this._item_number = item_number; }, "set") }, { key: "delivery_category", get: /* @__PURE__ */ __name(function get() { return this._delivery_category; }, "get"), set: /* @__PURE__ */ __name(function set(delivery_category) { this._delivery_category = delivery_category; }, "set") }, { key: "custom_properties", get: /* @__PURE__ */ __name(function get() { return this._custom_properties; }, "get"), set: /* @__PURE__ */ __name(function set(custom_properties) { this._custom_properties = custom_properties; }, "set") }, { key: "status", get: /* @__PURE__ */ __name(function get() { return this._status; }, "get"), set: /* @__PURE__ */ __name(function set(status) { this._status = status; }, "set") }]); return CustomData2; }(); var AdAccountBusinessConstraints = function(_AbstractCrudObject) { inherits(AdAccountBusinessConstraints2, _AbstractCrudObject); function AdAccountBusinessConstraints2() { classCallCheck(this, AdAccountBusinessConstraints2); return possibleConstructorReturn(this, (AdAccountBusinessConstraints2.__proto__ || Object.getPrototypeOf(AdAccountBusinessConstraints2)).apply(this, arguments)); } __name(AdAccountBusinessConstraints2, "AdAccountBusinessConstraints"); createClass(AdAccountBusinessConstraints2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ audience_controls: "audience_controls", campaigns_with_error: "campaigns_with_error", placement_controls: "placement_controls", status: "status" }); }, "get") }]); return AdAccountBusinessConstraints2; }(AbstractCrudObject); var AdActivity = function(_AbstractCrudObject) { inherits(AdActivity2, _AbstractCrudObject); function AdActivity2() { classCallCheck(this, AdActivity2); return possibleConstructorReturn(this, (AdActivity2.__proto__ || Object.getPrototypeOf(AdActivity2)).apply(this, arguments)); } __name(AdActivity2, "AdActivity"); createClass(AdActivity2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ actor_id: "actor_id", actor_name: "actor_name", application_id: "application_id", application_name: "application_name", date_time_in_timezone: "date_time_in_timezone", event_time: "event_time", event_type: "event_type", extra_data: "extra_data", object_id: "object_id", object_name: "object_name", object_type: "object_type", translated_event_type: "translated_event_type" }); }, "get") }, { key: "EventType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_spending_limit_reached: "account_spending_limit_reached", ad_account_add_user_to_role: "ad_account_add_user_to_role", ad_account_billing_charge: "ad_account_billing_charge", ad_account_billing_charge_failed: "ad_account_billing_charge_failed", ad_account_billing_chargeback: "ad_account_billing_chargeback", ad_account_billing_chargeback_reversal: "ad_account_billing_chargeback_reversal", ad_account_billing_decline: "ad_account_billing_decline", ad_account_billing_refund: "ad_account_billing_refund", ad_account_remove_spend_limit: "ad_account_remove_spend_limit", ad_account_remove_user_from_role: "ad_account_remove_user_from_role", ad_account_reset_spend_limit: "ad_account_reset_spend_limit", ad_account_set_business_information: "ad_account_set_business_information", ad_account_update_spend_limit: "ad_account_update_spend_limit", ad_account_update_status: "ad_account_update_status", ad_review_approved: "ad_review_approved", ad_review_declined: "ad_review_declined", add_funding_source: "add_funding_source", add_images: "add_images", billing_event: "billing_event", campaign_ended: "campaign_ended", campaign_spending_limit_reached: "campaign_spending_limit_reached", conversion_event_updated: "conversion_event_updated", create_ad: "create_ad", create_ad_set: "create_ad_set", create_audience: "create_audience", create_campaign_group: "create_campaign_group", create_campaign_legacy: "create_campaign_legacy", delete_audience: "delete_audience", delete_images: "delete_images", di_ad_set_learning_stage_exit: "di_ad_set_learning_stage_exit", edit_and_update_ad_creative: "edit_and_update_ad_creative", edit_images: "edit_images", first_delivery_event: "first_delivery_event", funding_event_initiated: "funding_event_initiated", funding_event_successful: "funding_event_successful", lifetime_budget_spent: "lifetime_budget_spent", merge_campaigns: "merge_campaigns", receive_audience: "receive_audience", remove_funding_source: "remove_funding_source", remove_shared_audience: "remove_shared_audience", share_audience: "share_audience", unknown: "unknown", unshare_audience: "unshare_audience", update_ad_bid_info: "update_ad_bid_info", update_ad_bid_type: "update_ad_bid_type", update_ad_creative: "update_ad_creative", update_ad_friendly_name: "update_ad_friendly_name", update_ad_labels: "update_ad_labels", update_ad_run_status: "update_ad_run_status", update_ad_run_status_to_be_set_after_review: "update_ad_run_status_to_be_set_after_review", update_ad_set_ad_keywords: "update_ad_set_ad_keywords", update_ad_set_bid_adjustments: "update_ad_set_bid_adjustments", update_ad_set_bid_strategy: "update_ad_set_bid_strategy", update_ad_set_bidding: "update_ad_set_bidding", update_ad_set_budget: "update_ad_set_budget", update_ad_set_duration: "update_ad_set_duration", update_ad_set_learning_stage_status: "update_ad_set_learning_stage_status", update_ad_set_min_spend_target: "update_ad_set_min_spend_target", update_ad_set_name: "update_ad_set_name", update_ad_set_optimization_goal: "update_ad_set_optimization_goal", update_ad_set_run_status: "update_ad_set_run_status", update_ad_set_spend_cap: "update_ad_set_spend_cap", update_ad_set_target_spec: "update_ad_set_target_spec", update_ad_targets_spec: "update_ad_targets_spec", update_adgroup_stop_delivery: "update_adgroup_stop_delivery", update_audience: "update_audience", update_campaign_ad_scheduling: "update_campaign_ad_scheduling", update_campaign_budget: "update_campaign_budget", update_campaign_budget_optimization_toggling_status: "update_campaign_budget_optimization_toggling_status", update_campaign_budget_scheduling_state: "update_campaign_budget_scheduling_state", update_campaign_conversion_goal: "update_campaign_conversion_goal", update_campaign_delivery_type: "update_campaign_delivery_type", update_campaign_group_ad_scheduling: "update_campaign_group_ad_scheduling", update_campaign_group_budget_scheduling_state: "update_campaign_group_budget_scheduling_state", update_campaign_group_delivery_type: "update_campaign_group_delivery_type", update_campaign_group_high_demand_periods: "update_campaign_group_high_demand_periods", update_campaign_group_spend_cap: "update_campaign_group_spend_cap", update_campaign_high_demand_periods: "update_campaign_high_demand_periods", update_campaign_name: "update_campaign_name", update_campaign_run_status: "update_campaign_run_status", update_campaign_schedule: "update_campaign_schedule", update_campaign_value_adjustment_rule: "update_campaign_value_adjustment_rule", update_delivery_type_cross_level_shift: "update_delivery_type_cross_level_shift" }); }, "get") }, { key: "Category", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account: "ACCOUNT", ad: "AD", ad_keywords: "AD_KEYWORDS", ad_set: "AD_SET", audience: "AUDIENCE", bid: "BID", budget: "BUDGET", campaign: "CAMPAIGN", date: "DATE", status: "STATUS", targeting: "TARGETING" }); }, "get") }, { key: "DataSource", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ calypso: "CALYPSO", tao: "TAO", tao_ad_account: "TAO_AD_ACCOUNT", tao_ad_status: "TAO_AD_STATUS" }); }, "get") }]); return AdActivity2; }(AbstractCrudObject); var AdPlacePageSet = function(_AbstractCrudObject) { inherits(AdPlacePageSet2, _AbstractCrudObject); function AdPlacePageSet2() { classCallCheck(this, AdPlacePageSet2); return possibleConstructorReturn(this, (AdPlacePageSet2.__proto__ || Object.getPrototypeOf(AdPlacePageSet2)).apply(this, arguments)); } __name(AdPlacePageSet2, "AdPlacePageSet"); createClass(AdPlacePageSet2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", id: "id", location_types: "location_types", name: "name", pages_count: "pages_count", parent_page: "parent_page" }); }, "get") }, { key: "LocationTypes", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ home: "home", recent: "recent" }); }, "get") }, { key: "TargetedAreaType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ custom_radius: "CUSTOM_RADIUS", marketing_area: "MARKETING_AREA", none: "NONE" }); }, "get") }]); return AdPlacePageSet2; }(AbstractCrudObject); var AdCreativeInsights = function(_AbstractCrudObject) { inherits(AdCreativeInsights2, _AbstractCrudObject); function AdCreativeInsights2() { classCallCheck(this, AdCreativeInsights2); return possibleConstructorReturn(this, (AdCreativeInsights2.__proto__ || Object.getPrototypeOf(AdCreativeInsights2)).apply(this, arguments)); } __name(AdCreativeInsights2, "AdCreativeInsights"); createClass(AdCreativeInsights2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aesthetics: "aesthetics" }); }, "get") }]); return AdCreativeInsights2; }(AbstractCrudObject); var AdPreview = function(_AbstractCrudObject) { inherits(AdPreview2, _AbstractCrudObject); function AdPreview2() { classCallCheck(this, AdPreview2); return possibleConstructorReturn(this, (AdPreview2.__proto__ || Object.getPrototypeOf(AdPreview2)).apply(this, arguments)); } __name(AdPreview2, "AdPreview"); createClass(AdPreview2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ body: "body", transformation_spec: "transformation_spec" }); }, "get") }, { key: "AdFormat", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ audience_network_instream_video: "AUDIENCE_NETWORK_INSTREAM_VIDEO", audience_network_instream_video_mobile: "AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE", audience_network_outstream_video: "AUDIENCE_NETWORK_OUTSTREAM_VIDEO", audience_network_rewarded_video: "AUDIENCE_NETWORK_REWARDED_VIDEO", biz_disco_feed_mobile: "BIZ_DISCO_FEED_MOBILE", desktop_feed_standard: "DESKTOP_FEED_STANDARD", facebook_profile_feed_desktop: "FACEBOOK_PROFILE_FEED_DESKTOP", facebook_profile_feed_mobile: "FACEBOOK_PROFILE_FEED_MOBILE", facebook_reels_banner: "FACEBOOK_REELS_BANNER", facebook_reels_banner_desktop: "FACEBOOK_REELS_BANNER_DESKTOP", facebook_reels_mobile: "FACEBOOK_REELS_MOBILE", facebook_reels_postloop: "FACEBOOK_REELS_POSTLOOP", facebook_reels_sticker: "FACEBOOK_REELS_STICKER", facebook_story_mobile: "FACEBOOK_STORY_MOBILE", facebook_story_sticker_mobile: "FACEBOOK_STORY_STICKER_MOBILE", instagram_explore_contextual: "INSTAGRAM_EXPLORE_CONTEXTUAL", instagram_explore_grid_home: "INSTAGRAM_EXPLORE_GRID_HOME", instagram_explore_immersive: "INSTAGRAM_EXPLORE_IMMERSIVE", instagram_feed_web: "INSTAGRAM_FEED_WEB", instagram_feed_web_m_site: "INSTAGRAM_FEED_WEB_M_SITE", instagram_lead_gen_multi_submit_ads: "INSTAGRAM_LEAD_GEN_MULTI_SUBMIT_ADS", instagram_profile_feed: "INSTAGRAM_PROFILE_FEED", instagram_profile_reels: "INSTAGRAM_PROFILE_REELS", instagram_reels: "INSTAGRAM_REELS", instagram_reels_overlay: "INSTAGRAM_REELS_OVERLAY", instagram_search_chain: "INSTAGRAM_SEARCH_CHAIN", instagram_search_grid: "INSTAGRAM_SEARCH_GRID", instagram_standard: "INSTAGRAM_STANDARD", instagram_story: "INSTAGRAM_STORY", instagram_story_effect_tray: "INSTAGRAM_STORY_EFFECT_TRAY", instagram_story_web: "INSTAGRAM_STORY_WEB", instagram_story_web_m_site: "INSTAGRAM_STORY_WEB_M_SITE", instant_article_recirculation_ad: "INSTANT_ARTICLE_RECIRCULATION_AD", instant_article_standard: "INSTANT_ARTICLE_STANDARD", instream_banner_desktop: "INSTREAM_BANNER_DESKTOP", instream_banner_fullscreen_mobile: "INSTREAM_BANNER_FULLSCREEN_MOBILE", instream_banner_immersive_mobile: "INSTREAM_BANNER_IMMERSIVE_MOBILE", instream_banner_mobile: "INSTREAM_BANNER_MOBILE", instream_video_desktop: "INSTREAM_VIDEO_DESKTOP", instream_video_fullscreen_mobile: "INSTREAM_VIDEO_FULLSCREEN_MOBILE", instream_video_image: "INSTREAM_VIDEO_IMAGE", instream_video_immersive_mobile: "INSTREAM_VIDEO_IMMERSIVE_MOBILE", instream_video_mobile: "INSTREAM_VIDEO_MOBILE", job_browser_desktop: "JOB_BROWSER_DESKTOP", job_browser_mobile: "JOB_BROWSER_MOBILE", marketplace_mobile: "MARKETPLACE_MOBILE", messenger_mobile_inbox_media: "MESSENGER_MOBILE_INBOX_MEDIA", messenger_mobile_story_media: "MESSENGER_MOBILE_STORY_MEDIA", mobile_banner: "MOBILE_BANNER", mobile_feed_basic: "MOBILE_FEED_BASIC", mobile_feed_standard: "MOBILE_FEED_STANDARD", mobile_fullwidth: "MOBILE_FULLWIDTH", mobile_interstitial: "MOBILE_INTERSTITIAL", mobile_medium_rectangle: "MOBILE_MEDIUM_RECTANGLE", mobile_native: "MOBILE_NATIVE", right_column_standard: "RIGHT_COLUMN_STANDARD", suggested_video_desktop: "SUGGESTED_VIDEO_DESKTOP", suggested_video_fullscreen_mobile: "SUGGESTED_VIDEO_FULLSCREEN_MOBILE", suggested_video_immersive_mobile: "SUGGESTED_VIDEO_IMMERSIVE_MOBILE", suggested_video_mobile: "SUGGESTED_VIDEO_MOBILE", watch_feed_home: "WATCH_FEED_HOME", watch_feed_mobile: "WATCH_FEED_MOBILE" }); }, "get") }, { key: "CreativeFeature", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ product_metadata_automation: "product_metadata_automation", profile_card: "profile_card", standard_enhancements_catalog: "standard_enhancements_catalog" }); }, "get") }, { key: "RenderType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ fallback: "FALLBACK" }); }, "get") }]); return AdPreview2; }(AbstractCrudObject); var AdCreative = function(_AbstractCrudObject) { inherits(AdCreative2, _AbstractCrudObject); function AdCreative2() { classCallCheck(this, AdCreative2); return possibleConstructorReturn(this, (AdCreative2.__proto__ || Object.getPrototypeOf(AdCreative2)).apply(this, arguments)); } __name(AdCreative2, "AdCreative"); createClass(AdCreative2, [{ key: "createAdLabel", value: /* @__PURE__ */ __name(function createAdLabel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adlabels", fields, params, AdCreative2, pathOverride); }, "createAdLabel") }, { key: "getCreativeInsights", value: /* @__PURE__ */ __name(function getCreativeInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdCreativeInsights, fields, params, fetchFirstPage, "/creative_insights"); }, "getCreativeInsights") }, { key: "getPreviews", value: /* @__PURE__ */ __name(function getPreviews(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdPreview, fields, params, fetchFirstPage, "/previews"); }, "getPreviews") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdCreative2.prototype.__proto__ || Object.getPrototypeOf(AdCreative2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdCreative2.prototype.__proto__ || Object.getPrototypeOf(AdCreative2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", actor_id: "actor_id", adlabels: "adlabels", applink_treatment: "applink_treatment", asset_feed_spec: "asset_feed_spec", authorization_category: "authorization_category", auto_update: "auto_update", body: "body", branded_content: "branded_content", branded_content_sponsor_page_id: "branded_content_sponsor_page_id", bundle_folder_id: "bundle_folder_id", call_to_action_type: "call_to_action_type", categorization_criteria: "categorization_criteria", category_media_source: "category_media_source", collaborative_ads_lsb_image_bank_id: "collaborative_ads_lsb_image_bank_id", creative_sourcing_spec: "creative_sourcing_spec", degrees_of_freedom_spec: "degrees_of_freedom_spec", destination_set_id: "destination_set_id", dynamic_ad_voice: "dynamic_ad_voice", effective_authorization_category: "effective_authorization_category", effective_instagram_media_id: "effective_instagram_media_id", effective_instagram_story_id: "effective_instagram_story_id", effective_object_story_id: "effective_object_story_id", enable_direct_install: "enable_direct_install", enable_launch_instant_app: "enable_launch_instant_app", facebook_branded_content: "facebook_branded_content", id: "id", image_crops: "image_crops", image_hash: "image_hash", image_url: "image_url", instagram_actor_id: "instagram_actor_id", instagram_branded_content: "instagram_branded_content", instagram_permalink_url: "instagram_permalink_url", instagram_story_id: "instagram_story_id", instagram_user_id: "instagram_user_id", interactive_components_spec: "interactive_components_spec", link_deep_link_url: "link_deep_link_url", link_destination_display_url: "link_destination_display_url", link_og_id: "link_og_id", link_url: "link_url", messenger_sponsored_message: "messenger_sponsored_message", name: "name", object_id: "object_id", object_store_url: "object_store_url", object_story_id: "object_story_id", object_story_spec: "object_story_spec", object_type: "object_type", object_url: "object_url", omnichannel_link_spec: "omnichannel_link_spec", photo_album_source_object_story_id: "photo_album_source_object_story_id", place_page_set_id: "place_page_set_id", platform_customizations: "platform_customizations", playable_asset_id: "playable_asset_id", portrait_customizations: "portrait_customizations", product_set_id: "product_set_id", recommender_settings: "recommender_settings", source_instagram_media_id: "source_instagram_media_id", status: "status", template_url: "template_url", template_url_spec: "template_url_spec", thumbnail_id: "thumbnail_id", thumbnail_url: "thumbnail_url", title: "title", url_tags: "url_tags", use_page_actor_override: "use_page_actor_override", video_id: "video_id" }); }, "get") }, { key: "CallToActionType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ add_to_cart: "ADD_TO_CART", apply_now: "APPLY_NOW", ask_about_services: "ASK_ABOUT_SERVICES", ask_for_more_info: "ASK_FOR_MORE_INFO", audio_call: "AUDIO_CALL", book_a_consultation: "BOOK_A_CONSULTATION", book_now: "BOOK_NOW", book_travel: "BOOK_TRAVEL", buy: "BUY", buy_now: "BUY_NOW", buy_tickets: "BUY_TICKETS", buy_via_message: "BUY_VIA_MESSAGE", call: "CALL", call_me: "CALL_ME", call_now: "CALL_NOW", chat_with_us: "CHAT_WITH_US", confirm: "CONFIRM", contact: "CONTACT", contact_us: "CONTACT_US", donate: "DONATE", donate_now: "DONATE_NOW", download: "DOWNLOAD", event_rsvp: "EVENT_RSVP", find_a_group: "FIND_A_GROUP", find_your_groups: "FIND_YOUR_GROUPS", follow_news_storyline: "FOLLOW_NEWS_STORYLINE", follow_page: "FOLLOW_PAGE", follow_user: "FOLLOW_USER", get_a_quote: "GET_A_QUOTE", get_directions: "GET_DIRECTIONS", get_offer: "GET_OFFER", get_offer_view: "GET_OFFER_VIEW", get_promotions: "GET_PROMOTIONS", get_quote: "GET_QUOTE", get_showtimes: "GET_SHOWTIMES", get_started: "GET_STARTED", inquire_now: "INQUIRE_NOW", install_app: "INSTALL_APP", install_mobile_app: "INSTALL_MOBILE_APP", join_channel: "JOIN_CHANNEL", learn_more: "LEARN_MORE", like_page: "LIKE_PAGE", listen_music: "LISTEN_MUSIC", listen_now: "LISTEN_NOW", make_an_appointment: "MAKE_AN_APPOINTMENT", message_page: "MESSAGE_PAGE", mobile_download: "MOBILE_DOWNLOAD", no_button: "NO_BUTTON", open_instant_app: "OPEN_INSTANT_APP", open_link: "OPEN_LINK", order_now: "ORDER_NOW", pay_to_access: "PAY_TO_ACCESS", play_game: "PLAY_GAME", play_game_on_facebook: "PLAY_GAME_ON_FACEBOOK", purchase_gift_cards: "PURCHASE_GIFT_CARDS", raise_money: "RAISE_MONEY", record_now: "RECORD_NOW", refer_friends: "REFER_FRIENDS", request_time: "REQUEST_TIME", say_thanks: "SAY_THANKS", see_more: "SEE_MORE", sell_now: "SELL_NOW", send_a_gift: "SEND_A_GIFT", send_gift_money: "SEND_GIFT_MONEY", send_updates: "SEND_UPDATES", share: "SHARE", shop_now: "SHOP_NOW", sign_up: "SIGN_UP", sotto_subscribe: "SOTTO_SUBSCRIBE", start_order: "START_ORDER", subscribe: "SUBSCRIBE", swipe_up_product: "SWIPE_UP_PRODUCT", swipe_up_shop: "SWIPE_UP_SHOP", update_app: "UPDATE_APP", use_app: "USE_APP", use_mobile_app: "USE_MOBILE_APP", video_annotation: "VIDEO_ANNOTATION", video_call: "VIDEO_CALL", visit_pages_feed: "VISIT_PAGES_FEED", watch_more: "WATCH_MORE", watch_video: "WATCH_VIDEO", whatsapp_message: "WHATSAPP_MESSAGE", woodhenge_support: "WOODHENGE_SUPPORT" }); }, "get") }, { key: "ObjectType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ application: "APPLICATION", domain: "DOMAIN", event: "EVENT", invalid: "INVALID", offer: "OFFER", page: "PAGE", photo: "PHOTO", post_deleted: "POST_DELETED", privacy_check_fail: "PRIVACY_CHECK_FAIL", share: "SHARE", status: "STATUS", store_item: "STORE_ITEM", video: "VIDEO" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", deleted: "DELETED", in_process: "IN_PROCESS", with_issues: "WITH_ISSUES" }); }, "get") }, { key: "ApplinkTreatment", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automatic: "automatic", deeplink_with_appstore_fallback: "deeplink_with_appstore_fallback", deeplink_with_web_fallback: "deeplink_with_web_fallback", web_only: "web_only" }); }, "get") }, { key: "AuthorizationCategory", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ none: "NONE", political: "POLITICAL", political_with_digitally_created_media: "POLITICAL_WITH_DIGITALLY_CREATED_MEDIA" }); }, "get") }, { key: "CategorizationCriteria", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ brand: "brand", category: "category", product_type: "product_type" }); }, "get") }, { key: "CategoryMediaSource", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ category: "CATEGORY", mixed: "MIXED", products_collage: "PRODUCTS_COLLAGE", products_slideshow: "PRODUCTS_SLIDESHOW" }); }, "get") }, { key: "DynamicAdVoice", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ dynamic: "DYNAMIC", story_owner: "STORY_OWNER" }); }, "get") }, { key: "Operator", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ all: "ALL", any: "ANY" }); }, "get") }]); return AdCreative2; }(AbstractCrudObject); var AdRuleHistory = function(_AbstractCrudObject) { inherits(AdRuleHistory2, _AbstractCrudObject); function AdRuleHistory2() { classCallCheck(this, AdRuleHistory2); return possibleConstructorReturn(this, (AdRuleHistory2.__proto__ || Object.getPrototypeOf(AdRuleHistory2)).apply(this, arguments)); } __name(AdRuleHistory2, "AdRuleHistory"); createClass(AdRuleHistory2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ evaluation_spec: "evaluation_spec", exception_code: "exception_code", exception_message: "exception_message", execution_spec: "execution_spec", is_manual: "is_manual", results: "results", schedule_spec: "schedule_spec", timestamp: "timestamp" }); }, "get") }, { key: "Action", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ budget_not_redistributed: "BUDGET_NOT_REDISTRIBUTED", changed_bid: "CHANGED_BID", changed_budget: "CHANGED_BUDGET", email: "EMAIL", enable_advantage_plus_creative: "ENABLE_ADVANTAGE_PLUS_CREATIVE", enable_advantage_plus_placements: "ENABLE_ADVANTAGE_PLUS_PLACEMENTS", enable_autoflow: "ENABLE_AUTOFLOW", enable_gen_uncrop: "ENABLE_GEN_UNCROP", enable_semantic_based_audience_expansion: "ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION", endpoint_pinged: "ENDPOINT_PINGED", error: "ERROR", facebook_notification_sent: "FACEBOOK_NOTIFICATION_SENT", message_sent: "MESSAGE_SENT", not_changed: "NOT_CHANGED", paused: "PAUSED", unpaused: "UNPAUSED" }); }, "get") }]); return AdRuleHistory2; }(AbstractCrudObject); var AdRule = function(_AbstractCrudObject) { inherits(AdRule2, _AbstractCrudObject); function AdRule2() { classCallCheck(this, AdRule2); return possibleConstructorReturn(this, (AdRule2.__proto__ || Object.getPrototypeOf(AdRule2)).apply(this, arguments)); } __name(AdRule2, "AdRule"); createClass(AdRule2, [{ key: "createExecute", value: /* @__PURE__ */ __name(function createExecute(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/execute", fields, params, null, pathOverride); }, "createExecute") }, { key: "getHistory", value: /* @__PURE__ */ __name(function getHistory(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdRuleHistory, fields, params, fetchFirstPage, "/history"); }, "getHistory") }, { key: "createPreview", value: /* @__PURE__ */ __name(function createPreview(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/preview", fields, params, AdRule2, pathOverride); }, "createPreview") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdRule2.prototype.__proto__ || Object.getPrototypeOf(AdRule2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdRule2.prototype.__proto__ || Object.getPrototypeOf(AdRule2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", created_by: "created_by", created_time: "created_time", evaluation_spec: "evaluation_spec", execution_spec: "execution_spec", id: "id", name: "name", schedule_spec: "schedule_spec", status: "status", updated_time: "updated_time" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ deleted: "DELETED", disabled: "DISABLED", enabled: "ENABLED", has_issues: "HAS_ISSUES" }); }, "get") }, { key: "UiCreationSource", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ am_account_overview_recommendations: "AM_ACCOUNT_OVERVIEW_RECOMMENDATIONS", am_activity_history_table: "AM_ACTIVITY_HISTORY_TABLE", am_ad_object_name_card: "AM_AD_OBJECT_NAME_CARD", am_amfe_l3_recommendation: "AM_AMFE_L3_RECOMMENDATION", am_autoflow_guidance_card: "AM_AUTOFLOW_GUIDANCE_CARD", am_auto_apply_widget: "AM_AUTO_APPLY_WIDGET", am_editor_card: "AM_EDITOR_CARD", am_info_card: "AM_INFO_CARD", am_name_cell_dropdown: "AM_NAME_CELL_DROPDOWN", am_optimization_tip_guidance_card: "AM_OPTIMIZATION_TIP_GUIDANCE_CARD", am_performance_summary: "AM_PERFORMANCE_SUMMARY", am_rule_landing_page_banner: "AM_RULE_LANDING_PAGE_BANNER", am_syd_resolution_flow: "AM_SYD_RESOLUTION_FLOW", am_syd_resolution_flow_modal: "AM_SYD_RESOLUTION_FLOW_MODAL", am_table_delivery_column_popover: "AM_TABLE_DELIVERY_COLUMN_POPOVER", am_table_toggle_popover: "AM_TABLE_TOGGLE_POPOVER", am_toolbar_create_rule_dropdown: "AM_TOOLBAR_CREATE_RULE_DROPDOWN", pe_campaign_structure_menu: "PE_CAMPAIGN_STRUCTURE_MENU", pe_editor_card: "PE_EDITOR_CARD", pe_info_card: "PE_INFO_CARD", pe_toolbar_create_rule_dropdown: "PE_TOOLBAR_CREATE_RULE_DROPDOWN", rules_management_page_action_dropdown: "RULES_MANAGEMENT_PAGE_ACTION_DROPDOWN", rules_management_page_rule_group: "RULES_MANAGEMENT_PAGE_RULE_GROUP", rules_management_page_rule_name: "RULES_MANAGEMENT_PAGE_RULE_NAME", rules_management_page_top_nav: "RULES_MANAGEMENT_PAGE_TOP_NAV", rules_view_active_rules_dialog: "RULES_VIEW_ACTIVE_RULES_DIALOG", rule_creation_success_dialog: "RULE_CREATION_SUCCESS_DIALOG", rule_syd_redirect: "RULE_SYD_REDIRECT", rule_templates_dialog: "RULE_TEMPLATES_DIALOG" }); }, "get") }]); return AdRule2; }(AbstractCrudObject); var AdsInsights = function(_AbstractCrudObject) { inherits(AdsInsights2, _AbstractCrudObject); function AdsInsights2() { classCallCheck(this, AdsInsights2); return possibleConstructorReturn(this, (AdsInsights2.__proto__ || Object.getPrototypeOf(AdsInsights2)).apply(this, arguments)); } __name(AdsInsights2, "AdsInsights"); createClass(AdsInsights2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_currency: "account_currency", account_id: "account_id", account_name: "account_name", action_values: "action_values", actions: "actions", ad_click_actions: "ad_click_actions", ad_id: "ad_id", ad_impression_actions: "ad_impression_actions", ad_name: "ad_name", adset_end: "adset_end", adset_id: "adset_id", adset_name: "adset_name", adset_start: "adset_start", age_targeting: "age_targeting", attribution_setting: "attribution_setting", auction_bid: "auction_bid", auction_competitiveness: "auction_competitiveness", auction_max_competitor_bid: "auction_max_competitor_bid", buying_type: "buying_type", campaign_id: "campaign_id", campaign_name: "campaign_name", canvas_avg_view_percent: "canvas_avg_view_percent", canvas_avg_view_time: "canvas_avg_view_time", catalog_segment_actions: "catalog_segment_actions", catalog_segment_value: "catalog_segment_value", catalog_segment_value_mobile_purchase_roas: "catalog_segment_value_mobile_purchase_roas", catalog_segment_value_omni_purchase_roas: "catalog_segment_value_omni_purchase_roas", catalog_segment_value_website_purchase_roas: "catalog_segment_value_website_purchase_roas", clicks: "clicks", conversion_lead_rate: "conversion_lead_rate", conversion_rate_ranking: "conversion_rate_ranking", conversion_values: "conversion_values", conversions: "conversions", converted_product_quantity: "converted_product_quantity", converted_product_value: "converted_product_value", cost_per_15_sec_video_view: "cost_per_15_sec_video_view", cost_per_2_sec_continuous_video_view: "cost_per_2_sec_continuous_video_view", cost_per_action_type: "cost_per_action_type", cost_per_ad_click: "cost_per_ad_click", cost_per_conversion: "cost_per_conversion", cost_per_conversion_lead: "cost_per_conversion_lead", cost_per_dda_countby_convs: "cost_per_dda_countby_convs", cost_per_estimated_ad_recallers: "cost_per_estimated_ad_recallers", cost_per_inline_link_click: "cost_per_inline_link_click", cost_per_inline_post_engagement: "cost_per_inline_post_engagement", cost_per_one_thousand_ad_impression: "cost_per_one_thousand_ad_impression", cost_per_outbound_click: "cost_per_outbound_click", cost_per_thruplay: "cost_per_thruplay", cost_per_unique_action_type: "cost_per_unique_action_type", cost_per_unique_click: "cost_per_unique_click", cost_per_unique_conversion: "cost_per_unique_conversion", cost_per_unique_inline_link_click: "cost_per_unique_inline_link_click", cost_per_unique_outbound_click: "cost_per_unique_outbound_click", cpc: "cpc", cpm: "cpm", cpp: "cpp", created_time: "created_time", creative_media_type: "creative_media_type", ctr: "ctr", date_start: "date_start", date_stop: "date_stop", dda_countby_convs: "dda_countby_convs", dda_results: "dda_results", engagement_rate_ranking: "engagement_rate_ranking", estimated_ad_recall_rate: "estimated_ad_recall_rate", estimated_ad_recall_rate_lower_bound: "estimated_ad_recall_rate_lower_bound", estimated_ad_recall_rate_upper_bound: "estimated_ad_recall_rate_upper_bound", estimated_ad_recallers: "estimated_ad_recallers", estimated_ad_recallers_lower_bound: "estimated_ad_recallers_lower_bound", estimated_ad_recallers_upper_bound: "estimated_ad_recallers_upper_bound", frequency: "frequency", full_view_impressions: "full_view_impressions", full_view_reach: "full_view_reach", gender_targeting: "gender_targeting", impressions: "impressions", inline_link_click_ctr: "inline_link_click_ctr", inline_link_clicks: "inline_link_clicks", inline_post_engagement: "inline_post_engagement", instagram_upcoming_event_reminders_set: "instagram_upcoming_event_reminders_set", instant_experience_clicks_to_open: "instant_experience_clicks_to_open", instant_experience_clicks_to_start: "instant_experience_clicks_to_start", instant_experience_outbound_clicks: "instant_experience_outbound_clicks", interactive_component_tap: "interactive_component_tap", labels: "labels", location: "location", marketing_messages_cost_per_delivered: "marketing_messages_cost_per_delivered", marketing_messages_cost_per_link_btn_click: "marketing_messages_cost_per_link_btn_click", marketing_messages_spend: "marketing_messages_spend", marketing_messages_website_purchase_values: "marketing_messages_website_purchase_values", mobile_app_purchase_roas: "mobile_app_purchase_roas", objective: "objective", optimization_goal: "optimization_goal", outbound_clicks: "outbound_clicks", outbound_clicks_ctr: "outbound_clicks_ctr", place_page_name: "place_page_name", purchase_roas: "purchase_roas", qualifying_question_qualify_answer_rate: "qualifying_question_qualify_answer_rate", quality_ranking: "quality_ranking", reach: "reach", social_spend: "social_spend", spend: "spend", total_postbacks: "total_postbacks", total_postbacks_detailed: "total_postbacks_detailed", total_postbacks_detailed_v4: "total_postbacks_detailed_v4", unique_actions: "unique_actions", unique_clicks: "unique_clicks", unique_conversions: "unique_conversions", unique_ctr: "unique_ctr", unique_inline_link_click_ctr: "unique_inline_link_click_ctr", unique_inline_link_clicks: "unique_inline_link_clicks", unique_link_clicks_ctr: "unique_link_clicks_ctr", unique_outbound_clicks: "unique_outbound_clicks", unique_outbound_clicks_ctr: "unique_outbound_clicks_ctr", unique_video_continuous_2_sec_watched_actions: "unique_video_continuous_2_sec_watched_actions", unique_video_view_15_sec: "unique_video_view_15_sec", updated_time: "updated_time", video_15_sec_watched_actions: "video_15_sec_watched_actions", video_30_sec_watched_actions: "video_30_sec_watched_actions", video_avg_time_watched_actions: "video_avg_time_watched_actions", video_continuous_2_sec_watched_actions: "video_continuous_2_sec_watched_actions", video_p100_watched_actions: "video_p100_watched_actions", video_p25_watched_actions: "video_p25_watched_actions", video_p50_watched_actions: "video_p50_watched_actions", video_p75_watched_actions: "video_p75_watched_actions", video_p95_watched_actions: "video_p95_watched_actions", video_play_actions: "video_play_actions", video_play_curve_actions: "video_play_curve_actions", video_play_retention_0_to_15s_actions: "video_play_retention_0_to_15s_actions", video_play_retention_20_to_60s_actions: "video_play_retention_20_to_60s_actions", video_play_retention_graph_actions: "video_play_retention_graph_actions", video_thruplay_watched_actions: "video_thruplay_watched_actions", video_time_watched_actions: "video_time_watched_actions", website_ctr: "website_ctr", website_purchase_roas: "website_purchase_roas", wish_bid: "wish_bid" }); }, "get") }, { key: "ActionAttributionWindows", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ value_1d_click: "1d_click", value_1d_ev: "1d_ev", value_1d_view: "1d_view", value_28d_click: "28d_click", value_28d_view: "28d_view", value_28d_view_all_conversions: "28d_view_all_conversions", value_28d_view_first_conversion: "28d_view_first_conversion", value_7d_click: "7d_click", value_7d_view: "7d_view", value_7d_view_all_conversions: "7d_view_all_conversions", value_7d_view_first_conversion: "7d_view_first_conversion", dda: "dda", default: "default", skan_click: "skan_click", skan_view: "skan_view" }); }, "get") }, { key: "ActionBreakdowns", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ action_canvas_component_name: "action_canvas_component_name", action_carousel_card_id: "action_carousel_card_id", action_carousel_card_name: "action_carousel_card_name", action_destination: "action_destination", action_device: "action_device", action_reaction: "action_reaction", action_target_id: "action_target_id", action_type: "action_type", action_video_sound: "action_video_sound", action_video_type: "action_video_type", conversion_destination: "conversion_destination", matched_persona_id: "matched_persona_id", matched_persona_name: "matched_persona_name", signal_source_bucket: "signal_source_bucket", standard_event_content_type: "standard_event_content_type" }); }, "get") }, { key: "ActionReportTime", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ conversion: "conversion", impression: "impression", mixed: "mixed" }); }, "get") }, { key: "Breakdowns", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_format_asset: "ad_format_asset", age: "age", app_id: "app_id", body_asset: "body_asset", call_to_action_asset: "call_to_action_asset", coarse_conversion_value: "coarse_conversion_value", conversion_destination: "conversion_destination", country: "country", description_asset: "description_asset", device_platform: "device_platform", dma: "dma", fidelity_type: "fidelity_type", frequency_value: "frequency_value", gender: "gender", hourly_stats_aggregated_by_advertiser_time_zone: "hourly_stats_aggregated_by_advertiser_time_zone", hourly_stats_aggregated_by_audience_time_zone: "hourly_stats_aggregated_by_audience_time_zone", hsid: "hsid", image_asset: "image_asset", impression_device: "impression_device", is_conversion_id_modeled: "is_conversion_id_modeled", landing_destination: "landing_destination", link_url_asset: "link_url_asset", marketing_messages_btn_name: "marketing_messages_btn_name", mdsa_landing_destination: "mdsa_landing_destination", media_asset_url: "media_asset_url", media_creator: "media_creator", media_destination_url: "media_destination_url", media_format: "media_format", media_origin_url: "media_origin_url", media_text_content: "media_text_content", mmm: "mmm", place_page_id: "place_page_id", platform_position: "platform_position", postback_sequence_index: "postback_sequence_index", product_id: "product_id", publisher_platform: "publisher_platform", redownload: "redownload", region: "region", skan_campaign_id: "skan_campaign_id", skan_conversion_id: "skan_conversion_id", skan_version: "skan_version", standard_event_content_type: "standard_event_content_type", title_asset: "title_asset", video_asset: "video_asset" }); }, "get") }, { key: "DatePreset", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ data_maximum: "data_maximum", last_14d: "last_14d", last_28d: "last_28d", last_30d: "last_30d", last_3d: "last_3d", last_7d: "last_7d", last_90d: "last_90d", last_month: "last_month", last_quarter: "last_quarter", last_week_mon_sun: "last_week_mon_sun", last_week_sun_sat: "last_week_sun_sat", last_year: "last_year", maximum: "maximum", this_month: "this_month", this_quarter: "this_quarter", this_week_mon_today: "this_week_mon_today", this_week_sun_today: "this_week_sun_today", this_year: "this_year", today: "today", yesterday: "yesterday" }); }, "get") }, { key: "Level", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account: "account", ad: "ad", adset: "adset", campaign: "campaign" }); }, "get") }, { key: "SummaryActionBreakdowns", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ action_canvas_component_name: "action_canvas_component_name", action_carousel_card_id: "action_carousel_card_id", action_carousel_card_name: "action_carousel_card_name", action_destination: "action_destination", action_device: "action_device", action_reaction: "action_reaction", action_target_id: "action_target_id", action_type: "action_type", action_video_sound: "action_video_sound", action_video_type: "action_video_type", conversion_destination: "conversion_destination", matched_persona_id: "matched_persona_id", matched_persona_name: "matched_persona_name", signal_source_bucket: "signal_source_bucket", standard_event_content_type: "standard_event_content_type" }); }, "get") }]); return AdsInsights2; }(AbstractCrudObject); var AdReportRun = function(_AbstractCrudObject) { inherits(AdReportRun2, _AbstractCrudObject); createClass(AdReportRun2, [{ key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsInsights, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", async_percent_completion: "async_percent_completion", async_status: "async_status", date_start: "date_start", date_stop: "date_stop", emails: "emails", friendly_name: "friendly_name", id: "id", is_bookmarked: "is_bookmarked", is_running: "is_running", schedule_id: "schedule_id", time_completed: "time_completed", time_ref: "time_ref" }); }, "get") }]); function AdReportRun2() { var id = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null; var data = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var parentId = arguments[2]; var api = arguments[3]; classCallCheck(this, AdReportRun2); var _this = possibleConstructorReturn(this, (AdReportRun2.__proto__ || Object.getPrototypeOf(AdReportRun2)).call(this)); _this.id = data.report_run_id; return _this; } __name(AdReportRun2, "AdReportRun"); return AdReportRun2; }(AbstractCrudObject); var Lead = function(_AbstractCrudObject) { inherits(Lead2, _AbstractCrudObject); function Lead2() { classCallCheck(this, Lead2); return possibleConstructorReturn(this, (Lead2.__proto__ || Object.getPrototypeOf(Lead2)).apply(this, arguments)); } __name(Lead2, "Lead"); createClass(Lead2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Lead2.prototype.__proto__ || Object.getPrototypeOf(Lead2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_id: "ad_id", ad_name: "ad_name", adset_id: "adset_id", adset_name: "adset_name", campaign_id: "campaign_id", campaign_name: "campaign_name", created_time: "created_time", custom_disclaimer_responses: "custom_disclaimer_responses", field_data: "field_data", form_id: "form_id", home_listing: "home_listing", id: "id", is_organic: "is_organic", partner_name: "partner_name", platform: "platform", post: "post", post_submission_check_result: "post_submission_check_result", retailer_item_id: "retailer_item_id", vehicle: "vehicle" }); }, "get") }]); return Lead2; }(AbstractCrudObject); var TargetingSentenceLine = function(_AbstractCrudObject) { inherits(TargetingSentenceLine2, _AbstractCrudObject); function TargetingSentenceLine2() { classCallCheck(this, TargetingSentenceLine2); return possibleConstructorReturn(this, (TargetingSentenceLine2.__proto__ || Object.getPrototypeOf(TargetingSentenceLine2)).apply(this, arguments)); } __name(TargetingSentenceLine2, "TargetingSentenceLine"); createClass(TargetingSentenceLine2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", params: "params", targetingsentencelines: "targetingsentencelines" }); }, "get") }]); return TargetingSentenceLine2; }(AbstractCrudObject); var Ad2 = function(_AbstractCrudObject) { inherits(Ad3, _AbstractCrudObject); function Ad3() { classCallCheck(this, Ad3); return possibleConstructorReturn(this, (Ad3.__proto__ || Object.getPrototypeOf(Ad3)).apply(this, arguments)); } __name(Ad3, "Ad"); createClass(Ad3, [{ key: "getAdCreatives", value: /* @__PURE__ */ __name(function getAdCreatives(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdCreative, fields, params, fetchFirstPage, "/adcreatives"); }, "getAdCreatives") }, { key: "createAdLabel", value: /* @__PURE__ */ __name(function createAdLabel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adlabels", fields, params, Ad3, pathOverride); }, "createAdLabel") }, { key: "getAdRulesGoverned", value: /* @__PURE__ */ __name(function getAdRulesGoverned(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdRule, fields, params, fetchFirstPage, "/adrules_governed"); }, "getAdRulesGoverned") }, { key: "getCopies", value: /* @__PURE__ */ __name(function getCopies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Ad3, fields, params, fetchFirstPage, "/copies"); }, "getCopies") }, { key: "createCopy", value: /* @__PURE__ */ __name(function createCopy(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/copies", fields, params, Ad3, pathOverride); }, "createCopy") }, { key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsInsights, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "getInsightsAsync", value: /* @__PURE__ */ __name(function getInsightsAsync(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/insights", fields, params, AdReportRun, pathOverride); }, "getInsightsAsync") }, { key: "getLeads", value: /* @__PURE__ */ __name(function getLeads(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Lead, fields, params, fetchFirstPage, "/leads"); }, "getLeads") }, { key: "getPreviews", value: /* @__PURE__ */ __name(function getPreviews(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdPreview, fields, params, fetchFirstPage, "/previews"); }, "getPreviews") }, { key: "getTargetingSentenceLines", value: /* @__PURE__ */ __name(function getTargetingSentenceLines(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(TargetingSentenceLine, fields, params, fetchFirstPage, "/targetingsentencelines"); }, "getTargetingSentenceLines") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Ad3.prototype.__proto__ || Object.getPrototypeOf(Ad3.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Ad3.prototype.__proto__ || Object.getPrototypeOf(Ad3.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", ad_active_time: "ad_active_time", ad_review_feedback: "ad_review_feedback", ad_schedule_end_time: "ad_schedule_end_time", ad_schedule_start_time: "ad_schedule_start_time", adlabels: "adlabels", adset: "adset", adset_id: "adset_id", bid_amount: "bid_amount", bid_info: "bid_info", bid_type: "bid_type", campaign: "campaign", campaign_id: "campaign_id", configured_status: "configured_status", conversion_domain: "conversion_domain", conversion_specs: "conversion_specs", created_time: "created_time", creative: "creative", demolink_hash: "demolink_hash", display_sequence: "display_sequence", effective_status: "effective_status", engagement_audience: "engagement_audience", failed_delivery_checks: "failed_delivery_checks", id: "id", issues_info: "issues_info", last_updated_by_app_id: "last_updated_by_app_id", name: "name", preview_shareable_link: "preview_shareable_link", priority: "priority", recommendations: "recommendations", source_ad: "source_ad", source_ad_id: "source_ad_id", status: "status", targeting: "targeting", tracking_and_conversion_with_defaults: "tracking_and_conversion_with_defaults", tracking_specs: "tracking_specs", updated_time: "updated_time" }); }, "get") }, { key: "BidType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ absolute_ocpm: "ABSOLUTE_OCPM", cpa: "CPA", cpc: "CPC", cpm: "CPM", multi_premium: "MULTI_PREMIUM" }); }, "get") }, { key: "ConfiguredStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", archived: "ARCHIVED", deleted: "DELETED", paused: "PAUSED" }); }, "get") }, { key: "EffectiveStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", adset_paused: "ADSET_PAUSED", archived: "ARCHIVED", campaign_paused: "CAMPAIGN_PAUSED", deleted: "DELETED", disapproved: "DISAPPROVED", in_process: "IN_PROCESS", paused: "PAUSED", pending_billing_info: "PENDING_BILLING_INFO", pending_review: "PENDING_REVIEW", preapproved: "PREAPPROVED", with_issues: "WITH_ISSUES" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", archived: "ARCHIVED", deleted: "DELETED", paused: "PAUSED" }); }, "get") }, { key: "DatePreset", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ data_maximum: "data_maximum", last_14d: "last_14d", last_28d: "last_28d", last_30d: "last_30d", last_3d: "last_3d", last_7d: "last_7d", last_90d: "last_90d", last_month: "last_month", last_quarter: "last_quarter", last_week_mon_sun: "last_week_mon_sun", last_week_sun_sat: "last_week_sun_sat", last_year: "last_year", maximum: "maximum", this_month: "this_month", this_quarter: "this_quarter", this_week_mon_today: "this_week_mon_today", this_week_sun_today: "this_week_sun_today", this_year: "this_year", today: "today", yesterday: "yesterday" }); }, "get") }, { key: "ExecutionOptions", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ include_recommendations: "include_recommendations", synchronous_ad_review: "synchronous_ad_review", validate_only: "validate_only" }); }, "get") }, { key: "Operator", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ all: "ALL", any: "ANY" }); }, "get") }, { key: "StatusOption", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", inherited_from_source: "INHERITED_FROM_SOURCE", paused: "PAUSED" }); }, "get") }]); return Ad3; }(AbstractCrudObject); var AdAsyncRequest = function(_AbstractCrudObject) { inherits(AdAsyncRequest2, _AbstractCrudObject); function AdAsyncRequest2() { classCallCheck(this, AdAsyncRequest2); return possibleConstructorReturn(this, (AdAsyncRequest2.__proto__ || Object.getPrototypeOf(AdAsyncRequest2)).apply(this, arguments)); } __name(AdAsyncRequest2, "AdAsyncRequest"); createClass(AdAsyncRequest2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdAsyncRequest2.prototype.__proto__ || Object.getPrototypeOf(AdAsyncRequest2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ async_request_set: "async_request_set", created_time: "created_time", id: "id", input: "input", result: "result", scope_object_id: "scope_object_id", status: "status", type: "type", updated_time: "updated_time" }); }, "get") }, { key: "Statuses", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ canceled: "CANCELED", canceled_dependency: "CANCELED_DEPENDENCY", error: "ERROR", error_conflicts: "ERROR_CONFLICTS", error_dependency: "ERROR_DEPENDENCY", initial: "INITIAL", in_progress: "IN_PROGRESS", pending_dependency: "PENDING_DEPENDENCY", process_by_ad_async_engine: "PROCESS_BY_AD_ASYNC_ENGINE", process_by_event_processor: "PROCESS_BY_EVENT_PROCESSOR", success: "SUCCESS", user_canceled: "USER_CANCELED", user_canceled_dependency: "USER_CANCELED_DEPENDENCY" }); }, "get") }]); return AdAsyncRequest2; }(AbstractCrudObject); var HighDemandPeriod = function(_AbstractCrudObject) { inherits(HighDemandPeriod2, _AbstractCrudObject); function HighDemandPeriod2() { classCallCheck(this, HighDemandPeriod2); return possibleConstructorReturn(this, (HighDemandPeriod2.__proto__ || Object.getPrototypeOf(HighDemandPeriod2)).apply(this, arguments)); } __name(HighDemandPeriod2, "HighDemandPeriod"); createClass(HighDemandPeriod2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(HighDemandPeriod2.prototype.__proto__ || Object.getPrototypeOf(HighDemandPeriod2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(HighDemandPeriod2.prototype.__proto__ || Object.getPrototypeOf(HighDemandPeriod2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_object_id: "ad_object_id", budget_value: "budget_value", budget_value_type: "budget_value_type", id: "id", recurrence_type: "recurrence_type", time_end: "time_end", time_start: "time_start", weekly_schedule: "weekly_schedule" }); }, "get") }, { key: "BudgetValueType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ absolute: "ABSOLUTE", multiplier: "MULTIPLIER" }); }, "get") }]); return HighDemandPeriod2; }(AbstractCrudObject); var AdCampaignDeliveryEstimate = function(_AbstractCrudObject) { inherits(AdCampaignDeliveryEstimate2, _AbstractCrudObject); function AdCampaignDeliveryEstimate2() { classCallCheck(this, AdCampaignDeliveryEstimate2); return possibleConstructorReturn(this, (AdCampaignDeliveryEstimate2.__proto__ || Object.getPrototypeOf(AdCampaignDeliveryEstimate2)).apply(this, arguments)); } __name(AdCampaignDeliveryEstimate2, "AdCampaignDeliveryEstimate"); createClass(AdCampaignDeliveryEstimate2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ daily_outcomes_curve: "daily_outcomes_curve", estimate_dau: "estimate_dau", estimate_mau_lower_bound: "estimate_mau_lower_bound", estimate_mau_upper_bound: "estimate_mau_upper_bound", estimate_ready: "estimate_ready", targeting_optimization_types: "targeting_optimization_types" }); }, "get") }, { key: "OptimizationGoal", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_recall_lift: "AD_RECALL_LIFT", app_installs: "APP_INSTALLS", app_installs_and_offsite_conversions: "APP_INSTALLS_AND_OFFSITE_CONVERSIONS", conversations: "CONVERSATIONS", derived_events: "DERIVED_EVENTS", engaged_users: "ENGAGED_USERS", event_responses: "EVENT_RESPONSES", impressions: "IMPRESSIONS", in_app_value: "IN_APP_VALUE", landing_page_views: "LANDING_PAGE_VIEWS", lead_generation: "LEAD_GENERATION", link_clicks: "LINK_CLICKS", meaningful_call_attempt: "MEANINGFUL_CALL_ATTEMPT", messaging_appointment_conversion: "MESSAGING_APPOINTMENT_CONVERSION", messaging_purchase_conversion: "MESSAGING_PURCHASE_CONVERSION", none: "NONE", offsite_conversions: "OFFSITE_CONVERSIONS", page_likes: "PAGE_LIKES", post_engagement: "POST_ENGAGEMENT", quality_call: "QUALITY_CALL", quality_lead: "QUALITY_LEAD", reach: "REACH", reminders_set: "REMINDERS_SET", subscribers: "SUBSCRIBERS", thruplay: "THRUPLAY", value: "VALUE", visit_instagram_profile: "VISIT_INSTAGRAM_PROFILE" }); }, "get") }]); return AdCampaignDeliveryEstimate2; }(AbstractCrudObject); var AdSet2 = function(_AbstractCrudObject) { inherits(AdSet3, _AbstractCrudObject); function AdSet3() { classCallCheck(this, AdSet3); return possibleConstructorReturn(this, (AdSet3.__proto__ || Object.getPrototypeOf(AdSet3)).apply(this, arguments)); } __name(AdSet3, "AdSet"); createClass(AdSet3, [{ key: "getActivities", value: /* @__PURE__ */ __name(function getActivities(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdActivity, fields, params, fetchFirstPage, "/activities"); }, "getActivities") }, { key: "getAdStudies", value: /* @__PURE__ */ __name(function getAdStudies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdStudy, fields, params, fetchFirstPage, "/ad_studies"); }, "getAdStudies") }, { key: "getAdCreatives", value: /* @__PURE__ */ __name(function getAdCreatives(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdCreative, fields, params, fetchFirstPage, "/adcreatives"); }, "getAdCreatives") }, { key: "deleteAdLabels", value: /* @__PURE__ */ __name(function deleteAdLabels() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(AdSet3.prototype.__proto__ || Object.getPrototypeOf(AdSet3.prototype), "deleteEdge", this).call(this, "/adlabels", params); }, "deleteAdLabels") }, { key: "createAdLabel", value: /* @__PURE__ */ __name(function createAdLabel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adlabels", fields, params, AdSet3, pathOverride); }, "createAdLabel") }, { key: "getAdRulesGoverned", value: /* @__PURE__ */ __name(function getAdRulesGoverned(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdRule, fields, params, fetchFirstPage, "/adrules_governed"); }, "getAdRulesGoverned") }, { key: "getAds", value: /* @__PURE__ */ __name(function getAds(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Ad2, fields, params, fetchFirstPage, "/ads"); }, "getAds") }, { key: "getAsyncAdRequests", value: /* @__PURE__ */ __name(function getAsyncAdRequests(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAsyncRequest, fields, params, fetchFirstPage, "/asyncadrequests"); }, "getAsyncAdRequests") }, { key: "createBudgetSchedule", value: /* @__PURE__ */ __name(function createBudgetSchedule(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/budget_schedules", fields, params, HighDemandPeriod, pathOverride); }, "createBudgetSchedule") }, { key: "getCopies", value: /* @__PURE__ */ __name(function getCopies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdSet3, fields, params, fetchFirstPage, "/copies"); }, "getCopies") }, { key: "createCopy", value: /* @__PURE__ */ __name(function createCopy(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/copies", fields, params, AdSet3, pathOverride); }, "createCopy") }, { key: "getDeliveryEstimate", value: /* @__PURE__ */ __name(function getDeliveryEstimate(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdCampaignDeliveryEstimate, fields, params, fetchFirstPage, "/delivery_estimate"); }, "getDeliveryEstimate") }, { key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsInsights, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "getInsightsAsync", value: /* @__PURE__ */ __name(function getInsightsAsync(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/insights", fields, params, AdReportRun, pathOverride); }, "getInsightsAsync") }, { key: "getTargetingSentenceLines", value: /* @__PURE__ */ __name(function getTargetingSentenceLines(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(TargetingSentenceLine, fields, params, fetchFirstPage, "/targetingsentencelines"); }, "getTargetingSentenceLines") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdSet3.prototype.__proto__ || Object.getPrototypeOf(AdSet3.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdSet3.prototype.__proto__ || Object.getPrototypeOf(AdSet3.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", adlabels: "adlabels", adset_schedule: "adset_schedule", asset_feed_id: "asset_feed_id", attribution_spec: "attribution_spec", bid_adjustments: "bid_adjustments", bid_amount: "bid_amount", bid_constraints: "bid_constraints", bid_info: "bid_info", bid_strategy: "bid_strategy", billing_event: "billing_event", budget_remaining: "budget_remaining", campaign: "campaign", campaign_active_time: "campaign_active_time", campaign_attribution: "campaign_attribution", campaign_id: "campaign_id", configured_status: "configured_status", created_time: "created_time", creative_sequence: "creative_sequence", daily_budget: "daily_budget", daily_min_spend_target: "daily_min_spend_target", daily_spend_cap: "daily_spend_cap", destination_type: "destination_type", dsa_beneficiary: "dsa_beneficiary", dsa_payor: "dsa_payor", effective_status: "effective_status", end_time: "end_time", existing_customer_budget_percentage: "existing_customer_budget_percentage", frequency_control_specs: "frequency_control_specs", full_funnel_exploration_mode: "full_funnel_exploration_mode", id: "id", instagram_actor_id: "instagram_actor_id", is_budget_schedule_enabled: "is_budget_schedule_enabled", is_dynamic_creative: "is_dynamic_creative", issues_info: "issues_info", learning_stage_info: "learning_stage_info", lifetime_budget: "lifetime_budget", lifetime_imps: "lifetime_imps", lifetime_min_spend_target: "lifetime_min_spend_target", lifetime_spend_cap: "lifetime_spend_cap", multi_optimization_goal_weight: "multi_optimization_goal_weight", name: "name", optimization_goal: "optimization_goal", optimization_sub_event: "optimization_sub_event", pacing_type: "pacing_type", promoted_object: "promoted_object", recommendations: "recommendations", recurring_budget_semantics: "recurring_budget_semantics", regional_regulation_identities: "regional_regulation_identities", review_feedback: "review_feedback", rf_prediction_id: "rf_prediction_id", source_adset: "source_adset", source_adset_id: "source_adset_id", start_time: "start_time", status: "status", targeting: "targeting", targeting_optimization_types: "targeting_optimization_types", time_based_ad_rotation_id_blocks: "time_based_ad_rotation_id_blocks", time_based_ad_rotation_intervals: "time_based_ad_rotation_intervals", updated_time: "updated_time", use_new_app_click: "use_new_app_click" }); }, "get") }, { key: "BidStrategy", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ cost_cap: "COST_CAP", lowest_cost_without_cap: "LOWEST_COST_WITHOUT_CAP", lowest_cost_with_bid_cap: "LOWEST_COST_WITH_BID_CAP", lowest_cost_with_min_roas: "LOWEST_COST_WITH_MIN_ROAS" }); }, "get") }, { key: "BillingEvent", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_installs: "APP_INSTALLS", clicks: "CLICKS", impressions: "IMPRESSIONS", link_clicks: "LINK_CLICKS", listing_interaction: "LISTING_INTERACTION", none: "NONE", offer_claims: "OFFER_CLAIMS", page_likes: "PAGE_LIKES", post_engagement: "POST_ENGAGEMENT", purchase: "PURCHASE", thruplay: "THRUPLAY" }); }, "get") }, { key: "ConfiguredStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", archived: "ARCHIVED", deleted: "DELETED", paused: "PAUSED" }); }, "get") }, { key: "EffectiveStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", archived: "ARCHIVED", campaign_paused: "CAMPAIGN_PAUSED", deleted: "DELETED", in_process: "IN_PROCESS", paused: "PAUSED", with_issues: "WITH_ISSUES" }); }, "get") }, { key: "OptimizationGoal", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_recall_lift: "AD_RECALL_LIFT", app_installs: "APP_INSTALLS", app_installs_and_offsite_conversions: "APP_INSTALLS_AND_OFFSITE_CONVERSIONS", conversations: "CONVERSATIONS", derived_events: "DERIVED_EVENTS", engaged_users: "ENGAGED_USERS", event_responses: "EVENT_RESPONSES", impressions: "IMPRESSIONS", in_app_value: "IN_APP_VALUE", landing_page_views: "LANDING_PAGE_VIEWS", lead_generation: "LEAD_GENERATION", link_clicks: "LINK_CLICKS", meaningful_call_attempt: "MEANINGFUL_CALL_ATTEMPT", messaging_appointment_conversion: "MESSAGING_APPOINTMENT_CONVERSION", messaging_purchase_conversion: "MESSAGING_PURCHASE_CONVERSION", none: "NONE", offsite_conversions: "OFFSITE_CONVERSIONS", page_likes: "PAGE_LIKES", post_engagement: "POST_ENGAGEMENT", quality_call: "QUALITY_CALL", quality_lead: "QUALITY_LEAD", reach: "REACH", reminders_set: "REMINDERS_SET", subscribers: "SUBSCRIBERS", thruplay: "THRUPLAY", value: "VALUE", visit_instagram_profile: "VISIT_INSTAGRAM_PROFILE" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", archived: "ARCHIVED", deleted: "DELETED", paused: "PAUSED" }); }, "get") }, { key: "DatePreset", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ data_maximum: "DATA_MAXIMUM", last_14d: "LAST_14D", last_28d: "LAST_28D", last_30d: "LAST_30D", last_3d: "LAST_3D", last_7d: "LAST_7D", last_90d: "LAST_90D", last_month: "LAST_MONTH", last_quarter: "LAST_QUARTER", last_week_mon_sun: "LAST_WEEK_MON_SUN", last_week_sun_sat: "LAST_WEEK_SUN_SAT", last_year: "LAST_YEAR", maximum: "MAXIMUM", this_month: "THIS_MONTH", this_quarter: "THIS_QUARTER", this_week_mon_today: "THIS_WEEK_MON_TODAY", this_week_sun_today: "THIS_WEEK_SUN_TODAY", this_year: "THIS_YEAR", today: "TODAY", yesterday: "YESTERDAY" }); }, "get") }, { key: "DestinationType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app: "APP", applinks_automatic: "APPLINKS_AUTOMATIC", facebook: "FACEBOOK", instagram_direct: "INSTAGRAM_DIRECT", messaging_instagram_direct_messenger: "MESSAGING_INSTAGRAM_DIRECT_MESSENGER", messaging_instagram_direct_messenger_whatsapp: "MESSAGING_INSTAGRAM_DIRECT_MESSENGER_WHATSAPP", messaging_instagram_direct_whatsapp: "MESSAGING_INSTAGRAM_DIRECT_WHATSAPP", messaging_messenger_whatsapp: "MESSAGING_MESSENGER_WHATSAPP", messenger: "MESSENGER", on_ad: "ON_AD", on_event: "ON_EVENT", on_page: "ON_PAGE", on_post: "ON_POST", on_video: "ON_VIDEO", shop_automatic: "SHOP_AUTOMATIC", undefined: "UNDEFINED", website: "WEBSITE", whatsapp: "WHATSAPP" }); }, "get") }, { key: "ExecutionOptions", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ include_recommendations: "include_recommendations", validate_only: "validate_only" }); }, "get") }, { key: "FullFunnelExplorationMode", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ extended_exploration: "EXTENDED_EXPLORATION", limited_exploration: "LIMITED_EXPLORATION", none_exploration: "NONE_EXPLORATION" }); }, "get") }, { key: "MultiOptimizationGoalWeight", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ balanced: "BALANCED", prefer_event: "PREFER_EVENT", prefer_install: "PREFER_INSTALL", undefined: "UNDEFINED" }); }, "get") }, { key: "OptimizationSubEvent", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ none: "NONE", travel_intent: "TRAVEL_INTENT", travel_intent_bucket_01: "TRAVEL_INTENT_BUCKET_01", travel_intent_bucket_02: "TRAVEL_INTENT_BUCKET_02", travel_intent_bucket_03: "TRAVEL_INTENT_BUCKET_03", travel_intent_bucket_04: "TRAVEL_INTENT_BUCKET_04", travel_intent_bucket_05: "TRAVEL_INTENT_BUCKET_05", travel_intent_no_destination_intent: "TRAVEL_INTENT_NO_DESTINATION_INTENT", trip_consideration: "TRIP_CONSIDERATION", video_sound_on: "VIDEO_SOUND_ON" }); }, "get") }, { key: "TuneForCategory", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ credit: "CREDIT", employment: "EMPLOYMENT", housing: "HOUSING", issues_elections_politics: "ISSUES_ELECTIONS_POLITICS", none: "NONE", online_gambling_and_gaming: "ONLINE_GAMBLING_AND_GAMING" }); }, "get") }, { key: "Operator", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ all: "ALL", any: "ANY" }); }, "get") }, { key: "StatusOption", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", inherited_from_source: "INHERITED_FROM_SOURCE", paused: "PAUSED" }); }, "get") }]); return AdSet3; }(AbstractCrudObject); var Campaign2 = function(_AbstractCrudObject) { inherits(Campaign3, _AbstractCrudObject); function Campaign3() { classCallCheck(this, Campaign3); return possibleConstructorReturn(this, (Campaign3.__proto__ || Object.getPrototypeOf(Campaign3)).apply(this, arguments)); } __name(Campaign3, "Campaign"); createClass(Campaign3, [{ key: "getAdStudies", value: /* @__PURE__ */ __name(function getAdStudies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdStudy, fields, params, fetchFirstPage, "/ad_studies"); }, "getAdStudies") }, { key: "createAdLabel", value: /* @__PURE__ */ __name(function createAdLabel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adlabels", fields, params, Campaign3, pathOverride); }, "createAdLabel") }, { key: "getAdRulesGoverned", value: /* @__PURE__ */ __name(function getAdRulesGoverned(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdRule, fields, params, fetchFirstPage, "/adrules_governed"); }, "getAdRulesGoverned") }, { key: "getAds", value: /* @__PURE__ */ __name(function getAds(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Ad2, fields, params, fetchFirstPage, "/ads"); }, "getAds") }, { key: "getAdSets", value: /* @__PURE__ */ __name(function getAdSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdSet2, fields, params, fetchFirstPage, "/adsets"); }, "getAdSets") }, { key: "createBudgetSchedule", value: /* @__PURE__ */ __name(function createBudgetSchedule(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/budget_schedules", fields, params, HighDemandPeriod, pathOverride); }, "createBudgetSchedule") }, { key: "getCopies", value: /* @__PURE__ */ __name(function getCopies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Campaign3, fields, params, fetchFirstPage, "/copies"); }, "getCopies") }, { key: "createCopy", value: /* @__PURE__ */ __name(function createCopy(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/copies", fields, params, Campaign3, pathOverride); }, "createCopy") }, { key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsInsights, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "getInsightsAsync", value: /* @__PURE__ */ __name(function getInsightsAsync(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/insights", fields, params, AdReportRun, pathOverride); }, "getInsightsAsync") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Campaign3.prototype.__proto__ || Object.getPrototypeOf(Campaign3.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Campaign3.prototype.__proto__ || Object.getPrototypeOf(Campaign3.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", adlabels: "adlabels", bid_strategy: "bid_strategy", boosted_object_id: "boosted_object_id", brand_lift_studies: "brand_lift_studies", budget_rebalance_flag: "budget_rebalance_flag", budget_remaining: "budget_remaining", buying_type: "buying_type", campaign_group_active_time: "campaign_group_active_time", can_create_brand_lift_study: "can_create_brand_lift_study", can_use_spend_cap: "can_use_spend_cap", configured_status: "configured_status", created_time: "created_time", daily_budget: "daily_budget", effective_status: "effective_status", has_secondary_skadnetwork_reporting: "has_secondary_skadnetwork_reporting", id: "id", is_budget_schedule_enabled: "is_budget_schedule_enabled", is_skadnetwork_attribution: "is_skadnetwork_attribution", issues_info: "issues_info", last_budget_toggling_time: "last_budget_toggling_time", lifetime_budget: "lifetime_budget", name: "name", objective: "objective", pacing_type: "pacing_type", primary_attribution: "primary_attribution", promoted_object: "promoted_object", recommendations: "recommendations", smart_promotion_type: "smart_promotion_type", source_campaign: "source_campaign", source_campaign_id: "source_campaign_id", special_ad_categories: "special_ad_categories", special_ad_category: "special_ad_category", special_ad_category_country: "special_ad_category_country", spend_cap: "spend_cap", start_time: "start_time", status: "status", stop_time: "stop_time", topline_id: "topline_id", updated_time: "updated_time" }); }, "get") }, { key: "BidStrategy", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ cost_cap: "COST_CAP", lowest_cost_without_cap: "LOWEST_COST_WITHOUT_CAP", lowest_cost_with_bid_cap: "LOWEST_COST_WITH_BID_CAP", lowest_cost_with_min_roas: "LOWEST_COST_WITH_MIN_ROAS" }); }, "get") }, { key: "ConfiguredStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", archived: "ARCHIVED", deleted: "DELETED", paused: "PAUSED" }); }, "get") }, { key: "EffectiveStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", archived: "ARCHIVED", deleted: "DELETED", in_process: "IN_PROCESS", paused: "PAUSED", with_issues: "WITH_ISSUES" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", archived: "ARCHIVED", deleted: "DELETED", paused: "PAUSED" }); }, "get") }, { key: "DatePreset", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ data_maximum: "data_maximum", last_14d: "last_14d", last_28d: "last_28d", last_30d: "last_30d", last_3d: "last_3d", last_7d: "last_7d", last_90d: "last_90d", last_month: "last_month", last_quarter: "last_quarter", last_week_mon_sun: "last_week_mon_sun", last_week_sun_sat: "last_week_sun_sat", last_year: "last_year", maximum: "maximum", this_month: "this_month", this_quarter: "this_quarter", this_week_mon_today: "this_week_mon_today", this_week_sun_today: "this_week_sun_today", this_year: "this_year", today: "today", yesterday: "yesterday" }); }, "get") }, { key: "ExecutionOptions", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ include_recommendations: "include_recommendations", validate_only: "validate_only" }); }, "get") }, { key: "Objective", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_installs: "APP_INSTALLS", brand_awareness: "BRAND_AWARENESS", conversions: "CONVERSIONS", event_responses: "EVENT_RESPONSES", lead_generation: "LEAD_GENERATION", link_clicks: "LINK_CLICKS", local_awareness: "LOCAL_AWARENESS", messages: "MESSAGES", offer_claims: "OFFER_CLAIMS", outcome_app_promotion: "OUTCOME_APP_PROMOTION", outcome_awareness: "OUTCOME_AWARENESS", outcome_engagement: "OUTCOME_ENGAGEMENT", outcome_leads: "OUTCOME_LEADS", outcome_sales: "OUTCOME_SALES", outcome_traffic: "OUTCOME_TRAFFIC", page_likes: "PAGE_LIKES", post_engagement: "POST_ENGAGEMENT", product_catalog_sales: "PRODUCT_CATALOG_SALES", reach: "REACH", store_visits: "STORE_VISITS", video_views: "VIDEO_VIEWS" }); }, "get") }, { key: "SmartPromotionType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ guided_creation: "GUIDED_CREATION", smart_app_promotion: "SMART_APP_PROMOTION" }); }, "get") }, { key: "SpecialAdCategories", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ credit: "CREDIT", employment: "EMPLOYMENT", housing: "HOUSING", issues_elections_politics: "ISSUES_ELECTIONS_POLITICS", none: "NONE", online_gambling_and_gaming: "ONLINE_GAMBLING_AND_GAMING" }); }, "get") }, { key: "SpecialAdCategoryCountry", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad: "AD", ae: "AE", af: "AF", ag: "AG", ai: "AI", al: "AL", am: "AM", an: "AN", ao: "AO", aq: "AQ", ar: "AR", as: "AS", at: "AT", au: "AU", aw: "AW", ax: "AX", az: "AZ", ba: "BA", bb: "BB", bd: "BD", be: "BE", bf: "BF", bg: "BG", bh: "BH", bi: "BI", bj: "BJ", bl: "BL", bm: "BM", bn: "BN", bo: "BO", bq: "BQ", br: "BR", bs: "BS", bt: "BT", bv: "BV", bw: "BW", by: "BY", bz: "BZ", ca: "CA", cc: "CC", cd: "CD", cf: "CF", cg: "CG", ch: "CH", ci: "CI", ck: "CK", cl: "CL", cm: "CM", cn: "CN", co: "CO", cr: "CR", cu: "CU", cv: "CV", cw: "CW", cx: "CX", cy: "CY", cz: "CZ", de: "DE", dj: "DJ", dk: "DK", dm: "DM", do: "DO", dz: "DZ", ec: "EC", ee: "EE", eg: "EG", eh: "EH", er: "ER", es: "ES", et: "ET", fi: "FI", fj: "FJ", fk: "FK", fm: "FM", fo: "FO", fr: "FR", ga: "GA", gb: "GB", gd: "GD", ge: "GE", gf: "GF", gg: "GG", gh: "GH", gi: "GI", gl: "GL", gm: "GM", gn: "GN", gp: "GP", gq: "GQ", gr: "GR", gs: "GS", gt: "GT", gu: "GU", gw: "GW", gy: "GY", hk: "HK", hm: "HM", hn: "HN", hr: "HR", ht: "HT", hu: "HU", id: "ID", ie: "IE", il: "IL", im: "IM", in: "IN", io: "IO", iq: "IQ", ir: "IR", is: "IS", it: "IT", je: "JE", jm: "JM", jo: "JO", jp: "JP", ke: "KE", kg: "KG", kh: "KH", ki: "KI", km: "KM", kn: "KN", kp: "KP", kr: "KR", kw: "KW", ky: "KY", kz: "KZ", la: "LA", lb: "LB", lc: "LC", li: "LI", lk: "LK", lr: "LR", ls: "LS", lt: "LT", lu: "LU", lv: "LV", ly: "LY", ma: "MA", mc: "MC", md: "MD", me: "ME", mf: "MF", mg: "MG", mh: "MH", mk: "MK", ml: "ML", mm: "MM", mn: "MN", mo: "MO", mp: "MP", mq: "MQ", mr: "MR", ms: "MS", mt: "MT", mu: "MU", mv: "MV", mw: "MW", mx: "MX", my: "MY", mz: "MZ", na: "NA", nc: "NC", ne: "NE", nf: "NF", ng: "NG", ni: "NI", nl: "NL", no: "NO", np: "NP", nr: "NR", nu: "NU", nz: "NZ", om: "OM", pa: "PA", pe: "PE", pf: "PF", pg: "PG", ph: "PH", pk: "PK", pl: "PL", pm: "PM", pn: "PN", pr: "PR", ps: "PS", pt: "PT", pw: "PW", py: "PY", qa: "QA", re: "RE", ro: "RO", rs: "RS", ru: "RU", rw: "RW", sa: "SA", sb: "SB", sc: "SC", sd: "SD", se: "SE", sg: "SG", sh: "SH", si: "SI", sj: "SJ", sk: "SK", sl: "SL", sm: "SM", sn: "SN", so: "SO", sr: "SR", ss: "SS", st: "ST", sv: "SV", sx: "SX", sy: "SY", sz: "SZ", tc: "TC", td: "TD", tf: "TF", tg: "TG", th: "TH", tj: "TJ", tk: "TK", tl: "TL", tm: "TM", tn: "TN", to: "TO", tr: "TR", tt: "TT", tv: "TV", tw: "TW", tz: "TZ", ua: "UA", ug: "UG", um: "UM", us: "US", uy: "UY", uz: "UZ", va: "VA", vc: "VC", ve: "VE", vg: "VG", vi: "VI", vn: "VN", vu: "VU", wf: "WF", ws: "WS", xk: "XK", ye: "YE", yt: "YT", za: "ZA", zm: "ZM", zw: "ZW" }); }, "get") }, { key: "Operator", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ all: "ALL", any: "ANY" }); }, "get") }, { key: "SpecialAdCategory", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ credit: "CREDIT", employment: "EMPLOYMENT", housing: "HOUSING", issues_elections_politics: "ISSUES_ELECTIONS_POLITICS", none: "NONE", online_gambling_and_gaming: "ONLINE_GAMBLING_AND_GAMING" }); }, "get") }, { key: "StatusOption", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", inherited_from_source: "INHERITED_FROM_SOURCE", paused: "PAUSED" }); }, "get") }]); return Campaign3; }(AbstractCrudObject); var AdStudyCell = function(_AbstractCrudObject) { inherits(AdStudyCell2, _AbstractCrudObject); function AdStudyCell2() { classCallCheck(this, AdStudyCell2); return possibleConstructorReturn(this, (AdStudyCell2.__proto__ || Object.getPrototypeOf(AdStudyCell2)).apply(this, arguments)); } __name(AdStudyCell2, "AdStudyCell"); createClass(AdStudyCell2, [{ key: "getAdAccounts", value: /* @__PURE__ */ __name(function getAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/adaccounts"); }, "getAdAccounts") }, { key: "getAdSets", value: /* @__PURE__ */ __name(function getAdSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdSet2, fields, params, fetchFirstPage, "/adsets"); }, "getAdSets") }, { key: "getCampaigns", value: /* @__PURE__ */ __name(function getCampaigns(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Campaign2, fields, params, fetchFirstPage, "/campaigns"); }, "getCampaigns") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdStudyCell2.prototype.__proto__ || Object.getPrototypeOf(AdStudyCell2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_entities_count: "ad_entities_count", control_percentage: "control_percentage", id: "id", name: "name", treatment_percentage: "treatment_percentage" }); }, "get") }, { key: "CreationTemplate", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automatic_placements: "AUTOMATIC_PLACEMENTS", brand_awareness: "BRAND_AWARENESS", facebook: "FACEBOOK", facebook_audience_network: "FACEBOOK_AUDIENCE_NETWORK", facebook_instagram: "FACEBOOK_INSTAGRAM", facebook_news_feed: "FACEBOOK_NEWS_FEED", facebook_news_feed_in_stream_video: "FACEBOOK_NEWS_FEED_IN_STREAM_VIDEO", high_frequency: "HIGH_FREQUENCY", instagram: "INSTAGRAM", in_stream_video: "IN_STREAM_VIDEO", low_frequency: "LOW_FREQUENCY", medium_frequency: "MEDIUM_FREQUENCY", mobile_optimized_video: "MOBILE_OPTIMIZED_VIDEO", page_post_engagement: "PAGE_POST_ENGAGEMENT", reach: "REACH", tv_commercial: "TV_COMMERCIAL", tv_facebook: "TV_FACEBOOK", video_view_optimization: "VIDEO_VIEW_OPTIMIZATION" }); }, "get") }]); return AdStudyCell2; }(AbstractCrudObject); var PrivateLiftStudyInstance = function(_AbstractCrudObject) { inherits(PrivateLiftStudyInstance2, _AbstractCrudObject); function PrivateLiftStudyInstance2() { classCallCheck(this, PrivateLiftStudyInstance2); return possibleConstructorReturn(this, (PrivateLiftStudyInstance2.__proto__ || Object.getPrototypeOf(PrivateLiftStudyInstance2)).apply(this, arguments)); } __name(PrivateLiftStudyInstance2, "PrivateLiftStudyInstance"); createClass(PrivateLiftStudyInstance2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(PrivateLiftStudyInstance2.prototype.__proto__ || Object.getPrototypeOf(PrivateLiftStudyInstance2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ breakdown_key: "breakdown_key", created_time: "created_time", feature_list: "feature_list", id: "id", issuer_certificate: "issuer_certificate", latest_status_update_time: "latest_status_update_time", run_id: "run_id", server_hostnames: "server_hostnames", server_ips: "server_ips", status: "status", tier: "tier" }); }, "get") }, { key: "Operation", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aggregate: "AGGREGATE", cancel: "CANCEL", compute: "COMPUTE", id_match: "ID_MATCH", next: "NEXT", none: "NONE" }); }, "get") }]); return PrivateLiftStudyInstance2; }(AbstractCrudObject); var AdPlacement = function(_AbstractCrudObject) { inherits(AdPlacement2, _AbstractCrudObject); function AdPlacement2() { classCallCheck(this, AdPlacement2); return possibleConstructorReturn(this, (AdPlacement2.__proto__ || Object.getPrototypeOf(AdPlacement2)).apply(this, arguments)); } __name(AdPlacement2, "AdPlacement"); createClass(AdPlacement2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ bundle_id: "bundle_id", display_format: "display_format", external_placement_id: "external_placement_id", google_display_format: "google_display_format", id: "id", name: "name", placement_group: "placement_group", platform: "platform", status: "status" }); }, "get") }]); return AdPlacement2; }(AbstractCrudObject); var AdNetworkAnalyticsSyncQueryResult = function(_AbstractCrudObject) { inherits(AdNetworkAnalyticsSyncQueryResult2, _AbstractCrudObject); function AdNetworkAnalyticsSyncQueryResult2() { classCallCheck(this, AdNetworkAnalyticsSyncQueryResult2); return possibleConstructorReturn(this, (AdNetworkAnalyticsSyncQueryResult2.__proto__ || Object.getPrototypeOf(AdNetworkAnalyticsSyncQueryResult2)).apply(this, arguments)); } __name(AdNetworkAnalyticsSyncQueryResult2, "AdNetworkAnalyticsSyncQueryResult"); createClass(AdNetworkAnalyticsSyncQueryResult2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ omitted_results: "omitted_results", query_id: "query_id", results: "results" }); }, "get") }, { key: "AggregationPeriod", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ day: "DAY", total: "TOTAL" }); }, "get") }, { key: "Breakdowns", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_server_campaign_id: "AD_SERVER_CAMPAIGN_ID", ad_space: "AD_SPACE", age: "AGE", app: "APP", clicked_view_tag: "CLICKED_VIEW_TAG", country: "COUNTRY", deal: "DEAL", deal_ad: "DEAL_AD", deal_page: "DEAL_PAGE", delivery_method: "DELIVERY_METHOD", display_format: "DISPLAY_FORMAT", fail_reason: "FAIL_REASON", gender: "GENDER", instant_article_id: "INSTANT_ARTICLE_ID", instant_article_page_id: "INSTANT_ARTICLE_PAGE_ID", is_deal_backfill: "IS_DEAL_BACKFILL", placement: "PLACEMENT", placement_name: "PLACEMENT_NAME", platform: "PLATFORM", property: "PROPERTY", sdk_version: "SDK_VERSION" }); }, "get") }, { key: "Metrics", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ fb_ad_network_bidding_bid_rate: "FB_AD_NETWORK_BIDDING_BID_RATE", fb_ad_network_bidding_request: "FB_AD_NETWORK_BIDDING_REQUEST", fb_ad_network_bidding_response: "FB_AD_NETWORK_BIDDING_RESPONSE", fb_ad_network_bidding_revenue: "FB_AD_NETWORK_BIDDING_REVENUE", fb_ad_network_bidding_win_rate: "FB_AD_NETWORK_BIDDING_WIN_RATE", fb_ad_network_click: "FB_AD_NETWORK_CLICK", fb_ad_network_cpm: "FB_AD_NETWORK_CPM", fb_ad_network_ctr: "FB_AD_NETWORK_CTR", fb_ad_network_filled_request: "FB_AD_NETWORK_FILLED_REQUEST", fb_ad_network_fill_rate: "FB_AD_NETWORK_FILL_RATE", fb_ad_network_imp: "FB_AD_NETWORK_IMP", fb_ad_network_impression_rate: "FB_AD_NETWORK_IMPRESSION_RATE", fb_ad_network_request: "FB_AD_NETWORK_REQUEST", fb_ad_network_revenue: "FB_AD_NETWORK_REVENUE", fb_ad_network_show_rate: "FB_AD_NETWORK_SHOW_RATE", fb_ad_network_video_guarantee_revenue: "FB_AD_NETWORK_VIDEO_GUARANTEE_REVENUE", fb_ad_network_video_mrc: "FB_AD_NETWORK_VIDEO_MRC", fb_ad_network_video_mrc_rate: "FB_AD_NETWORK_VIDEO_MRC_RATE", fb_ad_network_video_view: "FB_AD_NETWORK_VIDEO_VIEW", fb_ad_network_video_view_rate: "FB_AD_NETWORK_VIDEO_VIEW_RATE" }); }, "get") }, { key: "OrderingColumn", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ metric: "METRIC", time: "TIME", value: "VALUE" }); }, "get") }, { key: "OrderingType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ascending: "ASCENDING", descending: "DESCENDING" }); }, "get") }]); return AdNetworkAnalyticsSyncQueryResult2; }(AbstractCrudObject); var AdNetworkAnalyticsAsyncQueryResult = function(_AbstractCrudObject) { inherits(AdNetworkAnalyticsAsyncQueryResult2, _AbstractCrudObject); function AdNetworkAnalyticsAsyncQueryResult2() { classCallCheck(this, AdNetworkAnalyticsAsyncQueryResult2); return possibleConstructorReturn(this, (AdNetworkAnalyticsAsyncQueryResult2.__proto__ || Object.getPrototypeOf(AdNetworkAnalyticsAsyncQueryResult2)).apply(this, arguments)); } __name(AdNetworkAnalyticsAsyncQueryResult2, "AdNetworkAnalyticsAsyncQueryResult"); createClass(AdNetworkAnalyticsAsyncQueryResult2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ data: "data", error: "error", omitted_results: "omitted_results", query_id: "query_id", results: "results", status: "status" }); }, "get") }]); return AdNetworkAnalyticsAsyncQueryResult2; }(AbstractCrudObject); var AssignedUser = function(_AbstractCrudObject) { inherits(AssignedUser2, _AbstractCrudObject); function AssignedUser2() { classCallCheck(this, AssignedUser2); return possibleConstructorReturn(this, (AssignedUser2.__proto__ || Object.getPrototypeOf(AssignedUser2)).apply(this, arguments)); } __name(AssignedUser2, "AssignedUser"); createClass(AssignedUser2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ business: "business", id: "id", name: "name", user_type: "user_type" }); }, "get") }]); return AssignedUser2; }(AbstractCrudObject); var CustomConversionStatsResult = function(_AbstractCrudObject) { inherits(CustomConversionStatsResult2, _AbstractCrudObject); function CustomConversionStatsResult2() { classCallCheck(this, CustomConversionStatsResult2); return possibleConstructorReturn(this, (CustomConversionStatsResult2.__proto__ || Object.getPrototypeOf(CustomConversionStatsResult2)).apply(this, arguments)); } __name(CustomConversionStatsResult2, "CustomConversionStatsResult"); createClass(CustomConversionStatsResult2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aggregation: "aggregation", data: "data", timestamp: "timestamp" }); }, "get") }, { key: "Aggregation", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ count: "count", device_type: "device_type", host: "host", pixel_fire: "pixel_fire", unmatched_count: "unmatched_count", unmatched_usd_amount: "unmatched_usd_amount", url: "url", usd_amount: "usd_amount" }); }, "get") }]); return CustomConversionStatsResult2; }(AbstractCrudObject); var CustomConversion = function(_AbstractCrudObject) { inherits(CustomConversion2, _AbstractCrudObject); function CustomConversion2() { classCallCheck(this, CustomConversion2); return possibleConstructorReturn(this, (CustomConversion2.__proto__ || Object.getPrototypeOf(CustomConversion2)).apply(this, arguments)); } __name(CustomConversion2, "CustomConversion"); createClass(CustomConversion2, [{ key: "getStats", value: /* @__PURE__ */ __name(function getStats(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomConversionStatsResult, fields, params, fetchFirstPage, "/stats"); }, "getStats") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(CustomConversion2.prototype.__proto__ || Object.getPrototypeOf(CustomConversion2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(CustomConversion2.prototype.__proto__ || Object.getPrototypeOf(CustomConversion2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", aggregation_rule: "aggregation_rule", business: "business", creation_time: "creation_time", custom_event_type: "custom_event_type", data_sources: "data_sources", default_conversion_value: "default_conversion_value", description: "description", event_source_type: "event_source_type", first_fired_time: "first_fired_time", id: "id", is_archived: "is_archived", is_unavailable: "is_unavailable", last_fired_time: "last_fired_time", name: "name", offline_conversion_data_set: "offline_conversion_data_set", pixel: "pixel", retention_days: "retention_days", rule: "rule" }); }, "get") }, { key: "CustomEventType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ add_payment_info: "ADD_PAYMENT_INFO", add_to_cart: "ADD_TO_CART", add_to_wishlist: "ADD_TO_WISHLIST", complete_registration: "COMPLETE_REGISTRATION", contact: "CONTACT", content_view: "CONTENT_VIEW", customize_product: "CUSTOMIZE_PRODUCT", donate: "DONATE", facebook_selected: "FACEBOOK_SELECTED", find_location: "FIND_LOCATION", initiated_checkout: "INITIATED_CHECKOUT", lead: "LEAD", listing_interaction: "LISTING_INTERACTION", other: "OTHER", purchase: "PURCHASE", schedule: "SCHEDULE", search: "SEARCH", start_trial: "START_TRIAL", submit_application: "SUBMIT_APPLICATION", subscribe: "SUBSCRIBE" }); }, "get") }]); return CustomConversion2; }(AbstractCrudObject); var IGUpcomingEvent = function(_AbstractCrudObject) { inherits(IGUpcomingEvent2, _AbstractCrudObject); function IGUpcomingEvent2() { classCallCheck(this, IGUpcomingEvent2); return possibleConstructorReturn(this, (IGUpcomingEvent2.__proto__ || Object.getPrototypeOf(IGUpcomingEvent2)).apply(this, arguments)); } __name(IGUpcomingEvent2, "IGUpcomingEvent"); createClass(IGUpcomingEvent2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(IGUpcomingEvent2.prototype.__proto__ || Object.getPrototypeOf(IGUpcomingEvent2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ end_time: "end_time", id: "id", start_time: "start_time", title: "title" }); }, "get") }]); return IGUpcomingEvent2; }(AbstractCrudObject); var InstagramUser = function(_AbstractCrudObject) { inherits(InstagramUser2, _AbstractCrudObject); function InstagramUser2() { classCallCheck(this, InstagramUser2); return possibleConstructorReturn(this, (InstagramUser2.__proto__ || Object.getPrototypeOf(InstagramUser2)).apply(this, arguments)); } __name(InstagramUser2, "InstagramUser"); createClass(InstagramUser2, [{ key: "getAgencies", value: /* @__PURE__ */ __name(function getAgencies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/agencies"); }, "getAgencies") }, { key: "getArEffects", value: /* @__PURE__ */ __name(function getArEffects(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/ar_effects"); }, "getArEffects") }, { key: "getAuthorizedAdAccounts", value: /* @__PURE__ */ __name(function getAuthorizedAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/authorized_adaccounts"); }, "getAuthorizedAdAccounts") }, { key: "createAuthorizedAdAccount", value: /* @__PURE__ */ __name(function createAuthorizedAdAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/authorized_adaccounts", fields, params, InstagramUser2, pathOverride); }, "createAuthorizedAdAccount") }, { key: "getUpcomingEvents", value: /* @__PURE__ */ __name(function getUpcomingEvents(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGUpcomingEvent, fields, params, fetchFirstPage, "/upcoming_events"); }, "getUpcomingEvents") }, { key: "createUpcomingEvent", value: /* @__PURE__ */ __name(function createUpcomingEvent(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/upcoming_events", fields, params, IGUpcomingEvent, pathOverride); }, "createUpcomingEvent") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ follow_count: "follow_count", followed_by_count: "followed_by_count", has_profile_picture: "has_profile_picture", id: "id", is_private: "is_private", is_published: "is_published", media_count: "media_count", mini_shop_storefront: "mini_shop_storefront", owner_business: "owner_business", profile_pic: "profile_pic", username: "username" }); }, "get") }]); return InstagramUser2; }(AbstractCrudObject); var CustomAudienceSalts = function(_AbstractCrudObject) { inherits(CustomAudienceSalts2, _AbstractCrudObject); function CustomAudienceSalts2() { classCallCheck(this, CustomAudienceSalts2); return possibleConstructorReturn(this, (CustomAudienceSalts2.__proto__ || Object.getPrototypeOf(CustomAudienceSalts2)).apply(this, arguments)); } __name(CustomAudienceSalts2, "CustomAudienceSalts"); createClass(CustomAudienceSalts2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_id: "app_id", public_key: "public_key" }); }, "get") }]); return CustomAudienceSalts2; }(AbstractCrudObject); var CustomAudienceSession = function(_AbstractCrudObject) { inherits(CustomAudienceSession2, _AbstractCrudObject); function CustomAudienceSession2() { classCallCheck(this, CustomAudienceSession2); return possibleConstructorReturn(this, (CustomAudienceSession2.__proto__ || Object.getPrototypeOf(CustomAudienceSession2)).apply(this, arguments)); } __name(CustomAudienceSession2, "CustomAudienceSession"); createClass(CustomAudienceSession2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ end_time: "end_time", num_invalid_entries: "num_invalid_entries", num_matched: "num_matched", num_received: "num_received", progress: "progress", session_id: "session_id", stage: "stage", start_time: "start_time" }); }, "get") }]); return CustomAudienceSession2; }(AbstractCrudObject); var CustomAudiencesharedAccountInfo = function(_AbstractCrudObject) { inherits(CustomAudiencesharedAccountInfo2, _AbstractCrudObject); function CustomAudiencesharedAccountInfo2() { classCallCheck(this, CustomAudiencesharedAccountInfo2); return possibleConstructorReturn(this, (CustomAudiencesharedAccountInfo2.__proto__ || Object.getPrototypeOf(CustomAudiencesharedAccountInfo2)).apply(this, arguments)); } __name(CustomAudiencesharedAccountInfo2, "CustomAudiencesharedAccountInfo"); createClass(CustomAudiencesharedAccountInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", account_name: "account_name", business_id: "business_id", business_name: "business_name", sharing_status: "sharing_status" }); }, "get") }]); return CustomAudiencesharedAccountInfo2; }(AbstractCrudObject); var CustomAudience = function(_AbstractCrudObject) { inherits(CustomAudience2, _AbstractCrudObject); function CustomAudience2() { classCallCheck(this, CustomAudience2); return possibleConstructorReturn(this, (CustomAudience2.__proto__ || Object.getPrototypeOf(CustomAudience2)).apply(this, arguments)); } __name(CustomAudience2, "CustomAudience"); createClass(CustomAudience2, [{ key: "deleteAdAccounts", value: /* @__PURE__ */ __name(function deleteAdAccounts() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(CustomAudience2.prototype.__proto__ || Object.getPrototypeOf(CustomAudience2.prototype), "deleteEdge", this).call(this, "/adaccounts", params); }, "deleteAdAccounts") }, { key: "getAdAccounts", value: /* @__PURE__ */ __name(function getAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/adaccounts"); }, "getAdAccounts") }, { key: "createAdAccount", value: /* @__PURE__ */ __name(function createAdAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adaccounts", fields, params, CustomAudience2, pathOverride); }, "createAdAccount") }, { key: "getAds", value: /* @__PURE__ */ __name(function getAds(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Ad2, fields, params, fetchFirstPage, "/ads"); }, "getAds") }, { key: "getSalts", value: /* @__PURE__ */ __name(function getSalts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomAudienceSalts, fields, params, fetchFirstPage, "/salts"); }, "getSalts") }, { key: "createSalt", value: /* @__PURE__ */ __name(function createSalt(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/salts", fields, params, CustomAudience2, pathOverride); }, "createSalt") }, { key: "getSessions", value: /* @__PURE__ */ __name(function getSessions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomAudienceSession, fields, params, fetchFirstPage, "/sessions"); }, "getSessions") }, { key: "getSharedAccountInfo", value: /* @__PURE__ */ __name(function getSharedAccountInfo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomAudiencesharedAccountInfo, fields, params, fetchFirstPage, "/shared_account_info"); }, "getSharedAccountInfo") }, { key: "deleteUsers", value: /* @__PURE__ */ __name(function deleteUsers() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(CustomAudience2.prototype.__proto__ || Object.getPrototypeOf(CustomAudience2.prototype), "deleteEdge", this).call(this, "/users", params); }, "deleteUsers") }, { key: "createUser", value: /* @__PURE__ */ __name(function createUser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/users", fields, params, CustomAudience2, pathOverride); }, "createUser") }, { key: "createUsersReplace", value: /* @__PURE__ */ __name(function createUsersReplace(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/usersreplace", fields, params, CustomAudience2, pathOverride); }, "createUsersReplace") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(CustomAudience2.prototype.__proto__ || Object.getPrototypeOf(CustomAudience2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(CustomAudience2.prototype.__proto__ || Object.getPrototypeOf(CustomAudience2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", approximate_count_lower_bound: "approximate_count_lower_bound", approximate_count_upper_bound: "approximate_count_upper_bound", customer_file_source: "customer_file_source", data_source: "data_source", data_source_types: "data_source_types", datafile_custom_audience_uploading_status: "datafile_custom_audience_uploading_status", delete_time: "delete_time", delivery_status: "delivery_status", description: "description", excluded_custom_audiences: "excluded_custom_audiences", external_event_source: "external_event_source", household_audience: "household_audience", id: "id", included_custom_audiences: "included_custom_audiences", is_household: "is_household", is_snapshot: "is_snapshot", is_value_based: "is_value_based", lookalike_audience_ids: "lookalike_audience_ids", lookalike_spec: "lookalike_spec", name: "name", operation_status: "operation_status", opt_out_link: "opt_out_link", owner_business: "owner_business", page_deletion_marked_delete_time: "page_deletion_marked_delete_time", permission_for_actions: "permission_for_actions", pixel_id: "pixel_id", regulated_audience_spec: "regulated_audience_spec", retention_days: "retention_days", rev_share_policy_id: "rev_share_policy_id", rule: "rule", rule_aggregation: "rule_aggregation", rule_v2: "rule_v2", seed_audience: "seed_audience", sharing_status: "sharing_status", subtype: "subtype", time_content_updated: "time_content_updated", time_created: "time_created", time_updated: "time_updated" }); }, "get") }, { key: "ClaimObjective", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automotive_model: "AUTOMOTIVE_MODEL", collaborative_ads: "COLLABORATIVE_ADS", home_listing: "HOME_LISTING", media_title: "MEDIA_TITLE", product: "PRODUCT", travel: "TRAVEL", vehicle: "VEHICLE", vehicle_offer: "VEHICLE_OFFER" }); }, "get") }, { key: "ContentType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automotive_model: "AUTOMOTIVE_MODEL", destination: "DESTINATION", flight: "FLIGHT", generic: "GENERIC", home_listing: "HOME_LISTING", hotel: "HOTEL", job: "JOB", local_service_business: "LOCAL_SERVICE_BUSINESS", location_based_item: "LOCATION_BASED_ITEM", media_title: "MEDIA_TITLE", offline_product: "OFFLINE_PRODUCT", product: "PRODUCT", vehicle: "VEHICLE", vehicle_offer: "VEHICLE_OFFER" }); }, "get") }, { key: "CustomerFileSource", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ both_user_and_partner_provided: "BOTH_USER_AND_PARTNER_PROVIDED", partner_provided_only: "PARTNER_PROVIDED_ONLY", user_provided_only: "USER_PROVIDED_ONLY" }); }, "get") }, { key: "Subtype", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app: "APP", bag_of_accounts: "BAG_OF_ACCOUNTS", bidding: "BIDDING", claim: "CLAIM", custom: "CUSTOM", engagement: "ENGAGEMENT", exclusion: "EXCLUSION", fox: "FOX", lookalike: "LOOKALIKE", managed: "MANAGED", measurement: "MEASUREMENT", offline_conversion: "OFFLINE_CONVERSION", partner: "PARTNER", primary: "PRIMARY", regulated_categories_audience: "REGULATED_CATEGORIES_AUDIENCE", study_rule_audience: "STUDY_RULE_AUDIENCE", subscriber_segment: "SUBSCRIBER_SEGMENT", video: "VIDEO", website: "WEBSITE" }); }, "get") }, { key: "ActionSource", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ physical_store: "PHYSICAL_STORE", website: "WEBSITE" }); }, "get") }]); return CustomAudience2; }(AbstractCrudObject); var OfflineConversionDataSetUpload = function(_AbstractCrudObject) { inherits(OfflineConversionDataSetUpload2, _AbstractCrudObject); function OfflineConversionDataSetUpload2() { classCallCheck(this, OfflineConversionDataSetUpload2); return possibleConstructorReturn(this, (OfflineConversionDataSetUpload2.__proto__ || Object.getPrototypeOf(OfflineConversionDataSetUpload2)).apply(this, arguments)); } __name(OfflineConversionDataSetUpload2, "OfflineConversionDataSetUpload"); createClass(OfflineConversionDataSetUpload2, [{ key: "getProgress", value: /* @__PURE__ */ __name(function getProgress(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/progress"); }, "getProgress") }, { key: "getPullSessions", value: /* @__PURE__ */ __name(function getPullSessions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/pull_sessions"); }, "getPullSessions") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ api_calls: "api_calls", creation_time: "creation_time", duplicate_entries: "duplicate_entries", event_stats: "event_stats", event_time_max: "event_time_max", event_time_min: "event_time_min", first_upload_time: "first_upload_time", id: "id", is_excluded_for_lift: "is_excluded_for_lift", last_upload_time: "last_upload_time", match_rate_approx: "match_rate_approx", matched_entries: "matched_entries", upload_tag: "upload_tag", valid_entries: "valid_entries" }); }, "get") }, { key: "Order", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ascending: "ASCENDING", descending: "DESCENDING" }); }, "get") }, { key: "SortBy", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ api_calls: "API_CALLS", creation_time: "CREATION_TIME", event_time_max: "EVENT_TIME_MAX", event_time_min: "EVENT_TIME_MIN", first_upload_time: "FIRST_UPLOAD_TIME", is_excluded_for_lift: "IS_EXCLUDED_FOR_LIFT", last_upload_time: "LAST_UPLOAD_TIME" }); }, "get") }]); return OfflineConversionDataSetUpload2; }(AbstractCrudObject); var OfflineConversionDataSet = function(_AbstractCrudObject) { inherits(OfflineConversionDataSet2, _AbstractCrudObject); function OfflineConversionDataSet2() { classCallCheck(this, OfflineConversionDataSet2); return possibleConstructorReturn(this, (OfflineConversionDataSet2.__proto__ || Object.getPrototypeOf(OfflineConversionDataSet2)).apply(this, arguments)); } __name(OfflineConversionDataSet2, "OfflineConversionDataSet"); createClass(OfflineConversionDataSet2, [{ key: "getAdAccounts", value: /* @__PURE__ */ __name(function getAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/adaccounts"); }, "getAdAccounts") }, { key: "createAdAccount", value: /* @__PURE__ */ __name(function createAdAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adaccounts", fields, params, OfflineConversionDataSet2, pathOverride); }, "createAdAccount") }, { key: "getAgencies", value: /* @__PURE__ */ __name(function getAgencies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/agencies"); }, "getAgencies") }, { key: "createAgency", value: /* @__PURE__ */ __name(function createAgency(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/agencies", fields, params, OfflineConversionDataSet2, pathOverride); }, "createAgency") }, { key: "getAudiences", value: /* @__PURE__ */ __name(function getAudiences(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomAudience, fields, params, fetchFirstPage, "/audiences"); }, "getAudiences") }, { key: "getCustomConversions", value: /* @__PURE__ */ __name(function getCustomConversions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomConversion, fields, params, fetchFirstPage, "/customconversions"); }, "getCustomConversions") }, { key: "getServerEventsPermittedBusiness", value: /* @__PURE__ */ __name(function getServerEventsPermittedBusiness(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/server_events_permitted_business"); }, "getServerEventsPermittedBusiness") }, { key: "getSharedAccounts", value: /* @__PURE__ */ __name(function getSharedAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/shared_accounts"); }, "getSharedAccounts") }, { key: "getSharedAgencies", value: /* @__PURE__ */ __name(function getSharedAgencies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/shared_agencies"); }, "getSharedAgencies") }, { key: "getStats", value: /* @__PURE__ */ __name(function getStats(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/stats"); }, "getStats") }, { key: "getUploads", value: /* @__PURE__ */ __name(function getUploads(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(OfflineConversionDataSetUpload, fields, params, fetchFirstPage, "/uploads"); }, "getUploads") }, { key: "createUpload", value: /* @__PURE__ */ __name(function createUpload(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/uploads", fields, params, OfflineConversionDataSetUpload, pathOverride); }, "createUpload") }, { key: "createValidate", value: /* @__PURE__ */ __name(function createValidate(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/validate", fields, params, OfflineConversionDataSet2, pathOverride); }, "createValidate") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(OfflineConversionDataSet2.prototype.__proto__ || Object.getPrototypeOf(OfflineConversionDataSet2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(OfflineConversionDataSet2.prototype.__proto__ || Object.getPrototypeOf(OfflineConversionDataSet2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automatic_matching_fields: "automatic_matching_fields", business: "business", can_proxy: "can_proxy", config: "config", creation_time: "creation_time", creator: "creator", data_use_setting: "data_use_setting", description: "description", duplicate_entries: "duplicate_entries", enable_auto_assign_to_accounts: "enable_auto_assign_to_accounts", enable_automatic_matching: "enable_automatic_matching", event_stats: "event_stats", event_time_max: "event_time_max", event_time_min: "event_time_min", first_party_cookie_status: "first_party_cookie_status", id: "id", is_consolidated_container: "is_consolidated_container", is_created_by_business: "is_created_by_business", is_crm: "is_crm", is_mta_use: "is_mta_use", is_restricted_use: "is_restricted_use", is_unavailable: "is_unavailable", last_fired_time: "last_fired_time", last_upload_app: "last_upload_app", last_upload_app_changed_time: "last_upload_app_changed_time", match_rate_approx: "match_rate_approx", matched_entries: "matched_entries", name: "name", owner_ad_account: "owner_ad_account", owner_business: "owner_business", usage: "usage", valid_entries: "valid_entries" }); }, "get") }, { key: "PermittedRoles", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ admin: "ADMIN", advertiser: "ADVERTISER", uploader: "UPLOADER" }); }, "get") }, { key: "RelationshipType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_manager: "AD_MANAGER", agency: "AGENCY", aggregator: "AGGREGATOR", audience_manager: "AUDIENCE_MANAGER", other: "OTHER" }); }, "get") }]); return OfflineConversionDataSet2; }(AbstractCrudObject); var PagePostExperiment = function(_AbstractCrudObject) { inherits(PagePostExperiment2, _AbstractCrudObject); function PagePostExperiment2() { classCallCheck(this, PagePostExperiment2); return possibleConstructorReturn(this, (PagePostExperiment2.__proto__ || Object.getPrototypeOf(PagePostExperiment2)).apply(this, arguments)); } __name(PagePostExperiment2, "PagePostExperiment"); createClass(PagePostExperiment2, [{ key: "getVideoInsights", value: /* @__PURE__ */ __name(function getVideoInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/video_insights"); }, "getVideoInsights") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(PagePostExperiment2.prototype.__proto__ || Object.getPrototypeOf(PagePostExperiment2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ auto_resolve_settings: "auto_resolve_settings", control_video_id: "control_video_id", creation_time: "creation_time", creator: "creator", declared_winning_time: "declared_winning_time", declared_winning_video_id: "declared_winning_video_id", description: "description", experiment_video_ids: "experiment_video_ids", id: "id", insight_snapshots: "insight_snapshots", name: "name", optimization_goal: "optimization_goal", publish_status: "publish_status", publish_time: "publish_time", scheduled_experiment_timestamp: "scheduled_experiment_timestamp", updated_time: "updated_time" }); }, "get") }, { key: "OptimizationGoal", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ auto_resolve_to_control: "AUTO_RESOLVE_TO_CONTROL", avg_time_watched: "AVG_TIME_WATCHED", comments: "COMMENTS", impressions: "IMPRESSIONS", impressions_unique: "IMPRESSIONS_UNIQUE", link_clicks: "LINK_CLICKS", other: "OTHER", reactions: "REACTIONS", reels_plays: "REELS_PLAYS", shares: "SHARES", video_views_60s: "VIDEO_VIEWS_60S" }); }, "get") }]); return PagePostExperiment2; }(AbstractCrudObject); var ProfilePictureSource = function(_AbstractCrudObject) { inherits(ProfilePictureSource2, _AbstractCrudObject); function ProfilePictureSource2() { classCallCheck(this, ProfilePictureSource2); return possibleConstructorReturn(this, (ProfilePictureSource2.__proto__ || Object.getPrototypeOf(ProfilePictureSource2)).apply(this, arguments)); } __name(ProfilePictureSource2, "ProfilePictureSource"); createClass(ProfilePictureSource2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ bottom: "bottom", cache_key: "cache_key", height: "height", is_silhouette: "is_silhouette", left: "left", right: "right", top: "top", url: "url", width: "width" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ album: "album", small: "small", thumbnail: "thumbnail" }); }, "get") }]); return ProfilePictureSource2; }(AbstractCrudObject); var Profile = function(_AbstractCrudObject) { inherits(Profile2, _AbstractCrudObject); function Profile2() { classCallCheck(this, Profile2); return possibleConstructorReturn(this, (Profile2.__proto__ || Object.getPrototypeOf(Profile2)).apply(this, arguments)); } __name(Profile2, "Profile"); createClass(Profile2, [{ key: "getPicture", value: /* @__PURE__ */ __name(function getPicture(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProfilePictureSource, fields, params, fetchFirstPage, "/picture"); }, "getPicture") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ can_post: "can_post", id: "id", link: "link", name: "name", pic: "pic", pic_crop: "pic_crop", pic_large: "pic_large", pic_small: "pic_small", pic_square: "pic_square", profile_type: "profile_type", username: "username" }); }, "get") }, { key: "ProfileType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ application: "application", event: "event", group: "group", page: "page", user: "user" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ angry: "ANGRY", care: "CARE", fire: "FIRE", haha: "HAHA", hundred: "HUNDRED", like: "LIKE", love: "LOVE", none: "NONE", pride: "PRIDE", sad: "SAD", thankful: "THANKFUL", wow: "WOW" }); }, "get") }]); return Profile2; }(AbstractCrudObject); var Comment = function(_AbstractCrudObject) { inherits(Comment2, _AbstractCrudObject); function Comment2() { classCallCheck(this, Comment2); return possibleConstructorReturn(this, (Comment2.__proto__ || Object.getPrototypeOf(Comment2)).apply(this, arguments)); } __name(Comment2, "Comment"); createClass(Comment2, [{ key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Comment2, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "createComment", value: /* @__PURE__ */ __name(function createComment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/comments", fields, params, Comment2, pathOverride); }, "createComment") }, { key: "deleteLikes", value: /* @__PURE__ */ __name(function deleteLikes() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Comment2.prototype.__proto__ || Object.getPrototypeOf(Comment2.prototype), "deleteEdge", this).call(this, "/likes", params); }, "deleteLikes") }, { key: "getLikes", value: /* @__PURE__ */ __name(function getLikes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/likes"); }, "getLikes") }, { key: "createLike", value: /* @__PURE__ */ __name(function createLike(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/likes", fields, params, Comment2, pathOverride); }, "createLike") }, { key: "getReactions", value: /* @__PURE__ */ __name(function getReactions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/reactions"); }, "getReactions") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Comment2.prototype.__proto__ || Object.getPrototypeOf(Comment2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Comment2.prototype.__proto__ || Object.getPrototypeOf(Comment2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ admin_creator: "admin_creator", application: "application", attachment: "attachment", can_comment: "can_comment", can_hide: "can_hide", can_like: "can_like", can_remove: "can_remove", can_reply_privately: "can_reply_privately", comment_count: "comment_count", created_time: "created_time", from: "from", id: "id", is_hidden: "is_hidden", is_private: "is_private", like_count: "like_count", live_broadcast_timestamp: "live_broadcast_timestamp", message: "message", message_tags: "message_tags", object: "object", parent: "parent", permalink_url: "permalink_url", private_reply_conversation: "private_reply_conversation", user_likes: "user_likes" }); }, "get") }, { key: "CommentPrivacyValue", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ declined_by_admin_assistant: "DECLINED_BY_ADMIN_ASSISTANT", default_privacy: "DEFAULT_PRIVACY", friends_and_post_owner: "FRIENDS_AND_POST_OWNER", friends_only: "FRIENDS_ONLY", graphql_multiple_value_hack_do_not_use: "GRAPHQL_MULTIPLE_VALUE_HACK_DO_NOT_USE", owner_or_commenter: "OWNER_OR_COMMENTER", pending_approval: "PENDING_APPROVAL", removed_by_admin_assistant: "REMOVED_BY_ADMIN_ASSISTANT", side_conversation: "SIDE_CONVERSATION", side_conversation_and_post_owner: "SIDE_CONVERSATION_AND_POST_OWNER", spotlight_tab: "SPOTLIGHT_TAB" }); }, "get") }, { key: "Filter", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ stream: "stream", toplevel: "toplevel" }); }, "get") }, { key: "LiveFilter", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ filter_low_quality: "filter_low_quality", no_filter: "no_filter" }); }, "get") }, { key: "Order", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ chronological: "chronological", reverse_chronological: "reverse_chronological" }); }, "get") }]); return Comment2; }(AbstractCrudObject); var RTBDynamicPost = function(_AbstractCrudObject) { inherits(RTBDynamicPost2, _AbstractCrudObject); function RTBDynamicPost2() { classCallCheck(this, RTBDynamicPost2); return possibleConstructorReturn(this, (RTBDynamicPost2.__proto__ || Object.getPrototypeOf(RTBDynamicPost2)).apply(this, arguments)); } __name(RTBDynamicPost2, "RTBDynamicPost"); createClass(RTBDynamicPost2, [{ key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Comment, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "getLikes", value: /* @__PURE__ */ __name(function getLikes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/likes"); }, "getLikes") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ child_attachments: "child_attachments", created: "created", description: "description", id: "id", image_url: "image_url", link: "link", message: "message", owner_id: "owner_id", place_id: "place_id", product_id: "product_id", title: "title" }); }, "get") }]); return RTBDynamicPost2; }(AbstractCrudObject); var InsightsResult = function(_AbstractCrudObject) { inherits(InsightsResult2, _AbstractCrudObject); function InsightsResult2() { classCallCheck(this, InsightsResult2); return possibleConstructorReturn(this, (InsightsResult2.__proto__ || Object.getPrototypeOf(InsightsResult2)).apply(this, arguments)); } __name(InsightsResult2, "InsightsResult"); createClass(InsightsResult2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ description: "description", description_from_api_doc: "description_from_api_doc", id: "id", name: "name", period: "period", title: "title", values: "values" }); }, "get") }, { key: "DatePreset", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ data_maximum: "data_maximum", last_14d: "last_14d", last_28d: "last_28d", last_30d: "last_30d", last_3d: "last_3d", last_7d: "last_7d", last_90d: "last_90d", last_month: "last_month", last_quarter: "last_quarter", last_week_mon_sun: "last_week_mon_sun", last_week_sun_sat: "last_week_sun_sat", last_year: "last_year", maximum: "maximum", this_month: "this_month", this_quarter: "this_quarter", this_week_mon_today: "this_week_mon_today", this_week_sun_today: "this_week_sun_today", this_year: "this_year", today: "today", yesterday: "yesterday" }); }, "get") }, { key: "Period", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ day: "day", days_28: "days_28", lifetime: "lifetime", month: "month", total_over_range: "total_over_range", week: "week" }); }, "get") }]); return InsightsResult2; }(AbstractCrudObject); var Post = function(_AbstractCrudObject) { inherits(Post2, _AbstractCrudObject); function Post2() { classCallCheck(this, Post2); return possibleConstructorReturn(this, (Post2.__proto__ || Object.getPrototypeOf(Post2)).apply(this, arguments)); } __name(Post2, "Post"); createClass(Post2, [{ key: "getAttachments", value: /* @__PURE__ */ __name(function getAttachments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/attachments"); }, "getAttachments") }, { key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Comment, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "createComment", value: /* @__PURE__ */ __name(function createComment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/comments", fields, params, Comment, pathOverride); }, "createComment") }, { key: "getDynamicPosts", value: /* @__PURE__ */ __name(function getDynamicPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(RTBDynamicPost, fields, params, fetchFirstPage, "/dynamic_posts"); }, "getDynamicPosts") }, { key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InsightsResult, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "deleteLikes", value: /* @__PURE__ */ __name(function deleteLikes() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Post2.prototype.__proto__ || Object.getPrototypeOf(Post2.prototype), "deleteEdge", this).call(this, "/likes", params); }, "deleteLikes") }, { key: "createLike", value: /* @__PURE__ */ __name(function createLike(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/likes", fields, params, Post2, pathOverride); }, "createLike") }, { key: "getReactions", value: /* @__PURE__ */ __name(function getReactions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/reactions"); }, "getReactions") }, { key: "getSharedPosts", value: /* @__PURE__ */ __name(function getSharedPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Post2, fields, params, fetchFirstPage, "/sharedposts"); }, "getSharedPosts") }, { key: "getSponsorTags", value: /* @__PURE__ */ __name(function getSponsorTags(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/sponsor_tags"); }, "getSponsorTags") }, { key: "getTo", value: /* @__PURE__ */ __name(function getTo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/to"); }, "getTo") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Post2.prototype.__proto__ || Object.getPrototypeOf(Post2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Post2.prototype.__proto__ || Object.getPrototypeOf(Post2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ actions: "actions", admin_creator: "admin_creator", allowed_advertising_objectives: "allowed_advertising_objectives", application: "application", backdated_time: "backdated_time", call_to_action: "call_to_action", can_reply_privately: "can_reply_privately", caption: "caption", child_attachments: "child_attachments", comments_mirroring_domain: "comments_mirroring_domain", coordinates: "coordinates", created_time: "created_time", description: "description", event: "event", expanded_height: "expanded_height", expanded_width: "expanded_width", feed_targeting: "feed_targeting", from: "from", full_picture: "full_picture", height: "height", icon: "icon", id: "id", instagram_eligibility: "instagram_eligibility", is_app_share: "is_app_share", is_eligible_for_promotion: "is_eligible_for_promotion", is_expired: "is_expired", is_hidden: "is_hidden", is_inline_created: "is_inline_created", is_instagram_eligible: "is_instagram_eligible", is_popular: "is_popular", is_published: "is_published", is_spherical: "is_spherical", link: "link", message: "message", message_tags: "message_tags", multi_share_end_card: "multi_share_end_card", multi_share_optimized: "multi_share_optimized", name: "name", object_id: "object_id", parent_id: "parent_id", permalink_url: "permalink_url", picture: "picture", place: "place", privacy: "privacy", promotable_id: "promotable_id", promotion_status: "promotion_status", properties: "properties", scheduled_publish_time: "scheduled_publish_time", shares: "shares", source: "source", status_type: "status_type", story: "story", story_tags: "story_tags", subscribed: "subscribed", target: "target", targeting: "targeting", timeline_visibility: "timeline_visibility", type: "type", updated_time: "updated_time", via: "via", video_buying_eligibility: "video_buying_eligibility", width: "width" }); }, "get") }, { key: "BackdatedTimeGranularity", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ day: "day", hour: "hour", min: "min", month: "month", none: "none", year: "year" }); }, "get") }, { key: "Formatting", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ markdown: "MARKDOWN", plaintext: "PLAINTEXT" }); }, "get") }, { key: "PlaceAttachmentSetting", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ value_1: "1", value_2: "2" }); }, "get") }, { key: "PostSurfacesBlacklist", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ value_1: "1", value_2: "2", value_3: "3", value_4: "4", value_5: "5" }); }, "get") }, { key: "PostingToRedspace", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ disabled: "disabled", enabled: "enabled" }); }, "get") }, { key: "TargetSurface", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ story: "STORY", timeline: "TIMELINE" }); }, "get") }, { key: "UnpublishedContentType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ads_post: "ADS_POST", draft: "DRAFT", inline_created: "INLINE_CREATED", published: "PUBLISHED", reviewable_branded_content: "REVIEWABLE_BRANDED_CONTENT", scheduled: "SCHEDULED", scheduled_recurring: "SCHEDULED_RECURRING" }); }, "get") }, { key: "FeedStoryVisibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ hidden: "hidden", visible: "visible" }); }, "get") }, { key: "TimelineVisibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ forced_allow: "forced_allow", hidden: "hidden", normal: "normal" }); }, "get") }]); return Post2; }(AbstractCrudObject); var PagePost = function(_AbstractCrudObject) { inherits(PagePost2, _AbstractCrudObject); function PagePost2() { classCallCheck(this, PagePost2); return possibleConstructorReturn(this, (PagePost2.__proto__ || Object.getPrototypeOf(PagePost2)).apply(this, arguments)); } __name(PagePost2, "PagePost"); createClass(PagePost2, [{ key: "getAttachments", value: /* @__PURE__ */ __name(function getAttachments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/attachments"); }, "getAttachments") }, { key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Comment, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "createComment", value: /* @__PURE__ */ __name(function createComment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/comments", fields, params, Comment, pathOverride); }, "createComment") }, { key: "getDynamicPosts", value: /* @__PURE__ */ __name(function getDynamicPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(RTBDynamicPost, fields, params, fetchFirstPage, "/dynamic_posts"); }, "getDynamicPosts") }, { key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InsightsResult, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "deleteLikes", value: /* @__PURE__ */ __name(function deleteLikes() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(PagePost2.prototype.__proto__ || Object.getPrototypeOf(PagePost2.prototype), "deleteEdge", this).call(this, "/likes", params); }, "deleteLikes") }, { key: "getLikes", value: /* @__PURE__ */ __name(function getLikes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/likes"); }, "getLikes") }, { key: "createLike", value: /* @__PURE__ */ __name(function createLike(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/likes", fields, params, PagePost2, pathOverride); }, "createLike") }, { key: "getReactions", value: /* @__PURE__ */ __name(function getReactions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/reactions"); }, "getReactions") }, { key: "getSharedPosts", value: /* @__PURE__ */ __name(function getSharedPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Post, fields, params, fetchFirstPage, "/sharedposts"); }, "getSharedPosts") }, { key: "getSponsorTags", value: /* @__PURE__ */ __name(function getSponsorTags(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/sponsor_tags"); }, "getSponsorTags") }, { key: "getTo", value: /* @__PURE__ */ __name(function getTo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/to"); }, "getTo") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(PagePost2.prototype.__proto__ || Object.getPrototypeOf(PagePost2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(PagePost2.prototype.__proto__ || Object.getPrototypeOf(PagePost2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ actions: "actions", admin_creator: "admin_creator", allowed_advertising_objectives: "allowed_advertising_objectives", application: "application", backdated_time: "backdated_time", call_to_action: "call_to_action", can_reply_privately: "can_reply_privately", child_attachments: "child_attachments", comments_mirroring_domain: "comments_mirroring_domain", coordinates: "coordinates", created_time: "created_time", event: "event", expanded_height: "expanded_height", expanded_width: "expanded_width", feed_targeting: "feed_targeting", from: "from", full_picture: "full_picture", height: "height", icon: "icon", id: "id", instagram_eligibility: "instagram_eligibility", is_app_share: "is_app_share", is_eligible_for_promotion: "is_eligible_for_promotion", is_expired: "is_expired", is_hidden: "is_hidden", is_inline_created: "is_inline_created", is_instagram_eligible: "is_instagram_eligible", is_popular: "is_popular", is_published: "is_published", is_spherical: "is_spherical", message: "message", message_tags: "message_tags", multi_share_end_card: "multi_share_end_card", multi_share_optimized: "multi_share_optimized", parent_id: "parent_id", permalink_url: "permalink_url", picture: "picture", place: "place", privacy: "privacy", promotable_id: "promotable_id", promotion_status: "promotion_status", properties: "properties", scheduled_publish_time: "scheduled_publish_time", shares: "shares", status_type: "status_type", story: "story", story_tags: "story_tags", subscribed: "subscribed", target: "target", targeting: "targeting", timeline_visibility: "timeline_visibility", updated_time: "updated_time", via: "via", video_buying_eligibility: "video_buying_eligibility", width: "width" }); }, "get") }, { key: "With", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ location: "LOCATION" }); }, "get") }, { key: "BackdatedTimeGranularity", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ day: "day", hour: "hour", min: "min", month: "month", none: "none", year: "year" }); }, "get") }, { key: "FeedStoryVisibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ hidden: "hidden", visible: "visible" }); }, "get") }, { key: "TimelineVisibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ forced_allow: "forced_allow", hidden: "hidden", normal: "normal" }); }, "get") }]); return PagePost2; }(AbstractCrudObject); var Photo = function(_AbstractCrudObject) { inherits(Photo2, _AbstractCrudObject); function Photo2() { classCallCheck(this, Photo2); return possibleConstructorReturn(this, (Photo2.__proto__ || Object.getPrototypeOf(Photo2)).apply(this, arguments)); } __name(Photo2, "Photo"); createClass(Photo2, [{ key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Comment, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "createComment", value: /* @__PURE__ */ __name(function createComment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/comments", fields, params, Comment, pathOverride); }, "createComment") }, { key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InsightsResult, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "getLikes", value: /* @__PURE__ */ __name(function getLikes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/likes"); }, "getLikes") }, { key: "createLike", value: /* @__PURE__ */ __name(function createLike(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/likes", fields, params, Photo2, pathOverride); }, "createLike") }, { key: "getSponsorTags", value: /* @__PURE__ */ __name(function getSponsorTags(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/sponsor_tags"); }, "getSponsorTags") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Photo2.prototype.__proto__ || Object.getPrototypeOf(Photo2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ album: "album", alt_text: "alt_text", alt_text_custom: "alt_text_custom", backdated_time: "backdated_time", backdated_time_granularity: "backdated_time_granularity", can_backdate: "can_backdate", can_delete: "can_delete", can_tag: "can_tag", created_time: "created_time", event: "event", from: "from", height: "height", icon: "icon", id: "id", images: "images", link: "link", name: "name", name_tags: "name_tags", page_story_id: "page_story_id", picture: "picture", place: "place", position: "position", source: "source", target: "target", updated_time: "updated_time", webp_images: "webp_images", width: "width" }); }, "get") }, { key: "BackdatedTimeGranularity", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ day: "day", hour: "hour", min: "min", month: "month", none: "none", year: "year" }); }, "get") }, { key: "UnpublishedContentType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ads_post: "ADS_POST", draft: "DRAFT", inline_created: "INLINE_CREATED", published: "PUBLISHED", reviewable_branded_content: "REVIEWABLE_BRANDED_CONTENT", scheduled: "SCHEDULED", scheduled_recurring: "SCHEDULED_RECURRING" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ profile: "profile", tagged: "tagged", uploaded: "uploaded" }); }, "get") }]); return Photo2; }(AbstractCrudObject); var Album = function(_AbstractCrudObject) { inherits(Album2, _AbstractCrudObject); function Album2() { classCallCheck(this, Album2); return possibleConstructorReturn(this, (Album2.__proto__ || Object.getPrototypeOf(Album2)).apply(this, arguments)); } __name(Album2, "Album"); createClass(Album2, [{ key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Comment, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "createComment", value: /* @__PURE__ */ __name(function createComment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/comments", fields, params, Comment, pathOverride); }, "createComment") }, { key: "getLikes", value: /* @__PURE__ */ __name(function getLikes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/likes"); }, "getLikes") }, { key: "createLike", value: /* @__PURE__ */ __name(function createLike(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/likes", fields, params, Album2, pathOverride); }, "createLike") }, { key: "getPhotos", value: /* @__PURE__ */ __name(function getPhotos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Photo, fields, params, fetchFirstPage, "/photos"); }, "getPhotos") }, { key: "createPhoto", value: /* @__PURE__ */ __name(function createPhoto(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/photos", fields, params, Photo, pathOverride); }, "createPhoto") }, { key: "getPicture", value: /* @__PURE__ */ __name(function getPicture(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProfilePictureSource, fields, params, fetchFirstPage, "/picture"); }, "getPicture") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ backdated_time: "backdated_time", backdated_time_granularity: "backdated_time_granularity", can_backdate: "can_backdate", can_upload: "can_upload", count: "count", cover_photo: "cover_photo", created_time: "created_time", description: "description", edit_link: "edit_link", event: "event", from: "from", id: "id", is_user_facing: "is_user_facing", link: "link", location: "location", modified_major: "modified_major", name: "name", photo_count: "photo_count", place: "place", privacy: "privacy", type: "type", updated_time: "updated_time", video_count: "video_count" }); }, "get") }]); return Album2; }(AbstractCrudObject); var PageCallToAction = function(_AbstractCrudObject) { inherits(PageCallToAction2, _AbstractCrudObject); function PageCallToAction2() { classCallCheck(this, PageCallToAction2); return possibleConstructorReturn(this, (PageCallToAction2.__proto__ || Object.getPrototypeOf(PageCallToAction2)).apply(this, arguments)); } __name(PageCallToAction2, "PageCallToAction"); createClass(PageCallToAction2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(PageCallToAction2.prototype.__proto__ || Object.getPrototypeOf(PageCallToAction2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(PageCallToAction2.prototype.__proto__ || Object.getPrototypeOf(PageCallToAction2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ android_app: "android_app", android_deeplink: "android_deeplink", android_destination_type: "android_destination_type", android_package_name: "android_package_name", android_url: "android_url", created_time: "created_time", email_address: "email_address", from: "from", id: "id", intl_number_with_plus: "intl_number_with_plus", iphone_app: "iphone_app", iphone_deeplink: "iphone_deeplink", iphone_destination_type: "iphone_destination_type", iphone_url: "iphone_url", status: "status", type: "type", updated_time: "updated_time", web_destination_type: "web_destination_type", web_url: "web_url" }); }, "get") }, { key: "AndroidDestinationType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_deeplink: "APP_DEEPLINK", become_a_volunteer: "BECOME_A_VOLUNTEER", email: "EMAIL", facebook_app: "FACEBOOK_APP", follow: "FOLLOW", marketplace_inventory_page: "MARKETPLACE_INVENTORY_PAGE", menu_on_facebook: "MENU_ON_FACEBOOK", messenger: "MESSENGER", mini_shop: "MINI_SHOP", mobile_center: "MOBILE_CENTER", none: "NONE", phone_call: "PHONE_CALL", shop_on_facebook: "SHOP_ON_FACEBOOK", website: "WEBSITE" }); }, "get") }, { key: "IphoneDestinationType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_deeplink: "APP_DEEPLINK", become_a_volunteer: "BECOME_A_VOLUNTEER", email: "EMAIL", facebook_app: "FACEBOOK_APP", follow: "FOLLOW", marketplace_inventory_page: "MARKETPLACE_INVENTORY_PAGE", menu_on_facebook: "MENU_ON_FACEBOOK", messenger: "MESSENGER", mini_shop: "MINI_SHOP", none: "NONE", phone_call: "PHONE_CALL", shop_on_facebook: "SHOP_ON_FACEBOOK", website: "WEBSITE" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ become_a_volunteer: "BECOME_A_VOLUNTEER", book_appointment: "BOOK_APPOINTMENT", book_now: "BOOK_NOW", buy_tickets: "BUY_TICKETS", call_now: "CALL_NOW", charity_donate: "CHARITY_DONATE", contact_us: "CONTACT_US", donate_now: "DONATE_NOW", email: "EMAIL", follow_page: "FOLLOW_PAGE", get_directions: "GET_DIRECTIONS", get_offer: "GET_OFFER", get_offer_view: "GET_OFFER_VIEW", interested: "INTERESTED", learn_more: "LEARN_MORE", listen: "LISTEN", local_dev_platform: "LOCAL_DEV_PLATFORM", message: "MESSAGE", mobile_center: "MOBILE_CENTER", open_app: "OPEN_APP", order_food: "ORDER_FOOD", play_music: "PLAY_MUSIC", play_now: "PLAY_NOW", purchase_gift_cards: "PURCHASE_GIFT_CARDS", request_appointment: "REQUEST_APPOINTMENT", request_quote: "REQUEST_QUOTE", shop_now: "SHOP_NOW", shop_on_facebook: "SHOP_ON_FACEBOOK", sign_up: "SIGN_UP", view_inventory: "VIEW_INVENTORY", view_menu: "VIEW_MENU", view_shop: "VIEW_SHOP", visit_group: "VISIT_GROUP", watch_now: "WATCH_NOW", woodhenge_support: "WOODHENGE_SUPPORT" }); }, "get") }, { key: "WebDestinationType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ become_a_volunteer: "BECOME_A_VOLUNTEER", become_supporter: "BECOME_SUPPORTER", email: "EMAIL", follow: "FOLLOW", messenger: "MESSENGER", mobile_center: "MOBILE_CENTER", none: "NONE", shop_on_facebook: "SHOP_ON_FACEBOOK", website: "WEBSITE" }); }, "get") }]); return PageCallToAction2; }(AbstractCrudObject); var CanvasBodyElement = function(_AbstractCrudObject) { inherits(CanvasBodyElement2, _AbstractCrudObject); function CanvasBodyElement2() { classCallCheck(this, CanvasBodyElement2); return possibleConstructorReturn(this, (CanvasBodyElement2.__proto__ || Object.getPrototypeOf(CanvasBodyElement2)).apply(this, arguments)); } __name(CanvasBodyElement2, "CanvasBodyElement"); createClass(CanvasBodyElement2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ element: "element" }); }, "get") }]); return CanvasBodyElement2; }(AbstractCrudObject); var CanvasPreview = function(_AbstractCrudObject) { inherits(CanvasPreview2, _AbstractCrudObject); function CanvasPreview2() { classCallCheck(this, CanvasPreview2); return possibleConstructorReturn(this, (CanvasPreview2.__proto__ || Object.getPrototypeOf(CanvasPreview2)).apply(this, arguments)); } __name(CanvasPreview2, "CanvasPreview"); createClass(CanvasPreview2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ body: "body" }); }, "get") }]); return CanvasPreview2; }(AbstractCrudObject); var TextWithEntities = function(_AbstractCrudObject) { inherits(TextWithEntities2, _AbstractCrudObject); function TextWithEntities2() { classCallCheck(this, TextWithEntities2); return possibleConstructorReturn(this, (TextWithEntities2.__proto__ || Object.getPrototypeOf(TextWithEntities2)).apply(this, arguments)); } __name(TextWithEntities2, "TextWithEntities"); createClass(TextWithEntities2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ text: "text" }); }, "get") }]); return TextWithEntities2; }(AbstractCrudObject); var Canvas = function(_AbstractCrudObject) { inherits(Canvas2, _AbstractCrudObject); function Canvas2() { classCallCheck(this, Canvas2); return possibleConstructorReturn(this, (Canvas2.__proto__ || Object.getPrototypeOf(Canvas2)).apply(this, arguments)); } __name(Canvas2, "Canvas"); createClass(Canvas2, [{ key: "getPreview", value: /* @__PURE__ */ __name(function getPreview(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CanvasPreview, fields, params, fetchFirstPage, "/preview"); }, "getPreview") }, { key: "getPreviews", value: /* @__PURE__ */ __name(function getPreviews(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(TextWithEntities, fields, params, fetchFirstPage, "/previews"); }, "getPreviews") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Canvas2.prototype.__proto__ || Object.getPrototypeOf(Canvas2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ background_color: "background_color", body_elements: "body_elements", business_id: "business_id", canvas_link: "canvas_link", collection_hero_image: "collection_hero_image", collection_hero_video: "collection_hero_video", collection_thumbnails: "collection_thumbnails", dynamic_setting: "dynamic_setting", element_payload: "element_payload", elements: "elements", fb_body_elements: "fb_body_elements", id: "id", is_hidden: "is_hidden", is_published: "is_published", last_editor: "last_editor", linked_documents: "linked_documents", name: "name", owner: "owner", property_list: "property_list", source_template: "source_template", store_url: "store_url", style_list: "style_list", tags: "tags", ui_property_list: "ui_property_list", unused_body_elements: "unused_body_elements", update_time: "update_time", use_retailer_item_ids: "use_retailer_item_ids" }); }, "get") }]); return Canvas2; }(AbstractCrudObject); var ChatPlugin = function(_AbstractCrudObject) { inherits(ChatPlugin2, _AbstractCrudObject); function ChatPlugin2() { classCallCheck(this, ChatPlugin2); return possibleConstructorReturn(this, (ChatPlugin2.__proto__ || Object.getPrototypeOf(ChatPlugin2)).apply(this, arguments)); } __name(ChatPlugin2, "ChatPlugin"); createClass(ChatPlugin2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ alignment: "alignment", desktop_bottom_spacing: "desktop_bottom_spacing", desktop_side_spacing: "desktop_side_spacing", entry_point_icon: "entry_point_icon", entry_point_label: "entry_point_label", greeting_dialog_display: "greeting_dialog_display", guest_chat_mode: "guest_chat_mode", mobile_bottom_spacing: "mobile_bottom_spacing", mobile_chat_display: "mobile_chat_display", mobile_side_spacing: "mobile_side_spacing", theme_color: "theme_color", welcome_screen_greeting: "welcome_screen_greeting" }); }, "get") }]); return ChatPlugin2; }(AbstractCrudObject); var CommerceOrder = function(_AbstractCrudObject) { inherits(CommerceOrder2, _AbstractCrudObject); function CommerceOrder2() { classCallCheck(this, CommerceOrder2); return possibleConstructorReturn(this, (CommerceOrder2.__proto__ || Object.getPrototypeOf(CommerceOrder2)).apply(this, arguments)); } __name(CommerceOrder2, "CommerceOrder"); createClass(CommerceOrder2, [{ key: "createAcknowledgeOrder", value: /* @__PURE__ */ __name(function createAcknowledgeOrder(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/acknowledge_order", fields, params, CommerceOrder2, pathOverride); }, "createAcknowledgeOrder") }, { key: "getCancellations", value: /* @__PURE__ */ __name(function getCancellations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/cancellations"); }, "getCancellations") }, { key: "createCancellation", value: /* @__PURE__ */ __name(function createCancellation(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/cancellations", fields, params, CommerceOrder2, pathOverride); }, "createCancellation") }, { key: "createItemUpdate", value: /* @__PURE__ */ __name(function createItemUpdate(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/item_updates", fields, params, CommerceOrder2, pathOverride); }, "createItemUpdate") }, { key: "getItems", value: /* @__PURE__ */ __name(function getItems(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/items"); }, "getItems") }, { key: "getPayments", value: /* @__PURE__ */ __name(function getPayments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/payments"); }, "getPayments") }, { key: "getPromotionDetails", value: /* @__PURE__ */ __name(function getPromotionDetails(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/promotion_details"); }, "getPromotionDetails") }, { key: "getPromotions", value: /* @__PURE__ */ __name(function getPromotions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/promotions"); }, "getPromotions") }, { key: "getRefunds", value: /* @__PURE__ */ __name(function getRefunds(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/refunds"); }, "getRefunds") }, { key: "createRefund", value: /* @__PURE__ */ __name(function createRefund(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/refunds", fields, params, CommerceOrder2, pathOverride); }, "createRefund") }, { key: "getReturns", value: /* @__PURE__ */ __name(function getReturns(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/returns"); }, "getReturns") }, { key: "createReturn", value: /* @__PURE__ */ __name(function createReturn(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/returns", fields, params, CommerceOrder2, pathOverride); }, "createReturn") }, { key: "getShipments", value: /* @__PURE__ */ __name(function getShipments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/shipments"); }, "getShipments") }, { key: "createShipment", value: /* @__PURE__ */ __name(function createShipment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/shipments", fields, params, CommerceOrder2, pathOverride); }, "createShipment") }, { key: "createUpdateShipment", value: /* @__PURE__ */ __name(function createUpdateShipment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/update_shipment", fields, params, CommerceOrder2, pathOverride); }, "createUpdateShipment") }, { key: "createUpdate", value: /* @__PURE__ */ __name(function createUpdate(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/updates", fields, params, CommerceOrder2, pathOverride); }, "createUpdate") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ buyer_details: "buyer_details", channel: "channel", created: "created", estimated_payment_details: "estimated_payment_details", id: "id", is_group_buy: "is_group_buy", is_test_order: "is_test_order", last_updated: "last_updated", merchant_order_id: "merchant_order_id", order_status: "order_status", selected_shipping_option: "selected_shipping_option", ship_by_date: "ship_by_date", shipping_address: "shipping_address" }); }, "get") }, { key: "Filters", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ has_cancellations: "HAS_CANCELLATIONS", has_fulfillments: "HAS_FULFILLMENTS", has_refunds: "HAS_REFUNDS", no_cancellations: "NO_CANCELLATIONS", no_refunds: "NO_REFUNDS", no_shipments: "NO_SHIPMENTS" }); }, "get") }, { key: "State", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ completed: "COMPLETED", created: "CREATED", fb_processing: "FB_PROCESSING", in_progress: "IN_PROGRESS" }); }, "get") }, { key: "ReasonCode", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ buyers_remorse: "BUYERS_REMORSE", damaged_goods: "DAMAGED_GOODS", facebook_initiated: "FACEBOOK_INITIATED", not_as_described: "NOT_AS_DESCRIBED", quality_issue: "QUALITY_ISSUE", refund_compromised: "REFUND_COMPROMISED", refund_for_return: "REFUND_FOR_RETURN", refund_reason_other: "REFUND_REASON_OTHER", refund_sfi_fake: "REFUND_SFI_FAKE", refund_sfi_real: "REFUND_SFI_REAL", wrong_item: "WRONG_ITEM" }); }, "get") }]); return CommerceOrder2; }(AbstractCrudObject); var CommercePayout = function(_AbstractCrudObject) { inherits(CommercePayout2, _AbstractCrudObject); function CommercePayout2() { classCallCheck(this, CommercePayout2); return possibleConstructorReturn(this, (CommercePayout2.__proto__ || Object.getPrototypeOf(CommercePayout2)).apply(this, arguments)); } __name(CommercePayout2, "CommercePayout"); createClass(CommercePayout2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amount: "amount", payout_date: "payout_date", payout_reference_id: "payout_reference_id", status: "status", transfer_id: "transfer_id" }); }, "get") }]); return CommercePayout2; }(AbstractCrudObject); var CommerceOrderTransactionDetail = function(_AbstractCrudObject) { inherits(CommerceOrderTransactionDetail2, _AbstractCrudObject); function CommerceOrderTransactionDetail2() { classCallCheck(this, CommerceOrderTransactionDetail2); return possibleConstructorReturn(this, (CommerceOrderTransactionDetail2.__proto__ || Object.getPrototypeOf(CommerceOrderTransactionDetail2)).apply(this, arguments)); } __name(CommerceOrderTransactionDetail2, "CommerceOrderTransactionDetail"); createClass(CommerceOrderTransactionDetail2, [{ key: "getItems", value: /* @__PURE__ */ __name(function getItems(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/items"); }, "getItems") }, { key: "getTaxDetails", value: /* @__PURE__ */ __name(function getTaxDetails(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/tax_details"); }, "getTaxDetails") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ net_payment_amount: "net_payment_amount", order_details: "order_details", payout_reference_id: "payout_reference_id", processing_fee: "processing_fee", tax_rate: "tax_rate", transaction_date: "transaction_date", transaction_type: "transaction_type", transfer_id: "transfer_id", id: "id" }); }, "get") }]); return CommerceOrderTransactionDetail2; }(AbstractCrudObject); var CatalogItemChannelsToIntegrityStatus = function(_AbstractCrudObject) { inherits(CatalogItemChannelsToIntegrityStatus2, _AbstractCrudObject); function CatalogItemChannelsToIntegrityStatus2() { classCallCheck(this, CatalogItemChannelsToIntegrityStatus2); return possibleConstructorReturn(this, (CatalogItemChannelsToIntegrityStatus2.__proto__ || Object.getPrototypeOf(CatalogItemChannelsToIntegrityStatus2)).apply(this, arguments)); } __name(CatalogItemChannelsToIntegrityStatus2, "CatalogItemChannelsToIntegrityStatus"); createClass(CatalogItemChannelsToIntegrityStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ channels: "channels", rejection_information: "rejection_information" }); }, "get") }]); return CatalogItemChannelsToIntegrityStatus2; }(AbstractCrudObject); var DynamicVideoMetadata = function(_AbstractCrudObject) { inherits(DynamicVideoMetadata2, _AbstractCrudObject); function DynamicVideoMetadata2() { classCallCheck(this, DynamicVideoMetadata2); return possibleConstructorReturn(this, (DynamicVideoMetadata2.__proto__ || Object.getPrototypeOf(DynamicVideoMetadata2)).apply(this, arguments)); } __name(DynamicVideoMetadata2, "DynamicVideoMetadata"); createClass(DynamicVideoMetadata2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", tags: "tags", url: "url", video: "video" }); }, "get") }]); return DynamicVideoMetadata2; }(AbstractCrudObject); var AutomotiveModel = function(_AbstractCrudObject) { inherits(AutomotiveModel2, _AbstractCrudObject); function AutomotiveModel2() { classCallCheck(this, AutomotiveModel2); return possibleConstructorReturn(this, (AutomotiveModel2.__proto__ || Object.getPrototypeOf(AutomotiveModel2)).apply(this, arguments)); } __name(AutomotiveModel2, "AutomotiveModel"); createClass(AutomotiveModel2, [{ key: "getAugmentedRealitiesMetadata", value: /* @__PURE__ */ __name(function getAugmentedRealitiesMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/augmented_realities_metadata"); }, "getAugmentedRealitiesMetadata") }, { key: "getChannelsToIntegrityStatus", value: /* @__PURE__ */ __name(function getChannelsToIntegrityStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogItemChannelsToIntegrityStatus, fields, params, fetchFirstPage, "/channels_to_integrity_status"); }, "getChannelsToIntegrityStatus") }, { key: "getVideosMetadata", value: /* @__PURE__ */ __name(function getVideosMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DynamicVideoMetadata, fields, params, fetchFirstPage, "/videos_metadata"); }, "getVideosMetadata") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ applinks: "applinks", automotive_model_id: "automotive_model_id", availability: "availability", body_style: "body_style", category_specific_fields: "category_specific_fields", currency: "currency", custom_label_0: "custom_label_0", description: "description", drivetrain: "drivetrain", exterior_color: "exterior_color", finance_description: "finance_description", finance_type: "finance_type", fuel_type: "fuel_type", generation: "generation", id: "id", image_fetch_status: "image_fetch_status", images: "images", interior_color: "interior_color", interior_upholstery: "interior_upholstery", make: "make", model: "model", price: "price", sanitized_images: "sanitized_images", title: "title", transmission: "transmission", trim: "trim", unit_price: "unit_price", url: "url", visibility: "visibility", year: "year" }); }, "get") }, { key: "ImageFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "Visibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ published: "PUBLISHED", staging: "STAGING" }); }, "get") }]); return AutomotiveModel2; }(AbstractCrudObject); var StoreCatalogSettings = function(_AbstractCrudObject) { inherits(StoreCatalogSettings2, _AbstractCrudObject); function StoreCatalogSettings2() { classCallCheck(this, StoreCatalogSettings2); return possibleConstructorReturn(this, (StoreCatalogSettings2.__proto__ || Object.getPrototypeOf(StoreCatalogSettings2)).apply(this, arguments)); } __name(StoreCatalogSettings2, "StoreCatalogSettings"); createClass(StoreCatalogSettings2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(StoreCatalogSettings2.prototype.__proto__ || Object.getPrototypeOf(StoreCatalogSettings2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", page: "page" }); }, "get") }]); return StoreCatalogSettings2; }(AbstractCrudObject); var ProductCatalogCategory = function(_AbstractCrudObject) { inherits(ProductCatalogCategory2, _AbstractCrudObject); function ProductCatalogCategory2() { classCallCheck(this, ProductCatalogCategory2); return possibleConstructorReturn(this, (ProductCatalogCategory2.__proto__ || Object.getPrototypeOf(ProductCatalogCategory2)).apply(this, arguments)); } __name(ProductCatalogCategory2, "ProductCatalogCategory"); createClass(ProductCatalogCategory2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ criteria_value: "criteria_value", description: "description", destination_uri: "destination_uri", image_url: "image_url", name: "name", num_items: "num_items", tokens: "tokens" }); }, "get") }, { key: "CategorizationCriteria", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ brand: "BRAND", category: "CATEGORY", product_type: "PRODUCT_TYPE" }); }, "get") }]); return ProductCatalogCategory2; }(AbstractCrudObject); var CheckBatchRequestStatus = function(_AbstractCrudObject) { inherits(CheckBatchRequestStatus2, _AbstractCrudObject); function CheckBatchRequestStatus2() { classCallCheck(this, CheckBatchRequestStatus2); return possibleConstructorReturn(this, (CheckBatchRequestStatus2.__proto__ || Object.getPrototypeOf(CheckBatchRequestStatus2)).apply(this, arguments)); } __name(CheckBatchRequestStatus2, "CheckBatchRequestStatus"); createClass(CheckBatchRequestStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ errors: "errors", errors_total_count: "errors_total_count", handle: "handle", ids_of_invalid_requests: "ids_of_invalid_requests", status: "status", warnings: "warnings", warnings_total_count: "warnings_total_count" }); }, "get") }, { key: "ErrorPriority", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ high: "HIGH", low: "LOW", medium: "MEDIUM" }); }, "get") }]); return CheckBatchRequestStatus2; }(AbstractCrudObject); var CatalogSegmentAllMatchCountLaser = function(_AbstractCrudObject) { inherits(CatalogSegmentAllMatchCountLaser2, _AbstractCrudObject); function CatalogSegmentAllMatchCountLaser2() { classCallCheck(this, CatalogSegmentAllMatchCountLaser2); return possibleConstructorReturn(this, (CatalogSegmentAllMatchCountLaser2.__proto__ || Object.getPrototypeOf(CatalogSegmentAllMatchCountLaser2)).apply(this, arguments)); } __name(CatalogSegmentAllMatchCountLaser2, "CatalogSegmentAllMatchCountLaser"); createClass(CatalogSegmentAllMatchCountLaser2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ date_start: "date_start", date_stop: "date_stop", event: "event", source: "source", total_matched_content_ids: "total_matched_content_ids", unique_matched_content_ids: "unique_matched_content_ids" }); }, "get") }]); return CatalogSegmentAllMatchCountLaser2; }(AbstractCrudObject); var CollaborativeAdsShareSettings = function(_AbstractCrudObject) { inherits(CollaborativeAdsShareSettings2, _AbstractCrudObject); function CollaborativeAdsShareSettings2() { classCallCheck(this, CollaborativeAdsShareSettings2); return possibleConstructorReturn(this, (CollaborativeAdsShareSettings2.__proto__ || Object.getPrototypeOf(CollaborativeAdsShareSettings2)).apply(this, arguments)); } __name(CollaborativeAdsShareSettings2, "CollaborativeAdsShareSettings"); createClass(CollaborativeAdsShareSettings2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ agency_business: "agency_business", id: "id", product_catalog_proxy_id: "product_catalog_proxy_id", utm_campaign: "utm_campaign", utm_medium: "utm_medium", utm_source: "utm_source" }); }, "get") }]); return CollaborativeAdsShareSettings2; }(AbstractCrudObject); var ProductCatalogDataSource = function(_AbstractCrudObject) { inherits(ProductCatalogDataSource2, _AbstractCrudObject); function ProductCatalogDataSource2() { classCallCheck(this, ProductCatalogDataSource2); return possibleConstructorReturn(this, (ProductCatalogDataSource2.__proto__ || Object.getPrototypeOf(ProductCatalogDataSource2)).apply(this, arguments)); } __name(ProductCatalogDataSource2, "ProductCatalogDataSource"); createClass(ProductCatalogDataSource2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_id: "app_id", id: "id", ingestion_source_type: "ingestion_source_type", name: "name", upload_type: "upload_type" }); }, "get") }, { key: "IngestionSourceType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ all: "ALL", primary: "PRIMARY", supplementary: "SUPPLEMENTARY" }); }, "get") }]); return ProductCatalogDataSource2; }(AbstractCrudObject); var Destination = function(_AbstractCrudObject) { inherits(Destination2, _AbstractCrudObject); function Destination2() { classCallCheck(this, Destination2); return possibleConstructorReturn(this, (Destination2.__proto__ || Object.getPrototypeOf(Destination2)).apply(this, arguments)); } __name(Destination2, "Destination"); createClass(Destination2, [{ key: "getAugmentedRealitiesMetadata", value: /* @__PURE__ */ __name(function getAugmentedRealitiesMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/augmented_realities_metadata"); }, "getAugmentedRealitiesMetadata") }, { key: "getChannelsToIntegrityStatus", value: /* @__PURE__ */ __name(function getChannelsToIntegrityStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogItemChannelsToIntegrityStatus, fields, params, fetchFirstPage, "/channels_to_integrity_status"); }, "getChannelsToIntegrityStatus") }, { key: "getVideosMetadata", value: /* @__PURE__ */ __name(function getVideosMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DynamicVideoMetadata, fields, params, fetchFirstPage, "/videos_metadata"); }, "getVideosMetadata") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ address: "address", applinks: "applinks", category_specific_fields: "category_specific_fields", currency: "currency", description: "description", destination_id: "destination_id", id: "id", image_fetch_status: "image_fetch_status", images: "images", name: "name", price: "price", price_change: "price_change", sanitized_images: "sanitized_images", tags: "tags", types: "types", unit_price: "unit_price", url: "url", visibility: "visibility" }); }, "get") }, { key: "ImageFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "Visibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ published: "PUBLISHED", staging: "STAGING" }); }, "get") }]); return Destination2; }(AbstractCrudObject); var ProductCatalogDiagnosticGroup = function(_AbstractCrudObject) { inherits(ProductCatalogDiagnosticGroup2, _AbstractCrudObject); function ProductCatalogDiagnosticGroup2() { classCallCheck(this, ProductCatalogDiagnosticGroup2); return possibleConstructorReturn(this, (ProductCatalogDiagnosticGroup2.__proto__ || Object.getPrototypeOf(ProductCatalogDiagnosticGroup2)).apply(this, arguments)); } __name(ProductCatalogDiagnosticGroup2, "ProductCatalogDiagnosticGroup"); createClass(ProductCatalogDiagnosticGroup2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ affected_channels: "affected_channels", affected_entity: "affected_entity", affected_features: "affected_features", diagnostics: "diagnostics", error_code: "error_code", number_of_affected_entities: "number_of_affected_entities", number_of_affected_items: "number_of_affected_items", severity: "severity", subtitle: "subtitle", title: "title", type: "type" }); }, "get") }, { key: "AffectedChannels", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ b2c_marketplace: "b2c_marketplace", c2c_marketplace: "c2c_marketplace", da: "da", daily_deals: "daily_deals", daily_deals_legacy: "daily_deals_legacy", ig_product_tagging: "ig_product_tagging", marketplace: "marketplace", marketplace_ads_deprecated: "marketplace_ads_deprecated", marketplace_shops: "marketplace_shops", mini_shops: "mini_shops", offline_conversions: "offline_conversions", shops: "shops", universal_checkout: "universal_checkout", whatsapp: "whatsapp" }); }, "get") }, { key: "AffectedEntity", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ product_catalog: "product_catalog", product_item: "product_item", product_set: "product_set" }); }, "get") }, { key: "AffectedFeatures", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ augmented_reality: "augmented_reality", checkout: "checkout" }); }, "get") }, { key: "Severity", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ must_fix: "MUST_FIX", opportunity: "OPPORTUNITY" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ar_visibility_issues: "AR_VISIBILITY_ISSUES", attributes_invalid: "ATTRIBUTES_INVALID", attributes_missing: "ATTRIBUTES_MISSING", category: "CATEGORY", checkout: "CHECKOUT", da_visibility_issues: "DA_VISIBILITY_ISSUES", image_quality: "IMAGE_QUALITY", low_quality_title_and_description: "LOW_QUALITY_TITLE_AND_DESCRIPTION", policy_violation: "POLICY_VIOLATION", shops_visibility_issues: "SHOPS_VISIBILITY_ISSUES" }); }, "get") }, { key: "AffectedEntities", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ product_catalog: "product_catalog", product_item: "product_item", product_set: "product_set" }); }, "get") }, { key: "Severities", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ must_fix: "MUST_FIX", opportunity: "OPPORTUNITY" }); }, "get") }, { key: "Types", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ar_visibility_issues: "AR_VISIBILITY_ISSUES", attributes_invalid: "ATTRIBUTES_INVALID", attributes_missing: "ATTRIBUTES_MISSING", category: "CATEGORY", checkout: "CHECKOUT", da_visibility_issues: "DA_VISIBILITY_ISSUES", image_quality: "IMAGE_QUALITY", low_quality_title_and_description: "LOW_QUALITY_TITLE_AND_DESCRIPTION", policy_violation: "POLICY_VIOLATION", shops_visibility_issues: "SHOPS_VISIBILITY_ISSUES" }); }, "get") }]); return ProductCatalogDiagnosticGroup2; }(AbstractCrudObject); var ProductEventStat = function(_AbstractCrudObject) { inherits(ProductEventStat2, _AbstractCrudObject); function ProductEventStat2() { classCallCheck(this, ProductEventStat2); return possibleConstructorReturn(this, (ProductEventStat2.__proto__ || Object.getPrototypeOf(ProductEventStat2)).apply(this, arguments)); } __name(ProductEventStat2, "ProductEventStat"); createClass(ProductEventStat2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ date_start: "date_start", date_stop: "date_stop", device_type: "device_type", event: "event", event_source: "event_source", total_content_ids_matched_other_catalogs: "total_content_ids_matched_other_catalogs", total_matched_content_ids: "total_matched_content_ids", total_unmatched_content_ids: "total_unmatched_content_ids", unique_content_ids_matched_other_catalogs: "unique_content_ids_matched_other_catalogs", unique_matched_content_ids: "unique_matched_content_ids", unique_unmatched_content_ids: "unique_unmatched_content_ids" }); }, "get") }, { key: "DeviceType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ desktop: "desktop", mobile_android_phone: "mobile_android_phone", mobile_android_tablet: "mobile_android_tablet", mobile_ipad: "mobile_ipad", mobile_iphone: "mobile_iphone", mobile_ipod: "mobile_ipod", mobile_phone: "mobile_phone", mobile_tablet: "mobile_tablet", mobile_windows_phone: "mobile_windows_phone", unknown: "unknown" }); }, "get") }, { key: "Event", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ addtocart: "AddToCart", addtowishlist: "AddToWishlist", initiatecheckout: "InitiateCheckout", lead: "Lead", purchase: "Purchase", search: "Search", subscribe: "Subscribe", viewcontent: "ViewContent" }); }, "get") }, { key: "Breakdowns", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ device_type: "DEVICE_TYPE" }); }, "get") }]); return ProductEventStat2; }(AbstractCrudObject); var ExternalEventSource = function(_AbstractCrudObject) { inherits(ExternalEventSource2, _AbstractCrudObject); function ExternalEventSource2() { classCallCheck(this, ExternalEventSource2); return possibleConstructorReturn(this, (ExternalEventSource2.__proto__ || Object.getPrototypeOf(ExternalEventSource2)).apply(this, arguments)); } __name(ExternalEventSource2, "ExternalEventSource"); createClass(ExternalEventSource2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name", source_type: "source_type" }); }, "get") }]); return ExternalEventSource2; }(AbstractCrudObject); var Flight = function(_AbstractCrudObject) { inherits(Flight2, _AbstractCrudObject); function Flight2() { classCallCheck(this, Flight2); return possibleConstructorReturn(this, (Flight2.__proto__ || Object.getPrototypeOf(Flight2)).apply(this, arguments)); } __name(Flight2, "Flight"); createClass(Flight2, [{ key: "getAugmentedRealitiesMetadata", value: /* @__PURE__ */ __name(function getAugmentedRealitiesMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/augmented_realities_metadata"); }, "getAugmentedRealitiesMetadata") }, { key: "getChannelsToIntegrityStatus", value: /* @__PURE__ */ __name(function getChannelsToIntegrityStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogItemChannelsToIntegrityStatus, fields, params, fetchFirstPage, "/channels_to_integrity_status"); }, "getChannelsToIntegrityStatus") }, { key: "getVideosMetadata", value: /* @__PURE__ */ __name(function getVideosMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DynamicVideoMetadata, fields, params, fetchFirstPage, "/videos_metadata"); }, "getVideosMetadata") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Flight2.prototype.__proto__ || Object.getPrototypeOf(Flight2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ applinks: "applinks", category_specific_fields: "category_specific_fields", currency: "currency", description: "description", destination_airport: "destination_airport", destination_city: "destination_city", flight_id: "flight_id", id: "id", image_fetch_status: "image_fetch_status", images: "images", oneway_currency: "oneway_currency", oneway_price: "oneway_price", origin_airport: "origin_airport", origin_city: "origin_city", price: "price", sanitized_images: "sanitized_images", tags: "tags", unit_price: "unit_price", url: "url", visibility: "visibility" }); }, "get") }, { key: "ImageFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "Visibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ published: "PUBLISHED", staging: "STAGING" }); }, "get") }]); return Flight2; }(AbstractCrudObject); var HomeListing = function(_AbstractCrudObject) { inherits(HomeListing2, _AbstractCrudObject); function HomeListing2() { classCallCheck(this, HomeListing2); return possibleConstructorReturn(this, (HomeListing2.__proto__ || Object.getPrototypeOf(HomeListing2)).apply(this, arguments)); } __name(HomeListing2, "HomeListing"); createClass(HomeListing2, [{ key: "getAugmentedRealitiesMetadata", value: /* @__PURE__ */ __name(function getAugmentedRealitiesMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/augmented_realities_metadata"); }, "getAugmentedRealitiesMetadata") }, { key: "getChannelsToIntegrityStatus", value: /* @__PURE__ */ __name(function getChannelsToIntegrityStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogItemChannelsToIntegrityStatus, fields, params, fetchFirstPage, "/channels_to_integrity_status"); }, "getChannelsToIntegrityStatus") }, { key: "getVideosMetadata", value: /* @__PURE__ */ __name(function getVideosMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DynamicVideoMetadata, fields, params, fetchFirstPage, "/videos_metadata"); }, "getVideosMetadata") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(HomeListing2.prototype.__proto__ || Object.getPrototypeOf(HomeListing2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(HomeListing2.prototype.__proto__ || Object.getPrototypeOf(HomeListing2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ac_type: "ac_type", additional_fees_description: "additional_fees_description", address: "address", agent_company: "agent_company", agent_email: "agent_email", agent_fb_page_id: "agent_fb_page_id", agent_name: "agent_name", agent_phone: "agent_phone", applinks: "applinks", area_size: "area_size", area_unit: "area_unit", availability: "availability", category_specific_fields: "category_specific_fields", co_2_emission_rating_eu: "co_2_emission_rating_eu", currency: "currency", days_on_market: "days_on_market", description: "description", energy_rating_eu: "energy_rating_eu", furnish_type: "furnish_type", group_id: "group_id", heating_type: "heating_type", home_listing_id: "home_listing_id", id: "id", image_fetch_status: "image_fetch_status", images: "images", laundry_type: "laundry_type", listing_type: "listing_type", max_currency: "max_currency", max_price: "max_price", min_currency: "min_currency", min_price: "min_price", name: "name", num_baths: "num_baths", num_beds: "num_beds", num_rooms: "num_rooms", num_units: "num_units", parking_type: "parking_type", partner_verification: "partner_verification", pet_policy: "pet_policy", price: "price", property_type: "property_type", sanitized_images: "sanitized_images", unit_price: "unit_price", url: "url", visibility: "visibility", year_built: "year_built" }); }, "get") }, { key: "ImageFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "Visibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ published: "PUBLISHED", staging: "STAGING" }); }, "get") }]); return HomeListing2; }(AbstractCrudObject); var ProductCatalogHotelRoomsBatch = function(_AbstractCrudObject) { inherits(ProductCatalogHotelRoomsBatch2, _AbstractCrudObject); function ProductCatalogHotelRoomsBatch2() { classCallCheck(this, ProductCatalogHotelRoomsBatch2); return possibleConstructorReturn(this, (ProductCatalogHotelRoomsBatch2.__proto__ || Object.getPrototypeOf(ProductCatalogHotelRoomsBatch2)).apply(this, arguments)); } __name(ProductCatalogHotelRoomsBatch2, "ProductCatalogHotelRoomsBatch"); createClass(ProductCatalogHotelRoomsBatch2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ errors: "errors", errors_total_count: "errors_total_count", handle: "handle", status: "status" }); }, "get") }]); return ProductCatalogHotelRoomsBatch2; }(AbstractCrudObject); var DynamicPriceConfigByDate = function(_AbstractCrudObject) { inherits(DynamicPriceConfigByDate2, _AbstractCrudObject); function DynamicPriceConfigByDate2() { classCallCheck(this, DynamicPriceConfigByDate2); return possibleConstructorReturn(this, (DynamicPriceConfigByDate2.__proto__ || Object.getPrototypeOf(DynamicPriceConfigByDate2)).apply(this, arguments)); } __name(DynamicPriceConfigByDate2, "DynamicPriceConfigByDate"); createClass(DynamicPriceConfigByDate2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ checkin_date: "checkin_date", prices: "prices", prices_pretty: "prices_pretty", id: "id" }); }, "get") }]); return DynamicPriceConfigByDate2; }(AbstractCrudObject); var HotelRoom = function(_AbstractCrudObject) { inherits(HotelRoom2, _AbstractCrudObject); function HotelRoom2() { classCallCheck(this, HotelRoom2); return possibleConstructorReturn(this, (HotelRoom2.__proto__ || Object.getPrototypeOf(HotelRoom2)).apply(this, arguments)); } __name(HotelRoom2, "HotelRoom"); createClass(HotelRoom2, [{ key: "getPricingVariables", value: /* @__PURE__ */ __name(function getPricingVariables(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DynamicPriceConfigByDate, fields, params, fetchFirstPage, "/pricing_variables"); }, "getPricingVariables") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ applinks: "applinks", base_price: "base_price", currency: "currency", description: "description", id: "id", images: "images", margin_level: "margin_level", name: "name", room_id: "room_id", sale_price: "sale_price", url: "url" }); }, "get") }]); return HotelRoom2; }(AbstractCrudObject); var Hotel = function(_AbstractCrudObject) { inherits(Hotel2, _AbstractCrudObject); function Hotel2() { classCallCheck(this, Hotel2); return possibleConstructorReturn(this, (Hotel2.__proto__ || Object.getPrototypeOf(Hotel2)).apply(this, arguments)); } __name(Hotel2, "Hotel"); createClass(Hotel2, [{ key: "getAugmentedRealitiesMetadata", value: /* @__PURE__ */ __name(function getAugmentedRealitiesMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/augmented_realities_metadata"); }, "getAugmentedRealitiesMetadata") }, { key: "getChannelsToIntegrityStatus", value: /* @__PURE__ */ __name(function getChannelsToIntegrityStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogItemChannelsToIntegrityStatus, fields, params, fetchFirstPage, "/channels_to_integrity_status"); }, "getChannelsToIntegrityStatus") }, { key: "getHotelRooms", value: /* @__PURE__ */ __name(function getHotelRooms(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(HotelRoom, fields, params, fetchFirstPage, "/hotel_rooms"); }, "getHotelRooms") }, { key: "getVideosMetadata", value: /* @__PURE__ */ __name(function getVideosMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DynamicVideoMetadata, fields, params, fetchFirstPage, "/videos_metadata"); }, "getVideosMetadata") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Hotel2.prototype.__proto__ || Object.getPrototypeOf(Hotel2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Hotel2.prototype.__proto__ || Object.getPrototypeOf(Hotel2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ address: "address", applinks: "applinks", brand: "brand", category: "category", category_specific_fields: "category_specific_fields", currency: "currency", description: "description", guest_ratings: "guest_ratings", hotel_id: "hotel_id", id: "id", image_fetch_status: "image_fetch_status", images: "images", lowest_base_price: "lowest_base_price", loyalty_program: "loyalty_program", margin_level: "margin_level", name: "name", phone: "phone", sale_price: "sale_price", sanitized_images: "sanitized_images", star_rating: "star_rating", tags: "tags", unit_price: "unit_price", url: "url", visibility: "visibility" }); }, "get") }, { key: "ImageFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "Visibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ published: "PUBLISHED", staging: "STAGING" }); }, "get") }]); return Hotel2; }(AbstractCrudObject); var ProductCatalogPricingVariablesBatch = function(_AbstractCrudObject) { inherits(ProductCatalogPricingVariablesBatch2, _AbstractCrudObject); function ProductCatalogPricingVariablesBatch2() { classCallCheck(this, ProductCatalogPricingVariablesBatch2); return possibleConstructorReturn(this, (ProductCatalogPricingVariablesBatch2.__proto__ || Object.getPrototypeOf(ProductCatalogPricingVariablesBatch2)).apply(this, arguments)); } __name(ProductCatalogPricingVariablesBatch2, "ProductCatalogPricingVariablesBatch"); createClass(ProductCatalogPricingVariablesBatch2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ errors: "errors", errors_total_count: "errors_total_count", handle: "handle", status: "status" }); }, "get") }]); return ProductCatalogPricingVariablesBatch2; }(AbstractCrudObject); var MediaTitle = function(_AbstractCrudObject) { inherits(MediaTitle2, _AbstractCrudObject); function MediaTitle2() { classCallCheck(this, MediaTitle2); return possibleConstructorReturn(this, (MediaTitle2.__proto__ || Object.getPrototypeOf(MediaTitle2)).apply(this, arguments)); } __name(MediaTitle2, "MediaTitle"); createClass(MediaTitle2, [{ key: "getAugmentedRealitiesMetadata", value: /* @__PURE__ */ __name(function getAugmentedRealitiesMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/augmented_realities_metadata"); }, "getAugmentedRealitiesMetadata") }, { key: "getChannelsToIntegrityStatus", value: /* @__PURE__ */ __name(function getChannelsToIntegrityStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogItemChannelsToIntegrityStatus, fields, params, fetchFirstPage, "/channels_to_integrity_status"); }, "getChannelsToIntegrityStatus") }, { key: "getVideosMetadata", value: /* @__PURE__ */ __name(function getVideosMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DynamicVideoMetadata, fields, params, fetchFirstPage, "/videos_metadata"); }, "getVideosMetadata") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(MediaTitle2.prototype.__proto__ || Object.getPrototypeOf(MediaTitle2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(MediaTitle2.prototype.__proto__ || Object.getPrototypeOf(MediaTitle2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ applinks: "applinks", category_specific_fields: "category_specific_fields", content_category: "content_category", currency: "currency", description: "description", fb_page_alias: "fb_page_alias", fb_page_id: "fb_page_id", genres: "genres", id: "id", image_fetch_status: "image_fetch_status", images: "images", kg_fb_id: "kg_fb_id", media_title_id: "media_title_id", price: "price", sanitized_images: "sanitized_images", title: "title", title_display_name: "title_display_name", unit_price: "unit_price", url: "url", visibility: "visibility", wiki_data_item: "wiki_data_item" }); }, "get") }, { key: "ImageFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "Visibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ published: "PUBLISHED", staging: "STAGING" }); }, "get") }, { key: "ContentCategory", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ movie: "MOVIE", music: "MUSIC", tv_show: "TV_SHOW" }); }, "get") }]); return MediaTitle2; }(AbstractCrudObject); var VehicleOffer = function(_AbstractCrudObject) { inherits(VehicleOffer2, _AbstractCrudObject); function VehicleOffer2() { classCallCheck(this, VehicleOffer2); return possibleConstructorReturn(this, (VehicleOffer2.__proto__ || Object.getPrototypeOf(VehicleOffer2)).apply(this, arguments)); } __name(VehicleOffer2, "VehicleOffer"); createClass(VehicleOffer2, [{ key: "getAugmentedRealitiesMetadata", value: /* @__PURE__ */ __name(function getAugmentedRealitiesMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/augmented_realities_metadata"); }, "getAugmentedRealitiesMetadata") }, { key: "getChannelsToIntegrityStatus", value: /* @__PURE__ */ __name(function getChannelsToIntegrityStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogItemChannelsToIntegrityStatus, fields, params, fetchFirstPage, "/channels_to_integrity_status"); }, "getChannelsToIntegrityStatus") }, { key: "getVideosMetadata", value: /* @__PURE__ */ __name(function getVideosMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DynamicVideoMetadata, fields, params, fetchFirstPage, "/videos_metadata"); }, "getVideosMetadata") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amount_currency: "amount_currency", amount_percentage: "amount_percentage", amount_price: "amount_price", amount_qualifier: "amount_qualifier", applinks: "applinks", availability: "availability", body_style: "body_style", cashback_currency: "cashback_currency", cashback_price: "cashback_price", category_specific_fields: "category_specific_fields", currency: "currency", dma_codes: "dma_codes", downpayment_currency: "downpayment_currency", downpayment_price: "downpayment_price", downpayment_qualifier: "downpayment_qualifier", drivetrain: "drivetrain", end_date: "end_date", end_time: "end_time", exterior_color: "exterior_color", fuel_type: "fuel_type", generation: "generation", id: "id", image_fetch_status: "image_fetch_status", images: "images", interior_color: "interior_color", interior_upholstery: "interior_upholstery", make: "make", model: "model", offer_description: "offer_description", offer_disclaimer: "offer_disclaimer", offer_type: "offer_type", price: "price", sanitized_images: "sanitized_images", start_date: "start_date", start_time: "start_time", term_length: "term_length", term_qualifier: "term_qualifier", title: "title", transmission: "transmission", trim: "trim", unit_price: "unit_price", url: "url", vehicle_offer_id: "vehicle_offer_id", visibility: "visibility", year: "year" }); }, "get") }, { key: "ImageFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "Visibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ published: "PUBLISHED", staging: "STAGING" }); }, "get") }]); return VehicleOffer2; }(AbstractCrudObject); var Vehicle = function(_AbstractCrudObject) { inherits(Vehicle2, _AbstractCrudObject); function Vehicle2() { classCallCheck(this, Vehicle2); return possibleConstructorReturn(this, (Vehicle2.__proto__ || Object.getPrototypeOf(Vehicle2)).apply(this, arguments)); } __name(Vehicle2, "Vehicle"); createClass(Vehicle2, [{ key: "getAugmentedRealitiesMetadata", value: /* @__PURE__ */ __name(function getAugmentedRealitiesMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/augmented_realities_metadata"); }, "getAugmentedRealitiesMetadata") }, { key: "getChannelsToIntegrityStatus", value: /* @__PURE__ */ __name(function getChannelsToIntegrityStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogItemChannelsToIntegrityStatus, fields, params, fetchFirstPage, "/channels_to_integrity_status"); }, "getChannelsToIntegrityStatus") }, { key: "getVideosMetadata", value: /* @__PURE__ */ __name(function getVideosMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DynamicVideoMetadata, fields, params, fetchFirstPage, "/videos_metadata"); }, "getVideosMetadata") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Vehicle2.prototype.__proto__ || Object.getPrototypeOf(Vehicle2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ address: "address", applinks: "applinks", availability: "availability", body_style: "body_style", category_specific_fields: "category_specific_fields", condition: "condition", currency: "currency", custom_label_0: "custom_label_0", date_first_on_lot: "date_first_on_lot", dealer_communication_channel: "dealer_communication_channel", dealer_email: "dealer_email", dealer_id: "dealer_id", dealer_name: "dealer_name", dealer_phone: "dealer_phone", dealer_privacy_policy_url: "dealer_privacy_policy_url", description: "description", drivetrain: "drivetrain", exterior_color: "exterior_color", fb_page_id: "fb_page_id", features: "features", fuel_type: "fuel_type", id: "id", image_fetch_status: "image_fetch_status", images: "images", interior_color: "interior_color", legal_disclosure_impressum_url: "legal_disclosure_impressum_url", make: "make", mileage: "mileage", model: "model", previous_currency: "previous_currency", previous_price: "previous_price", price: "price", sale_currency: "sale_currency", sale_price: "sale_price", sanitized_images: "sanitized_images", state_of_vehicle: "state_of_vehicle", title: "title", transmission: "transmission", trim: "trim", unit_price: "unit_price", url: "url", vehicle_id: "vehicle_id", vehicle_registration_plate: "vehicle_registration_plate", vehicle_specifications: "vehicle_specifications", vehicle_type: "vehicle_type", vin: "vin", visibility: "visibility", year: "year" }); }, "get") }, { key: "ImageFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "Visibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ published: "PUBLISHED", staging: "STAGING" }); }, "get") }, { key: "Availability", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ available: "AVAILABLE", not_available: "NOT_AVAILABLE", pending: "PENDING" }); }, "get") }, { key: "BodyStyle", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ convertible: "CONVERTIBLE", coupe: "COUPE", crossover: "CROSSOVER", estate: "ESTATE", grandtourer: "GRANDTOURER", hatchback: "HATCHBACK", minibus: "MINIBUS", minivan: "MINIVAN", mpv: "MPV", none: "NONE", other: "OTHER", pickup: "PICKUP", roadster: "ROADSTER", saloon: "SALOON", sedan: "SEDAN", small_car: "SMALL_CAR", sportscar: "SPORTSCAR", supercar: "SUPERCAR", supermini: "SUPERMINI", suv: "SUV", truck: "TRUCK", van: "VAN", wagon: "WAGON" }); }, "get") }, { key: "Condition", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ excellent: "EXCELLENT", fair: "FAIR", good: "GOOD", none: "NONE", other: "OTHER", poor: "POOR", very_good: "VERY_GOOD" }); }, "get") }, { key: "Drivetrain", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ awd: "AWD", four_wd: "FOUR_WD", fwd: "FWD", none: "NONE", other: "OTHER", rwd: "RWD", two_wd: "TWO_WD" }); }, "get") }, { key: "FuelType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ diesel: "DIESEL", electric: "ELECTRIC", flex: "FLEX", gasoline: "GASOLINE", hybrid: "HYBRID", none: "NONE", other: "OTHER", petrol: "PETROL", plugin_hybrid: "PLUGIN_HYBRID" }); }, "get") }, { key: "StateOfVehicle", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ cpo: "CPO", new: "NEW", used: "USED" }); }, "get") }, { key: "Transmission", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automatic: "AUTOMATIC", manual: "MANUAL", none: "NONE", other: "OTHER" }); }, "get") }, { key: "VehicleType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ boat: "BOAT", car_truck: "CAR_TRUCK", commercial: "COMMERCIAL", motorcycle: "MOTORCYCLE", other: "OTHER", powersport: "POWERSPORT", rv_camper: "RV_CAMPER", trailer: "TRAILER" }); }, "get") }]); return Vehicle2; }(AbstractCrudObject); var ProductSet = function(_AbstractCrudObject) { inherits(ProductSet2, _AbstractCrudObject); function ProductSet2() { classCallCheck(this, ProductSet2); return possibleConstructorReturn(this, (ProductSet2.__proto__ || Object.getPrototypeOf(ProductSet2)).apply(this, arguments)); } __name(ProductSet2, "ProductSet"); createClass(ProductSet2, [{ key: "getAutomotiveModels", value: /* @__PURE__ */ __name(function getAutomotiveModels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AutomotiveModel, fields, params, fetchFirstPage, "/automotive_models"); }, "getAutomotiveModels") }, { key: "getDestinations", value: /* @__PURE__ */ __name(function getDestinations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Destination, fields, params, fetchFirstPage, "/destinations"); }, "getDestinations") }, { key: "getFlights", value: /* @__PURE__ */ __name(function getFlights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Flight, fields, params, fetchFirstPage, "/flights"); }, "getFlights") }, { key: "getHomeListings", value: /* @__PURE__ */ __name(function getHomeListings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(HomeListing, fields, params, fetchFirstPage, "/home_listings"); }, "getHomeListings") }, { key: "getHotels", value: /* @__PURE__ */ __name(function getHotels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Hotel, fields, params, fetchFirstPage, "/hotels"); }, "getHotels") }, { key: "getMediaTitles", value: /* @__PURE__ */ __name(function getMediaTitles(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(MediaTitle, fields, params, fetchFirstPage, "/media_titles"); }, "getMediaTitles") }, { key: "getProducts", value: /* @__PURE__ */ __name(function getProducts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductItem, fields, params, fetchFirstPage, "/products"); }, "getProducts") }, { key: "getVehicleOffers", value: /* @__PURE__ */ __name(function getVehicleOffers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(VehicleOffer, fields, params, fetchFirstPage, "/vehicle_offers"); }, "getVehicleOffers") }, { key: "getVehicles", value: /* @__PURE__ */ __name(function getVehicles(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Vehicle, fields, params, fetchFirstPage, "/vehicles"); }, "getVehicles") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductSet2.prototype.__proto__ || Object.getPrototypeOf(ProductSet2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductSet2.prototype.__proto__ || Object.getPrototypeOf(ProductSet2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ auto_creation_url: "auto_creation_url", filter: "filter", id: "id", latest_metadata: "latest_metadata", live_metadata: "live_metadata", name: "name", ordering_info: "ordering_info", product_catalog: "product_catalog", product_count: "product_count", retailer_id: "retailer_id" }); }, "get") }]); return ProductSet2; }(AbstractCrudObject); var ProductItem = function(_AbstractCrudObject) { inherits(ProductItem2, _AbstractCrudObject); function ProductItem2() { classCallCheck(this, ProductItem2); return possibleConstructorReturn(this, (ProductItem2.__proto__ || Object.getPrototypeOf(ProductItem2)).apply(this, arguments)); } __name(ProductItem2, "ProductItem"); createClass(ProductItem2, [{ key: "getChannelsToIntegrityStatus", value: /* @__PURE__ */ __name(function getChannelsToIntegrityStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogItemChannelsToIntegrityStatus, fields, params, fetchFirstPage, "/channels_to_integrity_status"); }, "getChannelsToIntegrityStatus") }, { key: "getProductSets", value: /* @__PURE__ */ __name(function getProductSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductSet, fields, params, fetchFirstPage, "/product_sets"); }, "getProductSets") }, { key: "getVideosMetadata", value: /* @__PURE__ */ __name(function getVideosMetadata(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DynamicVideoMetadata, fields, params, fetchFirstPage, "/videos_metadata"); }, "getVideosMetadata") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductItem2.prototype.__proto__ || Object.getPrototypeOf(ProductItem2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductItem2.prototype.__proto__ || Object.getPrototypeOf(ProductItem2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ additional_image_cdn_urls: "additional_image_cdn_urls", additional_image_urls: "additional_image_urls", additional_variant_attributes: "additional_variant_attributes", age_group: "age_group", applinks: "applinks", availability: "availability", brand: "brand", capability_to_review_status: "capability_to_review_status", category: "category", category_specific_fields: "category_specific_fields", color: "color", commerce_insights: "commerce_insights", condition: "condition", currency: "currency", custom_data: "custom_data", custom_label_0: "custom_label_0", custom_label_1: "custom_label_1", custom_label_2: "custom_label_2", custom_label_3: "custom_label_3", custom_label_4: "custom_label_4", custom_number_0: "custom_number_0", custom_number_1: "custom_number_1", custom_number_2: "custom_number_2", custom_number_3: "custom_number_3", custom_number_4: "custom_number_4", description: "description", errors: "errors", expiration_date: "expiration_date", fb_product_category: "fb_product_category", gender: "gender", gtin: "gtin", id: "id", image_cdn_urls: "image_cdn_urls", image_fetch_status: "image_fetch_status", image_url: "image_url", images: "images", importer_address: "importer_address", importer_name: "importer_name", invalidation_errors: "invalidation_errors", inventory: "inventory", manufacturer_info: "manufacturer_info", manufacturer_part_number: "manufacturer_part_number", marked_for_product_launch: "marked_for_product_launch", material: "material", mobile_link: "mobile_link", name: "name", ordering_index: "ordering_index", origin_country: "origin_country", parent_product_id: "parent_product_id", pattern: "pattern", post_conversion_signal_based_enforcement_appeal_eligibility: "post_conversion_signal_based_enforcement_appeal_eligibility", price: "price", product_catalog: "product_catalog", product_feed: "product_feed", product_group: "product_group", product_local_info: "product_local_info", product_type: "product_type", quantity_to_sell_on_facebook: "quantity_to_sell_on_facebook", retailer_id: "retailer_id", retailer_product_group_id: "retailer_product_group_id", review_rejection_reasons: "review_rejection_reasons", review_status: "review_status", sale_price: "sale_price", sale_price_end_date: "sale_price_end_date", sale_price_start_date: "sale_price_start_date", shipping_weight_unit: "shipping_weight_unit", shipping_weight_value: "shipping_weight_value", short_description: "short_description", size: "size", start_date: "start_date", tags: "tags", url: "url", video_fetch_status: "video_fetch_status", visibility: "visibility", wa_compliance_category: "wa_compliance_category" }); }, "get") }, { key: "AgeGroup", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adult: "adult", all_ages: "all ages", infant: "infant", kids: "kids", newborn: "newborn", teen: "teen", toddler: "toddler" }); }, "get") }, { key: "Availability", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ available_for_order: "available for order", discontinued: "discontinued", in_stock: "in stock", mark_as_sold: "mark_as_sold", out_of_stock: "out of stock", pending: "pending", preorder: "preorder" }); }, "get") }, { key: "Condition", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ cpo: "cpo", new: "new", open_box_new: "open_box_new", refurbished: "refurbished", used: "used", used_fair: "used_fair", used_good: "used_good", used_like_new: "used_like_new" }); }, "get") }, { key: "Gender", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ female: "female", male: "male", unisex: "unisex" }); }, "get") }, { key: "ImageFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "ReviewStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ approved: "approved", outdated: "outdated", pending: "pending", rejected: "rejected" }); }, "get") }, { key: "ShippingWeightUnit", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ g: "g", kg: "kg", lb: "lb", oz: "oz" }); }, "get") }, { key: "VideoFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "Visibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ published: "published", staging: "staging" }); }, "get") }, { key: "CommerceTaxCategory", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ fb_animal: "FB_ANIMAL", fb_animal_supp: "FB_ANIMAL_SUPP", fb_aprl: "FB_APRL", fb_aprl_accessories: "FB_APRL_ACCESSORIES", fb_aprl_athl_unif: "FB_APRL_ATHL_UNIF", fb_aprl_cases: "FB_APRL_CASES", fb_aprl_clothing: "FB_APRL_CLOTHING", fb_aprl_costume: "FB_APRL_COSTUME", fb_aprl_cstm: "FB_APRL_CSTM", fb_aprl_formal: "FB_APRL_FORMAL", fb_aprl_handbag: "FB_APRL_HANDBAG", fb_aprl_jewelry: "FB_APRL_JEWELRY", fb_aprl_shoe: "FB_APRL_SHOE", fb_aprl_shoe_acc: "FB_APRL_SHOE_ACC", fb_aprl_swim: "FB_APRL_SWIM", fb_aprl_swim_chil: "FB_APRL_SWIM_CHIL", fb_aprl_swim_cvr: "FB_APRL_SWIM_CVR", fb_arts: "FB_ARTS", fb_arts_hobby: "FB_ARTS_HOBBY", fb_arts_party: "FB_ARTS_PARTY", fb_arts_party_gift_card: "FB_ARTS_PARTY_GIFT_CARD", fb_arts_ticket: "FB_ARTS_TICKET", fb_baby: "FB_BABY", fb_baby_bath: "FB_BABY_BATH", fb_baby_blanket: "FB_BABY_BLANKET", fb_baby_diaper: "FB_BABY_DIAPER", fb_baby_gift_set: "FB_BABY_GIFT_SET", fb_baby_health: "FB_BABY_HEALTH", fb_baby_nursing: "FB_BABY_NURSING", fb_baby_potty_trn: "FB_BABY_POTTY_TRN", fb_baby_safe: "FB_BABY_SAFE", fb_baby_toys: "FB_BABY_TOYS", fb_baby_transport: "FB_BABY_TRANSPORT", fb_baby_transport_acc: "FB_BABY_TRANSPORT_ACC", fb_bags: "FB_BAGS", fb_bags_bkpk: "FB_BAGS_BKPK", fb_bags_boxes: "FB_BAGS_BOXES", fb_bags_brfcs: "FB_BAGS_BRFCS", fb_bags_csmt_bag: "FB_BAGS_CSMT_BAG", fb_bags_dffl: "FB_BAGS_DFFL", fb_bags_dipr: "FB_BAGS_DIPR", fb_bags_fnny: "FB_BAGS_FNNY", fb_bags_grmt: "FB_BAGS_GRMT", fb_bags_lugg: "FB_BAGS_LUGG", fb_bags_lug_acc: "FB_BAGS_LUG_ACC", fb_bags_msgr: "FB_BAGS_MSGR", fb_bags_tote: "FB_BAGS_TOTE", fb_bags_trn_cas: "FB_BAGS_TRN_CAS", fb_bldg: "FB_BLDG", fb_bldg_acc: "FB_BLDG_ACC", fb_bldg_cnsmb: "FB_BLDG_CNSMB", fb_bldg_fence: "FB_BLDG_FENCE", fb_bldg_fuel_tnk: "FB_BLDG_FUEL_TNK", fb_bldg_ht_vnt: "FB_BLDG_HT_VNT", fb_bldg_lock: "FB_BLDG_LOCK", fb_bldg_matrl: "FB_BLDG_MATRL", fb_bldg_plmb: "FB_BLDG_PLMB", fb_bldg_pump: "FB_BLDG_PUMP", fb_bldg_pwrs: "FB_BLDG_PWRS", fb_bldg_str_tank: "FB_BLDG_STR_TANK", fb_bldg_s_eng: "FB_BLDG_S_ENG", fb_bldg_tl_acc: "FB_BLDG_TL_ACC", fb_bldg_tool: "FB_BLDG_TOOL", fb_busind: "FB_BUSIND", fb_busind_advertising: "FB_BUSIND_ADVERTISING", fb_busind_agriculture: "FB_BUSIND_AGRICULTURE", fb_busind_automation: "FB_BUSIND_AUTOMATION", fb_busind_heavy_mach: "FB_BUSIND_HEAVY_MACH", fb_busind_lab: "FB_BUSIND_LAB", fb_busind_medical: "FB_BUSIND_MEDICAL", fb_busind_retail: "FB_BUSIND_RETAIL", fb_busind_sanitary_ct: "FB_BUSIND_SANITARY_CT", fb_busind_sign: "FB_BUSIND_SIGN", fb_busind_storage: "FB_BUSIND_STORAGE", fb_busind_storage_acc: "FB_BUSIND_STORAGE_ACC", fb_busind_work_gear: "FB_BUSIND_WORK_GEAR", fb_camera_acc: "FB_CAMERA_ACC", fb_camera_camera: "FB_CAMERA_CAMERA", fb_camera_optic: "FB_CAMERA_OPTIC", fb_camera_optics: "FB_CAMERA_OPTICS", fb_camera_photo: "FB_CAMERA_PHOTO", fb_elec: "FB_ELEC", fb_elec_acc: "FB_ELEC_ACC", fb_elec_arcdade: "FB_ELEC_ARCDADE", fb_elec_audio: "FB_ELEC_AUDIO", fb_elec_circuit: "FB_ELEC_CIRCUIT", fb_elec_comm: "FB_ELEC_COMM", fb_elec_computer: "FB_ELEC_COMPUTER", fb_elec_gps_acc: "FB_ELEC_GPS_ACC", fb_elec_gps_nav: "FB_ELEC_GPS_NAV", fb_elec_gps_trk: "FB_ELEC_GPS_TRK", fb_elec_marine: "FB_ELEC_MARINE", fb_elec_network: "FB_ELEC_NETWORK", fb_elec_part: "FB_ELEC_PART", fb_elec_print: "FB_ELEC_PRINT", fb_elec_radar: "FB_ELEC_RADAR", fb_elec_sftwr: "FB_ELEC_SFTWR", fb_elec_speed_rdr: "FB_ELEC_SPEED_RDR", fb_elec_television: "FB_ELEC_TELEVISION", fb_elec_toll: "FB_ELEC_TOLL", fb_elec_video: "FB_ELEC_VIDEO", fb_elec_vid_gm_acc: "FB_ELEC_VID_GM_ACC", fb_elec_vid_gm_cnsl: "FB_ELEC_VID_GM_CNSL", fb_food: "FB_FOOD", fb_furn: "FB_FURN", fb_furn_baby: "FB_FURN_BABY", fb_furn_bench: "FB_FURN_BENCH", fb_furn_cart: "FB_FURN_CART", fb_furn_chair: "FB_FURN_CHAIR", fb_furn_chair_acc: "FB_FURN_CHAIR_ACC", fb_furn_divide: "FB_FURN_DIVIDE", fb_furn_divide_acc: "FB_FURN_DIVIDE_ACC", fb_furn_ent_ctr: "FB_FURN_ENT_CTR", fb_furn_futn: "FB_FURN_FUTN", fb_furn_futn_pad: "FB_FURN_FUTN_PAD", fb_furn_office: "FB_FURN_OFFICE", fb_furn_office_acc: "FB_FURN_OFFICE_ACC", fb_furn_otto: "FB_FURN_OTTO", fb_furn_outdoor: "FB_FURN_OUTDOOR", fb_furn_outdoor_acc: "FB_FURN_OUTDOOR_ACC", fb_furn_sets: "FB_FURN_SETS", fb_furn_shelve_acc: "FB_FURN_SHELVE_ACC", fb_furn_shlf: "FB_FURN_SHLF", fb_furn_sofa: "FB_FURN_SOFA", fb_furn_sofa_acc: "FB_FURN_SOFA_ACC", fb_furn_storage: "FB_FURN_STORAGE", fb_furn_tabl: "FB_FURN_TABL", fb_furn_tabl_acc: "FB_FURN_TABL_ACC", fb_generic_taxable: "FB_GENERIC_TAXABLE", fb_hlth: "FB_HLTH", fb_hlth_hlth: "FB_HLTH_HLTH", fb_hlth_jwl_cr: "FB_HLTH_JWL_CR", fb_hlth_lilp_blm: "FB_HLTH_LILP_BLM", fb_hlth_ltn_spf: "FB_HLTH_LTN_SPF", fb_hlth_prsl_cr: "FB_HLTH_PRSL_CR", fb_hlth_skn_cr: "FB_HLTH_SKN_CR", fb_hmgn: "FB_HMGN", fb_hmgn_bath: "FB_HMGN_BATH", fb_hmgn_dcor: "FB_HMGN_DCOR", fb_hmgn_emgy: "FB_HMGN_EMGY", fb_hmgn_fplc: "FB_HMGN_FPLC", fb_hmgn_fplc_acc: "FB_HMGN_FPLC_ACC", fb_hmgn_gs_sft: "FB_HMGN_GS_SFT", fb_hmgn_hs_acc: "FB_HMGN_HS_ACC", fb_hmgn_hs_app: "FB_HMGN_HS_APP", fb_hmgn_hs_spl: "FB_HMGN_HS_SPL", fb_hmgn_ktcn: "FB_HMGN_KTCN", fb_hmgn_lawn: "FB_HMGN_LAWN", fb_hmgn_lght: "FB_HMGN_LGHT", fb_hmgn_linn: "FB_HMGN_LINN", fb_hmgn_lt_acc: "FB_HMGN_LT_ACC", fb_hmgn_otdr: "FB_HMGN_OTDR", fb_hmgn_pool: "FB_HMGN_POOL", fb_hmgn_scty: "FB_HMGN_SCTY", fb_hmgn_smk_acc: "FB_HMGN_SMK_ACC", fb_hmgn_umbr: "FB_HMGN_UMBR", fb_hmgn_umbr_acc: "FB_HMGN_UMBR_ACC", fb_mdia: "FB_MDIA", fb_mdia_book: "FB_MDIA_BOOK", fb_mdia_dvds: "FB_MDIA_DVDS", fb_mdia_mag: "FB_MDIA_MAG", fb_mdia_manl: "FB_MDIA_MANL", fb_mdia_musc: "FB_MDIA_MUSC", fb_mdia_prj_pln: "FB_MDIA_PRJ_PLN", fb_mdia_sht_mus: "FB_MDIA_SHT_MUS", fb_offc: "FB_OFFC", fb_offc_bkac: "FB_OFFC_BKAC", fb_offc_crts: "FB_OFFC_CRTS", fb_offc_dskp: "FB_OFFC_DSKP", fb_offc_eqip: "FB_OFFC_EQIP", fb_offc_flng: "FB_OFFC_FLNG", fb_offc_gnrl: "FB_OFFC_GNRL", fb_offc_instm: "FB_OFFC_INSTM", fb_offc_lp_dsk: "FB_OFFC_LP_DSK", fb_offc_mats: "FB_OFFC_MATS", fb_offc_nm_plt: "FB_OFFC_NM_PLT", fb_offc_ppr_hndl: "FB_OFFC_PPR_HNDL", fb_offc_prsnt_spl: "FB_OFFC_PRSNT_SPL", fb_offc_sealr: "FB_OFFC_SEALR", fb_offc_ship_spl: "FB_OFFC_SHIP_SPL", fb_rlgn: "FB_RLGN", fb_rlgn_cmny: "FB_RLGN_CMNY", fb_rlgn_item: "FB_RLGN_ITEM", fb_rlgn_wedd: "FB_RLGN_WEDD", fb_sftwr: "FB_SFTWR", fb_sfwr_cmptr: "FB_SFWR_CMPTR", fb_sfwr_dgtl_gd: "FB_SFWR_DGTL_GD", fb_sfwr_game: "FB_SFWR_GAME", fb_shipping: "FB_SHIPPING", fb_spor: "FB_SPOR", fb_sport_athl: "FB_SPORT_ATHL", fb_sport_athl_clth: "FB_SPORT_ATHL_CLTH", fb_sport_athl_shoe: "FB_SPORT_ATHL_SHOE", fb_sport_athl_sprt: "FB_SPORT_ATHL_SPRT", fb_sport_exrcs: "FB_SPORT_EXRCS", fb_sport_indr_gm: "FB_SPORT_INDR_GM", fb_sport_otdr_gm: "FB_SPORT_OTDR_GM", fb_toys: "FB_TOYS", fb_toys_eqip: "FB_TOYS_EQIP", fb_toys_game: "FB_TOYS_GAME", fb_toys_pzzl: "FB_TOYS_PZZL", fb_toys_tmrs: "FB_TOYS_TMRS", fb_toys_toys: "FB_TOYS_TOYS", fb_vehi: "FB_VEHI", fb_vehi_part: "FB_VEHI_PART" }); }, "get") }, { key: "ErrorPriority", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ high: "HIGH", low: "LOW", medium: "MEDIUM" }); }, "get") }, { key: "ErrorType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ address_blocklisted_in_market: "ADDRESS_BLOCKLISTED_IN_MARKET", ar_deleted_due_to_update: "AR_DELETED_DUE_TO_UPDATE", ar_policy_violated: "AR_POLICY_VIOLATED", available: "AVAILABLE", bad_quality_image: "BAD_QUALITY_IMAGE", biz_msg_ai_agent_disabled_by_user: "BIZ_MSG_AI_AGENT_DISABLED_BY_USER", cannot_edit_subscription_products: "CANNOT_EDIT_SUBSCRIPTION_PRODUCTS", checkout_disabled_by_user: "CHECKOUT_DISABLED_BY_USER", commerce_account_not_legally_compliant: "COMMERCE_ACCOUNT_NOT_LEGALLY_COMPLIANT", crawled_availability_mismatch: "CRAWLED_AVAILABILITY_MISMATCH", da_disabled_by_user: "DA_DISABLED_BY_USER", da_policy_violation: "DA_POLICY_VIOLATION", digital_goods_not_available_for_checkout: "DIGITAL_GOODS_NOT_AVAILABLE_FOR_CHECKOUT", duplicate_images: "DUPLICATE_IMAGES", duplicate_title_and_description: "DUPLICATE_TITLE_AND_DESCRIPTION", empty_availability: "EMPTY_AVAILABILITY", empty_condition: "EMPTY_CONDITION", empty_description: "EMPTY_DESCRIPTION", empty_image_url: "EMPTY_IMAGE_URL", empty_product_url: "EMPTY_PRODUCT_URL", empty_seller_description: "EMPTY_SELLER_DESCRIPTION", empty_title: "EMPTY_TITLE", external_merchant_id_mismatch: "EXTERNAL_MERCHANT_ID_MISMATCH", generic_invalid_field: "GENERIC_INVALID_FIELD", groups_disabled_by_user: "GROUPS_DISABLED_BY_USER", hidden_until_product_launch: "HIDDEN_UNTIL_PRODUCT_LAUNCH", image_fetch_failed: "IMAGE_FETCH_FAILED", image_fetch_failed_bad_gateway: "IMAGE_FETCH_FAILED_BAD_GATEWAY", image_fetch_failed_file_size_exceeded: "IMAGE_FETCH_FAILED_FILE_SIZE_EXCEEDED", image_fetch_failed_forbidden: "IMAGE_FETCH_FAILED_FORBIDDEN", image_fetch_failed_link_broken: "IMAGE_FETCH_FAILED_LINK_BROKEN", image_fetch_failed_timed_out: "IMAGE_FETCH_FAILED_TIMED_OUT", image_resolution_low: "IMAGE_RESOLUTION_LOW", inactive_shopify_product: "INACTIVE_SHOPIFY_PRODUCT", invalid_commerce_tax_category: "INVALID_COMMERCE_TAX_CATEGORY", invalid_consolidated_locality_information: "INVALID_CONSOLIDATED_LOCALITY_INFORMATION", invalid_dealer_communication_parameters: "INVALID_DEALER_COMMUNICATION_PARAMETERS", invalid_dma_codes: "INVALID_DMA_CODES", invalid_fb_page_id: "INVALID_FB_PAGE_ID", invalid_images: "INVALID_IMAGES", invalid_monetizer_return_policy: "INVALID_MONETIZER_RETURN_POLICY", invalid_offer_disclaimer_url: "INVALID_OFFER_DISCLAIMER_URL", invalid_offer_end_date: "INVALID_OFFER_END_DATE", invalid_pre_order_params: "INVALID_PRE_ORDER_PARAMS", invalid_range_for_area_size: "INVALID_RANGE_FOR_AREA_SIZE", invalid_range_for_built_up_area_size: "INVALID_RANGE_FOR_BUILT_UP_AREA_SIZE", invalid_range_for_num_of_baths: "INVALID_RANGE_FOR_NUM_OF_BATHS", invalid_range_for_num_of_beds: "INVALID_RANGE_FOR_NUM_OF_BEDS", invalid_range_for_num_of_rooms: "INVALID_RANGE_FOR_NUM_OF_ROOMS", invalid_range_for_parking_spaces: "INVALID_RANGE_FOR_PARKING_SPACES", invalid_shelter_page_id: "INVALID_SHELTER_PAGE_ID", invalid_shipping_profile_params: "INVALID_SHIPPING_PROFILE_PARAMS", invalid_subscription_disable_params: "INVALID_SUBSCRIPTION_DISABLE_PARAMS", invalid_subscription_enable_params: "INVALID_SUBSCRIPTION_ENABLE_PARAMS", invalid_subscription_params: "INVALID_SUBSCRIPTION_PARAMS", invalid_vehicle_state: "INVALID_VEHICLE_STATE", invalid_virtual_tour_url_domain: "INVALID_VIRTUAL_TOUR_URL_DOMAIN", inventory_zero_availability_in_stock: "INVENTORY_ZERO_AVAILABILITY_IN_STOCK", in_another_product_launch: "IN_ANOTHER_PRODUCT_LAUNCH", item_group_not_specified: "ITEM_GROUP_NOT_SPECIFIED", item_not_shippable_for_sca_shop: "ITEM_NOT_SHIPPABLE_FOR_SCA_SHOP", item_override_empty_availability: "ITEM_OVERRIDE_EMPTY_AVAILABILITY", item_override_empty_price: "ITEM_OVERRIDE_EMPTY_PRICE", item_override_not_visible: "ITEM_OVERRIDE_NOT_VISIBLE", item_stale_out_of_stock: "ITEM_STALE_OUT_OF_STOCK", marketplace_disabled_by_user: "MARKETPLACE_DISABLED_BY_USER", mini_shops_disabled_by_user: "MINI_SHOPS_DISABLED_BY_USER", missing_checkout: "MISSING_CHECKOUT", missing_checkout_currency: "MISSING_CHECKOUT_CURRENCY", missing_color: "MISSING_COLOR", missing_country_override_in_shipping_profile: "MISSING_COUNTRY_OVERRIDE_IN_SHIPPING_PROFILE", missing_india_compliance_fields: "MISSING_INDIA_COMPLIANCE_FIELDS", missing_shipping_profile: "MISSING_SHIPPING_PROFILE", missing_size: "MISSING_SIZE", missing_tax_category: "MISSING_TAX_CATEGORY", negative_community_feedback: "NEGATIVE_COMMUNITY_FEEDBACK", negative_price: "NEGATIVE_PRICE", not_enough_images: "NOT_ENOUGH_IMAGES", not_enough_unique_products: "NOT_ENOUGH_UNIQUE_PRODUCTS", overlay_disclaimer_exceeded_max_length: "OVERLAY_DISCLAIMER_EXCEEDED_MAX_LENGTH", part_of_product_launch: "PART_OF_PRODUCT_LAUNCH", product_expired: "PRODUCT_EXPIRED", product_item_hidden_from_all_shops: "PRODUCT_ITEM_HIDDEN_FROM_ALL_SHOPS", product_item_invalid_partner_tokens: "PRODUCT_ITEM_INVALID_PARTNER_TOKENS", product_item_not_included_in_any_shop: "PRODUCT_ITEM_NOT_INCLUDED_IN_ANY_SHOP", product_item_not_visible: "PRODUCT_ITEM_NOT_VISIBLE", product_not_approved: "PRODUCT_NOT_APPROVED", product_not_dominant_currency: "PRODUCT_NOT_DOMINANT_CURRENCY", product_out_of_stock: "PRODUCT_OUT_OF_STOCK", product_url_equals_domain: "PRODUCT_URL_EQUALS_DOMAIN", property_price_currency_not_supported: "PROPERTY_PRICE_CURRENCY_NOT_SUPPORTED", property_price_too_high: "PROPERTY_PRICE_TOO_HIGH", property_price_too_low: "PROPERTY_PRICE_TOO_LOW", property_unit_price_currency_mismatch_item_price_currency: "PROPERTY_UNIT_PRICE_CURRENCY_MISMATCH_ITEM_PRICE_CURRENCY", property_value_contains_html_tags: "PROPERTY_VALUE_CONTAINS_HTML_TAGS", property_value_description_contains_off_platform_link: "PROPERTY_VALUE_DESCRIPTION_CONTAINS_OFF_PLATFORM_LINK", property_value_format: "PROPERTY_VALUE_FORMAT", property_value_missing: "PROPERTY_VALUE_MISSING", property_value_missing_warning: "PROPERTY_VALUE_MISSING_WARNING", property_value_non_positive: "PROPERTY_VALUE_NON_POSITIVE", property_value_string_exceeds_length: "PROPERTY_VALUE_STRING_EXCEEDS_LENGTH", property_value_string_too_short: "PROPERTY_VALUE_STRING_TOO_SHORT", property_value_uppercase: "PROPERTY_VALUE_UPPERCASE", property_value_uppercase_warning: "PROPERTY_VALUE_UPPERCASE_WARNING", quality_duplicated_description: "QUALITY_DUPLICATED_DESCRIPTION", quality_item_link_broken: "QUALITY_ITEM_LINK_BROKEN", quality_item_link_redirecting: "QUALITY_ITEM_LINK_REDIRECTING", retailer_id_not_provided: "RETAILER_ID_NOT_PROVIDED", shopify_invalid_retailer_id: "SHOPIFY_INVALID_RETAILER_ID", shopify_item_missing_shipping_profile: "SHOPIFY_ITEM_MISSING_SHIPPING_PROFILE", shops_policy_violation: "SHOPS_POLICY_VIOLATION", subscription_info_not_enabled_for_feed: "SUBSCRIPTION_INFO_NOT_ENABLED_FOR_FEED", tax_category_not_supported_in_uk: "TAX_CATEGORY_NOT_SUPPORTED_IN_UK", unsupported_product_category: "UNSUPPORTED_PRODUCT_CATEGORY", variant_attribute_issue: "VARIANT_ATTRIBUTE_ISSUE", video_fetch_failed: "VIDEO_FETCH_FAILED", video_fetch_failed_bad_gateway: "VIDEO_FETCH_FAILED_BAD_GATEWAY", video_fetch_failed_file_size_exceeded: "VIDEO_FETCH_FAILED_FILE_SIZE_EXCEEDED", video_fetch_failed_forbidden: "VIDEO_FETCH_FAILED_FORBIDDEN", video_fetch_failed_link_broken: "VIDEO_FETCH_FAILED_LINK_BROKEN", video_fetch_failed_timed_out: "VIDEO_FETCH_FAILED_TIMED_OUT", video_not_downloadable: "VIDEO_NOT_DOWNLOADABLE", whatsapp_disabled_by_user: "WHATSAPP_DISABLED_BY_USER", whatsapp_policy_violation: "WHATSAPP_POLICY_VIOLATION" }); }, "get") }, { key: "MarkedForProductLaunch", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ default: "default", marked: "marked", not_marked: "not_marked" }); }, "get") }, { key: "OriginCountry", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad: "AD", ae: "AE", af: "AF", ag: "AG", ai: "AI", al: "AL", am: "AM", an: "AN", ao: "AO", aq: "AQ", ar: "AR", as: "AS", at: "AT", au: "AU", aw: "AW", ax: "AX", az: "AZ", ba: "BA", bb: "BB", bd: "BD", be: "BE", bf: "BF", bg: "BG", bh: "BH", bi: "BI", bj: "BJ", bl: "BL", bm: "BM", bn: "BN", bo: "BO", bq: "BQ", br: "BR", bs: "BS", bt: "BT", bv: "BV", bw: "BW", by: "BY", bz: "BZ", ca: "CA", cc: "CC", cd: "CD", cf: "CF", cg: "CG", ch: "CH", ci: "CI", ck: "CK", cl: "CL", cm: "CM", cn: "CN", co: "CO", cr: "CR", cu: "CU", cv: "CV", cw: "CW", cx: "CX", cy: "CY", cz: "CZ", de: "DE", dj: "DJ", dk: "DK", dm: "DM", do: "DO", dz: "DZ", ec: "EC", ee: "EE", eg: "EG", eh: "EH", er: "ER", es: "ES", et: "ET", fi: "FI", fj: "FJ", fk: "FK", fm: "FM", fo: "FO", fr: "FR", ga: "GA", gb: "GB", gd: "GD", ge: "GE", gf: "GF", gg: "GG", gh: "GH", gi: "GI", gl: "GL", gm: "GM", gn: "GN", gp: "GP", gq: "GQ", gr: "GR", gs: "GS", gt: "GT", gu: "GU", gw: "GW", gy: "GY", hk: "HK", hm: "HM", hn: "HN", hr: "HR", ht: "HT", hu: "HU", id: "ID", ie: "IE", il: "IL", im: "IM", in: "IN", io: "IO", iq: "IQ", ir: "IR", is: "IS", it: "IT", je: "JE", jm: "JM", jo: "JO", jp: "JP", ke: "KE", kg: "KG", kh: "KH", ki: "KI", km: "KM", kn: "KN", kp: "KP", kr: "KR", kw: "KW", ky: "KY", kz: "KZ", la: "LA", lb: "LB", lc: "LC", li: "LI", lk: "LK", lr: "LR", ls: "LS", lt: "LT", lu: "LU", lv: "LV", ly: "LY", ma: "MA", mc: "MC", md: "MD", me: "ME", mf: "MF", mg: "MG", mh: "MH", mk: "MK", ml: "ML", mm: "MM", mn: "MN", mo: "MO", mp: "MP", mq: "MQ", mr: "MR", ms: "MS", mt: "MT", mu: "MU", mv: "MV", mw: "MW", mx: "MX", my: "MY", mz: "MZ", na: "NA", nc: "NC", ne: "NE", nf: "NF", ng: "NG", ni: "NI", nl: "NL", no: "NO", np: "NP", nr: "NR", nu: "NU", nz: "NZ", om: "OM", pa: "PA", pe: "PE", pf: "PF", pg: "PG", ph: "PH", pk: "PK", pl: "PL", pm: "PM", pn: "PN", pr: "PR", ps: "PS", pt: "PT", pw: "PW", py: "PY", qa: "QA", re: "RE", ro: "RO", rs: "RS", ru: "RU", rw: "RW", sa: "SA", sb: "SB", sc: "SC", sd: "SD", se: "SE", sg: "SG", sh: "SH", si: "SI", sj: "SJ", sk: "SK", sl: "SL", sm: "SM", sn: "SN", so: "SO", sr: "SR", ss: "SS", st: "ST", sv: "SV", sx: "SX", sy: "SY", sz: "SZ", tc: "TC", td: "TD", tf: "TF", tg: "TG", th: "TH", tj: "TJ", tk: "TK", tl: "TL", tm: "TM", tn: "TN", to: "TO", tr: "TR", tt: "TT", tv: "TV", tw: "TW", tz: "TZ", ua: "UA", ug: "UG", um: "UM", us: "US", uy: "UY", uz: "UZ", va: "VA", vc: "VC", ve: "VE", vg: "VG", vi: "VI", vn: "VN", vu: "VU", wf: "WF", ws: "WS", xk: "XK", ye: "YE", yt: "YT", za: "ZA", zm: "ZM", zw: "ZW" }); }, "get") }, { key: "WaComplianceCategory", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country_origin_exempt: "COUNTRY_ORIGIN_EXEMPT", default: "DEFAULT" }); }, "get") }]); return ProductItem2; }(AbstractCrudObject); var ProductFeedRule = function(_AbstractCrudObject) { inherits(ProductFeedRule2, _AbstractCrudObject); function ProductFeedRule2() { classCallCheck(this, ProductFeedRule2); return possibleConstructorReturn(this, (ProductFeedRule2.__proto__ || Object.getPrototypeOf(ProductFeedRule2)).apply(this, arguments)); } __name(ProductFeedRule2, "ProductFeedRule"); createClass(ProductFeedRule2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductFeedRule2.prototype.__proto__ || Object.getPrototypeOf(ProductFeedRule2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductFeedRule2.prototype.__proto__ || Object.getPrototypeOf(ProductFeedRule2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ attribute: "attribute", id: "id", params: "params", rule_type: "rule_type" }); }, "get") }, { key: "RuleType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ fallback_rule: "fallback_rule", letter_case_rule: "letter_case_rule", mapping_rule: "mapping_rule", regex_replace_rule: "regex_replace_rule", value_mapping_rule: "value_mapping_rule" }); }, "get") }]); return ProductFeedRule2; }(AbstractCrudObject); var ProductFeedSchedule = function(_AbstractCrudObject) { inherits(ProductFeedSchedule2, _AbstractCrudObject); function ProductFeedSchedule2() { classCallCheck(this, ProductFeedSchedule2); return possibleConstructorReturn(this, (ProductFeedSchedule2.__proto__ || Object.getPrototypeOf(ProductFeedSchedule2)).apply(this, arguments)); } __name(ProductFeedSchedule2, "ProductFeedSchedule"); createClass(ProductFeedSchedule2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ day_of_month: "day_of_month", day_of_week: "day_of_week", hour: "hour", id: "id", interval: "interval", interval_count: "interval_count", minute: "minute", timezone: "timezone", url: "url", username: "username" }); }, "get") }, { key: "Interval", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ daily: "DAILY", hourly: "HOURLY", monthly: "MONTHLY", weekly: "WEEKLY" }); }, "get") }]); return ProductFeedSchedule2; }(AbstractCrudObject); var ProductFeedUploadErrorSample = function(_AbstractCrudObject) { inherits(ProductFeedUploadErrorSample2, _AbstractCrudObject); function ProductFeedUploadErrorSample2() { classCallCheck(this, ProductFeedUploadErrorSample2); return possibleConstructorReturn(this, (ProductFeedUploadErrorSample2.__proto__ || Object.getPrototypeOf(ProductFeedUploadErrorSample2)).apply(this, arguments)); } __name(ProductFeedUploadErrorSample2, "ProductFeedUploadErrorSample"); createClass(ProductFeedUploadErrorSample2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", retailer_id: "retailer_id", row_number: "row_number" }); }, "get") }]); return ProductFeedUploadErrorSample2; }(AbstractCrudObject); var ProductFeedRuleSuggestion = function(_AbstractCrudObject) { inherits(ProductFeedRuleSuggestion2, _AbstractCrudObject); function ProductFeedRuleSuggestion2() { classCallCheck(this, ProductFeedRuleSuggestion2); return possibleConstructorReturn(this, (ProductFeedRuleSuggestion2.__proto__ || Object.getPrototypeOf(ProductFeedRuleSuggestion2)).apply(this, arguments)); } __name(ProductFeedRuleSuggestion2, "ProductFeedRuleSuggestion"); createClass(ProductFeedRuleSuggestion2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ attribute: "attribute", params: "params", type: "type" }); }, "get") }]); return ProductFeedRuleSuggestion2; }(AbstractCrudObject); var ProductFeedUploadError = function(_AbstractCrudObject) { inherits(ProductFeedUploadError2, _AbstractCrudObject); function ProductFeedUploadError2() { classCallCheck(this, ProductFeedUploadError2); return possibleConstructorReturn(this, (ProductFeedUploadError2.__proto__ || Object.getPrototypeOf(ProductFeedUploadError2)).apply(this, arguments)); } __name(ProductFeedUploadError2, "ProductFeedUploadError"); createClass(ProductFeedUploadError2, [{ key: "getSamples", value: /* @__PURE__ */ __name(function getSamples(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductFeedUploadErrorSample, fields, params, fetchFirstPage, "/samples"); }, "getSamples") }, { key: "getSuggestedRules", value: /* @__PURE__ */ __name(function getSuggestedRules(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductFeedRuleSuggestion, fields, params, fetchFirstPage, "/suggested_rules"); }, "getSuggestedRules") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ affected_surfaces: "affected_surfaces", description: "description", error_type: "error_type", id: "id", severity: "severity", summary: "summary", total_count: "total_count" }); }, "get") }, { key: "AffectedSurfaces", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ dynamic_ads: "Dynamic Ads", marketplace: "Marketplace", us_marketplace: "US Marketplace" }); }, "get") }, { key: "Severity", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ fatal: "fatal", warning: "warning" }); }, "get") }, { key: "ErrorPriority", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ high: "HIGH", low: "LOW", medium: "MEDIUM" }); }, "get") }]); return ProductFeedUploadError2; }(AbstractCrudObject); var ProductFeedUpload = function(_AbstractCrudObject) { inherits(ProductFeedUpload2, _AbstractCrudObject); function ProductFeedUpload2() { classCallCheck(this, ProductFeedUpload2); return possibleConstructorReturn(this, (ProductFeedUpload2.__proto__ || Object.getPrototypeOf(ProductFeedUpload2)).apply(this, arguments)); } __name(ProductFeedUpload2, "ProductFeedUpload"); createClass(ProductFeedUpload2, [{ key: "createErrorReport", value: /* @__PURE__ */ __name(function createErrorReport(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/error_report", fields, params, ProductFeedUpload2, pathOverride); }, "createErrorReport") }, { key: "getErrors", value: /* @__PURE__ */ __name(function getErrors(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductFeedUploadError, fields, params, fetchFirstPage, "/errors"); }, "getErrors") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ end_time: "end_time", error_count: "error_count", error_report: "error_report", filename: "filename", id: "id", input_method: "input_method", num_deleted_items: "num_deleted_items", num_detected_items: "num_detected_items", num_invalid_items: "num_invalid_items", num_persisted_items: "num_persisted_items", start_time: "start_time", url: "url", warning_count: "warning_count" }); }, "get") }, { key: "InputMethod", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ google_sheets_fetch: "Google Sheets Fetch", manual_upload: "Manual Upload", reupload_last_file: "Reupload Last File", server_fetch: "Server Fetch", user_initiated_server_fetch: "User initiated server fetch" }); }, "get") }]); return ProductFeedUpload2; }(AbstractCrudObject); var ProductFeed = function(_AbstractCrudObject) { inherits(ProductFeed2, _AbstractCrudObject); function ProductFeed2() { classCallCheck(this, ProductFeed2); return possibleConstructorReturn(this, (ProductFeed2.__proto__ || Object.getPrototypeOf(ProductFeed2)).apply(this, arguments)); } __name(ProductFeed2, "ProductFeed"); createClass(ProductFeed2, [{ key: "getAutomotiveModels", value: /* @__PURE__ */ __name(function getAutomotiveModels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AutomotiveModel, fields, params, fetchFirstPage, "/automotive_models"); }, "getAutomotiveModels") }, { key: "getDestinations", value: /* @__PURE__ */ __name(function getDestinations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Destination, fields, params, fetchFirstPage, "/destinations"); }, "getDestinations") }, { key: "getFlights", value: /* @__PURE__ */ __name(function getFlights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Flight, fields, params, fetchFirstPage, "/flights"); }, "getFlights") }, { key: "getHomeListings", value: /* @__PURE__ */ __name(function getHomeListings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(HomeListing, fields, params, fetchFirstPage, "/home_listings"); }, "getHomeListings") }, { key: "getHotels", value: /* @__PURE__ */ __name(function getHotels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Hotel, fields, params, fetchFirstPage, "/hotels"); }, "getHotels") }, { key: "getMediaTitles", value: /* @__PURE__ */ __name(function getMediaTitles(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(MediaTitle, fields, params, fetchFirstPage, "/media_titles"); }, "getMediaTitles") }, { key: "getProducts", value: /* @__PURE__ */ __name(function getProducts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductItem, fields, params, fetchFirstPage, "/products"); }, "getProducts") }, { key: "getRules", value: /* @__PURE__ */ __name(function getRules(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductFeedRule, fields, params, fetchFirstPage, "/rules"); }, "getRules") }, { key: "createRule", value: /* @__PURE__ */ __name(function createRule(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/rules", fields, params, ProductFeedRule, pathOverride); }, "createRule") }, { key: "createSupplementaryFeedAssoc", value: /* @__PURE__ */ __name(function createSupplementaryFeedAssoc(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/supplementary_feed_assocs", fields, params, null, pathOverride); }, "createSupplementaryFeedAssoc") }, { key: "getUploadSchedules", value: /* @__PURE__ */ __name(function getUploadSchedules(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductFeedSchedule, fields, params, fetchFirstPage, "/upload_schedules"); }, "getUploadSchedules") }, { key: "createUploadSchedule", value: /* @__PURE__ */ __name(function createUploadSchedule(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/upload_schedules", fields, params, ProductFeed2, pathOverride); }, "createUploadSchedule") }, { key: "getUploads", value: /* @__PURE__ */ __name(function getUploads(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductFeedUpload, fields, params, fetchFirstPage, "/uploads"); }, "getUploads") }, { key: "createUpload", value: /* @__PURE__ */ __name(function createUpload(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/uploads", fields, params, ProductFeedUpload, pathOverride); }, "createUpload") }, { key: "getVehicleOffers", value: /* @__PURE__ */ __name(function getVehicleOffers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(VehicleOffer, fields, params, fetchFirstPage, "/vehicle_offers"); }, "getVehicleOffers") }, { key: "getVehicles", value: /* @__PURE__ */ __name(function getVehicles(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Vehicle, fields, params, fetchFirstPage, "/vehicles"); }, "getVehicles") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductFeed2.prototype.__proto__ || Object.getPrototypeOf(ProductFeed2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductFeed2.prototype.__proto__ || Object.getPrototypeOf(ProductFeed2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", created_time: "created_time", default_currency: "default_currency", deletion_enabled: "deletion_enabled", delimiter: "delimiter", encoding: "encoding", file_name: "file_name", id: "id", ingestion_source_type: "ingestion_source_type", item_sub_type: "item_sub_type", latest_upload: "latest_upload", migrated_from_feed_id: "migrated_from_feed_id", name: "name", override_type: "override_type", primary_feeds: "primary_feeds", product_count: "product_count", quoted_fields_mode: "quoted_fields_mode", schedule: "schedule", supplementary_feeds: "supplementary_feeds", update_schedule: "update_schedule" }); }, "get") }, { key: "Delimiter", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ autodetect: "AUTODETECT", bar: "BAR", comma: "COMMA", semicolon: "SEMICOLON", tab: "TAB", tilde: "TILDE" }); }, "get") }, { key: "IngestionSourceType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ primary_feed: "primary_feed", supplementary_feed: "supplementary_feed" }); }, "get") }, { key: "QuotedFieldsMode", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ autodetect: "AUTODETECT", off: "OFF", on: "ON" }); }, "get") }, { key: "Encoding", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ autodetect: "AUTODETECT", latin1: "LATIN1", utf16be: "UTF16BE", utf16le: "UTF16LE", utf32be: "UTF32BE", utf32le: "UTF32LE", utf8: "UTF8" }); }, "get") }, { key: "FeedType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automotive_model: "AUTOMOTIVE_MODEL", destination: "DESTINATION", flight: "FLIGHT", home_listing: "HOME_LISTING", hotel: "HOTEL", hotel_room: "HOTEL_ROOM", local_inventory: "LOCAL_INVENTORY", media_title: "MEDIA_TITLE", offer: "OFFER", products: "PRODUCTS", transactable_items: "TRANSACTABLE_ITEMS", vehicles: "VEHICLES", vehicle_offer: "VEHICLE_OFFER" }); }, "get") }, { key: "ItemSubType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ appliances: "APPLIANCES", baby_feeding: "BABY_FEEDING", baby_transport: "BABY_TRANSPORT", beauty: "BEAUTY", bedding: "BEDDING", cameras: "CAMERAS", cell_phones_and_smart_watches: "CELL_PHONES_AND_SMART_WATCHES", cleaning_supplies: "CLEANING_SUPPLIES", clothing: "CLOTHING", clothing_accessories: "CLOTHING_ACCESSORIES", computers_and_tablets: "COMPUTERS_AND_TABLETS", diapering_and_potty_training: "DIAPERING_AND_POTTY_TRAINING", electronics_accessories: "ELECTRONICS_ACCESSORIES", furniture: "FURNITURE", health: "HEALTH", home_goods: "HOME_GOODS", jewelry: "JEWELRY", nursery: "NURSERY", printers_and_scanners: "PRINTERS_AND_SCANNERS", projectors: "PROJECTORS", shoes_and_footwear: "SHOES_AND_FOOTWEAR", software: "SOFTWARE", toys: "TOYS", tvs_and_monitors: "TVS_AND_MONITORS", video_game_consoles_and_video_games: "VIDEO_GAME_CONSOLES_AND_VIDEO_GAMES", watches: "WATCHES" }); }, "get") }, { key: "OverrideType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ batch_api_language_or_country: "BATCH_API_LANGUAGE_OR_COUNTRY", catalog_segment_customize_default: "CATALOG_SEGMENT_CUSTOMIZE_DEFAULT", country: "COUNTRY", language: "LANGUAGE", language_and_country: "LANGUAGE_AND_COUNTRY", local: "LOCAL", smart_pixel_language_or_country: "SMART_PIXEL_LANGUAGE_OR_COUNTRY", version: "VERSION" }); }, "get") }]); return ProductFeed2; }(AbstractCrudObject); var ProductGroup = function(_AbstractCrudObject) { inherits(ProductGroup2, _AbstractCrudObject); function ProductGroup2() { classCallCheck(this, ProductGroup2); return possibleConstructorReturn(this, (ProductGroup2.__proto__ || Object.getPrototypeOf(ProductGroup2)).apply(this, arguments)); } __name(ProductGroup2, "ProductGroup"); createClass(ProductGroup2, [{ key: "getProducts", value: /* @__PURE__ */ __name(function getProducts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductItem, fields, params, fetchFirstPage, "/products"); }, "getProducts") }, { key: "createProduct", value: /* @__PURE__ */ __name(function createProduct(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/products", fields, params, ProductItem, pathOverride); }, "createProduct") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductGroup2.prototype.__proto__ || Object.getPrototypeOf(ProductGroup2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductGroup2.prototype.__proto__ || Object.getPrototypeOf(ProductGroup2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", product_catalog: "product_catalog", retailer_id: "retailer_id", variants: "variants" }); }, "get") }]); return ProductGroup2; }(AbstractCrudObject); var ProductCatalogProductSetsBatch = function(_AbstractCrudObject) { inherits(ProductCatalogProductSetsBatch2, _AbstractCrudObject); function ProductCatalogProductSetsBatch2() { classCallCheck(this, ProductCatalogProductSetsBatch2); return possibleConstructorReturn(this, (ProductCatalogProductSetsBatch2.__proto__ || Object.getPrototypeOf(ProductCatalogProductSetsBatch2)).apply(this, arguments)); } __name(ProductCatalogProductSetsBatch2, "ProductCatalogProductSetsBatch"); createClass(ProductCatalogProductSetsBatch2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ errors: "errors", errors_total_count: "errors_total_count", handle: "handle", status: "status" }); }, "get") }]); return ProductCatalogProductSetsBatch2; }(AbstractCrudObject); var ProductCatalog = function(_AbstractCrudObject) { inherits(ProductCatalog2, _AbstractCrudObject); function ProductCatalog2() { classCallCheck(this, ProductCatalog2); return possibleConstructorReturn(this, (ProductCatalog2.__proto__ || Object.getPrototypeOf(ProductCatalog2)).apply(this, arguments)); } __name(ProductCatalog2, "ProductCatalog"); createClass(ProductCatalog2, [{ key: "deleteAgencies", value: /* @__PURE__ */ __name(function deleteAgencies() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(ProductCatalog2.prototype.__proto__ || Object.getPrototypeOf(ProductCatalog2.prototype), "deleteEdge", this).call(this, "/agencies", params); }, "deleteAgencies") }, { key: "getAgencies", value: /* @__PURE__ */ __name(function getAgencies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/agencies"); }, "getAgencies") }, { key: "createAgency", value: /* @__PURE__ */ __name(function createAgency(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/agencies", fields, params, ProductCatalog2, pathOverride); }, "createAgency") }, { key: "deleteAssignedUsers", value: /* @__PURE__ */ __name(function deleteAssignedUsers() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(ProductCatalog2.prototype.__proto__ || Object.getPrototypeOf(ProductCatalog2.prototype), "deleteEdge", this).call(this, "/assigned_users", params); }, "deleteAssignedUsers") }, { key: "getAssignedUsers", value: /* @__PURE__ */ __name(function getAssignedUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AssignedUser, fields, params, fetchFirstPage, "/assigned_users"); }, "getAssignedUsers") }, { key: "createAssignedUser", value: /* @__PURE__ */ __name(function createAssignedUser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/assigned_users", fields, params, ProductCatalog2, pathOverride); }, "createAssignedUser") }, { key: "getAutomotiveModels", value: /* @__PURE__ */ __name(function getAutomotiveModels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AutomotiveModel, fields, params, fetchFirstPage, "/automotive_models"); }, "getAutomotiveModels") }, { key: "createBatch", value: /* @__PURE__ */ __name(function createBatch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/batch", fields, params, ProductCatalog2, pathOverride); }, "createBatch") }, { key: "createCatalogStore", value: /* @__PURE__ */ __name(function createCatalogStore(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/catalog_store", fields, params, StoreCatalogSettings, pathOverride); }, "createCatalogStore") }, { key: "getCategories", value: /* @__PURE__ */ __name(function getCategories(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalogCategory, fields, params, fetchFirstPage, "/categories"); }, "getCategories") }, { key: "createCategory", value: /* @__PURE__ */ __name(function createCategory(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/categories", fields, params, ProductCatalogCategory, pathOverride); }, "createCategory") }, { key: "getCheckBatchRequestStatus", value: /* @__PURE__ */ __name(function getCheckBatchRequestStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CheckBatchRequestStatus, fields, params, fetchFirstPage, "/check_batch_request_status"); }, "getCheckBatchRequestStatus") }, { key: "getCollaborativeAdsEventStats", value: /* @__PURE__ */ __name(function getCollaborativeAdsEventStats(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogSegmentAllMatchCountLaser, fields, params, fetchFirstPage, "/collaborative_ads_event_stats"); }, "getCollaborativeAdsEventStats") }, { key: "getCollaborativeAdsLsbImageBank", value: /* @__PURE__ */ __name(function getCollaborativeAdsLsbImageBank(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/collaborative_ads_lsb_image_bank"); }, "getCollaborativeAdsLsbImageBank") }, { key: "getCollaborativeAdsShareSettings", value: /* @__PURE__ */ __name(function getCollaborativeAdsShareSettings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CollaborativeAdsShareSettings, fields, params, fetchFirstPage, "/collaborative_ads_share_settings"); }, "getCollaborativeAdsShareSettings") }, { key: "createCpasLsbImageBank", value: /* @__PURE__ */ __name(function createCpasLsbImageBank(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/cpas_lsb_image_bank", fields, params, null, pathOverride); }, "createCpasLsbImageBank") }, { key: "getDataSources", value: /* @__PURE__ */ __name(function getDataSources(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalogDataSource, fields, params, fetchFirstPage, "/data_sources"); }, "getDataSources") }, { key: "getDestinations", value: /* @__PURE__ */ __name(function getDestinations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Destination, fields, params, fetchFirstPage, "/destinations"); }, "getDestinations") }, { key: "getDiagnostics", value: /* @__PURE__ */ __name(function getDiagnostics(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalogDiagnosticGroup, fields, params, fetchFirstPage, "/diagnostics"); }, "getDiagnostics") }, { key: "getEventStats", value: /* @__PURE__ */ __name(function getEventStats(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductEventStat, fields, params, fetchFirstPage, "/event_stats"); }, "getEventStats") }, { key: "deleteExternalEventSources", value: /* @__PURE__ */ __name(function deleteExternalEventSources() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(ProductCatalog2.prototype.__proto__ || Object.getPrototypeOf(ProductCatalog2.prototype), "deleteEdge", this).call(this, "/external_event_sources", params); }, "deleteExternalEventSources") }, { key: "getExternalEventSources", value: /* @__PURE__ */ __name(function getExternalEventSources(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ExternalEventSource, fields, params, fetchFirstPage, "/external_event_sources"); }, "getExternalEventSources") }, { key: "createExternalEventSource", value: /* @__PURE__ */ __name(function createExternalEventSource(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/external_event_sources", fields, params, ProductCatalog2, pathOverride); }, "createExternalEventSource") }, { key: "getFlights", value: /* @__PURE__ */ __name(function getFlights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Flight, fields, params, fetchFirstPage, "/flights"); }, "getFlights") }, { key: "getHomeListings", value: /* @__PURE__ */ __name(function getHomeListings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(HomeListing, fields, params, fetchFirstPage, "/home_listings"); }, "getHomeListings") }, { key: "createHomeListing", value: /* @__PURE__ */ __name(function createHomeListing(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/home_listings", fields, params, HomeListing, pathOverride); }, "createHomeListing") }, { key: "getHotelRoomsBatch", value: /* @__PURE__ */ __name(function getHotelRoomsBatch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalogHotelRoomsBatch, fields, params, fetchFirstPage, "/hotel_rooms_batch"); }, "getHotelRoomsBatch") }, { key: "createHotelRoomsBatch", value: /* @__PURE__ */ __name(function createHotelRoomsBatch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/hotel_rooms_batch", fields, params, ProductCatalog2, pathOverride); }, "createHotelRoomsBatch") }, { key: "getHotels", value: /* @__PURE__ */ __name(function getHotels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Hotel, fields, params, fetchFirstPage, "/hotels"); }, "getHotels") }, { key: "createHotel", value: /* @__PURE__ */ __name(function createHotel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/hotels", fields, params, Hotel, pathOverride); }, "createHotel") }, { key: "createItemsBatch", value: /* @__PURE__ */ __name(function createItemsBatch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/items_batch", fields, params, ProductCatalog2, pathOverride); }, "createItemsBatch") }, { key: "createLocalizedItemsBatch", value: /* @__PURE__ */ __name(function createLocalizedItemsBatch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/localized_items_batch", fields, params, ProductCatalog2, pathOverride); }, "createLocalizedItemsBatch") }, { key: "getPricingVariablesBatch", value: /* @__PURE__ */ __name(function getPricingVariablesBatch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalogPricingVariablesBatch, fields, params, fetchFirstPage, "/pricing_variables_batch"); }, "getPricingVariablesBatch") }, { key: "createPricingVariablesBatch", value: /* @__PURE__ */ __name(function createPricingVariablesBatch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/pricing_variables_batch", fields, params, ProductCatalog2, pathOverride); }, "createPricingVariablesBatch") }, { key: "getProductFeeds", value: /* @__PURE__ */ __name(function getProductFeeds(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductFeed, fields, params, fetchFirstPage, "/product_feeds"); }, "getProductFeeds") }, { key: "createProductFeed", value: /* @__PURE__ */ __name(function createProductFeed(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/product_feeds", fields, params, ProductFeed, pathOverride); }, "createProductFeed") }, { key: "getProductGroups", value: /* @__PURE__ */ __name(function getProductGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductGroup, fields, params, fetchFirstPage, "/product_groups"); }, "getProductGroups") }, { key: "createProductGroup", value: /* @__PURE__ */ __name(function createProductGroup(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/product_groups", fields, params, ProductGroup, pathOverride); }, "createProductGroup") }, { key: "getProductSets", value: /* @__PURE__ */ __name(function getProductSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductSet, fields, params, fetchFirstPage, "/product_sets"); }, "getProductSets") }, { key: "createProductSet", value: /* @__PURE__ */ __name(function createProductSet(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/product_sets", fields, params, ProductSet, pathOverride); }, "createProductSet") }, { key: "getProductSetsBatch", value: /* @__PURE__ */ __name(function getProductSetsBatch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalogProductSetsBatch, fields, params, fetchFirstPage, "/product_sets_batch"); }, "getProductSetsBatch") }, { key: "getProducts", value: /* @__PURE__ */ __name(function getProducts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductItem, fields, params, fetchFirstPage, "/products"); }, "getProducts") }, { key: "createProduct", value: /* @__PURE__ */ __name(function createProduct(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/products", fields, params, ProductItem, pathOverride); }, "createProduct") }, { key: "getVehicleOffers", value: /* @__PURE__ */ __name(function getVehicleOffers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(VehicleOffer, fields, params, fetchFirstPage, "/vehicle_offers"); }, "getVehicleOffers") }, { key: "getVehicles", value: /* @__PURE__ */ __name(function getVehicles(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Vehicle, fields, params, fetchFirstPage, "/vehicles"); }, "getVehicles") }, { key: "createVehicle", value: /* @__PURE__ */ __name(function createVehicle(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/vehicles", fields, params, Vehicle, pathOverride); }, "createVehicle") }, { key: "createVersionItemsBatch", value: /* @__PURE__ */ __name(function createVersionItemsBatch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/version_items_batch", fields, params, ProductCatalog2, pathOverride); }, "createVersionItemsBatch") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductCatalog2.prototype.__proto__ || Object.getPrototypeOf(ProductCatalog2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ProductCatalog2.prototype.__proto__ || Object.getPrototypeOf(ProductCatalog2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_account_to_collaborative_ads_share_settings: "ad_account_to_collaborative_ads_share_settings", agency_collaborative_ads_share_settings: "agency_collaborative_ads_share_settings", business: "business", catalog_store: "catalog_store", commerce_merchant_settings: "commerce_merchant_settings", creator_user: "creator_user", da_display_settings: "da_display_settings", default_image_url: "default_image_url", fallback_image_url: "fallback_image_url", feed_count: "feed_count", id: "id", is_catalog_segment: "is_catalog_segment", is_local_catalog: "is_local_catalog", name: "name", owner_business: "owner_business", product_count: "product_count", store_catalog_settings: "store_catalog_settings", user_access_expire_time: "user_access_expire_time", vertical: "vertical" }); }, "get") }, { key: "AdditionalVerticalOption", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ local_da_catalog: "LOCAL_DA_CATALOG", local_products: "LOCAL_PRODUCTS" }); }, "get") }, { key: "Vertical", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adoptable_pets: "adoptable_pets", commerce: "commerce", destinations: "destinations", flights: "flights", generic: "generic", home_listings: "home_listings", hotels: "hotels", jobs: "jobs", local_delivery_shipping_profiles: "local_delivery_shipping_profiles", local_service_businesses: "local_service_businesses", offer_items: "offer_items", offline_commerce: "offline_commerce", transactable_items: "transactable_items", vehicles: "vehicles" }); }, "get") }, { key: "PermittedRoles", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ admin: "ADMIN", advertiser: "ADVERTISER" }); }, "get") }, { key: "PermittedTasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aa_analyze: "AA_ANALYZE", advertise: "ADVERTISE", manage: "MANAGE", manage_ar: "MANAGE_AR" }); }, "get") }, { key: "Tasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aa_analyze: "AA_ANALYZE", advertise: "ADVERTISE", manage: "MANAGE", manage_ar: "MANAGE_AR" }); }, "get") }, { key: "Standard", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ google: "google" }); }, "get") }, { key: "ItemSubType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ appliances: "APPLIANCES", baby_feeding: "BABY_FEEDING", baby_transport: "BABY_TRANSPORT", beauty: "BEAUTY", bedding: "BEDDING", cameras: "CAMERAS", cell_phones_and_smart_watches: "CELL_PHONES_AND_SMART_WATCHES", cleaning_supplies: "CLEANING_SUPPLIES", clothing: "CLOTHING", clothing_accessories: "CLOTHING_ACCESSORIES", computers_and_tablets: "COMPUTERS_AND_TABLETS", diapering_and_potty_training: "DIAPERING_AND_POTTY_TRAINING", electronics_accessories: "ELECTRONICS_ACCESSORIES", furniture: "FURNITURE", health: "HEALTH", home_goods: "HOME_GOODS", jewelry: "JEWELRY", nursery: "NURSERY", printers_and_scanners: "PRINTERS_AND_SCANNERS", projectors: "PROJECTORS", shoes_and_footwear: "SHOES_AND_FOOTWEAR", software: "SOFTWARE", toys: "TOYS", tvs_and_monitors: "TVS_AND_MONITORS", video_game_consoles_and_video_games: "VIDEO_GAME_CONSOLES_AND_VIDEO_GAMES", watches: "WATCHES" }); }, "get") }]); return ProductCatalog2; }(AbstractCrudObject); var CommerceMerchantSettingsSetupStatus = function(_AbstractCrudObject) { inherits(CommerceMerchantSettingsSetupStatus2, _AbstractCrudObject); function CommerceMerchantSettingsSetupStatus2() { classCallCheck(this, CommerceMerchantSettingsSetupStatus2); return possibleConstructorReturn(this, (CommerceMerchantSettingsSetupStatus2.__proto__ || Object.getPrototypeOf(CommerceMerchantSettingsSetupStatus2)).apply(this, arguments)); } __name(CommerceMerchantSettingsSetupStatus2, "CommerceMerchantSettingsSetupStatus"); createClass(CommerceMerchantSettingsSetupStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ deals_setup: "deals_setup", marketplace_approval_status: "marketplace_approval_status", marketplace_approval_status_details: "marketplace_approval_status_details", payment_setup: "payment_setup", review_status: "review_status", shop_setup: "shop_setup" }); }, "get") }]); return CommerceMerchantSettingsSetupStatus2; }(AbstractCrudObject); var Shop = function(_AbstractCrudObject) { inherits(Shop2, _AbstractCrudObject); function Shop2() { classCallCheck(this, Shop2); return possibleConstructorReturn(this, (Shop2.__proto__ || Object.getPrototypeOf(Shop2)).apply(this, arguments)); } __name(Shop2, "Shop"); createClass(Shop2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ commerce_merchant_settings: "commerce_merchant_settings", fb_sales_channel: "fb_sales_channel", id: "id", ig_sales_channel: "ig_sales_channel", is_onsite_enabled: "is_onsite_enabled", shop_status: "shop_status", workspace: "workspace" }); }, "get") }]); return Shop2; }(AbstractCrudObject); var CommerceMerchantSettings = function(_AbstractCrudObject) { inherits(CommerceMerchantSettings2, _AbstractCrudObject); function CommerceMerchantSettings2() { classCallCheck(this, CommerceMerchantSettings2); return possibleConstructorReturn(this, (CommerceMerchantSettings2.__proto__ || Object.getPrototypeOf(CommerceMerchantSettings2)).apply(this, arguments)); } __name(CommerceMerchantSettings2, "CommerceMerchantSettings"); createClass(CommerceMerchantSettings2, [{ key: "createAcknowledgeOrder", value: /* @__PURE__ */ __name(function createAcknowledgeOrder(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/acknowledge_orders", fields, params, CommerceMerchantSettings2, pathOverride); }, "createAcknowledgeOrder") }, { key: "getCommerceOrders", value: /* @__PURE__ */ __name(function getCommerceOrders(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CommerceOrder, fields, params, fetchFirstPage, "/commerce_orders"); }, "getCommerceOrders") }, { key: "getCommercePayouts", value: /* @__PURE__ */ __name(function getCommercePayouts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CommercePayout, fields, params, fetchFirstPage, "/commerce_payouts"); }, "getCommercePayouts") }, { key: "getCommerceTransactions", value: /* @__PURE__ */ __name(function getCommerceTransactions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CommerceOrderTransactionDetail, fields, params, fetchFirstPage, "/commerce_transactions"); }, "getCommerceTransactions") }, { key: "getOrderManagementApps", value: /* @__PURE__ */ __name(function getOrderManagementApps(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Application, fields, params, fetchFirstPage, "/order_management_apps"); }, "getOrderManagementApps") }, { key: "createOrderManagementApp", value: /* @__PURE__ */ __name(function createOrderManagementApp(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/order_management_apps", fields, params, CommerceMerchantSettings2, pathOverride); }, "createOrderManagementApp") }, { key: "getProductCatalogs", value: /* @__PURE__ */ __name(function getProductCatalogs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalog, fields, params, fetchFirstPage, "/product_catalogs"); }, "getProductCatalogs") }, { key: "getReturns", value: /* @__PURE__ */ __name(function getReturns(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/returns"); }, "getReturns") }, { key: "getSetupStatus", value: /* @__PURE__ */ __name(function getSetupStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CommerceMerchantSettingsSetupStatus, fields, params, fetchFirstPage, "/setup_status"); }, "getSetupStatus") }, { key: "getShippingProfiles", value: /* @__PURE__ */ __name(function getShippingProfiles(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/shipping_profiles"); }, "getShippingProfiles") }, { key: "createShippingProfile", value: /* @__PURE__ */ __name(function createShippingProfile(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/shipping_profiles", fields, params, null, pathOverride); }, "createShippingProfile") }, { key: "getShops", value: /* @__PURE__ */ __name(function getShops(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Shop, fields, params, fetchFirstPage, "/shops"); }, "getShops") }, { key: "getTaxSettings", value: /* @__PURE__ */ __name(function getTaxSettings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/tax_settings"); }, "getTaxSettings") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ braintree_merchant_id: "braintree_merchant_id", checkout_message: "checkout_message", contact_email: "contact_email", cta: "cta", disable_checkout_urls: "disable_checkout_urls", display_name: "display_name", external_merchant_id: "external_merchant_id", facebook_channel: "facebook_channel", feature_eligibility: "feature_eligibility", has_discount_code: "has_discount_code", has_onsite_intent: "has_onsite_intent", id: "id", instagram_channel: "instagram_channel", merchant_alert_email: "merchant_alert_email", merchant_page: "merchant_page", merchant_status: "merchant_status", onsite_commerce_merchant: "onsite_commerce_merchant", payment_provider: "payment_provider", privacy_url_by_locale: "privacy_url_by_locale", review_rejection_messages: "review_rejection_messages", review_rejection_reasons: "review_rejection_reasons", supported_card_types: "supported_card_types", terms: "terms", terms_url_by_locale: "terms_url_by_locale" }); }, "get") }]); return CommerceMerchantSettings2; }(AbstractCrudObject); var UnifiedThread = function(_AbstractCrudObject) { inherits(UnifiedThread2, _AbstractCrudObject); function UnifiedThread2() { classCallCheck(this, UnifiedThread2); return possibleConstructorReturn(this, (UnifiedThread2.__proto__ || Object.getPrototypeOf(UnifiedThread2)).apply(this, arguments)); } __name(UnifiedThread2, "UnifiedThread"); createClass(UnifiedThread2, [{ key: "getMessages", value: /* @__PURE__ */ __name(function getMessages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/messages"); }, "getMessages") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ can_reply: "can_reply", folder: "folder", former_participants: "former_participants", id: "id", is_subscribed: "is_subscribed", link: "link", linked_group: "linked_group", message_count: "message_count", name: "name", participants: "participants", scoped_thread_key: "scoped_thread_key", senders: "senders", snippet: "snippet", subject: "subject", unread_count: "unread_count", updated_time: "updated_time", wallpaper: "wallpaper" }); }, "get") }, { key: "Platform", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ instagram: "INSTAGRAM", messenger: "MESSENGER" }); }, "get") }]); return UnifiedThread2; }(AbstractCrudObject); var PageUserMessageThreadLabel = function(_AbstractCrudObject) { inherits(PageUserMessageThreadLabel2, _AbstractCrudObject); function PageUserMessageThreadLabel2() { classCallCheck(this, PageUserMessageThreadLabel2); return possibleConstructorReturn(this, (PageUserMessageThreadLabel2.__proto__ || Object.getPrototypeOf(PageUserMessageThreadLabel2)).apply(this, arguments)); } __name(PageUserMessageThreadLabel2, "PageUserMessageThreadLabel"); createClass(PageUserMessageThreadLabel2, [{ key: "deleteLabel", value: /* @__PURE__ */ __name(function deleteLabel() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(PageUserMessageThreadLabel2.prototype.__proto__ || Object.getPrototypeOf(PageUserMessageThreadLabel2.prototype), "deleteEdge", this).call(this, "/label", params); }, "deleteLabel") }, { key: "createLabel", value: /* @__PURE__ */ __name(function createLabel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/label", fields, params, PageUserMessageThreadLabel2, pathOverride); }, "createLabel") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(PageUserMessageThreadLabel2.prototype.__proto__ || Object.getPrototypeOf(PageUserMessageThreadLabel2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", page_label_name: "page_label_name" }); }, "get") }]); return PageUserMessageThreadLabel2; }(AbstractCrudObject); var CustomUserSettings = function(_AbstractCrudObject) { inherits(CustomUserSettings2, _AbstractCrudObject); function CustomUserSettings2() { classCallCheck(this, CustomUserSettings2); return possibleConstructorReturn(this, (CustomUserSettings2.__proto__ || Object.getPrototypeOf(CustomUserSettings2)).apply(this, arguments)); } __name(CustomUserSettings2, "CustomUserSettings"); createClass(CustomUserSettings2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ page_level_persistent_menu: "page_level_persistent_menu", user_level_persistent_menu: "user_level_persistent_menu" }); }, "get") }]); return CustomUserSettings2; }(AbstractCrudObject); var Dataset = function(_AbstractCrudObject) { inherits(Dataset2, _AbstractCrudObject); function Dataset2() { classCallCheck(this, Dataset2); return possibleConstructorReturn(this, (Dataset2.__proto__ || Object.getPrototypeOf(Dataset2)).apply(this, arguments)); } __name(Dataset2, "Dataset"); createClass(Dataset2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id" }); }, "get") }]); return Dataset2; }(AbstractCrudObject); var NullNode = function(_AbstractCrudObject) { inherits(NullNode2, _AbstractCrudObject); function NullNode2() { classCallCheck(this, NullNode2); return possibleConstructorReturn(this, (NullNode2.__proto__ || Object.getPrototypeOf(NullNode2)).apply(this, arguments)); } __name(NullNode2, "NullNode"); createClass(NullNode2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({}); }, "get") }]); return NullNode2; }(AbstractCrudObject); var AppRequestFormerRecipient = function(_AbstractCrudObject) { inherits(AppRequestFormerRecipient2, _AbstractCrudObject); function AppRequestFormerRecipient2() { classCallCheck(this, AppRequestFormerRecipient2); return possibleConstructorReturn(this, (AppRequestFormerRecipient2.__proto__ || Object.getPrototypeOf(AppRequestFormerRecipient2)).apply(this, arguments)); } __name(AppRequestFormerRecipient2, "AppRequestFormerRecipient"); createClass(AppRequestFormerRecipient2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", recipient_id: "recipient_id" }); }, "get") }]); return AppRequestFormerRecipient2; }(AbstractCrudObject); var AppRequest = function(_AbstractCrudObject) { inherits(AppRequest2, _AbstractCrudObject); function AppRequest2() { classCallCheck(this, AppRequest2); return possibleConstructorReturn(this, (AppRequest2.__proto__ || Object.getPrototypeOf(AppRequest2)).apply(this, arguments)); } __name(AppRequest2, "AppRequest"); createClass(AppRequest2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AppRequest2.prototype.__proto__ || Object.getPrototypeOf(AppRequest2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ action_type: "action_type", application: "application", created_time: "created_time", data: "data", from: "from", id: "id", message: "message", object: "object", to: "to" }); }, "get") }]); return AppRequest2; }(AbstractCrudObject); var Avatar = function(_AbstractCrudObject) { inherits(Avatar2, _AbstractCrudObject); function Avatar2() { classCallCheck(this, Avatar2); return possibleConstructorReturn(this, (Avatar2.__proto__ || Object.getPrototypeOf(Avatar2)).apply(this, arguments)); } __name(Avatar2, "Avatar"); createClass(Avatar2, [{ key: "getModels", value: /* @__PURE__ */ __name(function getModels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/models"); }, "getModels") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id" }); }, "get") }]); return Avatar2; }(AbstractCrudObject); var BusinessUser = function(_AbstractCrudObject) { inherits(BusinessUser2, _AbstractCrudObject); function BusinessUser2() { classCallCheck(this, BusinessUser2); return possibleConstructorReturn(this, (BusinessUser2.__proto__ || Object.getPrototypeOf(BusinessUser2)).apply(this, arguments)); } __name(BusinessUser2, "BusinessUser"); createClass(BusinessUser2, [{ key: "getAssignedAdAccounts", value: /* @__PURE__ */ __name(function getAssignedAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/assigned_ad_accounts"); }, "getAssignedAdAccounts") }, { key: "getAssignedBusinessAssetGroups", value: /* @__PURE__ */ __name(function getAssignedBusinessAssetGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessAssetGroup, fields, params, fetchFirstPage, "/assigned_business_asset_groups"); }, "getAssignedBusinessAssetGroups") }, { key: "getAssignedPages", value: /* @__PURE__ */ __name(function getAssignedPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/assigned_pages"); }, "getAssignedPages") }, { key: "getAssignedProductCatalogs", value: /* @__PURE__ */ __name(function getAssignedProductCatalogs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalog, fields, params, fetchFirstPage, "/assigned_product_catalogs"); }, "getAssignedProductCatalogs") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(BusinessUser2.prototype.__proto__ || Object.getPrototypeOf(BusinessUser2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(BusinessUser2.prototype.__proto__ || Object.getPrototypeOf(BusinessUser2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ business: "business", business_role_request: "business_role_request", email: "email", finance_permission: "finance_permission", first_name: "first_name", id: "id", ip_permission: "ip_permission", last_name: "last_name", marked_for_removal: "marked_for_removal", name: "name", pending_email: "pending_email", role: "role", title: "title", two_fac_status: "two_fac_status" }); }, "get") }, { key: "Role", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ admin: "ADMIN", ads_rights_reviewer: "ADS_RIGHTS_REVIEWER", default: "DEFAULT", developer: "DEVELOPER", employee: "EMPLOYEE", finance_analyst: "FINANCE_ANALYST", finance_edit: "FINANCE_EDIT", finance_editor: "FINANCE_EDITOR", finance_view: "FINANCE_VIEW", manage: "MANAGE", partner_center_admin: "PARTNER_CENTER_ADMIN", partner_center_analyst: "PARTNER_CENTER_ANALYST", partner_center_education: "PARTNER_CENTER_EDUCATION", partner_center_marketing: "PARTNER_CENTER_MARKETING", partner_center_operations: "PARTNER_CENTER_OPERATIONS" }); }, "get") }]); return BusinessUser2; }(AbstractCrudObject); var FundraiserPersonToCharity = function(_AbstractCrudObject) { inherits(FundraiserPersonToCharity2, _AbstractCrudObject); function FundraiserPersonToCharity2() { classCallCheck(this, FundraiserPersonToCharity2); return possibleConstructorReturn(this, (FundraiserPersonToCharity2.__proto__ || Object.getPrototypeOf(FundraiserPersonToCharity2)).apply(this, arguments)); } __name(FundraiserPersonToCharity2, "FundraiserPersonToCharity"); createClass(FundraiserPersonToCharity2, [{ key: "getDonations", value: /* @__PURE__ */ __name(function getDonations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/donations"); }, "getDonations") }, { key: "createEndFundraiser", value: /* @__PURE__ */ __name(function createEndFundraiser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/end_fundraiser", fields, params, null, pathOverride); }, "createEndFundraiser") }, { key: "getExternalDonations", value: /* @__PURE__ */ __name(function getExternalDonations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/external_donations"); }, "getExternalDonations") }, { key: "createExternalDonation", value: /* @__PURE__ */ __name(function createExternalDonation(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/external_donations", fields, params, null, pathOverride); }, "createExternalDonation") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(FundraiserPersonToCharity2.prototype.__proto__ || Object.getPrototypeOf(FundraiserPersonToCharity2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amount_raised: "amount_raised", charity_id: "charity_id", currency: "currency", description: "description", donations_count: "donations_count", donors_count: "donors_count", end_time: "end_time", external_amount_raised: "external_amount_raised", external_donations_count: "external_donations_count", external_donors_count: "external_donors_count", external_event_name: "external_event_name", external_event_start_time: "external_event_start_time", external_event_uri: "external_event_uri", external_fundraiser_uri: "external_fundraiser_uri", external_id: "external_id", goal_amount: "goal_amount", id: "id", internal_amount_raised: "internal_amount_raised", internal_donations_count: "internal_donations_count", internal_donors_count: "internal_donors_count", name: "name", uri: "uri" }); }, "get") }, { key: "FundraiserType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ person_for_charity: "person_for_charity" }); }, "get") }]); return FundraiserPersonToCharity2; }(AbstractCrudObject); var VideoThumbnail = function(_AbstractCrudObject) { inherits(VideoThumbnail2, _AbstractCrudObject); function VideoThumbnail2() { classCallCheck(this, VideoThumbnail2); return possibleConstructorReturn(this, (VideoThumbnail2.__proto__ || Object.getPrototypeOf(VideoThumbnail2)).apply(this, arguments)); } __name(VideoThumbnail2, "VideoThumbnail"); createClass(VideoThumbnail2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ height: "height", id: "id", is_preferred: "is_preferred", name: "name", scale: "scale", uri: "uri", width: "width" }); }, "get") }]); return VideoThumbnail2; }(AbstractCrudObject); var VideoUploader = function() { function VideoUploader2() { classCallCheck(this, VideoUploader2); this._session = null; } __name(VideoUploader2, "VideoUploader"); createClass(VideoUploader2, [{ key: "upload", value: /* @__PURE__ */ __name(function upload(video, waitForEncoding) { if (this._session) { throw Error("There is already an upload session for this video uploader"); } this._session = new VideoUploadSession(video, waitForEncoding); var result = this._session.start(); this._session = null; return result; }, "upload") }]); return VideoUploader2; }(); var VideoUploadSession = function() { function VideoUploadSession2(video) { var waitForEncoding = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; classCallCheck(this, VideoUploadSession2); this._video = video; this._api = video.getApi(); if (video.filepath) { this._filePath = video.filepath; this._slideshowSpec = null; } else if (video.slideshow_spec) { this._slideshowSpec = video.slideshow_spec; this._filePath = null; } this._accountId = video.getParentId(); this._waitForEncoding = waitForEncoding; this._startRequestManager = new VideoUploadStartRequestManager(this._api); this._transferRequestManager = new VideoUploadTransferRequestManager(this._api); this._finishRequestManager = new VideoUploadFinishRequestManager(this._api); } __name(VideoUploadSession2, "VideoUploadSession"); createClass(VideoUploadSession2, [{ key: "start", value: function() { var _ref = asyncToGenerator(function* () { var videoId = void 0; var startResponse = yield this._startRequestManager.sendRequest(this.getStartRequestContext()); this._startOffset = parseInt(startResponse["start_offset"]); this._endOffset = parseInt(startResponse["end_offset"]); this._sessionId = startResponse["upload_session_id"]; videoId = startResponse["video_id"]; yield this._transferRequestManager.sendRequest(this.getTransferRequestContext()); var finishResponse = yield this._finishRequestManager.sendRequest(this.getFinishRequestContext()); var body = finishResponse; body.id = videoId; delete body.success; return body; }); function start() { return _ref.apply(this, arguments); } __name(start, "start"); return start; }() }, { key: "getStartRequestContext", value: /* @__PURE__ */ __name(function getStartRequestContext() { var context2 = new VideoUploadRequestContext(); if (this._filePath) { context2.fileSize = fs.statSync(this._filePath).size; } context2.accountId = this._accountId; return context2; }, "getStartRequestContext") }, { key: "getTransferRequestContext", value: /* @__PURE__ */ __name(function getTransferRequestContext() { var context2 = new VideoUploadRequestContext(); context2.sessionId = this._sessionId; context2.startOffset = this._startOffset; context2.endOffset = this._endOffset; if (this._filePath) { context2.filePath = this._filePath; } if (this._slideshowSpec) { context2.slideshowSpec = this._slideshowSpec; } context2.accountId = this._accountId; return context2; }, "getTransferRequestContext") }, { key: "getFinishRequestContext", value: /* @__PURE__ */ __name(function getFinishRequestContext() { var context2 = new VideoUploadRequestContext(); context2.sessionId = this._sessionId; context2.accountId = this._accountId; if (this._filePath) { context2.fileName = path.basename(this._filePath); } return context2; }, "getFinishRequestContext") }]); return VideoUploadSession2; }(); var VideoUploadRequestManager = function() { function VideoUploadRequestManager2(api) { classCallCheck(this, VideoUploadRequestManager2); this._api = api; } __name(VideoUploadRequestManager2, "VideoUploadRequestManager"); createClass(VideoUploadRequestManager2, [{ key: "sendRequest", value: /* @__PURE__ */ __name(function sendRequest(context2) { throw new TypeError("Class extending VideoUploadRequestManager must implement sendRequest method"); }, "sendRequest") }, { key: "getParamsFromContext", value: /* @__PURE__ */ __name(function getParamsFromContext(context2) { throw new TypeError("Class extending VideoUploadRequestManager must implement getParamsFromContext method"); }, "getParamsFromContext") }]); return VideoUploadRequestManager2; }(); var VideoUploadStartRequestManager = function(_VideoUploadRequestMa) { inherits(VideoUploadStartRequestManager2, _VideoUploadRequestMa); function VideoUploadStartRequestManager2() { classCallCheck(this, VideoUploadStartRequestManager2); return possibleConstructorReturn(this, (VideoUploadStartRequestManager2.__proto__ || Object.getPrototypeOf(VideoUploadStartRequestManager2)).apply(this, arguments)); } __name(VideoUploadStartRequestManager2, "VideoUploadStartRequestManager"); createClass(VideoUploadStartRequestManager2, [{ key: "sendRequest", /** * Send start request with the given context **/ value: function() { var _ref2 = asyncToGenerator(function* (context2) { var request = new VideoUploadRequest(this._api); request.setParams(this.getParamsFromContext(context2)); var response = yield request.send([context2.accountId, "advideos"]); return response; }); function sendRequest(_x2) { return _ref2.apply(this, arguments); } __name(sendRequest, "sendRequest"); return sendRequest; }() }, { key: "getParamsFromContext", value: /* @__PURE__ */ __name(function getParamsFromContext(context2) { return { file_size: context2.fileSize, upload_phase: "start" }; }, "getParamsFromContext") }]); return VideoUploadStartRequestManager2; }(VideoUploadRequestManager); var VideoUploadTransferRequestManager = function(_VideoUploadRequestMa2) { inherits(VideoUploadTransferRequestManager2, _VideoUploadRequestMa2); function VideoUploadTransferRequestManager2() { classCallCheck(this, VideoUploadTransferRequestManager2); return possibleConstructorReturn(this, (VideoUploadTransferRequestManager2.__proto__ || Object.getPrototypeOf(VideoUploadTransferRequestManager2)).apply(this, arguments)); } __name(VideoUploadTransferRequestManager2, "VideoUploadTransferRequestManager"); createClass(VideoUploadTransferRequestManager2, [{ key: "sendRequest", /** * Send transfer request with the given context **/ value: function() { var _ref3 = asyncToGenerator(function* (context2) { var request = new VideoUploadRequest(this._api); var start_offset = context2.startOffset; var end_offset = context2.endOffset; var filePath = context2.filePath; var fileSize = fs.statSync(filePath).size; var numRetry = Math.max(fileSize / (1024 * 1024 * 10), 2); var response = null; var videoFileDescriptor = fs.openSync(filePath, "r"); while (start_offset !== end_offset) { context2.startOffset = start_offset; context2.endOffset = end_offset; var params = { upload_phase: "transfer", start_offset: context2.startOffset, upload_session_id: context2.sessionId, video_file_chunk: context2.videoFileChunk }; request.setParams(params, { video_file_chunk: fs.createReadStream(context2.filePath, { start: context2.startOffset, end: context2.endOffset - 1 }) }); try { response = yield request.send([context2.accountId, "advideos"]); start_offset = parseInt(response["start_offset"]); end_offset = parseInt(response["end_offset"]); } catch (error3) { if (numRetry > 0) { numRetry = Math.max(numRetry - 1, 0); continue; } fs.close(videoFileDescriptor, function(err) { }); throw error3; } } this._startOffset = start_offset; this._endOffset = end_offset; fs.close(videoFileDescriptor, function(err) { }); return response; }); function sendRequest(_x3) { return _ref3.apply(this, arguments); } __name(sendRequest, "sendRequest"); return sendRequest; }() }]); return VideoUploadTransferRequestManager2; }(VideoUploadRequestManager); var VideoUploadFinishRequestManager = function(_VideoUploadRequestMa3) { inherits(VideoUploadFinishRequestManager2, _VideoUploadRequestMa3); function VideoUploadFinishRequestManager2() { classCallCheck(this, VideoUploadFinishRequestManager2); return possibleConstructorReturn(this, (VideoUploadFinishRequestManager2.__proto__ || Object.getPrototypeOf(VideoUploadFinishRequestManager2)).apply(this, arguments)); } __name(VideoUploadFinishRequestManager2, "VideoUploadFinishRequestManager"); createClass(VideoUploadFinishRequestManager2, [{ key: "sendRequest", /** * Send transfer request with the given context **/ value: function() { var _ref4 = asyncToGenerator(function* (context2) { var request = new VideoUploadRequest(this._api); request.setParams(this.getParamsFromContext(context2)); var response = yield request.send([context2.accountId, "advideos"]); return response; }); function sendRequest(_x4) { return _ref4.apply(this, arguments); } __name(sendRequest, "sendRequest"); return sendRequest; }() }, { key: "getParamsFromContext", value: /* @__PURE__ */ __name(function getParamsFromContext(context2) { return { upload_phase: "finish", upload_session_id: context2.sessionId, title: context2.fileName }; }, "getParamsFromContext") }]); return VideoUploadFinishRequestManager2; }(VideoUploadRequestManager); var VideoUploadRequestContext = function() { function VideoUploadRequestContext2() { classCallCheck(this, VideoUploadRequestContext2); } __name(VideoUploadRequestContext2, "VideoUploadRequestContext"); createClass(VideoUploadRequestContext2, [{ key: "accountId", get: /* @__PURE__ */ __name(function get() { return this._accountId; }, "get"), set: /* @__PURE__ */ __name(function set(accountId) { this._accountId = accountId; }, "set") }, { key: "fileName", get: /* @__PURE__ */ __name(function get() { return this._fileName; }, "get"), set: /* @__PURE__ */ __name(function set(fileName) { this._fileName = fileName; }, "set") }, { key: "filePath", get: /* @__PURE__ */ __name(function get() { return this._filePath; }, "get"), set: /* @__PURE__ */ __name(function set(filePath) { this._filePath = filePath; }, "set") }, { key: "fileSize", get: /* @__PURE__ */ __name(function get() { return this._fileSize; }, "get"), set: /* @__PURE__ */ __name(function set(fileSize) { this._fileSize = fileSize; }, "set") }, { key: "name", get: /* @__PURE__ */ __name(function get() { return this._name; }, "get"), set: /* @__PURE__ */ __name(function set(name) { this._name = name; }, "set") }, { key: "sessionId", get: /* @__PURE__ */ __name(function get() { return this._sessionId; }, "get"), set: /* @__PURE__ */ __name(function set(sessionId) { this._sessionId = sessionId; }, "set") }, { key: "startOffset", get: /* @__PURE__ */ __name(function get() { return this._startOffset; }, "get"), set: /* @__PURE__ */ __name(function set(startOffset) { this._startOffset = startOffset; }, "set") }, { key: "endOffset", get: /* @__PURE__ */ __name(function get() { return this._endOffset; }, "get"), set: /* @__PURE__ */ __name(function set(endOffset) { this._endOffset = endOffset; }, "set") }, { key: "slideshowSpec", get: /* @__PURE__ */ __name(function get() { return this._slideshowSpec; }, "get"), set: /* @__PURE__ */ __name(function set(slideshowSpec) { this._slideshowSpec = slideshowSpec; }, "set") }, { key: "videoFileChunk", get: /* @__PURE__ */ __name(function get() { return this._videoFileChunk; }, "get"), set: /* @__PURE__ */ __name(function set(videoFileChunk) { this._videoFileChunk = videoFileChunk; }, "set") }]); return VideoUploadRequestContext2; }(); var VideoUploadRequest = function() { function VideoUploadRequest2(api) { classCallCheck(this, VideoUploadRequest2); this._params = null; this._files = null; this._api = api; } __name(VideoUploadRequest2, "VideoUploadRequest"); createClass(VideoUploadRequest2, [{ key: "send", value: /* @__PURE__ */ __name(function send2(path$$1) { var _this4 = this; return new Promise(function(resolve, reject) { _this4._api.call( "POST", path$$1, _this4._params, _this4._files, true, // use multipart/form-data FacebookAdsApi2.GRAPH_VIDEO // override graph.facebook.com ).then(function(response) { return resolve(JSON.parse(response)); }).catch(function(error3) { return reject(error3); }); }); }, "send") }, { key: "setParams", value: /* @__PURE__ */ __name(function setParams(params) { var files = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; this._params = params; this._files = files; }, "setParams") }]); return VideoUploadRequest2; }(); function sleep(ms) { return new Promise(function(resolve) { return setTimeout(resolve, ms); }); } __name(sleep, "sleep"); var VideoEncodingStatusChecker = function() { function VideoEncodingStatusChecker2() { classCallCheck(this, VideoEncodingStatusChecker2); } __name(VideoEncodingStatusChecker2, "VideoEncodingStatusChecker"); createClass(VideoEncodingStatusChecker2, null, [{ key: "waitUntilReady", value: function() { var _ref5 = asyncToGenerator(function* (api, videoId, interval, timeout) { var startTime = (/* @__PURE__ */ new Date()).getTime(); var status = null; while (true) { status = VideoEncodingStatusChecker2.getStatus(api, videoId); status = status["video_status"]; if (status !== "processing") { break; } if (startTime + timeout <= (/* @__PURE__ */ new Date()).getTime()) { throw Error("Video encoding timeout: " + timeout); } yield sleep(interval); } if (status !== "ready") { status = status == null ? "" : status; throw Error("Video encoding status " + status); } }); function waitUntilReady(_x6, _x7, _x8, _x9) { return _ref5.apply(this, arguments); } __name(waitUntilReady, "waitUntilReady"); return waitUntilReady; }() }, { key: "getStatus", value: /* @__PURE__ */ __name(function getStatus(api, videoId) { var result = api.call("GET", [videoId.toString()], { fields: "status" }); return result["status"]; }, "getStatus") }]); return VideoEncodingStatusChecker2; }(); var AdVideo = function(_AbstractCrudObject) { inherits(AdVideo2, _AbstractCrudObject); function AdVideo2() { classCallCheck(this, AdVideo2); return possibleConstructorReturn(this, (AdVideo2.__proto__ || Object.getPrototypeOf(AdVideo2)).apply(this, arguments)); } __name(AdVideo2, "AdVideo"); createClass(AdVideo2, [{ key: "create", /** * Uploads filepath and creates the AdVideo object from it. * It requires 'filepath' property to be defined. **/ value: /* @__PURE__ */ __name(function create(batch, failureHandler, successHandler) { var response = null; var spec = this.slideshow_spec; if (spec) { var request = new VideoUploadRequest(this.getApi()); request.setParams({ "slideshow_spec[images_urls]": JSON.stringify(spec["images_urls"]), "slideshow_spec[duration_ms]": spec["duration_ms"], "slideshow_spec[transition_ms]": spec["transition_ms"] }); response = request.send([this.getParentId(), "advideos"]); } else if (this.filepath) { var videoUploader = new VideoUploader(); response = videoUploader.upload(this, true); } else { throw Error("AdVideo requires a filepath or slideshow_spec to be defined."); } this.setData(response); return response; }, "create") }, { key: "waitUntilEncodingReady", value: /* @__PURE__ */ __name(function waitUntilEncodingReady() { var interval = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 30; var timeout = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 600; if (!this.id) { throw Error("Invalid Video ID"); } VideoEncodingStatusChecker.waitUntilReady(this.getApi(), parseInt(this.id), interval, timeout); }, "waitUntilEncodingReady") /** * Returns all the thumbnails associated with the ad video */ }, { key: "getThumbnails", value: /* @__PURE__ */ __name(function getThumbnails(fields, params) { return this.getEdge(VideoThumbnail, fields, params, true, "thumbnails"); }, "getThumbnails") }, { key: "filepath", get: /* @__PURE__ */ __name(function get() { return this.filepath; }, "get") }, { key: "slideshow_spec", get: /* @__PURE__ */ __name(function get() { return this.slideshow_spec; }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ filepath: "filepath", id: "id", slideshow_spec: "slideshow_spec" }); }, "get") }]); return AdVideo2; }(AbstractCrudObject); var Group = function(_AbstractCrudObject) { inherits(Group2, _AbstractCrudObject); function Group2() { classCallCheck(this, Group2); return possibleConstructorReturn(this, (Group2.__proto__ || Object.getPrototypeOf(Group2)).apply(this, arguments)); } __name(Group2, "Group"); createClass(Group2, [{ key: "deleteAdmins", value: /* @__PURE__ */ __name(function deleteAdmins() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Group2.prototype.__proto__ || Object.getPrototypeOf(Group2.prototype), "deleteEdge", this).call(this, "/admins", params); }, "deleteAdmins") }, { key: "createAdmin", value: /* @__PURE__ */ __name(function createAdmin(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/admins", fields, params, Group2, pathOverride); }, "createAdmin") }, { key: "getAlbums", value: /* @__PURE__ */ __name(function getAlbums(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Album, fields, params, fetchFirstPage, "/albums"); }, "getAlbums") }, { key: "createAlbum", value: /* @__PURE__ */ __name(function createAlbum(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/albums", fields, params, Album, pathOverride); }, "createAlbum") }, { key: "getDocs", value: /* @__PURE__ */ __name(function getDocs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/docs"); }, "getDocs") }, { key: "getEvents", value: /* @__PURE__ */ __name(function getEvents(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Event, fields, params, fetchFirstPage, "/events"); }, "getEvents") }, { key: "getFeed", value: /* @__PURE__ */ __name(function getFeed(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Post, fields, params, fetchFirstPage, "/feed"); }, "getFeed") }, { key: "createFeed", value: /* @__PURE__ */ __name(function createFeed(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/feed", fields, params, Post, pathOverride); }, "createFeed") }, { key: "getFiles", value: /* @__PURE__ */ __name(function getFiles(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/files"); }, "getFiles") }, { key: "getGroups", value: /* @__PURE__ */ __name(function getGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Group2, fields, params, fetchFirstPage, "/groups"); }, "getGroups") }, { key: "createGroup", value: /* @__PURE__ */ __name(function createGroup(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/groups", fields, params, Group2, pathOverride); }, "createGroup") }, { key: "getLiveVideos", value: /* @__PURE__ */ __name(function getLiveVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(LiveVideo, fields, params, fetchFirstPage, "/live_videos"); }, "getLiveVideos") }, { key: "createLiveVideo", value: /* @__PURE__ */ __name(function createLiveVideo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/live_videos", fields, params, LiveVideo, pathOverride); }, "createLiveVideo") }, { key: "deleteMembers", value: /* @__PURE__ */ __name(function deleteMembers() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Group2.prototype.__proto__ || Object.getPrototypeOf(Group2.prototype), "deleteEdge", this).call(this, "/members", params); }, "deleteMembers") }, { key: "createMember", value: /* @__PURE__ */ __name(function createMember(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/members", fields, params, Group2, pathOverride); }, "createMember") }, { key: "getOptedInMembers", value: /* @__PURE__ */ __name(function getOptedInMembers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(User2, fields, params, fetchFirstPage, "/opted_in_members"); }, "getOptedInMembers") }, { key: "createPhoto", value: /* @__PURE__ */ __name(function createPhoto(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/photos", fields, params, Photo, pathOverride); }, "createPhoto") }, { key: "getPicture", value: /* @__PURE__ */ __name(function getPicture(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProfilePictureSource, fields, params, fetchFirstPage, "/picture"); }, "getPicture") }, { key: "getVideos", value: /* @__PURE__ */ __name(function getVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdVideo, fields, params, fetchFirstPage, "/videos"); }, "getVideos") }, { key: "createVideo", value: /* @__PURE__ */ __name(function createVideo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/videos", fields, params, AdVideo, pathOverride); }, "createVideo") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Group2.prototype.__proto__ || Object.getPrototypeOf(Group2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ archived: "archived", cover: "cover", created_time: "created_time", description: "description", email: "email", icon: "icon", id: "id", install: "install", link: "link", member_count: "member_count", member_request_count: "member_request_count", name: "name", parent: "parent", permissions: "permissions", privacy: "privacy", purpose: "purpose", subdomain: "subdomain", updated_time: "updated_time", venue: "venue" }); }, "get") }, { key: "JoinSetting", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ admin_only: "ADMIN_ONLY", anyone: "ANYONE", none: "NONE" }); }, "get") }, { key: "PostPermissions", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ admin_only: "ADMIN_ONLY", anyone: "ANYONE", none: "NONE" }); }, "get") }, { key: "Purpose", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ casual: "CASUAL", coworkers: "COWORKERS", custom: "CUSTOM", for_sale: "FOR_SALE", for_work: "FOR_WORK", game: "GAME", health_support: "HEALTH_SUPPORT", jobs: "JOBS", learning: "LEARNING", none: "NONE", parenting: "PARENTING", streamer: "STREAMER", work_announcement: "WORK_ANNOUNCEMENT", work_demo_group: "WORK_DEMO_GROUP", work_discussion: "WORK_DISCUSSION", work_ephemeral: "WORK_EPHEMERAL", work_feedback: "WORK_FEEDBACK", work_for_sale: "WORK_FOR_SALE", work_garden: "WORK_GARDEN", work_integrity: "WORK_INTEGRITY", work_learning: "WORK_LEARNING", work_mentorship: "WORK_MENTORSHIP", work_multi_company: "WORK_MULTI_COMPANY", work_recruiting: "WORK_RECRUITING", work_social: "WORK_SOCIAL", work_stages: "WORK_STAGES", work_team: "WORK_TEAM", work_teamwork: "WORK_TEAMWORK" }); }, "get") }, { key: "GroupType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ casual: "CASUAL", coworkers: "COWORKERS", custom: "CUSTOM", for_sale: "FOR_SALE", for_work: "FOR_WORK", game: "GAME", health_support: "HEALTH_SUPPORT", jobs: "JOBS", learning: "LEARNING", none: "NONE", parenting: "PARENTING", streamer: "STREAMER", work_announcement: "WORK_ANNOUNCEMENT", work_demo_group: "WORK_DEMO_GROUP", work_discussion: "WORK_DISCUSSION", work_ephemeral: "WORK_EPHEMERAL", work_feedback: "WORK_FEEDBACK", work_for_sale: "WORK_FOR_SALE", work_garden: "WORK_GARDEN", work_integrity: "WORK_INTEGRITY", work_learning: "WORK_LEARNING", work_mentorship: "WORK_MENTORSHIP", work_multi_company: "WORK_MULTI_COMPANY", work_recruiting: "WORK_RECRUITING", work_social: "WORK_SOCIAL", work_stages: "WORK_STAGES", work_team: "WORK_TEAM", work_teamwork: "WORK_TEAMWORK" }); }, "get") }]); return Group2; }(AbstractCrudObject); var UserIDForApp = function(_AbstractCrudObject) { inherits(UserIDForApp2, _AbstractCrudObject); function UserIDForApp2() { classCallCheck(this, UserIDForApp2); return possibleConstructorReturn(this, (UserIDForApp2.__proto__ || Object.getPrototypeOf(UserIDForApp2)).apply(this, arguments)); } __name(UserIDForApp2, "UserIDForApp"); createClass(UserIDForApp2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app: "app", id: "id" }); }, "get") }]); return UserIDForApp2; }(AbstractCrudObject); var UserIDForPage = function(_AbstractCrudObject) { inherits(UserIDForPage2, _AbstractCrudObject); function UserIDForPage2() { classCallCheck(this, UserIDForPage2); return possibleConstructorReturn(this, (UserIDForPage2.__proto__ || Object.getPrototypeOf(UserIDForPage2)).apply(this, arguments)); } __name(UserIDForPage2, "UserIDForPage"); createClass(UserIDForPage2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", page: "page" }); }, "get") }]); return UserIDForPage2; }(AbstractCrudObject); var PaymentEnginePayment = function(_AbstractCrudObject) { inherits(PaymentEnginePayment2, _AbstractCrudObject); function PaymentEnginePayment2() { classCallCheck(this, PaymentEnginePayment2); return possibleConstructorReturn(this, (PaymentEnginePayment2.__proto__ || Object.getPrototypeOf(PaymentEnginePayment2)).apply(this, arguments)); } __name(PaymentEnginePayment2, "PaymentEnginePayment"); createClass(PaymentEnginePayment2, [{ key: "createDispute", value: /* @__PURE__ */ __name(function createDispute(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/dispute", fields, params, PaymentEnginePayment2, pathOverride); }, "createDispute") }, { key: "createRefund", value: /* @__PURE__ */ __name(function createRefund(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/refunds", fields, params, PaymentEnginePayment2, pathOverride); }, "createRefund") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ actions: "actions", application: "application", country: "country", created_time: "created_time", disputes: "disputes", fraud_status: "fraud_status", fulfillment_status: "fulfillment_status", id: "id", is_from_ad: "is_from_ad", is_from_page_post: "is_from_page_post", items: "items", payout_foreign_exchange_rate: "payout_foreign_exchange_rate", phone_support_eligible: "phone_support_eligible", platform: "platform", refundable_amount: "refundable_amount", request_id: "request_id", tax: "tax", tax_country: "tax_country", test: "test", user: "user" }); }, "get") }, { key: "Reason", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ banned_user: "BANNED_USER", denied_refund: "DENIED_REFUND", granted_replacement_item: "GRANTED_REPLACEMENT_ITEM" }); }, "get") }]); return PaymentEnginePayment2; }(AbstractCrudObject); var Permission = function(_AbstractCrudObject) { inherits(Permission2, _AbstractCrudObject); function Permission2() { classCallCheck(this, Permission2); return possibleConstructorReturn(this, (Permission2.__proto__ || Object.getPrototypeOf(Permission2)).apply(this, arguments)); } __name(Permission2, "Permission"); createClass(Permission2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ permission: "permission", status: "status" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ declined: "declined", expired: "expired", granted: "granted" }); }, "get") }]); return Permission2; }(AbstractCrudObject); var User2 = function(_AbstractCrudObject) { inherits(User3, _AbstractCrudObject); function User3() { classCallCheck(this, User3); return possibleConstructorReturn(this, (User3.__proto__ || Object.getPrototypeOf(User3)).apply(this, arguments)); } __name(User3, "User"); createClass(User3, [{ key: "deleteAccessTokens", value: /* @__PURE__ */ __name(function deleteAccessTokens() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(User3.prototype.__proto__ || Object.getPrototypeOf(User3.prototype), "deleteEdge", this).call(this, "/access_tokens", params); }, "deleteAccessTokens") }, { key: "createAccessToken", value: /* @__PURE__ */ __name(function createAccessToken(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/access_tokens", fields, params, User3, pathOverride); }, "createAccessToken") }, { key: "getAccounts", value: /* @__PURE__ */ __name(function getAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/accounts"); }, "getAccounts") }, { key: "createAccount", value: /* @__PURE__ */ __name(function createAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/accounts", fields, params, null, pathOverride); }, "createAccount") }, { key: "getAdStudies", value: /* @__PURE__ */ __name(function getAdStudies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdStudy, fields, params, fetchFirstPage, "/ad_studies"); }, "getAdStudies") }, { key: "createAdStudy", value: /* @__PURE__ */ __name(function createAdStudy(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/ad_studies", fields, params, AdStudy, pathOverride); }, "createAdStudy") }, { key: "getAdAccounts", value: /* @__PURE__ */ __name(function getAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/adaccounts"); }, "getAdAccounts") }, { key: "getAlbums", value: /* @__PURE__ */ __name(function getAlbums(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Album, fields, params, fetchFirstPage, "/albums"); }, "getAlbums") }, { key: "createApplication", value: /* @__PURE__ */ __name(function createApplication(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/applications", fields, params, User3, pathOverride); }, "createApplication") }, { key: "getAppRequestFormerRecipients", value: /* @__PURE__ */ __name(function getAppRequestFormerRecipients(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AppRequestFormerRecipient, fields, params, fetchFirstPage, "/apprequestformerrecipients"); }, "getAppRequestFormerRecipients") }, { key: "getAppRequests", value: /* @__PURE__ */ __name(function getAppRequests(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AppRequest, fields, params, fetchFirstPage, "/apprequests"); }, "getAppRequests") }, { key: "getAssignedAdAccounts", value: /* @__PURE__ */ __name(function getAssignedAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/assigned_ad_accounts"); }, "getAssignedAdAccounts") }, { key: "getAssignedBusinessAssetGroups", value: /* @__PURE__ */ __name(function getAssignedBusinessAssetGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessAssetGroup, fields, params, fetchFirstPage, "/assigned_business_asset_groups"); }, "getAssignedBusinessAssetGroups") }, { key: "getAssignedPages", value: /* @__PURE__ */ __name(function getAssignedPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/assigned_pages"); }, "getAssignedPages") }, { key: "getAssignedProductCatalogs", value: /* @__PURE__ */ __name(function getAssignedProductCatalogs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalog, fields, params, fetchFirstPage, "/assigned_product_catalogs"); }, "getAssignedProductCatalogs") }, { key: "getAvatars", value: /* @__PURE__ */ __name(function getAvatars(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Avatar, fields, params, fetchFirstPage, "/avatars"); }, "getAvatars") }, { key: "getBusinessUsers", value: /* @__PURE__ */ __name(function getBusinessUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessUser, fields, params, fetchFirstPage, "/business_users"); }, "getBusinessUsers") }, { key: "deleteBusinesses", value: /* @__PURE__ */ __name(function deleteBusinesses() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(User3.prototype.__proto__ || Object.getPrototypeOf(User3.prototype), "deleteEdge", this).call(this, "/businesses", params); }, "deleteBusinesses") }, { key: "getBusinesses", value: /* @__PURE__ */ __name(function getBusinesses(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/businesses"); }, "getBusinesses") }, { key: "createBusiness", value: /* @__PURE__ */ __name(function createBusiness(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/businesses", fields, params, Business, pathOverride); }, "createBusiness") }, { key: "getConversations", value: /* @__PURE__ */ __name(function getConversations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(UnifiedThread, fields, params, fetchFirstPage, "/conversations"); }, "getConversations") }, { key: "getCustomLabels", value: /* @__PURE__ */ __name(function getCustomLabels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PageUserMessageThreadLabel, fields, params, fetchFirstPage, "/custom_labels"); }, "getCustomLabels") }, { key: "getEvents", value: /* @__PURE__ */ __name(function getEvents(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Event, fields, params, fetchFirstPage, "/events"); }, "getEvents") }, { key: "getFeed", value: /* @__PURE__ */ __name(function getFeed(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Post, fields, params, fetchFirstPage, "/feed"); }, "getFeed") }, { key: "createFeed", value: /* @__PURE__ */ __name(function createFeed(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/feed", fields, params, Post, pathOverride); }, "createFeed") }, { key: "getFriends", value: /* @__PURE__ */ __name(function getFriends(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(User3, fields, params, fetchFirstPage, "/friends"); }, "getFriends") }, { key: "getFundraisers", value: /* @__PURE__ */ __name(function getFundraisers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(FundraiserPersonToCharity, fields, params, fetchFirstPage, "/fundraisers"); }, "getFundraisers") }, { key: "createFundraiser", value: /* @__PURE__ */ __name(function createFundraiser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/fundraisers", fields, params, FundraiserPersonToCharity, pathOverride); }, "createFundraiser") }, { key: "createGameTime", value: /* @__PURE__ */ __name(function createGameTime(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/game_times", fields, params, null, pathOverride); }, "createGameTime") }, { key: "getGroups", value: /* @__PURE__ */ __name(function getGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Group, fields, params, fetchFirstPage, "/groups"); }, "getGroups") }, { key: "getIdsForApps", value: /* @__PURE__ */ __name(function getIdsForApps(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(UserIDForApp, fields, params, fetchFirstPage, "/ids_for_apps"); }, "getIdsForApps") }, { key: "getIdsForBusiness", value: /* @__PURE__ */ __name(function getIdsForBusiness(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(UserIDForApp, fields, params, fetchFirstPage, "/ids_for_business"); }, "getIdsForBusiness") }, { key: "getIdsForPages", value: /* @__PURE__ */ __name(function getIdsForPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(UserIDForPage, fields, params, fetchFirstPage, "/ids_for_pages"); }, "getIdsForPages") }, { key: "getLikes", value: /* @__PURE__ */ __name(function getLikes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/likes"); }, "getLikes") }, { key: "getLiveVideos", value: /* @__PURE__ */ __name(function getLiveVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(LiveVideo, fields, params, fetchFirstPage, "/live_videos"); }, "getLiveVideos") }, { key: "createLiveVideo", value: /* @__PURE__ */ __name(function createLiveVideo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/live_videos", fields, params, LiveVideo, pathOverride); }, "createLiveVideo") }, { key: "createMessengerDesktopPerformanceTrace", value: /* @__PURE__ */ __name(function createMessengerDesktopPerformanceTrace(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/messenger_desktop_performance_traces", fields, params, User3, pathOverride); }, "createMessengerDesktopPerformanceTrace") }, { key: "getMusic", value: /* @__PURE__ */ __name(function getMusic(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/music"); }, "getMusic") }, { key: "createNotification", value: /* @__PURE__ */ __name(function createNotification(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/notifications", fields, params, User3, pathOverride); }, "createNotification") }, { key: "getPaymentTransactions", value: /* @__PURE__ */ __name(function getPaymentTransactions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PaymentEnginePayment, fields, params, fetchFirstPage, "/payment_transactions"); }, "getPaymentTransactions") }, { key: "deletePermissions", value: /* @__PURE__ */ __name(function deletePermissions() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(User3.prototype.__proto__ || Object.getPrototypeOf(User3.prototype), "deleteEdge", this).call(this, "/permissions", params); }, "deletePermissions") }, { key: "getPermissions", value: /* @__PURE__ */ __name(function getPermissions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Permission, fields, params, fetchFirstPage, "/permissions"); }, "getPermissions") }, { key: "getPersonalAdAccounts", value: /* @__PURE__ */ __name(function getPersonalAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/personal_ad_accounts"); }, "getPersonalAdAccounts") }, { key: "getPhotos", value: /* @__PURE__ */ __name(function getPhotos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Photo, fields, params, fetchFirstPage, "/photos"); }, "getPhotos") }, { key: "createPhoto", value: /* @__PURE__ */ __name(function createPhoto(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/photos", fields, params, Photo, pathOverride); }, "createPhoto") }, { key: "getPicture", value: /* @__PURE__ */ __name(function getPicture(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProfilePictureSource, fields, params, fetchFirstPage, "/picture"); }, "getPicture") }, { key: "getPosts", value: /* @__PURE__ */ __name(function getPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Post, fields, params, fetchFirstPage, "/posts"); }, "getPosts") }, { key: "getRichMediaDocuments", value: /* @__PURE__ */ __name(function getRichMediaDocuments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Canvas, fields, params, fetchFirstPage, "/rich_media_documents"); }, "getRichMediaDocuments") }, { key: "createStagingResource", value: /* @__PURE__ */ __name(function createStagingResource(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/staging_resources", fields, params, User3, pathOverride); }, "createStagingResource") }, { key: "getVideos", value: /* @__PURE__ */ __name(function getVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdVideo, fields, params, fetchFirstPage, "/videos"); }, "getVideos") }, { key: "createVideo", value: /* @__PURE__ */ __name(function createVideo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/videos", fields, params, AdVideo, pathOverride); }, "createVideo") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(User3.prototype.__proto__ || Object.getPrototypeOf(User3.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(User3.prototype.__proto__ || Object.getPrototypeOf(User3.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ about: "about", age_range: "age_range", avatar_2d_profile_picture: "avatar_2d_profile_picture", birthday: "birthday", community: "community", cover: "cover", currency: "currency", education: "education", email: "email", favorite_athletes: "favorite_athletes", favorite_teams: "favorite_teams", first_name: "first_name", gender: "gender", hometown: "hometown", id: "id", id_for_avatars: "id_for_avatars", inspirational_people: "inspirational_people", install_type: "install_type", installed: "installed", is_guest_user: "is_guest_user", is_work_account: "is_work_account", languages: "languages", last_name: "last_name", link: "link", local_news_megaphone_dismiss_status: "local_news_megaphone_dismiss_status", local_news_subscription_status: "local_news_subscription_status", locale: "locale", location: "location", meeting_for: "meeting_for", middle_name: "middle_name", name: "name", name_format: "name_format", payment_pricepoints: "payment_pricepoints", political: "political", profile_pic: "profile_pic", quotes: "quotes", relationship_status: "relationship_status", shared_login_upgrade_required_by: "shared_login_upgrade_required_by", short_name: "short_name", significant_other: "significant_other", sports: "sports", supports_donate_button_in_live_video: "supports_donate_button_in_live_video", third_party_id: "third_party_id", timezone: "timezone", token_for_business: "token_for_business", updated_time: "updated_time", verified: "verified", video_upload_limits: "video_upload_limits", website: "website" }); }, "get") }, { key: "LocalNewsMegaphoneDismissStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ no: "NO", yes: "YES" }); }, "get") }, { key: "LocalNewsSubscriptionStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ status_off: "STATUS_OFF", status_on: "STATUS_ON" }); }, "get") }, { key: "Filtering", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ema: "ema", groups: "groups", groups_social: "groups_social" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ content_update: "content_update", generic: "generic" }); }, "get") }]); return User3; }(AbstractCrudObject); var LiveVideoError = function(_AbstractCrudObject) { inherits(LiveVideoError2, _AbstractCrudObject); function LiveVideoError2() { classCallCheck(this, LiveVideoError2); return possibleConstructorReturn(this, (LiveVideoError2.__proto__ || Object.getPrototypeOf(LiveVideoError2)).apply(this, arguments)); } __name(LiveVideoError2, "LiveVideoError"); createClass(LiveVideoError2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ creation_time: "creation_time", error_code: "error_code", error_message: "error_message", error_type: "error_type", id: "id" }); }, "get") }]); return LiveVideoError2; }(AbstractCrudObject); var LiveVideoInputStream = function(_AbstractCrudObject) { inherits(LiveVideoInputStream2, _AbstractCrudObject); function LiveVideoInputStream2() { classCallCheck(this, LiveVideoInputStream2); return possibleConstructorReturn(this, (LiveVideoInputStream2.__proto__ || Object.getPrototypeOf(LiveVideoInputStream2)).apply(this, arguments)); } __name(LiveVideoInputStream2, "LiveVideoInputStream"); createClass(LiveVideoInputStream2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ dash_ingest_url: "dash_ingest_url", dash_preview_url: "dash_preview_url", id: "id", is_master: "is_master", secure_stream_url: "secure_stream_url", stream_health: "stream_health", stream_id: "stream_id", stream_url: "stream_url" }); }, "get") }]); return LiveVideoInputStream2; }(AbstractCrudObject); var VideoPoll = function(_AbstractCrudObject) { inherits(VideoPoll2, _AbstractCrudObject); function VideoPoll2() { classCallCheck(this, VideoPoll2); return possibleConstructorReturn(this, (VideoPoll2.__proto__ || Object.getPrototypeOf(VideoPoll2)).apply(this, arguments)); } __name(VideoPoll2, "VideoPoll"); createClass(VideoPoll2, [{ key: "getPollOptions", value: /* @__PURE__ */ __name(function getPollOptions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/poll_options"); }, "getPollOptions") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(VideoPoll2.prototype.__proto__ || Object.getPrototypeOf(VideoPoll2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ close_after_voting: "close_after_voting", default_open: "default_open", id: "id", question: "question", show_gradient: "show_gradient", show_results: "show_results", status: "status" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ closed: "closed", results_open: "results_open", voting_open: "voting_open" }); }, "get") }, { key: "Action", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ attach_to_video: "ATTACH_TO_VIDEO", close: "CLOSE", delete_poll: "DELETE_POLL", show_results: "SHOW_RESULTS", show_voting: "SHOW_VOTING" }); }, "get") }]); return VideoPoll2; }(AbstractCrudObject); var LiveVideo = function(_AbstractCrudObject) { inherits(LiveVideo2, _AbstractCrudObject); function LiveVideo2() { classCallCheck(this, LiveVideo2); return possibleConstructorReturn(this, (LiveVideo2.__proto__ || Object.getPrototypeOf(LiveVideo2)).apply(this, arguments)); } __name(LiveVideo2, "LiveVideo"); createClass(LiveVideo2, [{ key: "getBlockedUsers", value: /* @__PURE__ */ __name(function getBlockedUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(User2, fields, params, fetchFirstPage, "/blocked_users"); }, "getBlockedUsers") }, { key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Comment, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "getCrosspostSharedPages", value: /* @__PURE__ */ __name(function getCrosspostSharedPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/crosspost_shared_pages"); }, "getCrosspostSharedPages") }, { key: "getCrosspostedBroadcasts", value: /* @__PURE__ */ __name(function getCrosspostedBroadcasts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(LiveVideo2, fields, params, fetchFirstPage, "/crossposted_broadcasts"); }, "getCrosspostedBroadcasts") }, { key: "getErrors", value: /* @__PURE__ */ __name(function getErrors(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(LiveVideoError, fields, params, fetchFirstPage, "/errors"); }, "getErrors") }, { key: "createInputStream", value: /* @__PURE__ */ __name(function createInputStream(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/input_streams", fields, params, LiveVideoInputStream, pathOverride); }, "createInputStream") }, { key: "getPolls", value: /* @__PURE__ */ __name(function getPolls(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(VideoPoll, fields, params, fetchFirstPage, "/polls"); }, "getPolls") }, { key: "createPoll", value: /* @__PURE__ */ __name(function createPoll(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/polls", fields, params, VideoPoll, pathOverride); }, "createPoll") }, { key: "getReactions", value: /* @__PURE__ */ __name(function getReactions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/reactions"); }, "getReactions") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(LiveVideo2.prototype.__proto__ || Object.getPrototypeOf(LiveVideo2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(LiveVideo2.prototype.__proto__ || Object.getPrototypeOf(LiveVideo2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_break_config: "ad_break_config", ad_break_failure_reason: "ad_break_failure_reason", broadcast_start_time: "broadcast_start_time", copyright: "copyright", creation_time: "creation_time", dash_ingest_url: "dash_ingest_url", dash_preview_url: "dash_preview_url", description: "description", embed_html: "embed_html", from: "from", id: "id", ingest_streams: "ingest_streams", is_manual_mode: "is_manual_mode", is_reference_only: "is_reference_only", live_views: "live_views", overlay_url: "overlay_url", permalink_url: "permalink_url", planned_start_time: "planned_start_time", recommended_encoder_settings: "recommended_encoder_settings", seconds_left: "seconds_left", secure_stream_url: "secure_stream_url", status: "status", stream_url: "stream_url", targeting: "targeting", title: "title", total_views: "total_views", video: "video" }); }, "get") }, { key: "Projection", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ cubemap: "CUBEMAP", equirectangular: "EQUIRECTANGULAR", half_equirectangular: "HALF_EQUIRECTANGULAR" }); }, "get") }, { key: "SpatialAudioFormat", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ambix_4: "ambiX_4" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ live_now: "LIVE_NOW", scheduled_canceled: "SCHEDULED_CANCELED", scheduled_live: "SCHEDULED_LIVE", scheduled_unpublished: "SCHEDULED_UNPUBLISHED", unpublished: "UNPUBLISHED" }); }, "get") }, { key: "StereoscopicMode", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ left_right: "LEFT_RIGHT", mono: "MONO", top_bottom: "TOP_BOTTOM" }); }, "get") }, { key: "StreamType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ambient: "AMBIENT", regular: "REGULAR" }); }, "get") }, { key: "BroadcastStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ live: "LIVE", live_stopped: "LIVE_STOPPED", processing: "PROCESSING", scheduled_canceled: "SCHEDULED_CANCELED", scheduled_expired: "SCHEDULED_EXPIRED", scheduled_live: "SCHEDULED_LIVE", scheduled_unpublished: "SCHEDULED_UNPUBLISHED", unpublished: "UNPUBLISHED", vod: "VOD" }); }, "get") }, { key: "Source", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ owner: "owner", target: "target" }); }, "get") }, { key: "LiveCommentModerationSetting", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ default: "DEFAULT", discussion: "DISCUSSION", followed: "FOLLOWED", follower: "FOLLOWER", no_hyperlink: "NO_HYPERLINK", protected_mode: "PROTECTED_MODE", restricted: "RESTRICTED", slow: "SLOW", supporter: "SUPPORTER", tagged: "TAGGED" }); }, "get") }, { key: "PersistentStreamKeyStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ disable: "DISABLE", enable: "ENABLE", regenerate: "REGENERATE" }); }, "get") }]); return LiveVideo2; }(AbstractCrudObject); var Event = function(_AbstractCrudObject) { inherits(Event2, _AbstractCrudObject); function Event2() { classCallCheck(this, Event2); return possibleConstructorReturn(this, (Event2.__proto__ || Object.getPrototypeOf(Event2)).apply(this, arguments)); } __name(Event2, "Event"); createClass(Event2, [{ key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(NullNode, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "getFeed", value: /* @__PURE__ */ __name(function getFeed(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(NullNode, fields, params, fetchFirstPage, "/feed"); }, "getFeed") }, { key: "getLiveVideos", value: /* @__PURE__ */ __name(function getLiveVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(NullNode, fields, params, fetchFirstPage, "/live_videos"); }, "getLiveVideos") }, { key: "createLiveVideo", value: /* @__PURE__ */ __name(function createLiveVideo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/live_videos", fields, params, LiveVideo, pathOverride); }, "createLiveVideo") }, { key: "getPhotos", value: /* @__PURE__ */ __name(function getPhotos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(NullNode, fields, params, fetchFirstPage, "/photos"); }, "getPhotos") }, { key: "getPicture", value: /* @__PURE__ */ __name(function getPicture(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(NullNode, fields, params, fetchFirstPage, "/picture"); }, "getPicture") }, { key: "getPosts", value: /* @__PURE__ */ __name(function getPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(NullNode, fields, params, fetchFirstPage, "/posts"); }, "getPosts") }, { key: "getRoles", value: /* @__PURE__ */ __name(function getRoles(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/roles"); }, "getRoles") }, { key: "getTicketTiers", value: /* @__PURE__ */ __name(function getTicketTiers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/ticket_tiers"); }, "getTicketTiers") }, { key: "getVideos", value: /* @__PURE__ */ __name(function getVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(NullNode, fields, params, fetchFirstPage, "/videos"); }, "getVideos") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ attending_count: "attending_count", can_guests_invite: "can_guests_invite", category: "category", cover: "cover", created_time: "created_time", declined_count: "declined_count", description: "description", discount_code_enabled: "discount_code_enabled", end_time: "end_time", event_times: "event_times", guest_list_enabled: "guest_list_enabled", id: "id", interested_count: "interested_count", is_canceled: "is_canceled", is_draft: "is_draft", is_online: "is_online", is_page_owned: "is_page_owned", maybe_count: "maybe_count", name: "name", noreply_count: "noreply_count", online_event_format: "online_event_format", online_event_third_party_url: "online_event_third_party_url", owner: "owner", parent_group: "parent_group", place: "place", registration_setting: "registration_setting", scheduled_publish_time: "scheduled_publish_time", start_time: "start_time", ticket_setting: "ticket_setting", ticket_uri: "ticket_uri", ticket_uri_start_sales_time: "ticket_uri_start_sales_time", ticketing_privacy_uri: "ticketing_privacy_uri", ticketing_terms_uri: "ticketing_terms_uri", timezone: "timezone", type: "type", updated_time: "updated_time" }); }, "get") }, { key: "Category", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ classic_literature: "CLASSIC_LITERATURE", comedy: "COMEDY", crafts: "CRAFTS", dance: "DANCE", drinks: "DRINKS", fitness_and_workouts: "FITNESS_AND_WORKOUTS", foods: "FOODS", games: "GAMES", gardening: "GARDENING", healthy_living_and_self_care: "HEALTHY_LIVING_AND_SELF_CARE", health_and_medical: "HEALTH_AND_MEDICAL", home_and_garden: "HOME_AND_GARDEN", music_and_audio: "MUSIC_AND_AUDIO", parties: "PARTIES", professional_networking: "PROFESSIONAL_NETWORKING", religions: "RELIGIONS", shopping_event: "SHOPPING_EVENT", social_issues: "SOCIAL_ISSUES", sports: "SPORTS", theater: "THEATER", tv_and_movies: "TV_AND_MOVIES", visual_arts: "VISUAL_ARTS" }); }, "get") }, { key: "OnlineEventFormat", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ fb_live: "fb_live", messenger_room: "messenger_room", none: "none", other: "other", third_party: "third_party" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ community: "community", friends: "friends", group: "group", private: "private", public: "public", work_company: "work_company" }); }, "get") }, { key: "EventStateFilter", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ canceled: "canceled", draft: "draft", published: "published", scheduled_draft_for_publication: "scheduled_draft_for_publication" }); }, "get") }, { key: "TimeFilter", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ past: "past", upcoming: "upcoming" }); }, "get") }]); return Event2; }(AbstractCrudObject); var ImageCopyright = function(_AbstractCrudObject) { inherits(ImageCopyright2, _AbstractCrudObject); function ImageCopyright2() { classCallCheck(this, ImageCopyright2); return possibleConstructorReturn(this, (ImageCopyright2.__proto__ || Object.getPrototypeOf(ImageCopyright2)).apply(this, arguments)); } __name(ImageCopyright2, "ImageCopyright"); createClass(ImageCopyright2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ImageCopyright2.prototype.__proto__ || Object.getPrototypeOf(ImageCopyright2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ artist: "artist", copyright_monitoring_status: "copyright_monitoring_status", creation_time: "creation_time", creator: "creator", custom_id: "custom_id", description: "description", filename: "filename", id: "id", image: "image", matches_count: "matches_count", original_content_creation_date: "original_content_creation_date", ownership_countries: "ownership_countries", tags: "tags", title: "title", update_time: "update_time" }); }, "get") }, { key: "GeoOwnership", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad: "AD", ae: "AE", af: "AF", ag: "AG", ai: "AI", al: "AL", am: "AM", an: "AN", ao: "AO", aq: "AQ", ar: "AR", as: "AS", at: "AT", au: "AU", aw: "AW", ax: "AX", az: "AZ", ba: "BA", bb: "BB", bd: "BD", be: "BE", bf: "BF", bg: "BG", bh: "BH", bi: "BI", bj: "BJ", bl: "BL", bm: "BM", bn: "BN", bo: "BO", bq: "BQ", br: "BR", bs: "BS", bt: "BT", bv: "BV", bw: "BW", by: "BY", bz: "BZ", ca: "CA", cc: "CC", cd: "CD", cf: "CF", cg: "CG", ch: "CH", ci: "CI", ck: "CK", cl: "CL", cm: "CM", cn: "CN", co: "CO", cr: "CR", cu: "CU", cv: "CV", cw: "CW", cx: "CX", cy: "CY", cz: "CZ", de: "DE", dj: "DJ", dk: "DK", dm: "DM", do: "DO", dz: "DZ", ec: "EC", ee: "EE", eg: "EG", eh: "EH", er: "ER", es: "ES", et: "ET", fi: "FI", fj: "FJ", fk: "FK", fm: "FM", fo: "FO", fr: "FR", ga: "GA", gb: "GB", gd: "GD", ge: "GE", gf: "GF", gg: "GG", gh: "GH", gi: "GI", gl: "GL", gm: "GM", gn: "GN", gp: "GP", gq: "GQ", gr: "GR", gs: "GS", gt: "GT", gu: "GU", gw: "GW", gy: "GY", hk: "HK", hm: "HM", hn: "HN", hr: "HR", ht: "HT", hu: "HU", id: "ID", ie: "IE", il: "IL", im: "IM", in: "IN", io: "IO", iq: "IQ", ir: "IR", is: "IS", it: "IT", je: "JE", jm: "JM", jo: "JO", jp: "JP", ke: "KE", kg: "KG", kh: "KH", ki: "KI", km: "KM", kn: "KN", kp: "KP", kr: "KR", kw: "KW", ky: "KY", kz: "KZ", la: "LA", lb: "LB", lc: "LC", li: "LI", lk: "LK", lr: "LR", ls: "LS", lt: "LT", lu: "LU", lv: "LV", ly: "LY", ma: "MA", mc: "MC", md: "MD", me: "ME", mf: "MF", mg: "MG", mh: "MH", mk: "MK", ml: "ML", mm: "MM", mn: "MN", mo: "MO", mp: "MP", mq: "MQ", mr: "MR", ms: "MS", mt: "MT", mu: "MU", mv: "MV", mw: "MW", mx: "MX", my: "MY", mz: "MZ", na: "NA", nc: "NC", ne: "NE", nf: "NF", ng: "NG", ni: "NI", nl: "NL", no: "NO", np: "NP", nr: "NR", nu: "NU", nz: "NZ", om: "OM", pa: "PA", pe: "PE", pf: "PF", pg: "PG", ph: "PH", pk: "PK", pl: "PL", pm: "PM", pn: "PN", pr: "PR", ps: "PS", pt: "PT", pw: "PW", py: "PY", qa: "QA", re: "RE", ro: "RO", rs: "RS", ru: "RU", rw: "RW", sa: "SA", sb: "SB", sc: "SC", sd: "SD", se: "SE", sg: "SG", sh: "SH", si: "SI", sj: "SJ", sk: "SK", sl: "SL", sm: "SM", sn: "SN", so: "SO", sr: "SR", ss: "SS", st: "ST", sv: "SV", sx: "SX", sy: "SY", sz: "SZ", tc: "TC", td: "TD", tf: "TF", tg: "TG", th: "TH", tj: "TJ", tk: "TK", tl: "TL", tm: "TM", tn: "TN", to: "TO", tp: "TP", tr: "TR", tt: "TT", tv: "TV", tw: "TW", tz: "TZ", ua: "UA", ug: "UG", um: "UM", us: "US", uy: "UY", uz: "UZ", va: "VA", vc: "VC", ve: "VE", vg: "VG", vi: "VI", vn: "VN", vu: "VU", wf: "WF", ws: "WS", xk: "XK", ye: "YE", yt: "YT", za: "ZA", zm: "ZM", zw: "ZW" }); }, "get") }]); return ImageCopyright2; }(AbstractCrudObject); var LeadgenForm = function(_AbstractCrudObject) { inherits(LeadgenForm2, _AbstractCrudObject); function LeadgenForm2() { classCallCheck(this, LeadgenForm2); return possibleConstructorReturn(this, (LeadgenForm2.__proto__ || Object.getPrototypeOf(LeadgenForm2)).apply(this, arguments)); } __name(LeadgenForm2, "LeadgenForm"); createClass(LeadgenForm2, [{ key: "getLeads", value: /* @__PURE__ */ __name(function getLeads(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Lead, fields, params, fetchFirstPage, "/leads"); }, "getLeads") }, { key: "getTestLeads", value: /* @__PURE__ */ __name(function getTestLeads(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Lead, fields, params, fetchFirstPage, "/test_leads"); }, "getTestLeads") }, { key: "createTestLead", value: /* @__PURE__ */ __name(function createTestLead(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/test_leads", fields, params, Lead, pathOverride); }, "createTestLead") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(LeadgenForm2.prototype.__proto__ || Object.getPrototypeOf(LeadgenForm2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ allow_organic_lead: "allow_organic_lead", block_display_for_non_targeted_viewer: "block_display_for_non_targeted_viewer", context_card: "context_card", created_time: "created_time", creator: "creator", expired_leads_count: "expired_leads_count", follow_up_action_text: "follow_up_action_text", follow_up_action_url: "follow_up_action_url", id: "id", is_optimized_for_quality: "is_optimized_for_quality", leads_count: "leads_count", legal_content: "legal_content", locale: "locale", name: "name", organic_leads_count: "organic_leads_count", page: "page", page_id: "page_id", privacy_policy_url: "privacy_policy_url", question_page_custom_headline: "question_page_custom_headline", questions: "questions", status: "status", thank_you_page: "thank_you_page", tracking_parameters: "tracking_parameters" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", archived: "ARCHIVED", deleted: "DELETED", draft: "DRAFT" }); }, "get") }, { key: "Locale", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ar_ar: "AR_AR", cs_cz: "CS_CZ", da_dk: "DA_DK", de_de: "DE_DE", el_gr: "EL_GR", en_gb: "EN_GB", en_us: "EN_US", es_es: "ES_ES", es_la: "ES_LA", fi_fi: "FI_FI", fr_fr: "FR_FR", he_il: "HE_IL", hi_in: "HI_IN", hu_hu: "HU_HU", id_id: "ID_ID", it_it: "IT_IT", ja_jp: "JA_JP", ko_kr: "KO_KR", nb_no: "NB_NO", nl_nl: "NL_NL", pl_pl: "PL_PL", pt_br: "PT_BR", pt_pt: "PT_PT", ro_ro: "RO_RO", ru_ru: "RU_RU", sv_se: "SV_SE", th_th: "TH_TH", tr_tr: "TR_TR", vi_vn: "VI_VN", zh_cn: "ZH_CN", zh_hk: "ZH_HK", zh_tw: "ZH_TW" }); }, "get") }]); return LeadgenForm2; }(AbstractCrudObject); var MediaFingerprint = function(_AbstractCrudObject) { inherits(MediaFingerprint2, _AbstractCrudObject); function MediaFingerprint2() { classCallCheck(this, MediaFingerprint2); return possibleConstructorReturn(this, (MediaFingerprint2.__proto__ || Object.getPrototypeOf(MediaFingerprint2)).apply(this, arguments)); } __name(MediaFingerprint2, "MediaFingerprint"); createClass(MediaFingerprint2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(MediaFingerprint2.prototype.__proto__ || Object.getPrototypeOf(MediaFingerprint2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ duration_in_sec: "duration_in_sec", fingerprint_content_type: "fingerprint_content_type", fingerprint_type: "fingerprint_type", id: "id", metadata: "metadata", title: "title", universal_content_id: "universal_content_id" }); }, "get") }, { key: "FingerprintContentType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ am_songtrack: "AM_SONGTRACK", episode: "EPISODE", movie: "MOVIE", other: "OTHER", songtrack: "SONGTRACK" }); }, "get") }]); return MediaFingerprint2; }(AbstractCrudObject); var MessagingFeatureReview = function(_AbstractCrudObject) { inherits(MessagingFeatureReview2, _AbstractCrudObject); function MessagingFeatureReview2() { classCallCheck(this, MessagingFeatureReview2); return possibleConstructorReturn(this, (MessagingFeatureReview2.__proto__ || Object.getPrototypeOf(MessagingFeatureReview2)).apply(this, arguments)); } __name(MessagingFeatureReview2, "MessagingFeatureReview"); createClass(MessagingFeatureReview2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ feature: "feature", status: "status" }); }, "get") }]); return MessagingFeatureReview2; }(AbstractCrudObject); var MessengerAdsPartialAutomatedStepList = function(_AbstractCrudObject) { inherits(MessengerAdsPartialAutomatedStepList2, _AbstractCrudObject); function MessengerAdsPartialAutomatedStepList2() { classCallCheck(this, MessengerAdsPartialAutomatedStepList2); return possibleConstructorReturn(this, (MessengerAdsPartialAutomatedStepList2.__proto__ || Object.getPrototypeOf(MessengerAdsPartialAutomatedStepList2)).apply(this, arguments)); } __name(MessengerAdsPartialAutomatedStepList2, "MessengerAdsPartialAutomatedStepList"); createClass(MessengerAdsPartialAutomatedStepList2, [{ key: "getSteps", value: /* @__PURE__ */ __name(function getSteps(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/steps"); }, "getSteps") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ fblead_form: "fblead_form", first_step_id: "first_step_id", id: "id", page: "page", privacy_url: "privacy_url", reminder_text: "reminder_text", stop_question_message: "stop_question_message" }); }, "get") }]); return MessengerAdsPartialAutomatedStepList2; }(AbstractCrudObject); var MessengerProfile = function(_AbstractCrudObject) { inherits(MessengerProfile2, _AbstractCrudObject); function MessengerProfile2() { classCallCheck(this, MessengerProfile2); return possibleConstructorReturn(this, (MessengerProfile2.__proto__ || Object.getPrototypeOf(MessengerProfile2)).apply(this, arguments)); } __name(MessengerProfile2, "MessengerProfile"); createClass(MessengerProfile2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_linking_url: "account_linking_url", commands: "commands", get_started: "get_started", greeting: "greeting", ice_breakers: "ice_breakers", payment_settings: "payment_settings", persistent_menu: "persistent_menu", subject_to_new_eu_privacy_rules: "subject_to_new_eu_privacy_rules", target_audience: "target_audience", whitelisted_domains: "whitelisted_domains" }); }, "get") }]); return MessengerProfile2; }(AbstractCrudObject); var UserPageOneTimeOptInTokenSettings = function(_AbstractCrudObject) { inherits(UserPageOneTimeOptInTokenSettings2, _AbstractCrudObject); function UserPageOneTimeOptInTokenSettings2() { classCallCheck(this, UserPageOneTimeOptInTokenSettings2); return possibleConstructorReturn(this, (UserPageOneTimeOptInTokenSettings2.__proto__ || Object.getPrototypeOf(UserPageOneTimeOptInTokenSettings2)).apply(this, arguments)); } __name(UserPageOneTimeOptInTokenSettings2, "UserPageOneTimeOptInTokenSettings"); createClass(UserPageOneTimeOptInTokenSettings2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ creation_timestamp: "creation_timestamp", next_eligible_time: "next_eligible_time", notification_messages_frequency: "notification_messages_frequency", notification_messages_reoptin: "notification_messages_reoptin", notification_messages_timezone: "notification_messages_timezone", notification_messages_token: "notification_messages_token", recipient_id: "recipient_id", token_expiry_timestamp: "token_expiry_timestamp", topic_title: "topic_title", user_token_status: "user_token_status", id: "id" }); }, "get") }]); return UserPageOneTimeOptInTokenSettings2; }(AbstractCrudObject); var Persona = function(_AbstractCrudObject) { inherits(Persona2, _AbstractCrudObject); function Persona2() { classCallCheck(this, Persona2); return possibleConstructorReturn(this, (Persona2.__proto__ || Object.getPrototypeOf(Persona2)).apply(this, arguments)); } __name(Persona2, "Persona"); createClass(Persona2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Persona2.prototype.__proto__ || Object.getPrototypeOf(Persona2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name", profile_picture_url: "profile_picture_url" }); }, "get") }]); return Persona2; }(AbstractCrudObject); var Recommendation = function(_AbstractCrudObject) { inherits(Recommendation2, _AbstractCrudObject); function Recommendation2() { classCallCheck(this, Recommendation2); return possibleConstructorReturn(this, (Recommendation2.__proto__ || Object.getPrototypeOf(Recommendation2)).apply(this, arguments)); } __name(Recommendation2, "Recommendation"); createClass(Recommendation2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ created_time: "created_time", has_rating: "has_rating", has_review: "has_review", open_graph_story: "open_graph_story", rating: "rating", recommendation_type: "recommendation_type", review_text: "review_text", reviewer: "reviewer" }); }, "get") }]); return Recommendation2; }(AbstractCrudObject); var PageSettings = function(_AbstractCrudObject) { inherits(PageSettings2, _AbstractCrudObject); function PageSettings2() { classCallCheck(this, PageSettings2); return possibleConstructorReturn(this, (PageSettings2.__proto__ || Object.getPrototypeOf(PageSettings2)).apply(this, arguments)); } __name(PageSettings2, "PageSettings"); createClass(PageSettings2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ setting: "setting", value: "value" }); }, "get") }]); return PageSettings2; }(AbstractCrudObject); var Stories = function(_AbstractCrudObject) { inherits(Stories2, _AbstractCrudObject); function Stories2() { classCallCheck(this, Stories2); return possibleConstructorReturn(this, (Stories2.__proto__ || Object.getPrototypeOf(Stories2)).apply(this, arguments)); } __name(Stories2, "Stories"); createClass(Stories2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ creation_time: "creation_time", media_id: "media_id", media_type: "media_type", post_id: "post_id", status: "status", url: "url" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ archived: "ARCHIVED", published: "PUBLISHED" }); }, "get") }]); return Stories2; }(AbstractCrudObject); var Tab = function(_AbstractCrudObject) { inherits(Tab2, _AbstractCrudObject); function Tab2() { classCallCheck(this, Tab2); return possibleConstructorReturn(this, (Tab2.__proto__ || Object.getPrototypeOf(Tab2)).apply(this, arguments)); } __name(Tab2, "Tab"); createClass(Tab2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ application: "application", custom_image_url: "custom_image_url", custom_name: "custom_name", id: "id", image_url: "image_url", is_non_connection_landing_tab: "is_non_connection_landing_tab", is_permanent: "is_permanent", link: "link", name: "name", position: "position" }); }, "get") }]); return Tab2; }(AbstractCrudObject); var PageThreadOwner = function(_AbstractCrudObject) { inherits(PageThreadOwner2, _AbstractCrudObject); function PageThreadOwner2() { classCallCheck(this, PageThreadOwner2); return possibleConstructorReturn(this, (PageThreadOwner2.__proto__ || Object.getPrototypeOf(PageThreadOwner2)).apply(this, arguments)); } __name(PageThreadOwner2, "PageThreadOwner"); createClass(PageThreadOwner2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ thread_owner: "thread_owner" }); }, "get") }]); return PageThreadOwner2; }(AbstractCrudObject); var VideoCopyrightRule = function(_AbstractCrudObject) { inherits(VideoCopyrightRule2, _AbstractCrudObject); function VideoCopyrightRule2() { classCallCheck(this, VideoCopyrightRule2); return possibleConstructorReturn(this, (VideoCopyrightRule2.__proto__ || Object.getPrototypeOf(VideoCopyrightRule2)).apply(this, arguments)); } __name(VideoCopyrightRule2, "VideoCopyrightRule"); createClass(VideoCopyrightRule2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ condition_groups: "condition_groups", copyrights: "copyrights", created_date: "created_date", creator: "creator", id: "id", is_in_migration: "is_in_migration", name: "name" }); }, "get") }, { key: "Source", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ match_settings_dialog: "MATCH_SETTINGS_DIALOG", rules_selector: "RULES_SELECTOR", rules_tab: "RULES_TAB" }); }, "get") }]); return VideoCopyrightRule2; }(AbstractCrudObject); var VideoCopyright = function(_AbstractCrudObject) { inherits(VideoCopyright2, _AbstractCrudObject); function VideoCopyright2() { classCallCheck(this, VideoCopyright2); return possibleConstructorReturn(this, (VideoCopyright2.__proto__ || Object.getPrototypeOf(VideoCopyright2)).apply(this, arguments)); } __name(VideoCopyright2, "VideoCopyright"); createClass(VideoCopyright2, [{ key: "getUpdateRecords", value: /* @__PURE__ */ __name(function getUpdateRecords(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/update_records"); }, "getUpdateRecords") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(VideoCopyright2.prototype.__proto__ || Object.getPrototypeOf(VideoCopyright2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ content_category: "content_category", copyright_content_id: "copyright_content_id", creator: "creator", excluded_ownership_segments: "excluded_ownership_segments", id: "id", in_conflict: "in_conflict", monitoring_status: "monitoring_status", monitoring_type: "monitoring_type", ownership_countries: "ownership_countries", reference_file: "reference_file", reference_file_disabled: "reference_file_disabled", reference_file_disabled_by_ops: "reference_file_disabled_by_ops", reference_owner_id: "reference_owner_id", rule_ids: "rule_ids", tags: "tags", whitelisted_ids: "whitelisted_ids" }); }, "get") }, { key: "ContentCategory", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ episode: "episode", movie: "movie", web: "web" }); }, "get") }, { key: "MonitoringType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ audio_only: "AUDIO_ONLY", video_and_audio: "VIDEO_AND_AUDIO", video_only: "VIDEO_ONLY" }); }, "get") }]); return VideoCopyright2; }(AbstractCrudObject); var VideoList = function(_AbstractCrudObject) { inherits(VideoList2, _AbstractCrudObject); function VideoList2() { classCallCheck(this, VideoList2); return possibleConstructorReturn(this, (VideoList2.__proto__ || Object.getPrototypeOf(VideoList2)).apply(this, arguments)); } __name(VideoList2, "VideoList"); createClass(VideoList2, [{ key: "getVideos", value: /* @__PURE__ */ __name(function getVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdVideo, fields, params, fetchFirstPage, "/videos"); }, "getVideos") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ creation_time: "creation_time", description: "description", id: "id", last_modified: "last_modified", owner: "owner", season_number: "season_number", thumbnail: "thumbnail", title: "title", videos_count: "videos_count" }); }, "get") }]); return VideoList2; }(AbstractCrudObject); var CTXPartnerAppWelcomeMessageFlow = function(_AbstractCrudObject) { inherits(CTXPartnerAppWelcomeMessageFlow2, _AbstractCrudObject); function CTXPartnerAppWelcomeMessageFlow2() { classCallCheck(this, CTXPartnerAppWelcomeMessageFlow2); return possibleConstructorReturn(this, (CTXPartnerAppWelcomeMessageFlow2.__proto__ || Object.getPrototypeOf(CTXPartnerAppWelcomeMessageFlow2)).apply(this, arguments)); } __name(CTXPartnerAppWelcomeMessageFlow2, "CTXPartnerAppWelcomeMessageFlow"); createClass(CTXPartnerAppWelcomeMessageFlow2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ compatible_platforms: "compatible_platforms", eligible_platforms: "eligible_platforms", id: "id", is_used_in_ad: "is_used_in_ad", last_update_time: "last_update_time", name: "name", welcome_message_flow: "welcome_message_flow" }); }, "get") }]); return CTXPartnerAppWelcomeMessageFlow2; }(AbstractCrudObject); var Page = function(_AbstractCrudObject) { inherits(Page2, _AbstractCrudObject); function Page2() { classCallCheck(this, Page2); return possibleConstructorReturn(this, (Page2.__proto__ || Object.getPrototypeOf(Page2)).apply(this, arguments)); } __name(Page2, "Page"); createClass(Page2, [{ key: "getAbTests", value: /* @__PURE__ */ __name(function getAbTests(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PagePostExperiment, fields, params, fetchFirstPage, "/ab_tests"); }, "getAbTests") }, { key: "createAbTest", value: /* @__PURE__ */ __name(function createAbTest(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/ab_tests", fields, params, PagePostExperiment, pathOverride); }, "createAbTest") }, { key: "createAcknowledgeOrder", value: /* @__PURE__ */ __name(function createAcknowledgeOrder(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/acknowledge_orders", fields, params, Page2, pathOverride); }, "createAcknowledgeOrder") }, { key: "getAdsPosts", value: /* @__PURE__ */ __name(function getAdsPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PagePost, fields, params, fetchFirstPage, "/ads_posts"); }, "getAdsPosts") }, { key: "deleteAgencies", value: /* @__PURE__ */ __name(function deleteAgencies() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Page2.prototype.__proto__ || Object.getPrototypeOf(Page2.prototype), "deleteEdge", this).call(this, "/agencies", params); }, "deleteAgencies") }, { key: "getAgencies", value: /* @__PURE__ */ __name(function getAgencies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/agencies"); }, "getAgencies") }, { key: "createAgency", value: /* @__PURE__ */ __name(function createAgency(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/agencies", fields, params, Page2, pathOverride); }, "createAgency") }, { key: "getAlbums", value: /* @__PURE__ */ __name(function getAlbums(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Album, fields, params, fetchFirstPage, "/albums"); }, "getAlbums") }, { key: "getArExperience", value: /* @__PURE__ */ __name(function getArExperience(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/ar_experience"); }, "getArExperience") }, { key: "deleteAssignedUsers", value: /* @__PURE__ */ __name(function deleteAssignedUsers() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Page2.prototype.__proto__ || Object.getPrototypeOf(Page2.prototype), "deleteEdge", this).call(this, "/assigned_users", params); }, "deleteAssignedUsers") }, { key: "getAssignedUsers", value: /* @__PURE__ */ __name(function getAssignedUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AssignedUser, fields, params, fetchFirstPage, "/assigned_users"); }, "getAssignedUsers") }, { key: "createAssignedUser", value: /* @__PURE__ */ __name(function createAssignedUser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/assigned_users", fields, params, Page2, pathOverride); }, "createAssignedUser") }, { key: "deleteBlocked", value: /* @__PURE__ */ __name(function deleteBlocked() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Page2.prototype.__proto__ || Object.getPrototypeOf(Page2.prototype), "deleteEdge", this).call(this, "/blocked", params); }, "deleteBlocked") }, { key: "getBlocked", value: /* @__PURE__ */ __name(function getBlocked(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/blocked"); }, "getBlocked") }, { key: "createBlocked", value: /* @__PURE__ */ __name(function createBlocked(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/blocked", fields, params, null, pathOverride); }, "createBlocked") }, { key: "createBusinessDatum", value: /* @__PURE__ */ __name(function createBusinessDatum(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/business_data", fields, params, null, pathOverride); }, "createBusinessDatum") }, { key: "getBusinessProjects", value: /* @__PURE__ */ __name(function getBusinessProjects(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/businessprojects"); }, "getBusinessProjects") }, { key: "getCallToActions", value: /* @__PURE__ */ __name(function getCallToActions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PageCallToAction, fields, params, fetchFirstPage, "/call_to_actions"); }, "getCallToActions") }, { key: "getCanvasElements", value: /* @__PURE__ */ __name(function getCanvasElements(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CanvasBodyElement, fields, params, fetchFirstPage, "/canvas_elements"); }, "getCanvasElements") }, { key: "createCanvasElement", value: /* @__PURE__ */ __name(function createCanvasElement(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/canvas_elements", fields, params, CanvasBodyElement, pathOverride); }, "createCanvasElement") }, { key: "getCanvases", value: /* @__PURE__ */ __name(function getCanvases(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Canvas, fields, params, fetchFirstPage, "/canvases"); }, "getCanvases") }, { key: "createCanvase", value: /* @__PURE__ */ __name(function createCanvase(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/canvases", fields, params, Canvas, pathOverride); }, "createCanvase") }, { key: "getChatPlugin", value: /* @__PURE__ */ __name(function getChatPlugin(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ChatPlugin, fields, params, fetchFirstPage, "/chat_plugin"); }, "getChatPlugin") }, { key: "createChatPlugin", value: /* @__PURE__ */ __name(function createChatPlugin(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/chat_plugin", fields, params, Page2, pathOverride); }, "createChatPlugin") }, { key: "getCommerceMerchantSettings", value: /* @__PURE__ */ __name(function getCommerceMerchantSettings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CommerceMerchantSettings, fields, params, fetchFirstPage, "/commerce_merchant_settings"); }, "getCommerceMerchantSettings") }, { key: "getCommerceOrders", value: /* @__PURE__ */ __name(function getCommerceOrders(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CommerceOrder, fields, params, fetchFirstPage, "/commerce_orders"); }, "getCommerceOrders") }, { key: "getCommercePayouts", value: /* @__PURE__ */ __name(function getCommercePayouts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CommercePayout, fields, params, fetchFirstPage, "/commerce_payouts"); }, "getCommercePayouts") }, { key: "getCommerceTransactions", value: /* @__PURE__ */ __name(function getCommerceTransactions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CommerceOrderTransactionDetail, fields, params, fetchFirstPage, "/commerce_transactions"); }, "getCommerceTransactions") }, { key: "getConversations", value: /* @__PURE__ */ __name(function getConversations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(UnifiedThread, fields, params, fetchFirstPage, "/conversations"); }, "getConversations") }, { key: "createCopyrightManualClaim", value: /* @__PURE__ */ __name(function createCopyrightManualClaim(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/copyright_manual_claims", fields, params, null, pathOverride); }, "createCopyrightManualClaim") }, { key: "getCrosspostWhitelistedPages", value: /* @__PURE__ */ __name(function getCrosspostWhitelistedPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page2, fields, params, fetchFirstPage, "/crosspost_whitelisted_pages"); }, "getCrosspostWhitelistedPages") }, { key: "getCustomLabels", value: /* @__PURE__ */ __name(function getCustomLabels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PageUserMessageThreadLabel, fields, params, fetchFirstPage, "/custom_labels"); }, "getCustomLabels") }, { key: "createCustomLabel", value: /* @__PURE__ */ __name(function createCustomLabel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/custom_labels", fields, params, PageUserMessageThreadLabel, pathOverride); }, "createCustomLabel") }, { key: "deleteCustomUserSettings", value: /* @__PURE__ */ __name(function deleteCustomUserSettings() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Page2.prototype.__proto__ || Object.getPrototypeOf(Page2.prototype), "deleteEdge", this).call(this, "/custom_user_settings", params); }, "deleteCustomUserSettings") }, { key: "getCustomUserSettings", value: /* @__PURE__ */ __name(function getCustomUserSettings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomUserSettings, fields, params, fetchFirstPage, "/custom_user_settings"); }, "getCustomUserSettings") }, { key: "createCustomUserSetting", value: /* @__PURE__ */ __name(function createCustomUserSetting(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/custom_user_settings", fields, params, Page2, pathOverride); }, "createCustomUserSetting") }, { key: "getDataset", value: /* @__PURE__ */ __name(function getDataset(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Dataset, fields, params, fetchFirstPage, "/dataset"); }, "getDataset") }, { key: "getEvents", value: /* @__PURE__ */ __name(function getEvents(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Event, fields, params, fetchFirstPage, "/events"); }, "getEvents") }, { key: "createExtendThreadControl", value: /* @__PURE__ */ __name(function createExtendThreadControl(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/extend_thread_control", fields, params, Page2, pathOverride); }, "createExtendThreadControl") }, { key: "getFantasyGames", value: /* @__PURE__ */ __name(function getFantasyGames(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/fantasy_games"); }, "getFantasyGames") }, { key: "getFeed", value: /* @__PURE__ */ __name(function getFeed(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PagePost, fields, params, fetchFirstPage, "/feed"); }, "getFeed") }, { key: "createFeed", value: /* @__PURE__ */ __name(function createFeed(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/feed", fields, params, Page2, pathOverride); }, "createFeed") }, { key: "getGlobalBrandChildren", value: /* @__PURE__ */ __name(function getGlobalBrandChildren(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page2, fields, params, fetchFirstPage, "/global_brand_children"); }, "getGlobalBrandChildren") }, { key: "getGroups", value: /* @__PURE__ */ __name(function getGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Group, fields, params, fetchFirstPage, "/groups"); }, "getGroups") }, { key: "getImageCopyrights", value: /* @__PURE__ */ __name(function getImageCopyrights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ImageCopyright, fields, params, fetchFirstPage, "/image_copyrights"); }, "getImageCopyrights") }, { key: "createImageCopyright", value: /* @__PURE__ */ __name(function createImageCopyright(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/image_copyrights", fields, params, ImageCopyright, pathOverride); }, "createImageCopyright") }, { key: "getIndexedVideos", value: /* @__PURE__ */ __name(function getIndexedVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdVideo, fields, params, fetchFirstPage, "/indexed_videos"); }, "getIndexedVideos") }, { key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InsightsResult, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "getInstagramAccounts", value: /* @__PURE__ */ __name(function getInstagramAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramUser, fields, params, fetchFirstPage, "/instagram_accounts"); }, "getInstagramAccounts") }, { key: "getLeadGenForms", value: /* @__PURE__ */ __name(function getLeadGenForms(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(LeadgenForm, fields, params, fetchFirstPage, "/leadgen_forms"); }, "getLeadGenForms") }, { key: "createLeadGenForm", value: /* @__PURE__ */ __name(function createLeadGenForm(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/leadgen_forms", fields, params, LeadgenForm, pathOverride); }, "createLeadGenForm") }, { key: "getLikes", value: /* @__PURE__ */ __name(function getLikes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page2, fields, params, fetchFirstPage, "/likes"); }, "getLikes") }, { key: "getLiveVideos", value: /* @__PURE__ */ __name(function getLiveVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(LiveVideo, fields, params, fetchFirstPage, "/live_videos"); }, "getLiveVideos") }, { key: "createLiveVideo", value: /* @__PURE__ */ __name(function createLiveVideo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/live_videos", fields, params, LiveVideo, pathOverride); }, "createLiveVideo") }, { key: "deleteLocations", value: /* @__PURE__ */ __name(function deleteLocations() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Page2.prototype.__proto__ || Object.getPrototypeOf(Page2.prototype), "deleteEdge", this).call(this, "/locations", params); }, "deleteLocations") }, { key: "getLocations", value: /* @__PURE__ */ __name(function getLocations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page2, fields, params, fetchFirstPage, "/locations"); }, "getLocations") }, { key: "createLocation", value: /* @__PURE__ */ __name(function createLocation(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/locations", fields, params, Page2, pathOverride); }, "createLocation") }, { key: "getMediaFingerprints", value: /* @__PURE__ */ __name(function getMediaFingerprints(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(MediaFingerprint, fields, params, fetchFirstPage, "/media_fingerprints"); }, "getMediaFingerprints") }, { key: "createMediaFingerprint", value: /* @__PURE__ */ __name(function createMediaFingerprint(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/media_fingerprints", fields, params, MediaFingerprint, pathOverride); }, "createMediaFingerprint") }, { key: "createMessageAttachment", value: /* @__PURE__ */ __name(function createMessageAttachment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/message_attachments", fields, params, null, pathOverride); }, "createMessageAttachment") }, { key: "createMessage", value: /* @__PURE__ */ __name(function createMessage(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/messages", fields, params, Page2, pathOverride); }, "createMessage") }, { key: "getMessagingFeatureReview", value: /* @__PURE__ */ __name(function getMessagingFeatureReview(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(MessagingFeatureReview, fields, params, fetchFirstPage, "/messaging_feature_review"); }, "getMessagingFeatureReview") }, { key: "getMessengerLeadForms", value: /* @__PURE__ */ __name(function getMessengerLeadForms(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(MessengerAdsPartialAutomatedStepList, fields, params, fetchFirstPage, "/messenger_lead_forms"); }, "getMessengerLeadForms") }, { key: "createMessengerLeadForm", value: /* @__PURE__ */ __name(function createMessengerLeadForm(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/messenger_lead_forms", fields, params, Page2, pathOverride); }, "createMessengerLeadForm") }, { key: "deleteMessengerProfile", value: /* @__PURE__ */ __name(function deleteMessengerProfile() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Page2.prototype.__proto__ || Object.getPrototypeOf(Page2.prototype), "deleteEdge", this).call(this, "/messenger_profile", params); }, "deleteMessengerProfile") }, { key: "getMessengerProfile", value: /* @__PURE__ */ __name(function getMessengerProfile(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(MessengerProfile, fields, params, fetchFirstPage, "/messenger_profile"); }, "getMessengerProfile") }, { key: "createMessengerProfile", value: /* @__PURE__ */ __name(function createMessengerProfile(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/messenger_profile", fields, params, Page2, pathOverride); }, "createMessengerProfile") }, { key: "createNlpConfig", value: /* @__PURE__ */ __name(function createNlpConfig(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/nlp_configs", fields, params, Page2, pathOverride); }, "createNlpConfig") }, { key: "getNotificationMessageTokens", value: /* @__PURE__ */ __name(function getNotificationMessageTokens(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(UserPageOneTimeOptInTokenSettings, fields, params, fetchFirstPage, "/notification_message_tokens"); }, "getNotificationMessageTokens") }, { key: "createNotificationMessagesDevSupport", value: /* @__PURE__ */ __name(function createNotificationMessagesDevSupport(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/notification_messages_dev_support", fields, params, Page2, pathOverride); }, "createNotificationMessagesDevSupport") }, { key: "getPageBackedInstagramAccounts", value: /* @__PURE__ */ __name(function getPageBackedInstagramAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramUser, fields, params, fetchFirstPage, "/page_backed_instagram_accounts"); }, "getPageBackedInstagramAccounts") }, { key: "createPageBackedInstagramAccount", value: /* @__PURE__ */ __name(function createPageBackedInstagramAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/page_backed_instagram_accounts", fields, params, InstagramUser, pathOverride); }, "createPageBackedInstagramAccount") }, { key: "createPageWhatsappNumberVerification", value: /* @__PURE__ */ __name(function createPageWhatsappNumberVerification(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/page_whatsapp_number_verification", fields, params, Page2, pathOverride); }, "createPageWhatsappNumberVerification") }, { key: "createPassThreadControl", value: /* @__PURE__ */ __name(function createPassThreadControl(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/pass_thread_control", fields, params, Page2, pathOverride); }, "createPassThreadControl") }, { key: "createPassThreadMetadatum", value: /* @__PURE__ */ __name(function createPassThreadMetadatum(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/pass_thread_metadata", fields, params, Page2, pathOverride); }, "createPassThreadMetadatum") }, { key: "getPersonas", value: /* @__PURE__ */ __name(function getPersonas(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Persona, fields, params, fetchFirstPage, "/personas"); }, "getPersonas") }, { key: "createPersona", value: /* @__PURE__ */ __name(function createPersona(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/personas", fields, params, Persona, pathOverride); }, "createPersona") }, { key: "createPhotoStory", value: /* @__PURE__ */ __name(function createPhotoStory(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/photo_stories", fields, params, Page2, pathOverride); }, "createPhotoStory") }, { key: "getPhotos", value: /* @__PURE__ */ __name(function getPhotos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Photo, fields, params, fetchFirstPage, "/photos"); }, "getPhotos") }, { key: "createPhoto", value: /* @__PURE__ */ __name(function createPhoto(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/photos", fields, params, Photo, pathOverride); }, "createPhoto") }, { key: "getPicture", value: /* @__PURE__ */ __name(function getPicture(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProfilePictureSource, fields, params, fetchFirstPage, "/picture"); }, "getPicture") }, { key: "createPicture", value: /* @__PURE__ */ __name(function createPicture(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/picture", fields, params, ProfilePictureSource, pathOverride); }, "createPicture") }, { key: "getPosts", value: /* @__PURE__ */ __name(function getPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PagePost, fields, params, fetchFirstPage, "/posts"); }, "getPosts") }, { key: "getProductCatalogs", value: /* @__PURE__ */ __name(function getProductCatalogs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalog, fields, params, fetchFirstPage, "/product_catalogs"); }, "getProductCatalogs") }, { key: "getPublishedPosts", value: /* @__PURE__ */ __name(function getPublishedPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PagePost, fields, params, fetchFirstPage, "/published_posts"); }, "getPublishedPosts") }, { key: "getRatings", value: /* @__PURE__ */ __name(function getRatings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Recommendation, fields, params, fetchFirstPage, "/ratings"); }, "getRatings") }, { key: "createReleaseThreadControl", value: /* @__PURE__ */ __name(function createReleaseThreadControl(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/release_thread_control", fields, params, Page2, pathOverride); }, "createReleaseThreadControl") }, { key: "createRequestThreadControl", value: /* @__PURE__ */ __name(function createRequestThreadControl(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/request_thread_control", fields, params, Page2, pathOverride); }, "createRequestThreadControl") }, { key: "getRoles", value: /* @__PURE__ */ __name(function getRoles(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(User2, fields, params, fetchFirstPage, "/roles"); }, "getRoles") }, { key: "getRtbDynamicPosts", value: /* @__PURE__ */ __name(function getRtbDynamicPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(RTBDynamicPost, fields, params, fetchFirstPage, "/rtb_dynamic_posts"); }, "getRtbDynamicPosts") }, { key: "getScheduledPosts", value: /* @__PURE__ */ __name(function getScheduledPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PagePost, fields, params, fetchFirstPage, "/scheduled_posts"); }, "getScheduledPosts") }, { key: "getSecondaryReceivers", value: /* @__PURE__ */ __name(function getSecondaryReceivers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Application, fields, params, fetchFirstPage, "/secondary_receivers"); }, "getSecondaryReceivers") }, { key: "getSettings", value: /* @__PURE__ */ __name(function getSettings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PageSettings, fields, params, fetchFirstPage, "/settings"); }, "getSettings") }, { key: "createSetting", value: /* @__PURE__ */ __name(function createSetting(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/settings", fields, params, Page2, pathOverride); }, "createSetting") }, { key: "getShopSetupStatus", value: /* @__PURE__ */ __name(function getShopSetupStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CommerceMerchantSettingsSetupStatus, fields, params, fetchFirstPage, "/shop_setup_status"); }, "getShopSetupStatus") }, { key: "getStories", value: /* @__PURE__ */ __name(function getStories(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Stories, fields, params, fetchFirstPage, "/stories"); }, "getStories") }, { key: "deleteSubscribedApps", value: /* @__PURE__ */ __name(function deleteSubscribedApps() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Page2.prototype.__proto__ || Object.getPrototypeOf(Page2.prototype), "deleteEdge", this).call(this, "/subscribed_apps", params); }, "deleteSubscribedApps") }, { key: "getSubscribedApps", value: /* @__PURE__ */ __name(function getSubscribedApps(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Application, fields, params, fetchFirstPage, "/subscribed_apps"); }, "getSubscribedApps") }, { key: "createSubscribedApp", value: /* @__PURE__ */ __name(function createSubscribedApp(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/subscribed_apps", fields, params, Page2, pathOverride); }, "createSubscribedApp") }, { key: "getTabs", value: /* @__PURE__ */ __name(function getTabs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Tab, fields, params, fetchFirstPage, "/tabs"); }, "getTabs") }, { key: "getTagged", value: /* @__PURE__ */ __name(function getTagged(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PagePost, fields, params, fetchFirstPage, "/tagged"); }, "getTagged") }, { key: "createTakeThreadControl", value: /* @__PURE__ */ __name(function createTakeThreadControl(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/take_thread_control", fields, params, Page2, pathOverride); }, "createTakeThreadControl") }, { key: "createThreadAction", value: /* @__PURE__ */ __name(function createThreadAction(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/thread_action", fields, params, Page2, pathOverride); }, "createThreadAction") }, { key: "getThreadOwner", value: /* @__PURE__ */ __name(function getThreadOwner(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PageThreadOwner, fields, params, fetchFirstPage, "/thread_owner"); }, "getThreadOwner") }, { key: "getThreads", value: /* @__PURE__ */ __name(function getThreads(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(UnifiedThread, fields, params, fetchFirstPage, "/threads"); }, "getThreads") }, { key: "createUnlinkAccount", value: /* @__PURE__ */ __name(function createUnlinkAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/unlink_accounts", fields, params, Page2, pathOverride); }, "createUnlinkAccount") }, { key: "getVideoCopyrightRules", value: /* @__PURE__ */ __name(function getVideoCopyrightRules(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(VideoCopyrightRule, fields, params, fetchFirstPage, "/video_copyright_rules"); }, "getVideoCopyrightRules") }, { key: "createVideoCopyrightRule", value: /* @__PURE__ */ __name(function createVideoCopyrightRule(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/video_copyright_rules", fields, params, VideoCopyrightRule, pathOverride); }, "createVideoCopyrightRule") }, { key: "createVideoCopyright", value: /* @__PURE__ */ __name(function createVideoCopyright(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/video_copyrights", fields, params, VideoCopyright, pathOverride); }, "createVideoCopyright") }, { key: "getVideoLists", value: /* @__PURE__ */ __name(function getVideoLists(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(VideoList, fields, params, fetchFirstPage, "/video_lists"); }, "getVideoLists") }, { key: "getVideoReels", value: /* @__PURE__ */ __name(function getVideoReels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdVideo, fields, params, fetchFirstPage, "/video_reels"); }, "getVideoReels") }, { key: "createVideoReel", value: /* @__PURE__ */ __name(function createVideoReel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/video_reels", fields, params, AdVideo, pathOverride); }, "createVideoReel") }, { key: "createVideoStory", value: /* @__PURE__ */ __name(function createVideoStory(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/video_stories", fields, params, null, pathOverride); }, "createVideoStory") }, { key: "getVideos", value: /* @__PURE__ */ __name(function getVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdVideo, fields, params, fetchFirstPage, "/videos"); }, "getVideos") }, { key: "createVideo", value: /* @__PURE__ */ __name(function createVideo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/videos", fields, params, AdVideo, pathOverride); }, "createVideo") }, { key: "getVisitorPosts", value: /* @__PURE__ */ __name(function getVisitorPosts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PagePost, fields, params, fetchFirstPage, "/visitor_posts"); }, "getVisitorPosts") }, { key: "deleteWelcomeMessageFlows", value: /* @__PURE__ */ __name(function deleteWelcomeMessageFlows() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Page2.prototype.__proto__ || Object.getPrototypeOf(Page2.prototype), "deleteEdge", this).call(this, "/welcome_message_flows", params); }, "deleteWelcomeMessageFlows") }, { key: "getWelcomeMessageFlows", value: /* @__PURE__ */ __name(function getWelcomeMessageFlows(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CTXPartnerAppWelcomeMessageFlow, fields, params, fetchFirstPage, "/welcome_message_flows"); }, "getWelcomeMessageFlows") }, { key: "createWelcomeMessageFlow", value: /* @__PURE__ */ __name(function createWelcomeMessageFlow(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/welcome_message_flows", fields, params, null, pathOverride); }, "createWelcomeMessageFlow") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Page2.prototype.__proto__ || Object.getPrototypeOf(Page2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ about: "about", access_token: "access_token", ad_campaign: "ad_campaign", affiliation: "affiliation", app_id: "app_id", artists_we_like: "artists_we_like", attire: "attire", available_promo_offer_ids: "available_promo_offer_ids", awards: "awards", band_interests: "band_interests", band_members: "band_members", best_page: "best_page", bio: "bio", birthday: "birthday", booking_agent: "booking_agent", breaking_news_usage: "breaking_news_usage", built: "built", business: "business", can_checkin: "can_checkin", can_post: "can_post", category: "category", category_list: "category_list", checkins: "checkins", company_overview: "company_overview", connected_instagram_account: "connected_instagram_account", connected_page_backed_instagram_account: "connected_page_backed_instagram_account", contact_address: "contact_address", copyright_whitelisted_ig_partners: "copyright_whitelisted_ig_partners", country_page_likes: "country_page_likes", cover: "cover", culinary_team: "culinary_team", current_location: "current_location", delivery_and_pickup_option_info: "delivery_and_pickup_option_info", description: "description", description_html: "description_html", differently_open_offerings: "differently_open_offerings", directed_by: "directed_by", display_subtext: "display_subtext", displayed_message_response_time: "displayed_message_response_time", does_viewer_have_page_permission_link_ig: "does_viewer_have_page_permission_link_ig", emails: "emails", engagement: "engagement", fan_count: "fan_count", featured_video: "featured_video", features: "features", followers_count: "followers_count", food_styles: "food_styles", founded: "founded", general_info: "general_info", general_manager: "general_manager", genre: "genre", global_brand_page_name: "global_brand_page_name", global_brand_root_id: "global_brand_root_id", has_added_app: "has_added_app", has_lead_access: "has_lead_access", has_transitioned_to_new_page_experience: "has_transitioned_to_new_page_experience", has_whatsapp_business_number: "has_whatsapp_business_number", has_whatsapp_number: "has_whatsapp_number", hometown: "hometown", hours: "hours", id: "id", impressum: "impressum", influences: "influences", instagram_business_account: "instagram_business_account", is_always_open: "is_always_open", is_chain: "is_chain", is_community_page: "is_community_page", is_eligible_for_branded_content: "is_eligible_for_branded_content", is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web: "is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", is_eligible_for_live_boosting_expansion: "is_eligible_for_live_boosting_expansion", is_messenger_bot_get_started_enabled: "is_messenger_bot_get_started_enabled", is_messenger_platform_bot: "is_messenger_platform_bot", is_owned: "is_owned", is_permanently_closed: "is_permanently_closed", is_published: "is_published", is_unclaimed: "is_unclaimed", is_verified: "is_verified", is_webhooks_subscribed: "is_webhooks_subscribed", keywords: "keywords", leadgen_tos_acceptance_time: "leadgen_tos_acceptance_time", leadgen_tos_accepted: "leadgen_tos_accepted", leadgen_tos_accepting_user: "leadgen_tos_accepting_user", link: "link", location: "location", members: "members", merchant_id: "merchant_id", merchant_review_status: "merchant_review_status", messaging_feature_status: "messaging_feature_status", messenger_ads_default_icebreakers: "messenger_ads_default_icebreakers", messenger_ads_default_quick_replies: "messenger_ads_default_quick_replies", messenger_ads_quick_replies_type: "messenger_ads_quick_replies_type", mini_shop_storefront: "mini_shop_storefront", mission: "mission", mpg: "mpg", name: "name", name_with_location_descriptor: "name_with_location_descriptor", network: "network", new_like_count: "new_like_count", offer_eligible: "offer_eligible", overall_star_rating: "overall_star_rating", owner_business: "owner_business", page_token: "page_token", parent_page: "parent_page", parking: "parking", payment_options: "payment_options", personal_info: "personal_info", personal_interests: "personal_interests", pharma_safety_info: "pharma_safety_info", phone: "phone", pickup_options: "pickup_options", place_type: "place_type", plot_outline: "plot_outline", preferred_audience: "preferred_audience", press_contact: "press_contact", price_range: "price_range", privacy_info_url: "privacy_info_url", produced_by: "produced_by", products: "products", promotion_eligible: "promotion_eligible", promotion_ineligible_reason: "promotion_ineligible_reason", public_transit: "public_transit", rating_count: "rating_count", recipient: "recipient", record_label: "record_label", release_date: "release_date", restaurant_services: "restaurant_services", restaurant_specialties: "restaurant_specialties", schedule: "schedule", screenplay_by: "screenplay_by", season: "season", single_line_address: "single_line_address", starring: "starring", start_info: "start_info", store_code: "store_code", store_location_descriptor: "store_location_descriptor", store_number: "store_number", studio: "studio", supports_donate_button_in_live_video: "supports_donate_button_in_live_video", talking_about_count: "talking_about_count", temporary_status: "temporary_status", unread_message_count: "unread_message_count", unread_notif_count: "unread_notif_count", unseen_message_count: "unseen_message_count", user_access_expire_time: "user_access_expire_time", username: "username", verification_status: "verification_status", voip_info: "voip_info", website: "website", were_here_count: "were_here_count", whatsapp_number: "whatsapp_number", written_by: "written_by" }); }, "get") }, { key: "Attire", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ casual: "Casual", dressy: "Dressy", unspecified: "Unspecified" }); }, "get") }, { key: "FoodStyles", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ afghani: "Afghani", american_new_: "American (New)", american_traditional_: "American (Traditional)", asian_fusion: "Asian Fusion", barbeque: "Barbeque", brazilian: "Brazilian", breakfast: "Breakfast", british: "British", brunch: "Brunch", buffets: "Buffets", burgers: "Burgers", burmese: "Burmese", cajun_creole: "Cajun/Creole", caribbean: "Caribbean", chinese: "Chinese", creperies: "Creperies", cuban: "Cuban", delis: "Delis", diners: "Diners", ethiopian: "Ethiopian", fast_food: "Fast Food", filipino: "Filipino", fondue: "Fondue", food_stands: "Food Stands", french: "French", german: "German", greek_and_mediterranean: "Greek and Mediterranean", hawaiian: "Hawaiian", himalayan_nepalese: "Himalayan/Nepalese", hot_dogs: "Hot Dogs", indian_pakistani: "Indian/Pakistani", irish: "Irish", italian: "Italian", japanese: "Japanese", korean: "Korean", latin_american: "Latin American", mexican: "Mexican", middle_eastern: "Middle Eastern", moroccan: "Moroccan", pizza: "Pizza", russian: "Russian", sandwiches: "Sandwiches", seafood: "Seafood", singaporean: "Singaporean", soul_food: "Soul Food", southern: "Southern", spanish_basque: "Spanish/Basque", steakhouses: "Steakhouses", sushi_bars: "Sushi Bars", taiwanese: "Taiwanese", tapas_bars: "Tapas Bars", tex_mex: "Tex-Mex", thai: "Thai", turkish: "Turkish", vegan: "Vegan", vegetarian: "Vegetarian", vietnamese: "Vietnamese" }); }, "get") }, { key: "PickupOptions", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ curbside: "CURBSIDE", in_store: "IN_STORE", other: "OTHER" }); }, "get") }, { key: "TemporaryStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ differently_open: "DIFFERENTLY_OPEN", no_data: "NO_DATA", operating_as_usual: "OPERATING_AS_USUAL", temporarily_closed: "TEMPORARILY_CLOSED" }); }, "get") }, { key: "PermittedTasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertise: "ADVERTISE", analyze: "ANALYZE", cashier_role: "CASHIER_ROLE", create_content: "CREATE_CONTENT", manage: "MANAGE", manage_jobs: "MANAGE_JOBS", manage_leads: "MANAGE_LEADS", messaging: "MESSAGING", moderate: "MODERATE", moderate_community: "MODERATE_COMMUNITY", pages_messaging: "PAGES_MESSAGING", pages_messaging_subscriptions: "PAGES_MESSAGING_SUBSCRIPTIONS", profile_plus_advertise: "PROFILE_PLUS_ADVERTISE", profile_plus_analyze: "PROFILE_PLUS_ANALYZE", profile_plus_create_content: "PROFILE_PLUS_CREATE_CONTENT", profile_plus_facebook_access: "PROFILE_PLUS_FACEBOOK_ACCESS", profile_plus_full_control: "PROFILE_PLUS_FULL_CONTROL", profile_plus_manage: "PROFILE_PLUS_MANAGE", profile_plus_manage_leads: "PROFILE_PLUS_MANAGE_LEADS", profile_plus_messaging: "PROFILE_PLUS_MESSAGING", profile_plus_moderate: "PROFILE_PLUS_MODERATE", profile_plus_moderate_delegate_community: "PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY", profile_plus_revenue: "PROFILE_PLUS_REVENUE", read_page_mailboxes: "READ_PAGE_MAILBOXES", view_monetization_insights: "VIEW_MONETIZATION_INSIGHTS" }); }, "get") }, { key: "Tasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertise: "ADVERTISE", analyze: "ANALYZE", cashier_role: "CASHIER_ROLE", create_content: "CREATE_CONTENT", manage: "MANAGE", manage_jobs: "MANAGE_JOBS", manage_leads: "MANAGE_LEADS", messaging: "MESSAGING", moderate: "MODERATE", moderate_community: "MODERATE_COMMUNITY", pages_messaging: "PAGES_MESSAGING", pages_messaging_subscriptions: "PAGES_MESSAGING_SUBSCRIPTIONS", profile_plus_advertise: "PROFILE_PLUS_ADVERTISE", profile_plus_analyze: "PROFILE_PLUS_ANALYZE", profile_plus_create_content: "PROFILE_PLUS_CREATE_CONTENT", profile_plus_facebook_access: "PROFILE_PLUS_FACEBOOK_ACCESS", profile_plus_full_control: "PROFILE_PLUS_FULL_CONTROL", profile_plus_manage: "PROFILE_PLUS_MANAGE", profile_plus_manage_leads: "PROFILE_PLUS_MANAGE_LEADS", profile_plus_messaging: "PROFILE_PLUS_MESSAGING", profile_plus_moderate: "PROFILE_PLUS_MODERATE", profile_plus_moderate_delegate_community: "PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY", profile_plus_revenue: "PROFILE_PLUS_REVENUE", read_page_mailboxes: "READ_PAGE_MAILBOXES", view_monetization_insights: "VIEW_MONETIZATION_INSIGHTS" }); }, "get") }, { key: "Alignment", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ left: "LEFT", right: "RIGHT" }); }, "get") }, { key: "EntryPointIcon", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ chat_angular_icon: "CHAT_ANGULAR_ICON", chat_round_icon: "CHAT_ROUND_ICON", messenger_icon: "MESSENGER_ICON", none: "NONE" }); }, "get") }, { key: "EntryPointLabel", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ask_us: "ASK_US", chat: "CHAT", help: "HELP", none: "NONE" }); }, "get") }, { key: "GreetingDialogDisplay", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ hide: "HIDE", show: "SHOW", welcome_message: "WELCOME_MESSAGE" }); }, "get") }, { key: "GuestChatMode", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ disabled: "DISABLED", enabled: "ENABLED" }); }, "get") }, { key: "MobileChatDisplay", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_switch: "APP_SWITCH", chat_tab: "CHAT_TAB" }); }, "get") }, { key: "BackdatedTimeGranularity", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ day: "day", hour: "hour", min: "min", month: "month", none: "none", year: "year" }); }, "get") }, { key: "Formatting", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ markdown: "MARKDOWN", plaintext: "PLAINTEXT" }); }, "get") }, { key: "PlaceAttachmentSetting", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ value_1: "1", value_2: "2" }); }, "get") }, { key: "PostSurfacesBlacklist", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ value_1: "1", value_2: "2", value_3: "3", value_4: "4", value_5: "5" }); }, "get") }, { key: "PostingToRedspace", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ disabled: "disabled", enabled: "enabled" }); }, "get") }, { key: "TargetSurface", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ story: "STORY", timeline: "TIMELINE" }); }, "get") }, { key: "UnpublishedContentType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ads_post: "ADS_POST", draft: "DRAFT", inline_created: "INLINE_CREATED", published: "PUBLISHED", reviewable_branded_content: "REVIEWABLE_BRANDED_CONTENT", scheduled: "SCHEDULED", scheduled_recurring: "SCHEDULED_RECURRING" }); }, "get") }, { key: "MessagingType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ message_tag: "MESSAGE_TAG", response: "RESPONSE", update: "UPDATE" }); }, "get") }, { key: "NotificationType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ no_push: "NO_PUSH", regular: "REGULAR", silent_push: "SILENT_PUSH" }); }, "get") }, { key: "SenderAction", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ mark_seen: "MARK_SEEN", react: "REACT", typing_off: "TYPING_OFF", typing_on: "TYPING_ON", unreact: "UNREACT" }); }, "get") }, { key: "SuggestionAction", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ accept: "ACCEPT", dismiss: "DISMISS", impression: "IMPRESSION" }); }, "get") }, { key: "Platform", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ instagram: "INSTAGRAM", messenger: "MESSENGER" }); }, "get") }, { key: "Model", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ arabic: "ARABIC", chinese: "CHINESE", croatian: "CROATIAN", custom: "CUSTOM", danish: "DANISH", dutch: "DUTCH", english: "ENGLISH", french_standard: "FRENCH_STANDARD", georgian: "GEORGIAN", german_standard: "GERMAN_STANDARD", greek: "GREEK", hebrew: "HEBREW", hungarian: "HUNGARIAN", irish: "IRISH", italian_standard: "ITALIAN_STANDARD", korean: "KOREAN", norwegian_bokmal: "NORWEGIAN_BOKMAL", polish: "POLISH", portuguese: "PORTUGUESE", romanian: "ROMANIAN", spanish: "SPANISH", swedish: "SWEDISH", vietnamese: "VIETNAMESE" }); }, "get") }, { key: "DeveloperAction", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ enable_followup_message: "ENABLE_FOLLOWUP_MESSAGE" }); }, "get") }, { key: "SubscribedFields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ affiliation: "affiliation", attire: "attire", awards: "awards", bio: "bio", birthday: "birthday", calls: "calls", category: "category", checkins: "checkins", company_overview: "company_overview", conversations: "conversations", culinary_team: "culinary_team", current_location: "current_location", description: "description", email: "email", feature_access_list: "feature_access_list", feed: "feed", founded: "founded", general_info: "general_info", general_manager: "general_manager", group_feed: "group_feed", hometown: "hometown", hours: "hours", inbox_labels: "inbox_labels", invalid_topic_placeholder: "invalid_topic_placeholder", invoice_access_bank_slip_events: "invoice_access_bank_slip_events", invoice_access_invoice_change: "invoice_access_invoice_change", invoice_access_invoice_draft_change: "invoice_access_invoice_draft_change", invoice_access_onboarding_status_active: "invoice_access_onboarding_status_active", leadgen: "leadgen", leadgen_fat: "leadgen_fat", live_videos: "live_videos", local_delivery: "local_delivery", location: "location", mcom_invoice_change: "mcom_invoice_change", members: "members", mention: "mention", merchant_review: "merchant_review", message_context: "message_context", message_deliveries: "message_deliveries", message_echoes: "message_echoes", message_edits: "message_edits", message_mention: "message_mention", message_reactions: "message_reactions", message_reads: "message_reads", messages: "messages", messaging_account_linking: "messaging_account_linking", messaging_appointments: "messaging_appointments", messaging_checkout_updates: "messaging_checkout_updates", messaging_customer_information: "messaging_customer_information", messaging_direct_sends: "messaging_direct_sends", messaging_fblogin_account_linking: "messaging_fblogin_account_linking", messaging_feedback: "messaging_feedback", messaging_game_plays: "messaging_game_plays", messaging_handovers: "messaging_handovers", messaging_in_thread_lead_form_submit: "messaging_in_thread_lead_form_submit", messaging_optins: "messaging_optins", messaging_optouts: "messaging_optouts", messaging_payments: "messaging_payments", messaging_policy_enforcement: "messaging_policy_enforcement", messaging_postbacks: "messaging_postbacks", messaging_pre_checkouts: "messaging_pre_checkouts", messaging_referrals: "messaging_referrals", mission: "mission", name: "name", otp_verification: "otp_verification", page_about_story: "page_about_story", page_change_proposal: "page_change_proposal", page_upcoming_change: "page_upcoming_change", parking: "parking", payment_options: "payment_options", payment_request_update: "payment_request_update", personal_info: "personal_info", personal_interests: "personal_interests", phone: "phone", picture: "picture", price_range: "price_range", product_review: "product_review", products: "products", public_transit: "public_transit", publisher_subscriptions: "publisher_subscriptions", ratings: "ratings", registration: "registration", response_feedback: "response_feedback", send_cart: "send_cart", standby: "standby", user_action: "user_action", video_text_question_responses: "video_text_question_responses", videos: "videos", website: "website" }); }, "get") }, { key: "Action", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ spam: "SPAM" }); }, "get") }, { key: "ActionType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ report_thread: "REPORT_THREAD" }); }, "get") }]); return Page2; }(AbstractCrudObject); var BusinessAssetGroup = function(_AbstractCrudObject) { inherits(BusinessAssetGroup2, _AbstractCrudObject); function BusinessAssetGroup2() { classCallCheck(this, BusinessAssetGroup2); return possibleConstructorReturn(this, (BusinessAssetGroup2.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2)).apply(this, arguments)); } __name(BusinessAssetGroup2, "BusinessAssetGroup"); createClass(BusinessAssetGroup2, [{ key: "deleteAssignedUsers", value: /* @__PURE__ */ __name(function deleteAssignedUsers() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(BusinessAssetGroup2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2.prototype), "deleteEdge", this).call(this, "/assigned_users", params); }, "deleteAssignedUsers") }, { key: "getAssignedUsers", value: /* @__PURE__ */ __name(function getAssignedUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AssignedUser, fields, params, fetchFirstPage, "/assigned_users"); }, "getAssignedUsers") }, { key: "createAssignedUser", value: /* @__PURE__ */ __name(function createAssignedUser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/assigned_users", fields, params, BusinessAssetGroup2, pathOverride); }, "createAssignedUser") }, { key: "deleteContainedAdAccounts", value: /* @__PURE__ */ __name(function deleteContainedAdAccounts() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(BusinessAssetGroup2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2.prototype), "deleteEdge", this).call(this, "/contained_adaccounts", params); }, "deleteContainedAdAccounts") }, { key: "getContainedAdAccounts", value: /* @__PURE__ */ __name(function getContainedAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/contained_adaccounts"); }, "getContainedAdAccounts") }, { key: "createContainedAdAccount", value: /* @__PURE__ */ __name(function createContainedAdAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/contained_adaccounts", fields, params, BusinessAssetGroup2, pathOverride); }, "createContainedAdAccount") }, { key: "deleteContainedApplications", value: /* @__PURE__ */ __name(function deleteContainedApplications() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(BusinessAssetGroup2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2.prototype), "deleteEdge", this).call(this, "/contained_applications", params); }, "deleteContainedApplications") }, { key: "getContainedApplications", value: /* @__PURE__ */ __name(function getContainedApplications(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Application, fields, params, fetchFirstPage, "/contained_applications"); }, "getContainedApplications") }, { key: "createContainedApplication", value: /* @__PURE__ */ __name(function createContainedApplication(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/contained_applications", fields, params, BusinessAssetGroup2, pathOverride); }, "createContainedApplication") }, { key: "deleteContainedCustomConversions", value: /* @__PURE__ */ __name(function deleteContainedCustomConversions() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(BusinessAssetGroup2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2.prototype), "deleteEdge", this).call(this, "/contained_custom_conversions", params); }, "deleteContainedCustomConversions") }, { key: "getContainedCustomConversions", value: /* @__PURE__ */ __name(function getContainedCustomConversions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomConversion, fields, params, fetchFirstPage, "/contained_custom_conversions"); }, "getContainedCustomConversions") }, { key: "createContainedCustomConversion", value: /* @__PURE__ */ __name(function createContainedCustomConversion(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/contained_custom_conversions", fields, params, BusinessAssetGroup2, pathOverride); }, "createContainedCustomConversion") }, { key: "deleteContainedInstagramAccounts", value: /* @__PURE__ */ __name(function deleteContainedInstagramAccounts() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(BusinessAssetGroup2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2.prototype), "deleteEdge", this).call(this, "/contained_instagram_accounts", params); }, "deleteContainedInstagramAccounts") }, { key: "getContainedInstagramAccounts", value: /* @__PURE__ */ __name(function getContainedInstagramAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramUser, fields, params, fetchFirstPage, "/contained_instagram_accounts"); }, "getContainedInstagramAccounts") }, { key: "createContainedInstagramAccount", value: /* @__PURE__ */ __name(function createContainedInstagramAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/contained_instagram_accounts", fields, params, BusinessAssetGroup2, pathOverride); }, "createContainedInstagramAccount") }, { key: "deleteContainedOfflineConversionDataSets", value: /* @__PURE__ */ __name(function deleteContainedOfflineConversionDataSets() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(BusinessAssetGroup2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2.prototype), "deleteEdge", this).call(this, "/contained_offline_conversion_data_sets", params); }, "deleteContainedOfflineConversionDataSets") }, { key: "getContainedOfflineConversionDataSets", value: /* @__PURE__ */ __name(function getContainedOfflineConversionDataSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(OfflineConversionDataSet, fields, params, fetchFirstPage, "/contained_offline_conversion_data_sets"); }, "getContainedOfflineConversionDataSets") }, { key: "createContainedOfflineConversionDataSet", value: /* @__PURE__ */ __name(function createContainedOfflineConversionDataSet(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/contained_offline_conversion_data_sets", fields, params, BusinessAssetGroup2, pathOverride); }, "createContainedOfflineConversionDataSet") }, { key: "deleteContainedPages", value: /* @__PURE__ */ __name(function deleteContainedPages() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(BusinessAssetGroup2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2.prototype), "deleteEdge", this).call(this, "/contained_pages", params); }, "deleteContainedPages") }, { key: "getContainedPages", value: /* @__PURE__ */ __name(function getContainedPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/contained_pages"); }, "getContainedPages") }, { key: "createContainedPage", value: /* @__PURE__ */ __name(function createContainedPage(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/contained_pages", fields, params, BusinessAssetGroup2, pathOverride); }, "createContainedPage") }, { key: "deleteContainedPixels", value: /* @__PURE__ */ __name(function deleteContainedPixels() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(BusinessAssetGroup2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2.prototype), "deleteEdge", this).call(this, "/contained_pixels", params); }, "deleteContainedPixels") }, { key: "getContainedPixels", value: /* @__PURE__ */ __name(function getContainedPixels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsPixel, fields, params, fetchFirstPage, "/contained_pixels"); }, "getContainedPixels") }, { key: "createContainedPixel", value: /* @__PURE__ */ __name(function createContainedPixel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/contained_pixels", fields, params, BusinessAssetGroup2, pathOverride); }, "createContainedPixel") }, { key: "deleteContainedProductCatalogs", value: /* @__PURE__ */ __name(function deleteContainedProductCatalogs() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(BusinessAssetGroup2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2.prototype), "deleteEdge", this).call(this, "/contained_product_catalogs", params); }, "deleteContainedProductCatalogs") }, { key: "getContainedProductCatalogs", value: /* @__PURE__ */ __name(function getContainedProductCatalogs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalog, fields, params, fetchFirstPage, "/contained_product_catalogs"); }, "getContainedProductCatalogs") }, { key: "createContainedProductCatalog", value: /* @__PURE__ */ __name(function createContainedProductCatalog(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/contained_product_catalogs", fields, params, BusinessAssetGroup2, pathOverride); }, "createContainedProductCatalog") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(BusinessAssetGroup2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetGroup2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name", owner_business: "owner_business" }); }, "get") }, { key: "AdaccountTasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aa_analyze: "AA_ANALYZE", advertise: "ADVERTISE", analyze: "ANALYZE", draft: "DRAFT", manage: "MANAGE" }); }, "get") }, { key: "OfflineConversionDataSetTasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aa_analyze: "AA_ANALYZE", advertise: "ADVERTISE", manage: "MANAGE", upload: "UPLOAD", view: "VIEW" }); }, "get") }, { key: "PageTasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertise: "ADVERTISE", analyze: "ANALYZE", cashier_role: "CASHIER_ROLE", create_content: "CREATE_CONTENT", manage: "MANAGE", manage_jobs: "MANAGE_JOBS", manage_leads: "MANAGE_LEADS", messaging: "MESSAGING", moderate: "MODERATE", moderate_community: "MODERATE_COMMUNITY", pages_messaging: "PAGES_MESSAGING", pages_messaging_subscriptions: "PAGES_MESSAGING_SUBSCRIPTIONS", profile_plus_advertise: "PROFILE_PLUS_ADVERTISE", profile_plus_analyze: "PROFILE_PLUS_ANALYZE", profile_plus_create_content: "PROFILE_PLUS_CREATE_CONTENT", profile_plus_facebook_access: "PROFILE_PLUS_FACEBOOK_ACCESS", profile_plus_full_control: "PROFILE_PLUS_FULL_CONTROL", profile_plus_manage: "PROFILE_PLUS_MANAGE", profile_plus_manage_leads: "PROFILE_PLUS_MANAGE_LEADS", profile_plus_messaging: "PROFILE_PLUS_MESSAGING", profile_plus_moderate: "PROFILE_PLUS_MODERATE", profile_plus_moderate_delegate_community: "PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY", profile_plus_revenue: "PROFILE_PLUS_REVENUE", read_page_mailboxes: "READ_PAGE_MAILBOXES", view_monetization_insights: "VIEW_MONETIZATION_INSIGHTS" }); }, "get") }, { key: "PixelTasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aa_analyze: "AA_ANALYZE", advertise: "ADVERTISE", analyze: "ANALYZE", edit: "EDIT", upload: "UPLOAD" }); }, "get") }]); return BusinessAssetGroup2; }(AbstractCrudObject); var OmegaCustomerTrx = function(_AbstractCrudObject) { inherits(OmegaCustomerTrx2, _AbstractCrudObject); function OmegaCustomerTrx2() { classCallCheck(this, OmegaCustomerTrx2); return possibleConstructorReturn(this, (OmegaCustomerTrx2.__proto__ || Object.getPrototypeOf(OmegaCustomerTrx2)).apply(this, arguments)); } __name(OmegaCustomerTrx2, "OmegaCustomerTrx"); createClass(OmegaCustomerTrx2, [{ key: "getCampaigns", value: /* @__PURE__ */ __name(function getCampaigns(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/campaigns"); }, "getCampaigns") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_account_ids: "ad_account_ids", advertiser_name: "advertiser_name", amount: "amount", amount_due: "amount_due", billed_amount_details: "billed_amount_details", billing_period: "billing_period", cdn_download_uri: "cdn_download_uri", currency: "currency", download_uri: "download_uri", due_date: "due_date", entity: "entity", id: "id", invoice_date: "invoice_date", invoice_id: "invoice_id", invoice_type: "invoice_type", liability_type: "liability_type", payment_status: "payment_status", payment_term: "payment_term", type: "type" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ cm: "CM", dm: "DM", inv: "INV", pro_forma: "PRO_FORMA" }); }, "get") }]); return OmegaCustomerTrx2; }(AbstractCrudObject); var WhatsAppBusinessAccount = function(_AbstractCrudObject) { inherits(WhatsAppBusinessAccount2, _AbstractCrudObject); function WhatsAppBusinessAccount2() { classCallCheck(this, WhatsAppBusinessAccount2); return possibleConstructorReturn(this, (WhatsAppBusinessAccount2.__proto__ || Object.getPrototypeOf(WhatsAppBusinessAccount2)).apply(this, arguments)); } __name(WhatsAppBusinessAccount2, "WhatsAppBusinessAccount"); createClass(WhatsAppBusinessAccount2, [{ key: "deleteAssignedUsers", value: /* @__PURE__ */ __name(function deleteAssignedUsers() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(WhatsAppBusinessAccount2.prototype.__proto__ || Object.getPrototypeOf(WhatsAppBusinessAccount2.prototype), "deleteEdge", this).call(this, "/assigned_users", params); }, "deleteAssignedUsers") }, { key: "getAssignedUsers", value: /* @__PURE__ */ __name(function getAssignedUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AssignedUser, fields, params, fetchFirstPage, "/assigned_users"); }, "getAssignedUsers") }, { key: "createAssignedUser", value: /* @__PURE__ */ __name(function createAssignedUser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/assigned_users", fields, params, WhatsAppBusinessAccount2, pathOverride); }, "createAssignedUser") }, { key: "getAudiences", value: /* @__PURE__ */ __name(function getAudiences(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/audiences"); }, "getAudiences") }, { key: "getConversationAnalytics", value: /* @__PURE__ */ __name(function getConversationAnalytics(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/conversation_analytics"); }, "getConversationAnalytics") }, { key: "getDccConfig", value: /* @__PURE__ */ __name(function getDccConfig(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/dcc_config"); }, "getDccConfig") }, { key: "getFlows", value: /* @__PURE__ */ __name(function getFlows(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/flows"); }, "getFlows") }, { key: "createFlow", value: /* @__PURE__ */ __name(function createFlow(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/flows", fields, params, null, pathOverride); }, "createFlow") }, { key: "getMessageCampaigns", value: /* @__PURE__ */ __name(function getMessageCampaigns(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/message_campaigns"); }, "getMessageCampaigns") }, { key: "getMessageTemplatePreviews", value: /* @__PURE__ */ __name(function getMessageTemplatePreviews(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/message_template_previews"); }, "getMessageTemplatePreviews") }, { key: "deleteMessageTemplates", value: /* @__PURE__ */ __name(function deleteMessageTemplates() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(WhatsAppBusinessAccount2.prototype.__proto__ || Object.getPrototypeOf(WhatsAppBusinessAccount2.prototype), "deleteEdge", this).call(this, "/message_templates", params); }, "deleteMessageTemplates") }, { key: "getMessageTemplates", value: /* @__PURE__ */ __name(function getMessageTemplates(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/message_templates"); }, "getMessageTemplates") }, { key: "createMessageTemplate", value: /* @__PURE__ */ __name(function createMessageTemplate(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/message_templates", fields, params, WhatsAppBusinessAccount2, pathOverride); }, "createMessageTemplate") }, { key: "createMigrateMessageTemplate", value: /* @__PURE__ */ __name(function createMigrateMessageTemplate(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/migrate_message_templates", fields, params, WhatsAppBusinessAccount2, pathOverride); }, "createMigrateMessageTemplate") }, { key: "getPhoneNumbers", value: /* @__PURE__ */ __name(function getPhoneNumbers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/phone_numbers"); }, "getPhoneNumbers") }, { key: "createPhoneNumber", value: /* @__PURE__ */ __name(function createPhoneNumber(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/phone_numbers", fields, params, null, pathOverride); }, "createPhoneNumber") }, { key: "deleteProductCatalogs", value: /* @__PURE__ */ __name(function deleteProductCatalogs() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(WhatsAppBusinessAccount2.prototype.__proto__ || Object.getPrototypeOf(WhatsAppBusinessAccount2.prototype), "deleteEdge", this).call(this, "/product_catalogs", params); }, "deleteProductCatalogs") }, { key: "getProductCatalogs", value: /* @__PURE__ */ __name(function getProductCatalogs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalog, fields, params, fetchFirstPage, "/product_catalogs"); }, "getProductCatalogs") }, { key: "createProductCatalog", value: /* @__PURE__ */ __name(function createProductCatalog(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/product_catalogs", fields, params, ProductCatalog, pathOverride); }, "createProductCatalog") }, { key: "getSchedules", value: /* @__PURE__ */ __name(function getSchedules(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/schedules"); }, "getSchedules") }, { key: "createSetOboMobilityIntent", value: /* @__PURE__ */ __name(function createSetOboMobilityIntent(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/set_obo_mobility_intent", fields, params, null, pathOverride); }, "createSetOboMobilityIntent") }, { key: "deleteSubscribedApps", value: /* @__PURE__ */ __name(function deleteSubscribedApps() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(WhatsAppBusinessAccount2.prototype.__proto__ || Object.getPrototypeOf(WhatsAppBusinessAccount2.prototype), "deleteEdge", this).call(this, "/subscribed_apps", params); }, "deleteSubscribedApps") }, { key: "getSubscribedApps", value: /* @__PURE__ */ __name(function getSubscribedApps(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/subscribed_apps"); }, "getSubscribedApps") }, { key: "createSubscribedApp", value: /* @__PURE__ */ __name(function createSubscribedApp(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/subscribed_apps", fields, params, WhatsAppBusinessAccount2, pathOverride); }, "createSubscribedApp") }, { key: "getTemplateAnalytics", value: /* @__PURE__ */ __name(function getTemplateAnalytics(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/template_analytics"); }, "getTemplateAnalytics") }, { key: "getTemplatePerformanceMetrics", value: /* @__PURE__ */ __name(function getTemplatePerformanceMetrics(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/template_performance_metrics"); }, "getTemplatePerformanceMetrics") }, { key: "createUpsertMessageTemplate", value: /* @__PURE__ */ __name(function createUpsertMessageTemplate(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/upsert_message_templates", fields, params, WhatsAppBusinessAccount2, pathOverride); }, "createUpsertMessageTemplate") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(WhatsAppBusinessAccount2.prototype.__proto__ || Object.getPrototypeOf(WhatsAppBusinessAccount2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_review_status: "account_review_status", analytics: "analytics", business_verification_status: "business_verification_status", country: "country", creation_time: "creation_time", currency: "currency", health_status: "health_status", id: "id", is_enabled_for_insights: "is_enabled_for_insights", linked_commerce_account: "linked_commerce_account", message_template_namespace: "message_template_namespace", name: "name", on_behalf_of_business_info: "on_behalf_of_business_info", owner_business: "owner_business", owner_business_info: "owner_business_info", ownership_type: "ownership_type", primary_funding_id: "primary_funding_id", purchase_order_number: "purchase_order_number", status: "status", timezone_id: "timezone_id" }); }, "get") }, { key: "Tasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ develop: "DEVELOP", manage: "MANAGE", manage_extensions: "MANAGE_EXTENSIONS", manage_phone: "MANAGE_PHONE", manage_phone_assets: "MANAGE_PHONE_ASSETS", manage_templates: "MANAGE_TEMPLATES", view_cost: "VIEW_COST", view_phone_assets: "VIEW_PHONE_ASSETS", view_templates: "VIEW_TEMPLATES" }); }, "get") }, { key: "Category", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ authentication: "AUTHENTICATION", marketing: "MARKETING", utility: "UTILITY" }); }, "get") }, { key: "SubCategory", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ order_details: "ORDER_DETAILS", order_status: "ORDER_STATUS" }); }, "get") }]); return WhatsAppBusinessAccount2; }(AbstractCrudObject); var CPASCollaborationRequest = function(_AbstractCrudObject) { inherits(CPASCollaborationRequest2, _AbstractCrudObject); function CPASCollaborationRequest2() { classCallCheck(this, CPASCollaborationRequest2); return possibleConstructorReturn(this, (CPASCollaborationRequest2.__proto__ || Object.getPrototypeOf(CPASCollaborationRequest2)).apply(this, arguments)); } __name(CPASCollaborationRequest2, "CPASCollaborationRequest"); createClass(CPASCollaborationRequest2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ brands: "brands", contact_email: "contact_email", contact_first_name: "contact_first_name", contact_last_name: "contact_last_name", id: "id", phone_number: "phone_number", receiver_business: "receiver_business", requester_agency_or_brand: "requester_agency_or_brand", sender_client_business: "sender_client_business", status: "status" }); }, "get") }, { key: "RequesterAgencyOrBrand", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ agency: "AGENCY", brand: "BRAND", merchant: "MERCHANT" }); }, "get") }]); return CPASCollaborationRequest2; }(AbstractCrudObject); var CPASAdvertiserPartnershipRecommendation = function(_AbstractCrudObject) { inherits(CPASAdvertiserPartnershipRecommendation2, _AbstractCrudObject); function CPASAdvertiserPartnershipRecommendation2() { classCallCheck(this, CPASAdvertiserPartnershipRecommendation2); return possibleConstructorReturn(this, (CPASAdvertiserPartnershipRecommendation2.__proto__ || Object.getPrototypeOf(CPASAdvertiserPartnershipRecommendation2)).apply(this, arguments)); } __name(CPASAdvertiserPartnershipRecommendation2, "CPASAdvertiserPartnershipRecommendation"); createClass(CPASAdvertiserPartnershipRecommendation2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertiser_business_id: "advertiser_business_id", brand_business_id: "brand_business_id", brands: "brands", countries: "countries", id: "id", merchant_business_id: "merchant_business_id", merchant_categories: "merchant_categories", status: "status", status_reason: "status_reason" }); }, "get") }]); return CPASAdvertiserPartnershipRecommendation2; }(AbstractCrudObject); var CPASBusinessSetupConfig = function(_AbstractCrudObject) { inherits(CPASBusinessSetupConfig2, _AbstractCrudObject); function CPASBusinessSetupConfig2() { classCallCheck(this, CPASBusinessSetupConfig2); return possibleConstructorReturn(this, (CPASBusinessSetupConfig2.__proto__ || Object.getPrototypeOf(CPASBusinessSetupConfig2)).apply(this, arguments)); } __name(CPASBusinessSetupConfig2, "CPASBusinessSetupConfig"); createClass(CPASBusinessSetupConfig2, [{ key: "getAdAccounts", value: /* @__PURE__ */ __name(function getAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/ad_accounts"); }, "getAdAccounts") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ accepted_collab_ads_tos: "accepted_collab_ads_tos", business: "business", business_capabilities_status: "business_capabilities_status", capabilities_compliance_status: "capabilities_compliance_status", id: "id" }); }, "get") }]); return CPASBusinessSetupConfig2; }(AbstractCrudObject); var CPASMerchantConfig = function(_AbstractCrudObject) { inherits(CPASMerchantConfig2, _AbstractCrudObject); function CPASMerchantConfig2() { classCallCheck(this, CPASMerchantConfig2); return possibleConstructorReturn(this, (CPASMerchantConfig2.__proto__ || Object.getPrototypeOf(CPASMerchantConfig2)).apply(this, arguments)); } __name(CPASMerchantConfig2, "CPASMerchantConfig"); createClass(CPASMerchantConfig2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ accepted_tos: "accepted_tos", beta_features: "beta_features", business_outcomes_status: "business_outcomes_status", id: "id", is_test_merchant: "is_test_merchant", outcomes_compliance_status: "outcomes_compliance_status", qualified_to_onboard: "qualified_to_onboard" }); }, "get") }]); return CPASMerchantConfig2; }(AbstractCrudObject); var BusinessCreativeFolder = function(_AbstractCrudObject) { inherits(BusinessCreativeFolder2, _AbstractCrudObject); function BusinessCreativeFolder2() { classCallCheck(this, BusinessCreativeFolder2); return possibleConstructorReturn(this, (BusinessCreativeFolder2.__proto__ || Object.getPrototypeOf(BusinessCreativeFolder2)).apply(this, arguments)); } __name(BusinessCreativeFolder2, "BusinessCreativeFolder"); createClass(BusinessCreativeFolder2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ business: "business", creation_time: "creation_time", creative_insight_permissions: "creative_insight_permissions", description: "description", id: "id", media_library_url: "media_library_url", name: "name", owner_business: "owner_business" }); }, "get") }]); return BusinessCreativeFolder2; }(AbstractCrudObject); var CreditCard = function(_AbstractCrudObject) { inherits(CreditCard2, _AbstractCrudObject); function CreditCard2() { classCallCheck(this, CreditCard2); return possibleConstructorReturn(this, (CreditCard2.__proto__ || Object.getPrototypeOf(CreditCard2)).apply(this, arguments)); } __name(CreditCard2, "CreditCard"); createClass(CreditCard2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ billing_address: "billing_address", card_cobadging: "card_cobadging", card_holder_name: "card_holder_name", card_type: "card_type", credential_id: "credential_id", default_receiving_method_products: "default_receiving_method_products", expiry_month: "expiry_month", expiry_year: "expiry_year", id: "id", is_cvv_tricky_bin: "is_cvv_tricky_bin", is_enabled: "is_enabled", is_last_used: "is_last_used", is_network_tokenized_in_india: "is_network_tokenized_in_india", is_soft_disabled: "is_soft_disabled", is_user_verified: "is_user_verified", is_zip_verified: "is_zip_verified", last4: "last4", readable_card_type: "readable_card_type", time_created: "time_created", time_created_ts: "time_created_ts", type: "type" }); }, "get") }]); return CreditCard2; }(AbstractCrudObject); var EventSourceGroup = function(_AbstractCrudObject) { inherits(EventSourceGroup2, _AbstractCrudObject); function EventSourceGroup2() { classCallCheck(this, EventSourceGroup2); return possibleConstructorReturn(this, (EventSourceGroup2.__proto__ || Object.getPrototypeOf(EventSourceGroup2)).apply(this, arguments)); } __name(EventSourceGroup2, "EventSourceGroup"); createClass(EventSourceGroup2, [{ key: "getSharedAccounts", value: /* @__PURE__ */ __name(function getSharedAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/shared_accounts"); }, "getSharedAccounts") }, { key: "createSharedAccount", value: /* @__PURE__ */ __name(function createSharedAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/shared_accounts", fields, params, EventSourceGroup2, pathOverride); }, "createSharedAccount") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(EventSourceGroup2.prototype.__proto__ || Object.getPrototypeOf(EventSourceGroup2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ business: "business", event_sources: "event_sources", id: "id", name: "name", owner_business: "owner_business" }); }, "get") }]); return EventSourceGroup2; }(AbstractCrudObject); var ExtendedCreditInvoiceGroup = function(_AbstractCrudObject) { inherits(ExtendedCreditInvoiceGroup2, _AbstractCrudObject); function ExtendedCreditInvoiceGroup2() { classCallCheck(this, ExtendedCreditInvoiceGroup2); return possibleConstructorReturn(this, (ExtendedCreditInvoiceGroup2.__proto__ || Object.getPrototypeOf(ExtendedCreditInvoiceGroup2)).apply(this, arguments)); } __name(ExtendedCreditInvoiceGroup2, "ExtendedCreditInvoiceGroup"); createClass(ExtendedCreditInvoiceGroup2, [{ key: "deleteAdAccounts", value: /* @__PURE__ */ __name(function deleteAdAccounts() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(ExtendedCreditInvoiceGroup2.prototype.__proto__ || Object.getPrototypeOf(ExtendedCreditInvoiceGroup2.prototype), "deleteEdge", this).call(this, "/ad_accounts", params); }, "deleteAdAccounts") }, { key: "getAdAccounts", value: /* @__PURE__ */ __name(function getAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/ad_accounts"); }, "getAdAccounts") }, { key: "createAdAccount", value: /* @__PURE__ */ __name(function createAdAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/ad_accounts", fields, params, AdAccount2, pathOverride); }, "createAdAccount") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ExtendedCreditInvoiceGroup2.prototype.__proto__ || Object.getPrototypeOf(ExtendedCreditInvoiceGroup2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ExtendedCreditInvoiceGroup2.prototype.__proto__ || Object.getPrototypeOf(ExtendedCreditInvoiceGroup2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ auto_enroll: "auto_enroll", bill_to_address: "bill_to_address", customer_po_number: "customer_po_number", email: "email", emails: "emails", id: "id", liable_address: "liable_address", name: "name", sold_to_address: "sold_to_address" }); }, "get") }]); return ExtendedCreditInvoiceGroup2; }(AbstractCrudObject); var ExtendedCreditAllocationConfig = function(_AbstractCrudObject) { inherits(ExtendedCreditAllocationConfig2, _AbstractCrudObject); function ExtendedCreditAllocationConfig2() { classCallCheck(this, ExtendedCreditAllocationConfig2); return possibleConstructorReturn(this, (ExtendedCreditAllocationConfig2.__proto__ || Object.getPrototypeOf(ExtendedCreditAllocationConfig2)).apply(this, arguments)); } __name(ExtendedCreditAllocationConfig2, "ExtendedCreditAllocationConfig"); createClass(ExtendedCreditAllocationConfig2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ExtendedCreditAllocationConfig2.prototype.__proto__ || Object.getPrototypeOf(ExtendedCreditAllocationConfig2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(ExtendedCreditAllocationConfig2.prototype.__proto__ || Object.getPrototypeOf(ExtendedCreditAllocationConfig2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ currency_amount: "currency_amount", id: "id", liability_type: "liability_type", owning_business: "owning_business", owning_credential: "owning_credential", partition_type: "partition_type", receiving_business: "receiving_business", receiving_credential: "receiving_credential", request_status: "request_status", send_bill_to: "send_bill_to" }); }, "get") }, { key: "LiabilityType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ msa: "MSA", normal: "Normal", sequential: "Sequential" }); }, "get") }, { key: "PartitionType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ auth: "AUTH", fixed: "FIXED", fixed_without_partition: "FIXED_WITHOUT_PARTITION" }); }, "get") }, { key: "SendBillTo", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertiser: "Advertiser", agency: "Agency" }); }, "get") }]); return ExtendedCreditAllocationConfig2; }(AbstractCrudObject); var ExtendedCredit = function(_AbstractCrudObject) { inherits(ExtendedCredit2, _AbstractCrudObject); function ExtendedCredit2() { classCallCheck(this, ExtendedCredit2); return possibleConstructorReturn(this, (ExtendedCredit2.__proto__ || Object.getPrototypeOf(ExtendedCredit2)).apply(this, arguments)); } __name(ExtendedCredit2, "ExtendedCredit"); createClass(ExtendedCredit2, [{ key: "getExtendedCreditInvoiceGroups", value: /* @__PURE__ */ __name(function getExtendedCreditInvoiceGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ExtendedCreditInvoiceGroup, fields, params, fetchFirstPage, "/extended_credit_invoice_groups"); }, "getExtendedCreditInvoiceGroups") }, { key: "createExtendedCreditInvoiceGroup", value: /* @__PURE__ */ __name(function createExtendedCreditInvoiceGroup(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/extended_credit_invoice_groups", fields, params, ExtendedCreditInvoiceGroup, pathOverride); }, "createExtendedCreditInvoiceGroup") }, { key: "getOwningCreditAllocationConfigs", value: /* @__PURE__ */ __name(function getOwningCreditAllocationConfigs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ExtendedCreditAllocationConfig, fields, params, fetchFirstPage, "/owning_credit_allocation_configs"); }, "getOwningCreditAllocationConfigs") }, { key: "createOwningCreditAllocationConfig", value: /* @__PURE__ */ __name(function createOwningCreditAllocationConfig(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/owning_credit_allocation_configs", fields, params, ExtendedCreditAllocationConfig, pathOverride); }, "createOwningCreditAllocationConfig") }, { key: "createWhatsappCreditSharingAndAttach", value: /* @__PURE__ */ __name(function createWhatsappCreditSharingAndAttach(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/whatsapp_credit_sharing_and_attach", fields, params, null, pathOverride); }, "createWhatsappCreditSharingAndAttach") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ allocated_amount: "allocated_amount", balance: "balance", credit_available: "credit_available", credit_type: "credit_type", id: "id", is_access_revoked: "is_access_revoked", is_automated_experience: "is_automated_experience", legal_entity_name: "legal_entity_name", liable_address: "liable_address", liable_biz_name: "liable_biz_name", max_balance: "max_balance", online_max_balance: "online_max_balance", owner_business: "owner_business", owner_business_name: "owner_business_name", partition_from: "partition_from", receiving_credit_allocation_config: "receiving_credit_allocation_config", send_bill_to_address: "send_bill_to_address", send_bill_to_biz_name: "send_bill_to_biz_name", sold_to_address: "sold_to_address" }); }, "get") }]); return ExtendedCredit2; }(AbstractCrudObject); var BusinessImage = function(_AbstractCrudObject) { inherits(BusinessImage2, _AbstractCrudObject); function BusinessImage2() { classCallCheck(this, BusinessImage2); return possibleConstructorReturn(this, (BusinessImage2.__proto__ || Object.getPrototypeOf(BusinessImage2)).apply(this, arguments)); } __name(BusinessImage2, "BusinessImage"); createClass(BusinessImage2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ business: "business", creation_time: "creation_time", hash: "hash", height: "height", id: "id", media_library_url: "media_library_url", name: "name", url: "url", url_128: "url_128", width: "width" }); }, "get") }, { key: "ValidationAdPlacements", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ audience_network_instream_video: "AUDIENCE_NETWORK_INSTREAM_VIDEO", audience_network_instream_video_mobile: "AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE", audience_network_rewarded_video: "AUDIENCE_NETWORK_REWARDED_VIDEO", desktop_feed_standard: "DESKTOP_FEED_STANDARD", facebook_story_mobile: "FACEBOOK_STORY_MOBILE", facebook_story_sticker_mobile: "FACEBOOK_STORY_STICKER_MOBILE", instagram_standard: "INSTAGRAM_STANDARD", instagram_story: "INSTAGRAM_STORY", instant_article_standard: "INSTANT_ARTICLE_STANDARD", instream_banner_desktop: "INSTREAM_BANNER_DESKTOP", instream_banner_mobile: "INSTREAM_BANNER_MOBILE", instream_video_desktop: "INSTREAM_VIDEO_DESKTOP", instream_video_image: "INSTREAM_VIDEO_IMAGE", instream_video_mobile: "INSTREAM_VIDEO_MOBILE", messenger_mobile_inbox_media: "MESSENGER_MOBILE_INBOX_MEDIA", messenger_mobile_story_media: "MESSENGER_MOBILE_STORY_MEDIA", mobile_feed_standard: "MOBILE_FEED_STANDARD", mobile_fullwidth: "MOBILE_FULLWIDTH", mobile_interstitial: "MOBILE_INTERSTITIAL", mobile_medium_rectangle: "MOBILE_MEDIUM_RECTANGLE", mobile_native: "MOBILE_NATIVE", right_column_standard: "RIGHT_COLUMN_STANDARD", suggested_video_mobile: "SUGGESTED_VIDEO_MOBILE" }); }, "get") }]); return BusinessImage2; }(AbstractCrudObject); var BusinessAssetSharingAgreement = function(_AbstractCrudObject) { inherits(BusinessAssetSharingAgreement2, _AbstractCrudObject); function BusinessAssetSharingAgreement2() { classCallCheck(this, BusinessAssetSharingAgreement2); return possibleConstructorReturn(this, (BusinessAssetSharingAgreement2.__proto__ || Object.getPrototypeOf(BusinessAssetSharingAgreement2)).apply(this, arguments)); } __name(BusinessAssetSharingAgreement2, "BusinessAssetSharingAgreement"); createClass(BusinessAssetSharingAgreement2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(BusinessAssetSharingAgreement2.prototype.__proto__ || Object.getPrototypeOf(BusinessAssetSharingAgreement2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", initiator: "initiator", recipient: "recipient", relationship_type: "relationship_type", request_status: "request_status", request_type: "request_type" }); }, "get") }, { key: "RequestStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ approve: "APPROVE", decline: "DECLINE", expired: "EXPIRED", in_progress: "IN_PROGRESS", pending: "PENDING", pending_email_verification: "PENDING_EMAIL_VERIFICATION", pending_integrity_review: "PENDING_INTEGRITY_REVIEW" }); }, "get") }]); return BusinessAssetSharingAgreement2; }(AbstractCrudObject); var UserAvailableCatalogs = function(_AbstractCrudObject) { inherits(UserAvailableCatalogs2, _AbstractCrudObject); function UserAvailableCatalogs2() { classCallCheck(this, UserAvailableCatalogs2); return possibleConstructorReturn(this, (UserAvailableCatalogs2.__proto__ || Object.getPrototypeOf(UserAvailableCatalogs2)).apply(this, arguments)); } __name(UserAvailableCatalogs2, "UserAvailableCatalogs"); createClass(UserAvailableCatalogs2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ catalog_id: "catalog_id", catalog_name: "catalog_name", product_count: "product_count", shop_name: "shop_name" }); }, "get") }]); return UserAvailableCatalogs2; }(AbstractCrudObject); var IGBCAdsPermission = function(_AbstractCrudObject) { inherits(IGBCAdsPermission2, _AbstractCrudObject); function IGBCAdsPermission2() { classCallCheck(this, IGBCAdsPermission2); return possibleConstructorReturn(this, (IGBCAdsPermission2.__proto__ || Object.getPrototypeOf(IGBCAdsPermission2)).apply(this, arguments)); } __name(IGBCAdsPermission2, "IGBCAdsPermission"); createClass(IGBCAdsPermission2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", permission_type: "permission_type", status: "status" }); }, "get") }]); return IGBCAdsPermission2; }(AbstractCrudObject); var BrandedContentShadowIGMediaID = function(_AbstractCrudObject) { inherits(BrandedContentShadowIGMediaID2, _AbstractCrudObject); function BrandedContentShadowIGMediaID2() { classCallCheck(this, BrandedContentShadowIGMediaID2); return possibleConstructorReturn(this, (BrandedContentShadowIGMediaID2.__proto__ || Object.getPrototypeOf(BrandedContentShadowIGMediaID2)).apply(this, arguments)); } __name(BrandedContentShadowIGMediaID2, "BrandedContentShadowIGMediaID"); createClass(BrandedContentShadowIGMediaID2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ eligibility_errors: "eligibility_errors", id: "id", owner_id: "owner_id", permalink: "permalink" }); }, "get") }]); return BrandedContentShadowIGMediaID2; }(AbstractCrudObject); var BrandedContentShadowIGUserID = function(_AbstractCrudObject) { inherits(BrandedContentShadowIGUserID2, _AbstractCrudObject); function BrandedContentShadowIGUserID2() { classCallCheck(this, BrandedContentShadowIGUserID2); return possibleConstructorReturn(this, (BrandedContentShadowIGUserID2.__proto__ || Object.getPrototypeOf(BrandedContentShadowIGUserID2)).apply(this, arguments)); } __name(BrandedContentShadowIGUserID2, "BrandedContentShadowIGUserID"); createClass(BrandedContentShadowIGUserID2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id" }); }, "get") }]); return BrandedContentShadowIGUserID2; }(AbstractCrudObject); var ShadowIGUserCatalogProductSearch = function(_AbstractCrudObject) { inherits(ShadowIGUserCatalogProductSearch2, _AbstractCrudObject); function ShadowIGUserCatalogProductSearch2() { classCallCheck(this, ShadowIGUserCatalogProductSearch2); return possibleConstructorReturn(this, (ShadowIGUserCatalogProductSearch2.__proto__ || Object.getPrototypeOf(ShadowIGUserCatalogProductSearch2)).apply(this, arguments)); } __name(ShadowIGUserCatalogProductSearch2, "ShadowIGUserCatalogProductSearch"); createClass(ShadowIGUserCatalogProductSearch2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ image_url: "image_url", is_checkout_flow: "is_checkout_flow", merchant_id: "merchant_id", product_id: "product_id", product_name: "product_name", product_variants: "product_variants", retailer_id: "retailer_id", review_status: "review_status" }); }, "get") }]); return ShadowIGUserCatalogProductSearch2; }(AbstractCrudObject); var ContentPublishingLimitResponse = function(_AbstractCrudObject) { inherits(ContentPublishingLimitResponse2, _AbstractCrudObject); function ContentPublishingLimitResponse2() { classCallCheck(this, ContentPublishingLimitResponse2); return possibleConstructorReturn(this, (ContentPublishingLimitResponse2.__proto__ || Object.getPrototypeOf(ContentPublishingLimitResponse2)).apply(this, arguments)); } __name(ContentPublishingLimitResponse2, "ContentPublishingLimitResponse"); createClass(ContentPublishingLimitResponse2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ config: "config", quota_usage: "quota_usage" }); }, "get") }]); return ContentPublishingLimitResponse2; }(AbstractCrudObject); var InstagramInsightsResult = function(_AbstractCrudObject) { inherits(InstagramInsightsResult2, _AbstractCrudObject); function InstagramInsightsResult2() { classCallCheck(this, InstagramInsightsResult2); return possibleConstructorReturn(this, (InstagramInsightsResult2.__proto__ || Object.getPrototypeOf(InstagramInsightsResult2)).apply(this, arguments)); } __name(InstagramInsightsResult2, "InstagramInsightsResult"); createClass(InstagramInsightsResult2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ description: "description", id: "id", name: "name", period: "period", title: "title", total_value: "total_value", values: "values" }); }, "get") }, { key: "Breakdown", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ action_type: "action_type", follow_type: "follow_type", story_navigation_action_type: "story_navigation_action_type", surface_type: "surface_type" }); }, "get") }, { key: "Metric", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ clips_replays_count: "clips_replays_count", comments: "comments", engagement: "engagement", exits: "exits", follows: "follows", ig_reels_aggregated_all_plays_count: "ig_reels_aggregated_all_plays_count", ig_reels_avg_watch_time: "ig_reels_avg_watch_time", ig_reels_video_view_total_time: "ig_reels_video_view_total_time", impressions: "impressions", likes: "likes", navigation: "navigation", plays: "plays", profile_activity: "profile_activity", profile_visits: "profile_visits", reach: "reach", replies: "replies", saved: "saved", shares: "shares", taps_back: "taps_back", taps_forward: "taps_forward", total_interactions: "total_interactions", video_views: "video_views" }); }, "get") }, { key: "Period", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ day: "day", days_28: "days_28", lifetime: "lifetime", month: "month", total_over_range: "total_over_range", week: "week" }); }, "get") }, { key: "MetricType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ default: "default", time_series: "time_series", total_value: "total_value" }); }, "get") }, { key: "Timeframe", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ last_14_days: "last_14_days", last_30_days: "last_30_days", last_90_days: "last_90_days", prev_month: "prev_month", this_month: "this_month", this_week: "this_week" }); }, "get") }]); return InstagramInsightsResult2; }(AbstractCrudObject); var ShadowIGMediaCollaborators = function(_AbstractCrudObject) { inherits(ShadowIGMediaCollaborators2, _AbstractCrudObject); function ShadowIGMediaCollaborators2() { classCallCheck(this, ShadowIGMediaCollaborators2); return possibleConstructorReturn(this, (ShadowIGMediaCollaborators2.__proto__ || Object.getPrototypeOf(ShadowIGMediaCollaborators2)).apply(this, arguments)); } __name(ShadowIGMediaCollaborators2, "ShadowIGMediaCollaborators"); createClass(ShadowIGMediaCollaborators2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", invite_status: "invite_status", username: "username" }); }, "get") }]); return ShadowIGMediaCollaborators2; }(AbstractCrudObject); var IGComment = function(_AbstractCrudObject) { inherits(IGComment2, _AbstractCrudObject); function IGComment2() { classCallCheck(this, IGComment2); return possibleConstructorReturn(this, (IGComment2.__proto__ || Object.getPrototypeOf(IGComment2)).apply(this, arguments)); } __name(IGComment2, "IGComment"); createClass(IGComment2, [{ key: "getReplies", value: /* @__PURE__ */ __name(function getReplies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGComment2, fields, params, fetchFirstPage, "/replies"); }, "getReplies") }, { key: "createReply", value: /* @__PURE__ */ __name(function createReply(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/replies", fields, params, IGComment2, pathOverride); }, "createReply") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(IGComment2.prototype.__proto__ || Object.getPrototypeOf(IGComment2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(IGComment2.prototype.__proto__ || Object.getPrototypeOf(IGComment2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ from: "from", hidden: "hidden", id: "id", like_count: "like_count", media: "media", parent_id: "parent_id", text: "text", timestamp: "timestamp", user: "user", username: "username" }); }, "get") }]); return IGComment2; }(AbstractCrudObject); var ShadowIGMediaProductTags = function(_AbstractCrudObject) { inherits(ShadowIGMediaProductTags2, _AbstractCrudObject); function ShadowIGMediaProductTags2() { classCallCheck(this, ShadowIGMediaProductTags2); return possibleConstructorReturn(this, (ShadowIGMediaProductTags2.__proto__ || Object.getPrototypeOf(ShadowIGMediaProductTags2)).apply(this, arguments)); } __name(ShadowIGMediaProductTags2, "ShadowIGMediaProductTags"); createClass(ShadowIGMediaProductTags2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ image_url: "image_url", is_checkout: "is_checkout", merchant_id: "merchant_id", name: "name", price_string: "price_string", product_id: "product_id", review_status: "review_status", stripped_price_string: "stripped_price_string", stripped_sale_price_string: "stripped_sale_price_string", x: "x", y: "y" }); }, "get") }]); return ShadowIGMediaProductTags2; }(AbstractCrudObject); var IGMedia = function(_AbstractCrudObject) { inherits(IGMedia2, _AbstractCrudObject); function IGMedia2() { classCallCheck(this, IGMedia2); return possibleConstructorReturn(this, (IGMedia2.__proto__ || Object.getPrototypeOf(IGMedia2)).apply(this, arguments)); } __name(IGMedia2, "IGMedia"); createClass(IGMedia2, [{ key: "getBrandedContentPartnerPromote", value: /* @__PURE__ */ __name(function getBrandedContentPartnerPromote(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BrandedContentShadowIGUserID, fields, params, fetchFirstPage, "/branded_content_partner_promote"); }, "getBrandedContentPartnerPromote") }, { key: "createBrandedContentPartnerPromote", value: /* @__PURE__ */ __name(function createBrandedContentPartnerPromote(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/branded_content_partner_promote", fields, params, BrandedContentShadowIGUserID, pathOverride); }, "createBrandedContentPartnerPromote") }, { key: "getChildren", value: /* @__PURE__ */ __name(function getChildren(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGMedia2, fields, params, fetchFirstPage, "/children"); }, "getChildren") }, { key: "getCollaborators", value: /* @__PURE__ */ __name(function getCollaborators(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ShadowIGMediaCollaborators, fields, params, fetchFirstPage, "/collaborators"); }, "getCollaborators") }, { key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGComment, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "createComment", value: /* @__PURE__ */ __name(function createComment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/comments", fields, params, IGComment, pathOverride); }, "createComment") }, { key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramInsightsResult, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "deleteProductTags", value: /* @__PURE__ */ __name(function deleteProductTags() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(IGMedia2.prototype.__proto__ || Object.getPrototypeOf(IGMedia2.prototype), "deleteEdge", this).call(this, "/product_tags", params); }, "deleteProductTags") }, { key: "getProductTags", value: /* @__PURE__ */ __name(function getProductTags(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ShadowIGMediaProductTags, fields, params, fetchFirstPage, "/product_tags"); }, "getProductTags") }, { key: "createProductTag", value: /* @__PURE__ */ __name(function createProductTag(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/product_tags", fields, params, ShadowIGMediaProductTags, pathOverride); }, "createProductTag") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(IGMedia2.prototype.__proto__ || Object.getPrototypeOf(IGMedia2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ caption: "caption", comments_count: "comments_count", copyright_check_information: "copyright_check_information", id: "id", ig_id: "ig_id", is_comment_enabled: "is_comment_enabled", is_shared_to_feed: "is_shared_to_feed", like_count: "like_count", media_product_type: "media_product_type", media_type: "media_type", media_url: "media_url", owner: "owner", permalink: "permalink", shortcode: "shortcode", thumbnail_url: "thumbnail_url", timestamp: "timestamp", username: "username" }); }, "get") }]); return IGMedia2; }(AbstractCrudObject); var IGShoppingProductAppeal = function(_AbstractCrudObject) { inherits(IGShoppingProductAppeal2, _AbstractCrudObject); function IGShoppingProductAppeal2() { classCallCheck(this, IGShoppingProductAppeal2); return possibleConstructorReturn(this, (IGShoppingProductAppeal2.__proto__ || Object.getPrototypeOf(IGShoppingProductAppeal2)).apply(this, arguments)); } __name(IGShoppingProductAppeal2, "IGShoppingProductAppeal"); createClass(IGShoppingProductAppeal2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ eligible_for_appeal: "eligible_for_appeal", product_appeal_status: "product_appeal_status", product_id: "product_id", rejection_reasons: "rejection_reasons", review_status: "review_status" }); }, "get") }]); return IGShoppingProductAppeal2; }(AbstractCrudObject); var ShadowIGHashtag = function(_AbstractCrudObject) { inherits(ShadowIGHashtag2, _AbstractCrudObject); function ShadowIGHashtag2() { classCallCheck(this, ShadowIGHashtag2); return possibleConstructorReturn(this, (ShadowIGHashtag2.__proto__ || Object.getPrototypeOf(ShadowIGHashtag2)).apply(this, arguments)); } __name(ShadowIGHashtag2, "ShadowIGHashtag"); createClass(ShadowIGHashtag2, [{ key: "getRecentMedia", value: /* @__PURE__ */ __name(function getRecentMedia(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGMedia, fields, params, fetchFirstPage, "/recent_media"); }, "getRecentMedia") }, { key: "getTopMedia", value: /* @__PURE__ */ __name(function getTopMedia(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGMedia, fields, params, fetchFirstPage, "/top_media"); }, "getTopMedia") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name" }); }, "get") }]); return ShadowIGHashtag2; }(AbstractCrudObject); var IGUser = function(_AbstractCrudObject) { inherits(IGUser2, _AbstractCrudObject); function IGUser2() { classCallCheck(this, IGUser2); return possibleConstructorReturn(this, (IGUser2.__proto__ || Object.getPrototypeOf(IGUser2)).apply(this, arguments)); } __name(IGUser2, "IGUser"); createClass(IGUser2, [{ key: "getAvailableCatalogs", value: /* @__PURE__ */ __name(function getAvailableCatalogs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(UserAvailableCatalogs, fields, params, fetchFirstPage, "/available_catalogs"); }, "getAvailableCatalogs") }, { key: "getBrandedContentAdPermissions", value: /* @__PURE__ */ __name(function getBrandedContentAdPermissions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGBCAdsPermission, fields, params, fetchFirstPage, "/branded_content_ad_permissions"); }, "getBrandedContentAdPermissions") }, { key: "createBrandedContentAdPermission", value: /* @__PURE__ */ __name(function createBrandedContentAdPermission(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/branded_content_ad_permissions", fields, params, IGBCAdsPermission, pathOverride); }, "createBrandedContentAdPermission") }, { key: "getBrandedContentAdvertisableMedias", value: /* @__PURE__ */ __name(function getBrandedContentAdvertisableMedias(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BrandedContentShadowIGMediaID, fields, params, fetchFirstPage, "/branded_content_advertisable_medias"); }, "getBrandedContentAdvertisableMedias") }, { key: "deleteBrandedContentTagApproval", value: /* @__PURE__ */ __name(function deleteBrandedContentTagApproval() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(IGUser2.prototype.__proto__ || Object.getPrototypeOf(IGUser2.prototype), "deleteEdge", this).call(this, "/branded_content_tag_approval", params); }, "deleteBrandedContentTagApproval") }, { key: "getBrandedContentTagApproval", value: /* @__PURE__ */ __name(function getBrandedContentTagApproval(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BrandedContentShadowIGUserID, fields, params, fetchFirstPage, "/branded_content_tag_approval"); }, "getBrandedContentTagApproval") }, { key: "createBrandedContentTagApproval", value: /* @__PURE__ */ __name(function createBrandedContentTagApproval(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/branded_content_tag_approval", fields, params, BrandedContentShadowIGUserID, pathOverride); }, "createBrandedContentTagApproval") }, { key: "getCatalogProductSearch", value: /* @__PURE__ */ __name(function getCatalogProductSearch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ShadowIGUserCatalogProductSearch, fields, params, fetchFirstPage, "/catalog_product_search"); }, "getCatalogProductSearch") }, { key: "getContentPublishingLimit", value: /* @__PURE__ */ __name(function getContentPublishingLimit(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ContentPublishingLimitResponse, fields, params, fetchFirstPage, "/content_publishing_limit"); }, "getContentPublishingLimit") }, { key: "getDataset", value: /* @__PURE__ */ __name(function getDataset(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Dataset, fields, params, fetchFirstPage, "/dataset"); }, "getDataset") }, { key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramInsightsResult, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "getLiveMedia", value: /* @__PURE__ */ __name(function getLiveMedia(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGMedia, fields, params, fetchFirstPage, "/live_media"); }, "getLiveMedia") }, { key: "getMedia", value: /* @__PURE__ */ __name(function getMedia(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGMedia, fields, params, fetchFirstPage, "/media"); }, "getMedia") }, { key: "createMedia", value: /* @__PURE__ */ __name(function createMedia(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/media", fields, params, IGMedia, pathOverride); }, "createMedia") }, { key: "createMediaPublish", value: /* @__PURE__ */ __name(function createMediaPublish(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/media_publish", fields, params, IGMedia, pathOverride); }, "createMediaPublish") }, { key: "createMention", value: /* @__PURE__ */ __name(function createMention(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/mentions", fields, params, null, pathOverride); }, "createMention") }, { key: "getNotificationMessageTokens", value: /* @__PURE__ */ __name(function getNotificationMessageTokens(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(UserPageOneTimeOptInTokenSettings, fields, params, fetchFirstPage, "/notification_message_tokens"); }, "getNotificationMessageTokens") }, { key: "getProductAppeal", value: /* @__PURE__ */ __name(function getProductAppeal(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGShoppingProductAppeal, fields, params, fetchFirstPage, "/product_appeal"); }, "getProductAppeal") }, { key: "createProductAppeal", value: /* @__PURE__ */ __name(function createProductAppeal(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/product_appeal", fields, params, IGShoppingProductAppeal, pathOverride); }, "createProductAppeal") }, { key: "getRecentlySearchedHashtags", value: /* @__PURE__ */ __name(function getRecentlySearchedHashtags(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ShadowIGHashtag, fields, params, fetchFirstPage, "/recently_searched_hashtags"); }, "getRecentlySearchedHashtags") }, { key: "getStories", value: /* @__PURE__ */ __name(function getStories(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGMedia, fields, params, fetchFirstPage, "/stories"); }, "getStories") }, { key: "getTags", value: /* @__PURE__ */ __name(function getTags(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGMedia, fields, params, fetchFirstPage, "/tags"); }, "getTags") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ biography: "biography", business_discovery: "business_discovery", followers_count: "followers_count", follows_count: "follows_count", id: "id", ig_id: "ig_id", media_count: "media_count", mentioned_comment: "mentioned_comment", mentioned_media: "mentioned_media", name: "name", owner_business: "owner_business", profile_picture_url: "profile_picture_url", shopping_product_tag_eligibility: "shopping_product_tag_eligibility", shopping_review_status: "shopping_review_status", username: "username", website: "website" }); }, "get") }]); return IGUser2; }(AbstractCrudObject); var OpenBridgeConfiguration = function(_AbstractCrudObject) { inherits(OpenBridgeConfiguration2, _AbstractCrudObject); function OpenBridgeConfiguration2() { classCallCheck(this, OpenBridgeConfiguration2); return possibleConstructorReturn(this, (OpenBridgeConfiguration2.__proto__ || Object.getPrototypeOf(OpenBridgeConfiguration2)).apply(this, arguments)); } __name(OpenBridgeConfiguration2, "OpenBridgeConfiguration"); createClass(OpenBridgeConfiguration2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(OpenBridgeConfiguration2.prototype.__proto__ || Object.getPrototypeOf(OpenBridgeConfiguration2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(OpenBridgeConfiguration2.prototype.__proto__ || Object.getPrototypeOf(OpenBridgeConfiguration2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ access_key: "access_key", active: "active", endpoint: "endpoint", fallback_domain: "fallback_domain", fallback_domain_enabled: "fallback_domain_enabled", host_business_id: "host_business_id", host_external_id: "host_external_id", id: "id", pixel_id: "pixel_id" }); }, "get") }]); return OpenBridgeConfiguration2; }(AbstractCrudObject); var BusinessAdAccountRequest = function(_AbstractCrudObject) { inherits(BusinessAdAccountRequest2, _AbstractCrudObject); function BusinessAdAccountRequest2() { classCallCheck(this, BusinessAdAccountRequest2); return possibleConstructorReturn(this, (BusinessAdAccountRequest2.__proto__ || Object.getPrototypeOf(BusinessAdAccountRequest2)).apply(this, arguments)); } __name(BusinessAdAccountRequest2, "BusinessAdAccountRequest"); createClass(BusinessAdAccountRequest2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_account: "ad_account", id: "id" }); }, "get") }]); return BusinessAdAccountRequest2; }(AbstractCrudObject); var BusinessApplicationRequest = function(_AbstractCrudObject) { inherits(BusinessApplicationRequest2, _AbstractCrudObject); function BusinessApplicationRequest2() { classCallCheck(this, BusinessApplicationRequest2); return possibleConstructorReturn(this, (BusinessApplicationRequest2.__proto__ || Object.getPrototypeOf(BusinessApplicationRequest2)).apply(this, arguments)); } __name(BusinessApplicationRequest2, "BusinessApplicationRequest"); createClass(BusinessApplicationRequest2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ application: "application", id: "id" }); }, "get") }]); return BusinessApplicationRequest2; }(AbstractCrudObject); var BusinessPageRequest = function(_AbstractCrudObject) { inherits(BusinessPageRequest2, _AbstractCrudObject); function BusinessPageRequest2() { classCallCheck(this, BusinessPageRequest2); return possibleConstructorReturn(this, (BusinessPageRequest2.__proto__ || Object.getPrototypeOf(BusinessPageRequest2)).apply(this, arguments)); } __name(BusinessPageRequest2, "BusinessPageRequest"); createClass(BusinessPageRequest2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", page: "page" }); }, "get") }]); return BusinessPageRequest2; }(AbstractCrudObject); var BusinessRoleRequest = function(_AbstractCrudObject) { inherits(BusinessRoleRequest2, _AbstractCrudObject); function BusinessRoleRequest2() { classCallCheck(this, BusinessRoleRequest2); return possibleConstructorReturn(this, (BusinessRoleRequest2.__proto__ || Object.getPrototypeOf(BusinessRoleRequest2)).apply(this, arguments)); } __name(BusinessRoleRequest2, "BusinessRoleRequest"); createClass(BusinessRoleRequest2, [{ key: "delete", // $FlowFixMe : Support Generic Types value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(BusinessRoleRequest2.prototype.__proto__ || Object.getPrototypeOf(BusinessRoleRequest2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(BusinessRoleRequest2.prototype.__proto__ || Object.getPrototypeOf(BusinessRoleRequest2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ created_by: "created_by", created_time: "created_time", email: "email", expiration_time: "expiration_time", expiry_time: "expiry_time", finance_role: "finance_role", id: "id", invite_link: "invite_link", ip_role: "ip_role", owner: "owner", role: "role", status: "status", updated_by: "updated_by", updated_time: "updated_time" }); }, "get") }, { key: "Role", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ admin: "ADMIN", ads_rights_reviewer: "ADS_RIGHTS_REVIEWER", default: "DEFAULT", developer: "DEVELOPER", employee: "EMPLOYEE", finance_analyst: "FINANCE_ANALYST", finance_edit: "FINANCE_EDIT", finance_editor: "FINANCE_EDITOR", finance_view: "FINANCE_VIEW", manage: "MANAGE", partner_center_admin: "PARTNER_CENTER_ADMIN", partner_center_analyst: "PARTNER_CENTER_ANALYST", partner_center_education: "PARTNER_CENTER_EDUCATION", partner_center_marketing: "PARTNER_CENTER_MARKETING", partner_center_operations: "PARTNER_CENTER_OPERATIONS" }); }, "get") }]); return BusinessRoleRequest2; }(AbstractCrudObject); var WhatsAppBusinessPreVerifiedPhoneNumber = function(_AbstractCrudObject) { inherits(WhatsAppBusinessPreVerifiedPhoneNumber2, _AbstractCrudObject); function WhatsAppBusinessPreVerifiedPhoneNumber2() { classCallCheck(this, WhatsAppBusinessPreVerifiedPhoneNumber2); return possibleConstructorReturn(this, (WhatsAppBusinessPreVerifiedPhoneNumber2.__proto__ || Object.getPrototypeOf(WhatsAppBusinessPreVerifiedPhoneNumber2)).apply(this, arguments)); } __name(WhatsAppBusinessPreVerifiedPhoneNumber2, "WhatsAppBusinessPreVerifiedPhoneNumber"); createClass(WhatsAppBusinessPreVerifiedPhoneNumber2, [{ key: "getPartners", value: /* @__PURE__ */ __name(function getPartners(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/partners"); }, "getPartners") }, { key: "createRequestCode", value: /* @__PURE__ */ __name(function createRequestCode(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/request_code", fields, params, null, pathOverride); }, "createRequestCode") }, { key: "createVerifyCode", value: /* @__PURE__ */ __name(function createVerifyCode(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/verify_code", fields, params, null, pathOverride); }, "createVerifyCode") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(WhatsAppBusinessPreVerifiedPhoneNumber2.prototype.__proto__ || Object.getPrototypeOf(WhatsAppBusinessPreVerifiedPhoneNumber2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ code_verification_status: "code_verification_status", code_verification_time: "code_verification_time", id: "id", owner_business: "owner_business", phone_number: "phone_number", verification_expiry_time: "verification_expiry_time" }); }, "get") }, { key: "CodeVerificationStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ expired: "EXPIRED", not_verified: "NOT_VERIFIED", verified: "VERIFIED" }); }, "get") }]); return WhatsAppBusinessPreVerifiedPhoneNumber2; }(AbstractCrudObject); var WhatsAppBusinessPartnerClientVerificationSubmission = function(_AbstractCrudObject) { inherits(WhatsAppBusinessPartnerClientVerificationSubmission2, _AbstractCrudObject); function WhatsAppBusinessPartnerClientVerificationSubmission2() { classCallCheck(this, WhatsAppBusinessPartnerClientVerificationSubmission2); return possibleConstructorReturn(this, (WhatsAppBusinessPartnerClientVerificationSubmission2.__proto__ || Object.getPrototypeOf(WhatsAppBusinessPartnerClientVerificationSubmission2)).apply(this, arguments)); } __name(WhatsAppBusinessPartnerClientVerificationSubmission2, "WhatsAppBusinessPartnerClientVerificationSubmission"); createClass(WhatsAppBusinessPartnerClientVerificationSubmission2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ client_business_id: "client_business_id", id: "id", rejection_reasons: "rejection_reasons", submitted_info: "submitted_info", submitted_time: "submitted_time", update_time: "update_time", verification_status: "verification_status" }); }, "get") }, { key: "RejectionReasons", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ address_not_matching: "ADDRESS_NOT_MATCHING", legal_name_not_matching: "LEGAL_NAME_NOT_MATCHING", none: "NONE", website_not_matching: "WEBSITE_NOT_MATCHING" }); }, "get") }, { key: "VerificationStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ approved: "APPROVED", failed: "FAILED", pending: "PENDING" }); }, "get") }]); return WhatsAppBusinessPartnerClientVerificationSubmission2; }(AbstractCrudObject); var SystemUser = function(_AbstractCrudObject) { inherits(SystemUser2, _AbstractCrudObject); function SystemUser2() { classCallCheck(this, SystemUser2); return possibleConstructorReturn(this, (SystemUser2.__proto__ || Object.getPrototypeOf(SystemUser2)).apply(this, arguments)); } __name(SystemUser2, "SystemUser"); createClass(SystemUser2, [{ key: "getAssignedAdAccounts", value: /* @__PURE__ */ __name(function getAssignedAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/assigned_ad_accounts"); }, "getAssignedAdAccounts") }, { key: "getAssignedBusinessAssetGroups", value: /* @__PURE__ */ __name(function getAssignedBusinessAssetGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessAssetGroup, fields, params, fetchFirstPage, "/assigned_business_asset_groups"); }, "getAssignedBusinessAssetGroups") }, { key: "getAssignedPages", value: /* @__PURE__ */ __name(function getAssignedPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/assigned_pages"); }, "getAssignedPages") }, { key: "getAssignedProductCatalogs", value: /* @__PURE__ */ __name(function getAssignedProductCatalogs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalog, fields, params, fetchFirstPage, "/assigned_product_catalogs"); }, "getAssignedProductCatalogs") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ created_by: "created_by", created_time: "created_time", finance_permission: "finance_permission", id: "id", ip_permission: "ip_permission", name: "name" }); }, "get") }, { key: "Role", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ admin: "ADMIN", ads_rights_reviewer: "ADS_RIGHTS_REVIEWER", default: "DEFAULT", developer: "DEVELOPER", employee: "EMPLOYEE", finance_analyst: "FINANCE_ANALYST", finance_edit: "FINANCE_EDIT", finance_editor: "FINANCE_EDITOR", finance_view: "FINANCE_VIEW", manage: "MANAGE", partner_center_admin: "PARTNER_CENTER_ADMIN", partner_center_analyst: "PARTNER_CENTER_ANALYST", partner_center_education: "PARTNER_CENTER_EDUCATION", partner_center_marketing: "PARTNER_CENTER_MARKETING", partner_center_operations: "PARTNER_CENTER_OPERATIONS" }); }, "get") }]); return SystemUser2; }(AbstractCrudObject); var Business = function(_AbstractCrudObject) { inherits(Business2, _AbstractCrudObject); function Business2() { classCallCheck(this, Business2); return possibleConstructorReturn(this, (Business2.__proto__ || Object.getPrototypeOf(Business2)).apply(this, arguments)); } __name(Business2, "Business"); createClass(Business2, [{ key: "createAccessToken", value: /* @__PURE__ */ __name(function createAccessToken(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/access_token", fields, params, Business2, pathOverride); }, "createAccessToken") }, { key: "deleteAdAccounts", value: /* @__PURE__ */ __name(function deleteAdAccounts() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Business2.prototype.__proto__ || Object.getPrototypeOf(Business2.prototype), "deleteEdge", this).call(this, "/ad_accounts", params); }, "deleteAdAccounts") }, { key: "getAdStudies", value: /* @__PURE__ */ __name(function getAdStudies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdStudy, fields, params, fetchFirstPage, "/ad_studies"); }, "getAdStudies") }, { key: "createAdStudy", value: /* @__PURE__ */ __name(function createAdStudy(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/ad_studies", fields, params, AdStudy, pathOverride); }, "createAdStudy") }, { key: "createAdAccount", value: /* @__PURE__ */ __name(function createAdAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adaccount", fields, params, AdAccount2, pathOverride); }, "createAdAccount") }, { key: "createAddPhoneNumber", value: /* @__PURE__ */ __name(function createAddPhoneNumber(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/add_phone_numbers", fields, params, Business2, pathOverride); }, "createAddPhoneNumber") }, { key: "createAdNetworkApplication", value: /* @__PURE__ */ __name(function createAdNetworkApplication(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adnetwork_applications", fields, params, Application, pathOverride); }, "createAdNetworkApplication") }, { key: "getAdNetworkAnalytics", value: /* @__PURE__ */ __name(function getAdNetworkAnalytics(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdNetworkAnalyticsSyncQueryResult, fields, params, fetchFirstPage, "/adnetworkanalytics"); }, "getAdNetworkAnalytics") }, { key: "createAdNetworkAnalytic", value: /* @__PURE__ */ __name(function createAdNetworkAnalytic(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adnetworkanalytics", fields, params, Business2, pathOverride); }, "createAdNetworkAnalytic") }, { key: "getAdNetworkAnalyticsResults", value: /* @__PURE__ */ __name(function getAdNetworkAnalyticsResults(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdNetworkAnalyticsAsyncQueryResult, fields, params, fetchFirstPage, "/adnetworkanalytics_results"); }, "getAdNetworkAnalyticsResults") }, { key: "getAdsReportingMmmReports", value: /* @__PURE__ */ __name(function getAdsReportingMmmReports(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/ads_reporting_mmm_reports"); }, "getAdsReportingMmmReports") }, { key: "getAdsReportingMmmSchedulers", value: /* @__PURE__ */ __name(function getAdsReportingMmmSchedulers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/ads_reporting_mmm_schedulers"); }, "getAdsReportingMmmSchedulers") }, { key: "getAdsPixels", value: /* @__PURE__ */ __name(function getAdsPixels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsPixel, fields, params, fetchFirstPage, "/adspixels"); }, "getAdsPixels") }, { key: "createAdsPixel", value: /* @__PURE__ */ __name(function createAdsPixel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adspixels", fields, params, AdsPixel, pathOverride); }, "createAdsPixel") }, { key: "deleteAgencies", value: /* @__PURE__ */ __name(function deleteAgencies() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Business2.prototype.__proto__ || Object.getPrototypeOf(Business2.prototype), "deleteEdge", this).call(this, "/agencies", params); }, "deleteAgencies") }, { key: "getAgencies", value: /* @__PURE__ */ __name(function getAgencies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business2, fields, params, fetchFirstPage, "/agencies"); }, "getAgencies") }, { key: "getAnPlacements", value: /* @__PURE__ */ __name(function getAnPlacements(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdPlacement, fields, params, fetchFirstPage, "/an_placements"); }, "getAnPlacements") }, { key: "createBlockListDraft", value: /* @__PURE__ */ __name(function createBlockListDraft(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/block_list_drafts", fields, params, Business2, pathOverride); }, "createBlockListDraft") }, { key: "getBusinessAssetGroups", value: /* @__PURE__ */ __name(function getBusinessAssetGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessAssetGroup, fields, params, fetchFirstPage, "/business_asset_groups"); }, "getBusinessAssetGroups") }, { key: "getBusinessInvoices", value: /* @__PURE__ */ __name(function getBusinessInvoices(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(OmegaCustomerTrx, fields, params, fetchFirstPage, "/business_invoices"); }, "getBusinessInvoices") }, { key: "getBusinessUsers", value: /* @__PURE__ */ __name(function getBusinessUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessUser, fields, params, fetchFirstPage, "/business_users"); }, "getBusinessUsers") }, { key: "createBusinessUser", value: /* @__PURE__ */ __name(function createBusinessUser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/business_users", fields, params, BusinessUser, pathOverride); }, "createBusinessUser") }, { key: "getBusinessProjects", value: /* @__PURE__ */ __name(function getBusinessProjects(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/businessprojects"); }, "getBusinessProjects") }, { key: "createClaimCustomConversion", value: /* @__PURE__ */ __name(function createClaimCustomConversion(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/claim_custom_conversions", fields, params, CustomConversion, pathOverride); }, "createClaimCustomConversion") }, { key: "getClientAdAccounts", value: /* @__PURE__ */ __name(function getClientAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/client_ad_accounts"); }, "getClientAdAccounts") }, { key: "getClientApps", value: /* @__PURE__ */ __name(function getClientApps(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Application, fields, params, fetchFirstPage, "/client_apps"); }, "getClientApps") }, { key: "createClientApp", value: /* @__PURE__ */ __name(function createClientApp(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/client_apps", fields, params, Business2, pathOverride); }, "createClientApp") }, { key: "getClientOffsiteSignalContainerBusinessObjects", value: /* @__PURE__ */ __name(function getClientOffsiteSignalContainerBusinessObjects(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/client_offsite_signal_container_business_objects"); }, "getClientOffsiteSignalContainerBusinessObjects") }, { key: "getClientPages", value: /* @__PURE__ */ __name(function getClientPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/client_pages"); }, "getClientPages") }, { key: "createClientPage", value: /* @__PURE__ */ __name(function createClientPage(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/client_pages", fields, params, Business2, pathOverride); }, "createClientPage") }, { key: "getClientPixels", value: /* @__PURE__ */ __name(function getClientPixels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsPixel, fields, params, fetchFirstPage, "/client_pixels"); }, "getClientPixels") }, { key: "getClientProductCatalogs", value: /* @__PURE__ */ __name(function getClientProductCatalogs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalog, fields, params, fetchFirstPage, "/client_product_catalogs"); }, "getClientProductCatalogs") }, { key: "getClientWhatsAppBusinessAccounts", value: /* @__PURE__ */ __name(function getClientWhatsAppBusinessAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(WhatsAppBusinessAccount, fields, params, fetchFirstPage, "/client_whatsapp_business_accounts"); }, "getClientWhatsAppBusinessAccounts") }, { key: "deleteClients", value: /* @__PURE__ */ __name(function deleteClients() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Business2.prototype.__proto__ || Object.getPrototypeOf(Business2.prototype), "deleteEdge", this).call(this, "/clients", params); }, "deleteClients") }, { key: "getClients", value: /* @__PURE__ */ __name(function getClients(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business2, fields, params, fetchFirstPage, "/clients"); }, "getClients") }, { key: "getCollaborativeAdsCollaborationRequests", value: /* @__PURE__ */ __name(function getCollaborativeAdsCollaborationRequests(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CPASCollaborationRequest, fields, params, fetchFirstPage, "/collaborative_ads_collaboration_requests"); }, "getCollaborativeAdsCollaborationRequests") }, { key: "createCollaborativeAdsCollaborationRequest", value: /* @__PURE__ */ __name(function createCollaborativeAdsCollaborationRequest(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/collaborative_ads_collaboration_requests", fields, params, CPASCollaborationRequest, pathOverride); }, "createCollaborativeAdsCollaborationRequest") }, { key: "getCollaborativeAdsSuggestedPartners", value: /* @__PURE__ */ __name(function getCollaborativeAdsSuggestedPartners(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CPASAdvertiserPartnershipRecommendation, fields, params, fetchFirstPage, "/collaborative_ads_suggested_partners"); }, "getCollaborativeAdsSuggestedPartners") }, { key: "getCommerceMerchantSettings", value: /* @__PURE__ */ __name(function getCommerceMerchantSettings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CommerceMerchantSettings, fields, params, fetchFirstPage, "/commerce_merchant_settings"); }, "getCommerceMerchantSettings") }, { key: "getCpasBusinessSetupConfig", value: /* @__PURE__ */ __name(function getCpasBusinessSetupConfig(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CPASBusinessSetupConfig, fields, params, fetchFirstPage, "/cpas_business_setup_config"); }, "getCpasBusinessSetupConfig") }, { key: "createCpasBusinessSetupConfig", value: /* @__PURE__ */ __name(function createCpasBusinessSetupConfig(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/cpas_business_setup_config", fields, params, CPASBusinessSetupConfig, pathOverride); }, "createCpasBusinessSetupConfig") }, { key: "getCpasMerchantConfig", value: /* @__PURE__ */ __name(function getCpasMerchantConfig(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CPASMerchantConfig, fields, params, fetchFirstPage, "/cpas_merchant_config"); }, "getCpasMerchantConfig") }, { key: "createCreativeFolder", value: /* @__PURE__ */ __name(function createCreativeFolder(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/creative_folders", fields, params, BusinessCreativeFolder, pathOverride); }, "createCreativeFolder") }, { key: "getCreditCards", value: /* @__PURE__ */ __name(function getCreditCards(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CreditCard, fields, params, fetchFirstPage, "/creditcards"); }, "getCreditCards") }, { key: "createCustomConversion", value: /* @__PURE__ */ __name(function createCustomConversion(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/customconversions", fields, params, CustomConversion, pathOverride); }, "createCustomConversion") }, { key: "createDraftNegativeKeywordList", value: /* @__PURE__ */ __name(function createDraftNegativeKeywordList(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/draft_negative_keyword_lists", fields, params, null, pathOverride); }, "createDraftNegativeKeywordList") }, { key: "getEventSourceGroups", value: /* @__PURE__ */ __name(function getEventSourceGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(EventSourceGroup, fields, params, fetchFirstPage, "/event_source_groups"); }, "getEventSourceGroups") }, { key: "createEventSourceGroup", value: /* @__PURE__ */ __name(function createEventSourceGroup(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/event_source_groups", fields, params, EventSourceGroup, pathOverride); }, "createEventSourceGroup") }, { key: "getExtendedCreditApplications", value: /* @__PURE__ */ __name(function getExtendedCreditApplications(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/extendedcreditapplications"); }, "getExtendedCreditApplications") }, { key: "getExtendedCredits", value: /* @__PURE__ */ __name(function getExtendedCredits(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ExtendedCredit, fields, params, fetchFirstPage, "/extendedcredits"); }, "getExtendedCredits") }, { key: "createImage", value: /* @__PURE__ */ __name(function createImage(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/images", fields, params, BusinessImage, pathOverride); }, "createImage") }, { key: "getInitiatedAudienceSharingRequests", value: /* @__PURE__ */ __name(function getInitiatedAudienceSharingRequests(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessAssetSharingAgreement, fields, params, fetchFirstPage, "/initiated_audience_sharing_requests"); }, "getInitiatedAudienceSharingRequests") }, { key: "deleteInstagramAccounts", value: /* @__PURE__ */ __name(function deleteInstagramAccounts() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Business2.prototype.__proto__ || Object.getPrototypeOf(Business2.prototype), "deleteEdge", this).call(this, "/instagram_accounts", params); }, "deleteInstagramAccounts") }, { key: "getInstagramAccounts", value: /* @__PURE__ */ __name(function getInstagramAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramUser, fields, params, fetchFirstPage, "/instagram_accounts"); }, "getInstagramAccounts") }, { key: "getInstagramBusinessAccounts", value: /* @__PURE__ */ __name(function getInstagramBusinessAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGUser, fields, params, fetchFirstPage, "/instagram_business_accounts"); }, "getInstagramBusinessAccounts") }, { key: "deleteManagedBusinesses", value: /* @__PURE__ */ __name(function deleteManagedBusinesses() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Business2.prototype.__proto__ || Object.getPrototypeOf(Business2.prototype), "deleteEdge", this).call(this, "/managed_businesses", params); }, "deleteManagedBusinesses") }, { key: "createManagedBusiness", value: /* @__PURE__ */ __name(function createManagedBusiness(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/managed_businesses", fields, params, Business2, pathOverride); }, "createManagedBusiness") }, { key: "createManagedPartnerBusinessSetup", value: /* @__PURE__ */ __name(function createManagedPartnerBusinessSetup(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/managed_partner_business_setup", fields, params, Business2, pathOverride); }, "createManagedPartnerBusinessSetup") }, { key: "deleteManagedPartnerBusinesses", value: /* @__PURE__ */ __name(function deleteManagedPartnerBusinesses() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Business2.prototype.__proto__ || Object.getPrototypeOf(Business2.prototype), "deleteEdge", this).call(this, "/managed_partner_businesses", params); }, "deleteManagedPartnerBusinesses") }, { key: "createManagedPartnerBusiness", value: /* @__PURE__ */ __name(function createManagedPartnerBusiness(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/managed_partner_businesses", fields, params, null, pathOverride); }, "createManagedPartnerBusiness") }, { key: "getNegativeKeywordLists", value: /* @__PURE__ */ __name(function getNegativeKeywordLists(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/negative_keyword_lists"); }, "getNegativeKeywordLists") }, { key: "getOfflineConversionDataSets", value: /* @__PURE__ */ __name(function getOfflineConversionDataSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(OfflineConversionDataSet, fields, params, fetchFirstPage, "/offline_conversion_data_sets"); }, "getOfflineConversionDataSets") }, { key: "createOfflineConversionDataSet", value: /* @__PURE__ */ __name(function createOfflineConversionDataSet(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/offline_conversion_data_sets", fields, params, OfflineConversionDataSet, pathOverride); }, "createOfflineConversionDataSet") }, { key: "getOpenBridgeConfigurations", value: /* @__PURE__ */ __name(function getOpenBridgeConfigurations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(OpenBridgeConfiguration, fields, params, fetchFirstPage, "/openbridge_configurations"); }, "getOpenBridgeConfigurations") }, { key: "createOpenBridgeConfiguration", value: /* @__PURE__ */ __name(function createOpenBridgeConfiguration(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/openbridge_configurations", fields, params, OpenBridgeConfiguration, pathOverride); }, "createOpenBridgeConfiguration") }, { key: "getOwnedAdAccounts", value: /* @__PURE__ */ __name(function getOwnedAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/owned_ad_accounts"); }, "getOwnedAdAccounts") }, { key: "createOwnedAdAccount", value: /* @__PURE__ */ __name(function createOwnedAdAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/owned_ad_accounts", fields, params, Business2, pathOverride); }, "createOwnedAdAccount") }, { key: "getOwnedApps", value: /* @__PURE__ */ __name(function getOwnedApps(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Application, fields, params, fetchFirstPage, "/owned_apps"); }, "getOwnedApps") }, { key: "createOwnedApp", value: /* @__PURE__ */ __name(function createOwnedApp(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/owned_apps", fields, params, Business2, pathOverride); }, "createOwnedApp") }, { key: "deleteOwnedBusinesses", value: /* @__PURE__ */ __name(function deleteOwnedBusinesses() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Business2.prototype.__proto__ || Object.getPrototypeOf(Business2.prototype), "deleteEdge", this).call(this, "/owned_businesses", params); }, "deleteOwnedBusinesses") }, { key: "getOwnedBusinesses", value: /* @__PURE__ */ __name(function getOwnedBusinesses(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business2, fields, params, fetchFirstPage, "/owned_businesses"); }, "getOwnedBusinesses") }, { key: "createOwnedBusiness", value: /* @__PURE__ */ __name(function createOwnedBusiness(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/owned_businesses", fields, params, Business2, pathOverride); }, "createOwnedBusiness") }, { key: "getOwnedInstagramAccounts", value: /* @__PURE__ */ __name(function getOwnedInstagramAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramUser, fields, params, fetchFirstPage, "/owned_instagram_accounts"); }, "getOwnedInstagramAccounts") }, { key: "getOwnedOffsiteSignalContainerBusinessObjects", value: /* @__PURE__ */ __name(function getOwnedOffsiteSignalContainerBusinessObjects(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/owned_offsite_signal_container_business_objects"); }, "getOwnedOffsiteSignalContainerBusinessObjects") }, { key: "getOwnedPages", value: /* @__PURE__ */ __name(function getOwnedPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/owned_pages"); }, "getOwnedPages") }, { key: "createOwnedPage", value: /* @__PURE__ */ __name(function createOwnedPage(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/owned_pages", fields, params, Business2, pathOverride); }, "createOwnedPage") }, { key: "getOwnedPixels", value: /* @__PURE__ */ __name(function getOwnedPixels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsPixel, fields, params, fetchFirstPage, "/owned_pixels"); }, "getOwnedPixels") }, { key: "getOwnedProductCatalogs", value: /* @__PURE__ */ __name(function getOwnedProductCatalogs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProductCatalog, fields, params, fetchFirstPage, "/owned_product_catalogs"); }, "getOwnedProductCatalogs") }, { key: "createOwnedProductCatalog", value: /* @__PURE__ */ __name(function createOwnedProductCatalog(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/owned_product_catalogs", fields, params, ProductCatalog, pathOverride); }, "createOwnedProductCatalog") }, { key: "getOwnedWhatsAppBusinessAccounts", value: /* @__PURE__ */ __name(function getOwnedWhatsAppBusinessAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(WhatsAppBusinessAccount, fields, params, fetchFirstPage, "/owned_whatsapp_business_accounts"); }, "getOwnedWhatsAppBusinessAccounts") }, { key: "deletePages", value: /* @__PURE__ */ __name(function deletePages() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Business2.prototype.__proto__ || Object.getPrototypeOf(Business2.prototype), "deleteEdge", this).call(this, "/pages", params); }, "deletePages") }, { key: "getPartnerAccountLinking", value: /* @__PURE__ */ __name(function getPartnerAccountLinking(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/partner_account_linking"); }, "getPartnerAccountLinking") }, { key: "createPartnerPremiumOption", value: /* @__PURE__ */ __name(function createPartnerPremiumOption(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/partner_premium_options", fields, params, null, pathOverride); }, "createPartnerPremiumOption") }, { key: "getPendingClientAdAccounts", value: /* @__PURE__ */ __name(function getPendingClientAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessAdAccountRequest, fields, params, fetchFirstPage, "/pending_client_ad_accounts"); }, "getPendingClientAdAccounts") }, { key: "getPendingClientApps", value: /* @__PURE__ */ __name(function getPendingClientApps(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessApplicationRequest, fields, params, fetchFirstPage, "/pending_client_apps"); }, "getPendingClientApps") }, { key: "getPendingClientPages", value: /* @__PURE__ */ __name(function getPendingClientPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessPageRequest, fields, params, fetchFirstPage, "/pending_client_pages"); }, "getPendingClientPages") }, { key: "getPendingOwnedAdAccounts", value: /* @__PURE__ */ __name(function getPendingOwnedAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessAdAccountRequest, fields, params, fetchFirstPage, "/pending_owned_ad_accounts"); }, "getPendingOwnedAdAccounts") }, { key: "getPendingOwnedPages", value: /* @__PURE__ */ __name(function getPendingOwnedPages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessPageRequest, fields, params, fetchFirstPage, "/pending_owned_pages"); }, "getPendingOwnedPages") }, { key: "getPendingSharedOffsiteSignalContainerBusinessObjects", value: /* @__PURE__ */ __name(function getPendingSharedOffsiteSignalContainerBusinessObjects(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/pending_shared_offsite_signal_container_business_objects"); }, "getPendingSharedOffsiteSignalContainerBusinessObjects") }, { key: "getPendingUsers", value: /* @__PURE__ */ __name(function getPendingUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessRoleRequest, fields, params, fetchFirstPage, "/pending_users"); }, "getPendingUsers") }, { key: "getPicture", value: /* @__PURE__ */ __name(function getPicture(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ProfilePictureSource, fields, params, fetchFirstPage, "/picture"); }, "getPicture") }, { key: "createPixelTo", value: /* @__PURE__ */ __name(function createPixelTo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/pixel_tos", fields, params, null, pathOverride); }, "createPixelTo") }, { key: "getPreVerifiedNumbers", value: /* @__PURE__ */ __name(function getPreVerifiedNumbers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(WhatsAppBusinessPreVerifiedPhoneNumber, fields, params, fetchFirstPage, "/preverified_numbers"); }, "getPreVerifiedNumbers") }, { key: "getReceivedAudienceSharingRequests", value: /* @__PURE__ */ __name(function getReceivedAudienceSharingRequests(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessAssetSharingAgreement, fields, params, fetchFirstPage, "/received_audience_sharing_requests"); }, "getReceivedAudienceSharingRequests") }, { key: "getSelfCertifiedWhatsappBusinessSubmissions", value: /* @__PURE__ */ __name(function getSelfCertifiedWhatsappBusinessSubmissions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(WhatsAppBusinessPartnerClientVerificationSubmission, fields, params, fetchFirstPage, "/self_certified_whatsapp_business_submissions"); }, "getSelfCertifiedWhatsappBusinessSubmissions") }, { key: "createSetupManagedPartnerAdAccount", value: /* @__PURE__ */ __name(function createSetupManagedPartnerAdAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/setup_managed_partner_adaccounts", fields, params, Business2, pathOverride); }, "createSetupManagedPartnerAdAccount") }, { key: "deleteSharePreVerifiedNumbers", value: /* @__PURE__ */ __name(function deleteSharePreVerifiedNumbers() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Business2.prototype.__proto__ || Object.getPrototypeOf(Business2.prototype), "deleteEdge", this).call(this, "/share_preverified_numbers", params); }, "deleteSharePreVerifiedNumbers") }, { key: "createSharePreVerifiedNumber", value: /* @__PURE__ */ __name(function createSharePreVerifiedNumber(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/share_preverified_numbers", fields, params, Business2, pathOverride); }, "createSharePreVerifiedNumber") }, { key: "createSystemUserAccessToken", value: /* @__PURE__ */ __name(function createSystemUserAccessToken(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/system_user_access_tokens", fields, params, Business2, pathOverride); }, "createSystemUserAccessToken") }, { key: "getSystemUsers", value: /* @__PURE__ */ __name(function getSystemUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(SystemUser, fields, params, fetchFirstPage, "/system_users"); }, "getSystemUsers") }, { key: "createSystemUser", value: /* @__PURE__ */ __name(function createSystemUser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/system_users", fields, params, SystemUser, pathOverride); }, "createSystemUser") }, { key: "getThirdPartyMeasurementReportDataset", value: /* @__PURE__ */ __name(function getThirdPartyMeasurementReportDataset(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/third_party_measurement_report_dataset"); }, "getThirdPartyMeasurementReportDataset") }, { key: "createVideo", value: /* @__PURE__ */ __name(function createVideo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/videos", fields, params, AdVideo, pathOverride); }, "createVideo") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Business2.prototype.__proto__ || Object.getPrototypeOf(Business2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ block_offline_analytics: "block_offline_analytics", collaborative_ads_managed_partner_business_info: "collaborative_ads_managed_partner_business_info", collaborative_ads_managed_partner_eligibility: "collaborative_ads_managed_partner_eligibility", collaborative_ads_partner_premium_options: "collaborative_ads_partner_premium_options", created_by: "created_by", created_time: "created_time", extended_updated_time: "extended_updated_time", id: "id", is_hidden: "is_hidden", link: "link", name: "name", payment_account_id: "payment_account_id", primary_page: "primary_page", profile_picture_uri: "profile_picture_uri", timezone_id: "timezone_id", two_factor_type: "two_factor_type", updated_by: "updated_by", updated_time: "updated_time", user_access_expire_time: "user_access_expire_time", verification_status: "verification_status", vertical: "vertical", vertical_id: "vertical_id" }); }, "get") }, { key: "TwoFactorType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ admin_required: "admin_required", all_required: "all_required", none: "none" }); }, "get") }, { key: "Vertical", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertising: "ADVERTISING", automotive: "AUTOMOTIVE", consumer_packaged_goods: "CONSUMER_PACKAGED_GOODS", ecommerce: "ECOMMERCE", education: "EDUCATION", energy_and_utilities: "ENERGY_AND_UTILITIES", entertainment_and_media: "ENTERTAINMENT_AND_MEDIA", financial_services: "FINANCIAL_SERVICES", gaming: "GAMING", government_and_politics: "GOVERNMENT_AND_POLITICS", health: "HEALTH", luxury: "LUXURY", marketing: "MARKETING", non_profit: "NON_PROFIT", not_set: "NOT_SET", organizations_and_associations: "ORGANIZATIONS_AND_ASSOCIATIONS", other: "OTHER", professional_services: "PROFESSIONAL_SERVICES", restaurant: "RESTAURANT", retail: "RETAIL", technology: "TECHNOLOGY", telecom: "TELECOM", travel: "TRAVEL" }); }, "get") }, { key: "PermittedTasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertise: "ADVERTISE", analyze: "ANALYZE", cashier_role: "CASHIER_ROLE", create_content: "CREATE_CONTENT", manage: "MANAGE", manage_jobs: "MANAGE_JOBS", manage_leads: "MANAGE_LEADS", messaging: "MESSAGING", moderate: "MODERATE", moderate_community: "MODERATE_COMMUNITY", pages_messaging: "PAGES_MESSAGING", pages_messaging_subscriptions: "PAGES_MESSAGING_SUBSCRIPTIONS", profile_plus_advertise: "PROFILE_PLUS_ADVERTISE", profile_plus_analyze: "PROFILE_PLUS_ANALYZE", profile_plus_create_content: "PROFILE_PLUS_CREATE_CONTENT", profile_plus_facebook_access: "PROFILE_PLUS_FACEBOOK_ACCESS", profile_plus_full_control: "PROFILE_PLUS_FULL_CONTROL", profile_plus_manage: "PROFILE_PLUS_MANAGE", profile_plus_manage_leads: "PROFILE_PLUS_MANAGE_LEADS", profile_plus_messaging: "PROFILE_PLUS_MESSAGING", profile_plus_moderate: "PROFILE_PLUS_MODERATE", profile_plus_moderate_delegate_community: "PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY", profile_plus_revenue: "PROFILE_PLUS_REVENUE", read_page_mailboxes: "READ_PAGE_MAILBOXES", view_monetization_insights: "VIEW_MONETIZATION_INSIGHTS" }); }, "get") }, { key: "SurveyBusinessType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertiser: "ADVERTISER", agency: "AGENCY", app_developer: "APP_DEVELOPER", publisher: "PUBLISHER" }); }, "get") }, { key: "PagePermittedTasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertise: "ADVERTISE", analyze: "ANALYZE", cashier_role: "CASHIER_ROLE", create_content: "CREATE_CONTENT", manage: "MANAGE", manage_jobs: "MANAGE_JOBS", manage_leads: "MANAGE_LEADS", messaging: "MESSAGING", moderate: "MODERATE", moderate_community: "MODERATE_COMMUNITY", pages_messaging: "PAGES_MESSAGING", pages_messaging_subscriptions: "PAGES_MESSAGING_SUBSCRIPTIONS", profile_plus_advertise: "PROFILE_PLUS_ADVERTISE", profile_plus_analyze: "PROFILE_PLUS_ANALYZE", profile_plus_create_content: "PROFILE_PLUS_CREATE_CONTENT", profile_plus_facebook_access: "PROFILE_PLUS_FACEBOOK_ACCESS", profile_plus_full_control: "PROFILE_PLUS_FULL_CONTROL", profile_plus_manage: "PROFILE_PLUS_MANAGE", profile_plus_manage_leads: "PROFILE_PLUS_MANAGE_LEADS", profile_plus_messaging: "PROFILE_PLUS_MESSAGING", profile_plus_moderate: "PROFILE_PLUS_MODERATE", profile_plus_moderate_delegate_community: "PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY", profile_plus_revenue: "PROFILE_PLUS_REVENUE", read_page_mailboxes: "READ_PAGE_MAILBOXES", view_monetization_insights: "VIEW_MONETIZATION_INSIGHTS" }); }, "get") }, { key: "SubverticalV2", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ accounting_and_tax: "ACCOUNTING_AND_TAX", activities_and_leisure: "ACTIVITIES_AND_LEISURE", air: "AIR", apparel_and_accessories: "APPAREL_AND_ACCESSORIES", arts_and_heritage_and_education: "ARTS_AND_HERITAGE_AND_EDUCATION", ar_or_vr_gaming: "AR_OR_VR_GAMING", audio_streaming: "AUDIO_STREAMING", auto: "AUTO", auto_insurance: "AUTO_INSURANCE", auto_rental: "AUTO_RENTAL", baby: "BABY", ballot_initiative_or_referendum: "BALLOT_INITIATIVE_OR_REFERENDUM", beauty: "BEAUTY", beauty_and_fashion: "BEAUTY_AND_FASHION", beer_and_wine_and_liquor_and_malt_beverages: "BEER_AND_WINE_AND_LIQUOR_AND_MALT_BEVERAGES", bookstores: "BOOKSTORES", broadcast_television: "BROADCAST_TELEVISION", business_consultants: "BUSINESS_CONSULTANTS", buying_agency: "BUYING_AGENCY", cable_and_satellite: "CABLE_AND_SATELLITE", cable_television: "CABLE_TELEVISION", call_center_and_messaging_services: "CALL_CENTER_AND_MESSAGING_SERVICES", candidate_or_politician: "CANDIDATE_OR_POLITICIAN", career: "CAREER", career_and_tech: "CAREER_AND_TECH", casual_dining: "CASUAL_DINING", chronic_conditions_and_medical_causes: "CHRONIC_CONDITIONS_AND_MEDICAL_CAUSES", civic_influencers: "CIVIC_INFLUENCERS", clinical_trials: "CLINICAL_TRIALS", coffee: "COFFEE", computer_and_software_and_hardware: "COMPUTER_AND_SOFTWARE_AND_HARDWARE", console_and_cross_platform_gaming: "CONSOLE_AND_CROSS_PLATFORM_GAMING", consulting: "CONSULTING", consumer_electronics: "CONSUMER_ELECTRONICS", counseling_and_psychotherapy: "COUNSELING_AND_PSYCHOTHERAPY", creative_agency: "CREATIVE_AGENCY", credit_and_financing_and_mortages: "CREDIT_AND_FINANCING_AND_MORTAGES", cruises_and_marine: "CRUISES_AND_MARINE", culture_and_lifestyle: "CULTURE_AND_LIFESTYLE", data_analytics_and_data_management: "DATA_ANALYTICS_AND_DATA_MANAGEMENT", dating_and_technology_apps: "DATING_AND_TECHNOLOGY_APPS", department_store: "DEPARTMENT_STORE", desktop_software: "DESKTOP_SOFTWARE", dieting_and_fitness_programs: "DIETING_AND_FITNESS_PROGRAMS", digital_native_education_or_training: "DIGITAL_NATIVE_EDUCATION_OR_TRAINING", drinking_places: "DRINKING_PLACES", education_resources: "EDUCATION_RESOURCES", ed_tech: "ED_TECH", elearning_and_massive_online_open_courses: "ELEARNING_AND_MASSIVE_ONLINE_OPEN_COURSES", election_commission: "ELECTION_COMMISSION", electronics_and_appliances: "ELECTRONICS_AND_APPLIANCES", engineering_and_design: "ENGINEERING_AND_DESIGN", environment_and_animal_welfare: "ENVIRONMENT_AND_ANIMAL_WELFARE", esports: "ESPORTS", events: "EVENTS", farming_and_ranching: "FARMING_AND_RANCHING", file_storage_and_cloud_and_data_services: "FILE_STORAGE_AND_CLOUD_AND_DATA_SERVICES", finance: "FINANCE", fin_tech: "FIN_TECH", fishing_and_hunting_and_forestry_and_logging: "FISHING_AND_HUNTING_AND_FORESTRY_AND_LOGGING", fitness: "FITNESS", food: "FOOD", footwear: "FOOTWEAR", for_profit_colleges_and_universities: "FOR_PROFIT_COLLEGES_AND_UNIVERSITIES", full_service_agency: "FULL_SERVICE_AGENCY", government_controlled_entity: "GOVERNMENT_CONTROLLED_ENTITY", government_department_or_agency: "GOVERNMENT_DEPARTMENT_OR_AGENCY", government_official: "GOVERNMENT_OFFICIAL", government_owned_media: "GOVERNMENT_OWNED_MEDIA", grocery_and_drug_and_convenience: "GROCERY_AND_DRUG_AND_CONVENIENCE", head_of_state: "HEAD_OF_STATE", health_insurance: "HEALTH_INSURANCE", health_systems_and_practitioners: "HEALTH_SYSTEMS_AND_PRACTITIONERS", health_tech: "HEALTH_TECH", home_and_furniture_and_office: "HOME_AND_FURNITURE_AND_OFFICE", home_improvement: "HOME_IMPROVEMENT", home_insurance: "HOME_INSURANCE", home_tech: "HOME_TECH", hotel_and_accomodation: "HOTEL_AND_ACCOMODATION", household_goods_durable: "HOUSEHOLD_GOODS_DURABLE", household_goods_non_durable: "HOUSEHOLD_GOODS_NON_DURABLE", hr_and_financial_management: "HR_AND_FINANCIAL_MANAGEMENT", humanitarian_or_disaster_relief: "HUMANITARIAN_OR_DISASTER_RELIEF", independent_expenditure_group: "INDEPENDENT_EXPENDITURE_GROUP", insurance_tech: "INSURANCE_TECH", international_organizaton: "INTERNATIONAL_ORGANIZATON", investment_bank_and_brokerage: "INVESTMENT_BANK_AND_BROKERAGE", issue_advocacy: "ISSUE_ADVOCACY", legal: "LEGAL", life_insurance: "LIFE_INSURANCE", logistics_and_transportation_and_fleet_management: "LOGISTICS_AND_TRANSPORTATION_AND_FLEET_MANAGEMENT", manufacturing: "MANUFACTURING", medical_devices_and_supplies_and_equipment: "MEDICAL_DEVICES_AND_SUPPLIES_AND_EQUIPMENT", medspa_and_elective_surgeries_and_alternative_medicine: "MEDSPA_AND_ELECTIVE_SURGERIES_AND_ALTERNATIVE_MEDICINE", mining_and_quarrying: "MINING_AND_QUARRYING", mobile_gaming: "MOBILE_GAMING", movies: "MOVIES", museums_and_parks_and_libraries: "MUSEUMS_AND_PARKS_AND_LIBRARIES", music: "MUSIC", network_security_products: "NETWORK_SECURITY_PRODUCTS", news_and_current_events: "NEWS_AND_CURRENT_EVENTS", non_prescription: "NON_PRESCRIPTION", not_for_profit_colleges_and_universities: "NOT_FOR_PROFIT_COLLEGES_AND_UNIVERSITIES", office: "OFFICE", office_or_business_supplies: "OFFICE_OR_BUSINESS_SUPPLIES", oil_and_gas_and_consumable_fuel: "OIL_AND_GAS_AND_CONSUMABLE_FUEL", online_only_publications: "ONLINE_ONLY_PUBLICATIONS", package_or_freight_delivery: "PACKAGE_OR_FREIGHT_DELIVERY", party_independent_expenditure_group_us: "PARTY_INDEPENDENT_EXPENDITURE_GROUP_US", payment_processing_and_gateway_solutions: "PAYMENT_PROCESSING_AND_GATEWAY_SOLUTIONS", pc_gaming: "PC_GAMING", people: "PEOPLE", personal_care: "PERSONAL_CARE", pet: "PET", photography_and_filming_services: "PHOTOGRAPHY_AND_FILMING_SERVICES", pizza: "PIZZA", planning_agency: "PLANNING_AGENCY", political_party_or_committee: "POLITICAL_PARTY_OR_COMMITTEE", prescription: "PRESCRIPTION", professional_associations: "PROFESSIONAL_ASSOCIATIONS", property_and_casualty: "PROPERTY_AND_CASUALTY", quick_service: "QUICK_SERVICE", radio: "RADIO", railroads: "RAILROADS", real_estate: "REAL_ESTATE", real_money_gaming: "REAL_MONEY_GAMING", recreational: "RECREATIONAL", religious: "RELIGIOUS", reseller: "RESELLER", residential_and_long_term_care_facilities_and_outpatient_care_centers: "RESIDENTIAL_AND_LONG_TERM_CARE_FACILITIES_AND_OUTPATIENT_CARE_CENTERS", retail_and_credit_union_and_commercial_bank: "RETAIL_AND_CREDIT_UNION_AND_COMMERCIAL_BANK", ride_sharing_or_taxi_services: "RIDE_SHARING_OR_TAXI_SERVICES", safety_services: "SAFETY_SERVICES", scholarly: "SCHOLARLY", school_and_early_children_edcation: "SCHOOL_AND_EARLY_CHILDREN_EDCATION", social_media: "SOCIAL_MEDIA", software_as_a_service: "SOFTWARE_AS_A_SERVICE", sporting: "SPORTING", sporting_and_outdoor: "SPORTING_AND_OUTDOOR", sports: "SPORTS", superstores: "SUPERSTORES", t1_automotive_manufacturer: "T1_AUTOMOTIVE_MANUFACTURER", t1_motorcycle: "T1_MOTORCYCLE", t2_dealer_associations: "T2_DEALER_ASSOCIATIONS", t3_auto_agency: "T3_AUTO_AGENCY", t3_auto_resellers: "T3_AUTO_RESELLERS", t3_dealer_groups: "T3_DEALER_GROUPS", t3_franchise_dealer: "T3_FRANCHISE_DEALER", t3_independent_dealer: "T3_INDEPENDENT_DEALER", t3_parts_and_services: "T3_PARTS_AND_SERVICES", t3_portals: "T3_PORTALS", telecommunications_equipment_and_accessories: "TELECOMMUNICATIONS_EQUIPMENT_AND_ACCESSORIES", telephone_service_providers_and_carriers: "TELEPHONE_SERVICE_PROVIDERS_AND_CARRIERS", ticketing: "TICKETING", tobacco: "TOBACCO", tourism_and_travel_services: "TOURISM_AND_TRAVEL_SERVICES", tourism_board: "TOURISM_BOARD", toy_and_hobby: "TOY_AND_HOBBY", trade_school: "TRADE_SCHOOL", travel_agencies_and_guides_and_otas: "TRAVEL_AGENCIES_AND_GUIDES_AND_OTAS", utilities_and_energy_equipment_and_services: "UTILITIES_AND_ENERGY_EQUIPMENT_AND_SERVICES", veterinary_clinics_and_services: "VETERINARY_CLINICS_AND_SERVICES", video_streaming: "VIDEO_STREAMING", virtual_services: "VIRTUAL_SERVICES", vitamins_or_wellness: "VITAMINS_OR_WELLNESS", warehousing_and_storage: "WAREHOUSING_AND_STORAGE", water_and_soft_drink_and_baverage: "WATER_AND_SOFT_DRINK_AND_BAVERAGE", website_designers_or_graphic_designers: "WEBSITE_DESIGNERS_OR_GRAPHIC_DESIGNERS", wholesale: "WHOLESALE", wireless_services: "WIRELESS_SERVICES" }); }, "get") }, { key: "VerticalV2", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertising_and_marketing: "ADVERTISING_AND_MARKETING", agriculture: "AGRICULTURE", automotive: "AUTOMOTIVE", banking_and_credit_cards: "BANKING_AND_CREDIT_CARDS", business_to_business: "BUSINESS_TO_BUSINESS", consumer_packaged_goods: "CONSUMER_PACKAGED_GOODS", ecommerce: "ECOMMERCE", education: "EDUCATION", energy_and_natural_resources_and_utilities: "ENERGY_AND_NATURAL_RESOURCES_AND_UTILITIES", entertainment_and_media: "ENTERTAINMENT_AND_MEDIA", gaming: "GAMING", government: "GOVERNMENT", healthcare_and_pharmaceuticals_and_biotech: "HEALTHCARE_AND_PHARMACEUTICALS_AND_BIOTECH", insurance: "INSURANCE", non_profit: "NON_PROFIT", organizations_and_associations: "ORGANIZATIONS_AND_ASSOCIATIONS", politics: "POLITICS", professional_services: "PROFESSIONAL_SERVICES", publishing: "PUBLISHING", restaurants: "RESTAURANTS", retail: "RETAIL", technology: "TECHNOLOGY", telecom: "TELECOM", travel: "TRAVEL" }); }, "get") }, { key: "ActionSource", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ physical_store: "PHYSICAL_STORE", website: "WEBSITE" }); }, "get") }]); return Business2; }(AbstractCrudObject); var DACheck = function(_AbstractCrudObject) { inherits(DACheck2, _AbstractCrudObject); function DACheck2() { classCallCheck(this, DACheck2); return possibleConstructorReturn(this, (DACheck2.__proto__ || Object.getPrototypeOf(DACheck2)).apply(this, arguments)); } __name(DACheck2, "DACheck"); createClass(DACheck2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ action_uri: "action_uri", description: "description", key: "key", result: "result", title: "title", user_message: "user_message" }); }, "get") }, { key: "ConnectionMethod", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ all: "ALL", app: "APP", browser: "BROWSER", server: "SERVER" }); }, "get") }]); return DACheck2; }(AbstractCrudObject); var Application = function(_AbstractCrudObject) { inherits(Application2, _AbstractCrudObject); function Application2() { classCallCheck(this, Application2); return possibleConstructorReturn(this, (Application2.__proto__ || Object.getPrototypeOf(Application2)).apply(this, arguments)); } __name(Application2, "Application"); createClass(Application2, [{ key: "deleteAccounts", value: /* @__PURE__ */ __name(function deleteAccounts() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Application2.prototype.__proto__ || Object.getPrototypeOf(Application2.prototype), "deleteEdge", this).call(this, "/accounts", params); }, "deleteAccounts") }, { key: "getAccounts", value: /* @__PURE__ */ __name(function getAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/accounts"); }, "getAccounts") }, { key: "createAccount", value: /* @__PURE__ */ __name(function createAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/accounts", fields, params, null, pathOverride); }, "createAccount") }, { key: "createActivity", value: /* @__PURE__ */ __name(function createActivity(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/activities", fields, params, null, pathOverride); }, "createActivity") }, { key: "getAdPlacementGroups", value: /* @__PURE__ */ __name(function getAdPlacementGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/ad_placement_groups"); }, "getAdPlacementGroups") }, { key: "getAdNetworkPlacements", value: /* @__PURE__ */ __name(function getAdNetworkPlacements(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdPlacement, fields, params, fetchFirstPage, "/adnetwork_placements"); }, "getAdNetworkPlacements") }, { key: "getAdNetworkAnalytics", value: /* @__PURE__ */ __name(function getAdNetworkAnalytics(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdNetworkAnalyticsSyncQueryResult, fields, params, fetchFirstPage, "/adnetworkanalytics"); }, "getAdNetworkAnalytics") }, { key: "createAdNetworkAnalytic", value: /* @__PURE__ */ __name(function createAdNetworkAnalytic(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adnetworkanalytics", fields, params, Application2, pathOverride); }, "createAdNetworkAnalytic") }, { key: "getAdNetworkAnalyticsResults", value: /* @__PURE__ */ __name(function getAdNetworkAnalyticsResults(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdNetworkAnalyticsAsyncQueryResult, fields, params, fetchFirstPage, "/adnetworkanalytics_results"); }, "getAdNetworkAnalyticsResults") }, { key: "getAemAttribution", value: /* @__PURE__ */ __name(function getAemAttribution(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/aem_attribution"); }, "getAemAttribution") }, { key: "getAemConversionConfigs", value: /* @__PURE__ */ __name(function getAemConversionConfigs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/aem_conversion_configs"); }, "getAemConversionConfigs") }, { key: "getAemConversionFilter", value: /* @__PURE__ */ __name(function getAemConversionFilter(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/aem_conversion_filter"); }, "getAemConversionFilter") }, { key: "createAemConversion", value: /* @__PURE__ */ __name(function createAemConversion(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/aem_conversions", fields, params, null, pathOverride); }, "createAemConversion") }, { key: "createAemSkanReadiness", value: /* @__PURE__ */ __name(function createAemSkanReadiness(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/aem_skan_readiness", fields, params, null, pathOverride); }, "createAemSkanReadiness") }, { key: "getAgencies", value: /* @__PURE__ */ __name(function getAgencies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/agencies"); }, "getAgencies") }, { key: "createAggregateRevenue", value: /* @__PURE__ */ __name(function createAggregateRevenue(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/aggregate_revenue", fields, params, null, pathOverride); }, "createAggregateRevenue") }, { key: "getAndroidDialogConfigs", value: /* @__PURE__ */ __name(function getAndroidDialogConfigs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/android_dialog_configs"); }, "getAndroidDialogConfigs") }, { key: "getAppCapiSettings", value: /* @__PURE__ */ __name(function getAppCapiSettings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/app_capi_settings"); }, "getAppCapiSettings") }, { key: "getAppEventTypes", value: /* @__PURE__ */ __name(function getAppEventTypes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/app_event_types"); }, "getAppEventTypes") }, { key: "createAppIndexing", value: /* @__PURE__ */ __name(function createAppIndexing(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/app_indexing", fields, params, Application2, pathOverride); }, "createAppIndexing") }, { key: "createAppIndexingSession", value: /* @__PURE__ */ __name(function createAppIndexingSession(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/app_indexing_session", fields, params, Application2, pathOverride); }, "createAppIndexingSession") }, { key: "getAppInstalledGroups", value: /* @__PURE__ */ __name(function getAppInstalledGroups(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Group, fields, params, fetchFirstPage, "/app_installed_groups"); }, "getAppInstalledGroups") }, { key: "createAppPushDeviceToken", value: /* @__PURE__ */ __name(function createAppPushDeviceToken(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/app_push_device_token", fields, params, Application2, pathOverride); }, "createAppPushDeviceToken") }, { key: "getAppAssets", value: /* @__PURE__ */ __name(function getAppAssets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/appassets"); }, "getAppAssets") }, { key: "createAsset", value: /* @__PURE__ */ __name(function createAsset(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/assets", fields, params, Application2, pathOverride); }, "createAsset") }, { key: "getAuthorizedAdAccounts", value: /* @__PURE__ */ __name(function getAuthorizedAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/authorized_adaccounts"); }, "getAuthorizedAdAccounts") }, { key: "getButtonAutoDetectionDeviceSelection", value: /* @__PURE__ */ __name(function getButtonAutoDetectionDeviceSelection(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/button_auto_detection_device_selection"); }, "getButtonAutoDetectionDeviceSelection") }, { key: "getCloudbridgeSettings", value: /* @__PURE__ */ __name(function getCloudbridgeSettings(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/cloudbridge_settings"); }, "getCloudbridgeSettings") }, { key: "createCodelessEventMapping", value: /* @__PURE__ */ __name(function createCodelessEventMapping(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/codeless_event_mappings", fields, params, Application2, pathOverride); }, "createCodelessEventMapping") }, { key: "getDaChecks", value: /* @__PURE__ */ __name(function getDaChecks(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DACheck, fields, params, fetchFirstPage, "/da_checks"); }, "getDaChecks") }, { key: "getIapPurchases", value: /* @__PURE__ */ __name(function getIapPurchases(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/iap_purchases"); }, "getIapPurchases") }, { key: "getInsightsPushSchedule", value: /* @__PURE__ */ __name(function getInsightsPushSchedule(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/insights_push_schedule"); }, "getInsightsPushSchedule") }, { key: "getIosDialogConfigs", value: /* @__PURE__ */ __name(function getIosDialogConfigs(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/ios_dialog_configs"); }, "getIosDialogConfigs") }, { key: "getLinkedDataset", value: /* @__PURE__ */ __name(function getLinkedDataset(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/linked_dataset"); }, "getLinkedDataset") }, { key: "createMmpAuditing", value: /* @__PURE__ */ __name(function createMmpAuditing(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/mmp_auditing", fields, params, null, pathOverride); }, "createMmpAuditing") }, { key: "getMobileSdkGk", value: /* @__PURE__ */ __name(function getMobileSdkGk(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/mobile_sdk_gk"); }, "getMobileSdkGk") }, { key: "getMonetizedDigitalStoreObjects", value: /* @__PURE__ */ __name(function getMonetizedDigitalStoreObjects(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/monetized_digital_store_objects"); }, "getMonetizedDigitalStoreObjects") }, { key: "createMonetizedDigitalStoreObject", value: /* @__PURE__ */ __name(function createMonetizedDigitalStoreObject(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/monetized_digital_store_objects", fields, params, null, pathOverride); }, "createMonetizedDigitalStoreObject") }, { key: "getObjectTypes", value: /* @__PURE__ */ __name(function getObjectTypes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(NullNode, fields, params, fetchFirstPage, "/object_types"); }, "getObjectTypes") }, { key: "getObjects", value: /* @__PURE__ */ __name(function getObjects(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(NullNode, fields, params, fetchFirstPage, "/objects"); }, "getObjects") }, { key: "createOccludesPopup", value: /* @__PURE__ */ __name(function createOccludesPopup(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/occludespopups", fields, params, null, pathOverride); }, "createOccludesPopup") }, { key: "createPageActivity", value: /* @__PURE__ */ __name(function createPageActivity(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/page_activities", fields, params, Application2, pathOverride); }, "createPageActivity") }, { key: "createPaymentCurrency", value: /* @__PURE__ */ __name(function createPaymentCurrency(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/payment_currencies", fields, params, Application2, pathOverride); }, "createPaymentCurrency") }, { key: "getPermissions", value: /* @__PURE__ */ __name(function getPermissions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/permissions"); }, "getPermissions") }, { key: "getProducts", value: /* @__PURE__ */ __name(function getProducts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/products"); }, "getProducts") }, { key: "getPurchases", value: /* @__PURE__ */ __name(function getPurchases(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/purchases"); }, "getPurchases") }, { key: "getRoles", value: /* @__PURE__ */ __name(function getRoles(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/roles"); }, "getRoles") }, { key: "getServerDomainInfos", value: /* @__PURE__ */ __name(function getServerDomainInfos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/server_domain_infos"); }, "getServerDomainInfos") }, { key: "getSubscribedDomains", value: /* @__PURE__ */ __name(function getSubscribedDomains(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/subscribed_domains"); }, "getSubscribedDomains") }, { key: "createSubscribedDomain", value: /* @__PURE__ */ __name(function createSubscribedDomain(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/subscribed_domains", fields, params, Application2, pathOverride); }, "createSubscribedDomain") }, { key: "getSubscribedDomainsPhishing", value: /* @__PURE__ */ __name(function getSubscribedDomainsPhishing(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/subscribed_domains_phishing"); }, "getSubscribedDomainsPhishing") }, { key: "createSubscribedDomainsPhishing", value: /* @__PURE__ */ __name(function createSubscribedDomainsPhishing(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/subscribed_domains_phishing", fields, params, Application2, pathOverride); }, "createSubscribedDomainsPhishing") }, { key: "deleteSubscriptions", value: /* @__PURE__ */ __name(function deleteSubscriptions() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(Application2.prototype.__proto__ || Object.getPrototypeOf(Application2.prototype), "deleteEdge", this).call(this, "/subscriptions", params); }, "deleteSubscriptions") }, { key: "createSubscription", value: /* @__PURE__ */ __name(function createSubscription(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/subscriptions", fields, params, null, pathOverride); }, "createSubscription") }, { key: "createUpload", value: /* @__PURE__ */ __name(function createUpload(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/uploads", fields, params, null, pathOverride); }, "createUpload") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(Application2.prototype.__proto__ || Object.getPrototypeOf(Application2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aam_rules: "aam_rules", an_ad_space_limit: "an_ad_space_limit", an_platforms: "an_platforms", android_key_hash: "android_key_hash", android_sdk_error_categories: "android_sdk_error_categories", app_domains: "app_domains", app_events_config: "app_events_config", app_events_feature_bitmask: "app_events_feature_bitmask", app_events_session_timeout: "app_events_session_timeout", app_install_tracked: "app_install_tracked", app_name: "app_name", app_signals_binding_ios: "app_signals_binding_ios", app_type: "app_type", auth_dialog_data_help_url: "auth_dialog_data_help_url", auth_dialog_headline: "auth_dialog_headline", auth_dialog_perms_explanation: "auth_dialog_perms_explanation", auth_referral_default_activity_privacy: "auth_referral_default_activity_privacy", auth_referral_enabled: "auth_referral_enabled", auth_referral_extended_perms: "auth_referral_extended_perms", auth_referral_friend_perms: "auth_referral_friend_perms", auth_referral_response_type: "auth_referral_response_type", auth_referral_user_perms: "auth_referral_user_perms", auto_event_mapping_android: "auto_event_mapping_android", auto_event_mapping_ios: "auto_event_mapping_ios", auto_event_setup_enabled: "auto_event_setup_enabled", auto_log_app_events_default: "auto_log_app_events_default", auto_log_app_events_enabled: "auto_log_app_events_enabled", business: "business", canvas_fluid_height: "canvas_fluid_height", canvas_fluid_width: "canvas_fluid_width", canvas_url: "canvas_url", category: "category", client_config: "client_config", company: "company", configured_ios_sso: "configured_ios_sso", contact_email: "contact_email", created_time: "created_time", creator_uid: "creator_uid", daily_active_users: "daily_active_users", daily_active_users_rank: "daily_active_users_rank", deauth_callback_url: "deauth_callback_url", default_share_mode: "default_share_mode", description: "description", financial_id: "financial_id", gdpv4_chrome_custom_tabs_enabled: "gdpv4_chrome_custom_tabs_enabled", gdpv4_enabled: "gdpv4_enabled", gdpv4_nux_content: "gdpv4_nux_content", gdpv4_nux_enabled: "gdpv4_nux_enabled", has_messenger_product: "has_messenger_product", hosting_url: "hosting_url", icon_url: "icon_url", id: "id", ios_bundle_id: "ios_bundle_id", ios_sdk_dialog_flows: "ios_sdk_dialog_flows", ios_sdk_error_categories: "ios_sdk_error_categories", ios_sfvc_attr: "ios_sfvc_attr", ios_supports_native_proxy_auth_flow: "ios_supports_native_proxy_auth_flow", ios_supports_system_auth: "ios_supports_system_auth", ipad_app_store_id: "ipad_app_store_id", iphone_app_store_id: "iphone_app_store_id", latest_sdk_version: "latest_sdk_version", link: "link", logging_token: "logging_token", logo_url: "logo_url", migrations: "migrations", mobile_profile_section_url: "mobile_profile_section_url", mobile_web_url: "mobile_web_url", monthly_active_users: "monthly_active_users", monthly_active_users_rank: "monthly_active_users_rank", name: "name", namespace: "namespace", object_store_urls: "object_store_urls", owner_business: "owner_business", page_tab_default_name: "page_tab_default_name", page_tab_url: "page_tab_url", photo_url: "photo_url", privacy_policy_url: "privacy_policy_url", profile_section_url: "profile_section_url", property_id: "property_id", protected_mode_rules: "protected_mode_rules", real_time_mode_devices: "real_time_mode_devices", restrictions: "restrictions", restrictive_data_filter_params: "restrictive_data_filter_params", restrictive_data_filter_rules: "restrictive_data_filter_rules", sdk_update_message: "sdk_update_message", seamless_login: "seamless_login", secure_canvas_url: "secure_canvas_url", secure_page_tab_url: "secure_page_tab_url", server_ip_whitelist: "server_ip_whitelist", smart_login_bookmark_icon_url: "smart_login_bookmark_icon_url", smart_login_menu_icon_url: "smart_login_menu_icon_url", social_discovery: "social_discovery", subcategory: "subcategory", suggested_events_setting: "suggested_events_setting", supported_platforms: "supported_platforms", supports_apprequests_fast_app_switch: "supports_apprequests_fast_app_switch", supports_attribution: "supports_attribution", supports_implicit_sdk_logging: "supports_implicit_sdk_logging", suppress_native_ios_gdp: "suppress_native_ios_gdp", terms_of_service_url: "terms_of_service_url", url_scheme_suffix: "url_scheme_suffix", user_support_email: "user_support_email", user_support_url: "user_support_url", website_url: "website_url", weekly_active_users: "weekly_active_users" }); }, "get") }, { key: "SupportedPlatforms", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amazon: "AMAZON", android: "ANDROID", canvas: "CANVAS", gameroom: "GAMEROOM", instant_game: "INSTANT_GAME", ipad: "IPAD", iphone: "IPHONE", mobile_web: "MOBILE_WEB", oculus: "OCULUS", samsung: "SAMSUNG", supplementary_images: "SUPPLEMENTARY_IMAGES", web: "WEB", windows: "WINDOWS", xiaomi: "XIAOMI" }); }, "get") }, { key: "AnPlatforms", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ android: "ANDROID", desktop: "DESKTOP", galaxy: "GALAXY", instant_articles: "INSTANT_ARTICLES", ios: "IOS", mobile_web: "MOBILE_WEB", oculus: "OCULUS", unknown: "UNKNOWN", xiaomi: "XIAOMI" }); }, "get") }, { key: "Platform", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ android: "ANDROID", ios: "IOS" }); }, "get") }, { key: "RequestType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_indexing: "APP_INDEXING", button_sampling: "BUTTON_SAMPLING", plugin: "PLUGIN" }); }, "get") }, { key: "MutationMethod", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ add: "ADD", delete: "DELETE", replace: "REPLACE" }); }, "get") }, { key: "PostMethod", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ codeless: "CODELESS", eymt: "EYMT" }); }, "get") }, { key: "LoggingSource", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ detection: "DETECTION", messenger_bot: "MESSENGER_BOT" }); }, "get") }, { key: "LoggingTarget", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app: "APP", app_and_page: "APP_AND_PAGE", page: "PAGE" }); }, "get") }]); return Application2; }(AbstractCrudObject); var BrandRequest = function(_AbstractCrudObject) { inherits(BrandRequest2, _AbstractCrudObject); function BrandRequest2() { classCallCheck(this, BrandRequest2); return possibleConstructorReturn(this, (BrandRequest2.__proto__ || Object.getPrototypeOf(BrandRequest2)).apply(this, arguments)); } __name(BrandRequest2, "BrandRequest"); createClass(BrandRequest2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_countries: "ad_countries", additional_contacts: "additional_contacts", approval_level: "approval_level", cells: "cells", countries: "countries", deny_reason: "deny_reason", end_time: "end_time", estimated_reach: "estimated_reach", id: "id", is_multicell: "is_multicell", locale: "locale", max_age: "max_age", min_age: "min_age", questions: "questions", region: "region", request_status: "request_status", review_date: "review_date", start_time: "start_time", status: "status", submit_date: "submit_date", total_budget: "total_budget" }); }, "get") }]); return BrandRequest2; }(AbstractCrudObject); var PartnerStudy = function(_AbstractCrudObject) { inherits(PartnerStudy2, _AbstractCrudObject); function PartnerStudy2() { classCallCheck(this, PartnerStudy2); return possibleConstructorReturn(this, (PartnerStudy2.__proto__ || Object.getPrototypeOf(PartnerStudy2)).apply(this, arguments)); } __name(PartnerStudy2, "PartnerStudy"); createClass(PartnerStudy2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ additional_info: "additional_info", brand: "brand", client_name: "client_name", emails: "emails", id: "id", input_ids: "input_ids", is_export: "is_export", lift_study: "lift_study", location: "location", match_file_ds: "match_file_ds", name: "name", partner_defined_id: "partner_defined_id", partner_household_graph_dataset_id: "partner_household_graph_dataset_id", status: "status", study_end_date: "study_end_date", study_start_date: "study_start_date", study_type: "study_type", submit_date: "submit_date" }); }, "get") }]); return PartnerStudy2; }(AbstractCrudObject); var AdStudyObjective = function(_AbstractCrudObject) { inherits(AdStudyObjective2, _AbstractCrudObject); function AdStudyObjective2() { classCallCheck(this, AdStudyObjective2); return possibleConstructorReturn(this, (AdStudyObjective2.__proto__ || Object.getPrototypeOf(AdStudyObjective2)).apply(this, arguments)); } __name(AdStudyObjective2, "AdStudyObjective"); createClass(AdStudyObjective2, [{ key: "getAdsPixels", value: /* @__PURE__ */ __name(function getAdsPixels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsPixel, fields, params, fetchFirstPage, "/adspixels"); }, "getAdsPixels") }, { key: "getApplications", value: /* @__PURE__ */ __name(function getApplications(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Application, fields, params, fetchFirstPage, "/applications"); }, "getApplications") }, { key: "getBrandRequests", value: /* @__PURE__ */ __name(function getBrandRequests(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BrandRequest, fields, params, fetchFirstPage, "/brand_requests"); }, "getBrandRequests") }, { key: "getCustomConversions", value: /* @__PURE__ */ __name(function getCustomConversions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomConversion, fields, params, fetchFirstPage, "/customconversions"); }, "getCustomConversions") }, { key: "getOfflineConversionDataSets", value: /* @__PURE__ */ __name(function getOfflineConversionDataSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(OfflineConversionDataSet, fields, params, fetchFirstPage, "/offline_conversion_data_sets"); }, "getOfflineConversionDataSets") }, { key: "getPartnerPrivateStudies", value: /* @__PURE__ */ __name(function getPartnerPrivateStudies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/partner_private_studies"); }, "getPartnerPrivateStudies") }, { key: "getPartnerStudies", value: /* @__PURE__ */ __name(function getPartnerStudies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PartnerStudy, fields, params, fetchFirstPage, "/partnerstudies"); }, "getPartnerStudies") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdStudyObjective2.prototype.__proto__ || Object.getPrototypeOf(AdStudyObjective2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", is_primary: "is_primary", last_updated_results: "last_updated_results", name: "name", results: "results", type: "type" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ brand: "BRAND", brandlift: "BRANDLIFT", conversions: "CONVERSIONS", ftl: "FTL", mae: "MAE", mai: "MAI", mpc_conversion: "MPC_CONVERSION", nonsales: "NONSALES", partner: "PARTNER", sales: "SALES", telco: "TELCO" }); }, "get") }]); return AdStudyObjective2; }(AbstractCrudObject); var AdStudy = function(_AbstractCrudObject) { inherits(AdStudy2, _AbstractCrudObject); function AdStudy2() { classCallCheck(this, AdStudy2); return possibleConstructorReturn(this, (AdStudy2.__proto__ || Object.getPrototypeOf(AdStudy2)).apply(this, arguments)); } __name(AdStudy2, "AdStudy"); createClass(AdStudy2, [{ key: "getCells", value: /* @__PURE__ */ __name(function getCells(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdStudyCell, fields, params, fetchFirstPage, "/cells"); }, "getCells") }, { key: "createCheckPoint", value: /* @__PURE__ */ __name(function createCheckPoint(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/checkpoint", fields, params, AdStudy2, pathOverride); }, "createCheckPoint") }, { key: "getInstances", value: /* @__PURE__ */ __name(function getInstances(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PrivateLiftStudyInstance, fields, params, fetchFirstPage, "/instances"); }, "getInstances") }, { key: "createInstance", value: /* @__PURE__ */ __name(function createInstance(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/instances", fields, params, PrivateLiftStudyInstance, pathOverride); }, "createInstance") }, { key: "getObjectives", value: /* @__PURE__ */ __name(function getObjectives(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdStudyObjective, fields, params, fetchFirstPage, "/objectives"); }, "getObjectives") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdStudy2.prototype.__proto__ || Object.getPrototypeOf(AdStudy2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdStudy2.prototype.__proto__ || Object.getPrototypeOf(AdStudy2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ business: "business", canceled_time: "canceled_time", client_business: "client_business", cooldown_start_time: "cooldown_start_time", created_by: "created_by", created_time: "created_time", description: "description", end_time: "end_time", id: "id", measurement_contact: "measurement_contact", name: "name", observation_end_time: "observation_end_time", results_first_available_date: "results_first_available_date", sales_contact: "sales_contact", start_time: "start_time", type: "type", updated_by: "updated_by", updated_time: "updated_time" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ continuous_lift_config: "CONTINUOUS_LIFT_CONFIG", geo_lift: "GEO_LIFT", lift: "LIFT", split_test: "SPLIT_TEST" }); }, "get") }]); return AdStudy2; }(AbstractCrudObject); var CloudGame = function(_AbstractCrudObject) { inherits(CloudGame2, _AbstractCrudObject); function CloudGame2() { classCallCheck(this, CloudGame2); return possibleConstructorReturn(this, (CloudGame2.__proto__ || Object.getPrototypeOf(CloudGame2)).apply(this, arguments)); } __name(CloudGame2, "CloudGame"); createClass(CloudGame2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name", owner: "owner", playable_ad_file_size: "playable_ad_file_size", playable_ad_orientation: "playable_ad_orientation", playable_ad_package_name: "playable_ad_package_name", playable_ad_reject_reason: "playable_ad_reject_reason", playable_ad_status: "playable_ad_status", playable_ad_upload_time: "playable_ad_upload_time" }); }, "get") }]); return CloudGame2; }(AbstractCrudObject); var AdImage = function(_AbstractCrudObject) { inherits(AdImage2, _AbstractCrudObject); function AdImage2() { classCallCheck(this, AdImage2); return possibleConstructorReturn(this, (AdImage2.__proto__ || Object.getPrototypeOf(AdImage2)).apply(this, arguments)); } __name(AdImage2, "AdImage"); createClass(AdImage2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", created_time: "created_time", creatives: "creatives", hash: "hash", height: "height", id: "id", is_associated_creatives_in_adgroups: "is_associated_creatives_in_adgroups", name: "name", original_height: "original_height", original_width: "original_width", owner_business: "owner_business", permalink_url: "permalink_url", status: "status", updated_time: "updated_time", url: "url", url_128: "url_128", width: "width" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ active: "ACTIVE", deleted: "DELETED", internal: "INTERNAL" }); }, "get") }]); return AdImage2; }(AbstractCrudObject); var AdLabel = function(_AbstractCrudObject) { inherits(AdLabel2, _AbstractCrudObject); function AdLabel2() { classCallCheck(this, AdLabel2); return possibleConstructorReturn(this, (AdLabel2.__proto__ || Object.getPrototypeOf(AdLabel2)).apply(this, arguments)); } __name(AdLabel2, "AdLabel"); createClass(AdLabel2, [{ key: "getAdCreatives", value: /* @__PURE__ */ __name(function getAdCreatives(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdCreative, fields, params, fetchFirstPage, "/adcreatives"); }, "getAdCreatives") }, { key: "getAds", value: /* @__PURE__ */ __name(function getAds(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Ad2, fields, params, fetchFirstPage, "/ads"); }, "getAds") }, { key: "getAdSets", value: /* @__PURE__ */ __name(function getAdSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdSet2, fields, params, fetchFirstPage, "/adsets"); }, "getAdSets") }, { key: "getCampaigns", value: /* @__PURE__ */ __name(function getCampaigns(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Campaign2, fields, params, fetchFirstPage, "/campaigns"); }, "getCampaigns") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdLabel2.prototype.__proto__ || Object.getPrototypeOf(AdLabel2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdLabel2.prototype.__proto__ || Object.getPrototypeOf(AdLabel2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account: "account", created_time: "created_time", id: "id", name: "name", updated_time: "updated_time" }); }, "get") }]); return AdLabel2; }(AbstractCrudObject); var PlayableContent = function(_AbstractCrudObject) { inherits(PlayableContent2, _AbstractCrudObject); function PlayableContent2() { classCallCheck(this, PlayableContent2); return possibleConstructorReturn(this, (PlayableContent2.__proto__ || Object.getPrototypeOf(PlayableContent2)).apply(this, arguments)); } __name(PlayableContent2, "PlayableContent"); createClass(PlayableContent2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name", owner: "owner" }); }, "get") }]); return PlayableContent2; }(AbstractCrudObject); var AdAccountAdRulesHistory = function(_AbstractCrudObject) { inherits(AdAccountAdRulesHistory2, _AbstractCrudObject); function AdAccountAdRulesHistory2() { classCallCheck(this, AdAccountAdRulesHistory2); return possibleConstructorReturn(this, (AdAccountAdRulesHistory2.__proto__ || Object.getPrototypeOf(AdAccountAdRulesHistory2)).apply(this, arguments)); } __name(AdAccountAdRulesHistory2, "AdAccountAdRulesHistory"); createClass(AdAccountAdRulesHistory2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ evaluation_spec: "evaluation_spec", exception_code: "exception_code", exception_message: "exception_message", execution_spec: "execution_spec", is_manual: "is_manual", results: "results", rule_id: "rule_id", schedule_spec: "schedule_spec", timestamp: "timestamp" }); }, "get") }, { key: "Action", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ budget_not_redistributed: "BUDGET_NOT_REDISTRIBUTED", changed_bid: "CHANGED_BID", changed_budget: "CHANGED_BUDGET", email: "EMAIL", enable_advantage_plus_creative: "ENABLE_ADVANTAGE_PLUS_CREATIVE", enable_advantage_plus_placements: "ENABLE_ADVANTAGE_PLUS_PLACEMENTS", enable_autoflow: "ENABLE_AUTOFLOW", enable_gen_uncrop: "ENABLE_GEN_UNCROP", enable_semantic_based_audience_expansion: "ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION", endpoint_pinged: "ENDPOINT_PINGED", error: "ERROR", facebook_notification_sent: "FACEBOOK_NOTIFICATION_SENT", message_sent: "MESSAGE_SENT", not_changed: "NOT_CHANGED", paused: "PAUSED", unpaused: "UNPAUSED" }); }, "get") }, { key: "EvaluationType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ schedule: "SCHEDULE", trigger: "TRIGGER" }); }, "get") }]); return AdAccountAdRulesHistory2; }(AbstractCrudObject); var AdAccountAdVolume = function(_AbstractCrudObject) { inherits(AdAccountAdVolume2, _AbstractCrudObject); function AdAccountAdVolume2() { classCallCheck(this, AdAccountAdVolume2); return possibleConstructorReturn(this, (AdAccountAdVolume2.__proto__ || Object.getPrototypeOf(AdAccountAdVolume2)).apply(this, arguments)); } __name(AdAccountAdVolume2, "AdAccountAdVolume"); createClass(AdAccountAdVolume2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ actor_id: "actor_id", actor_name: "actor_name", ad_limit_scope_business: "ad_limit_scope_business", ad_limit_scope_business_manager_id: "ad_limit_scope_business_manager_id", ad_limit_set_by_page_admin: "ad_limit_set_by_page_admin", ads_running_or_in_review_count: "ads_running_or_in_review_count", ads_running_or_in_review_count_subject_to_limit_set_by_page: "ads_running_or_in_review_count_subject_to_limit_set_by_page", current_account_ads_running_or_in_review_count: "current_account_ads_running_or_in_review_count", future_limit_activation_date: "future_limit_activation_date", future_limit_on_ads_running_or_in_review: "future_limit_on_ads_running_or_in_review", limit_on_ads_running_or_in_review: "limit_on_ads_running_or_in_review", recommendations: "recommendations" }); }, "get") }, { key: "RecommendationType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ab_test: "AB_TEST", account_spend_limit: "ACCOUNT_SPEND_LIMIT", aco_toggle: "ACO_TOGGLE", ads_reporting: "ADS_REPORTING", advanced_campaign_budget: "ADVANCED_CAMPAIGN_BUDGET", advantage_app_campaign: "ADVANTAGE_APP_CAMPAIGN", advantage_custom_audience: "ADVANTAGE_CUSTOM_AUDIENCE", advantage_custom_audience_upsell: "ADVANTAGE_CUSTOM_AUDIENCE_UPSELL", advantage_detailed_targeting: "ADVANTAGE_DETAILED_TARGETING", advantage_lookalike_audience: "ADVANTAGE_LOOKALIKE_AUDIENCE", advantage_plus_audience: "ADVANTAGE_PLUS_AUDIENCE", advantage_plus_audience_friction: "ADVANTAGE_PLUS_AUDIENCE_FRICTION", advantage_plus_audience_toggle: "ADVANTAGE_PLUS_AUDIENCE_TOGGLE", advantage_plus_creative: "ADVANTAGE_PLUS_CREATIVE", advantage_plus_creative_catalog: "ADVANTAGE_PLUS_CREATIVE_CATALOG", advantage_plus_placements_friction: "ADVANTAGE_PLUS_PLACEMENTS_FRICTION", advantage_shopping_campaign: "ADVANTAGE_SHOPPING_CAMPAIGN", advantage_shopping_campaign_fragmentation: "ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION", ad_objective: "AD_OBJECTIVE", aem_v2_ineligible: "AEM_V2_INELIGIBLE", aggregated_bid_limited: "AGGREGATED_BID_LIMITED", aggregated_budget_limited: "AGGREGATED_BUDGET_LIMITED", aggregated_cost_limited: "AGGREGATED_COST_LIMITED", app_aem_v2_installation_promotion: "APP_AEM_V2_INSTALLATION_PROMOTION", asc_budget_optimization: "ASC_BUDGET_OPTIMIZATION", asc_budget_optimization_pfr: "ASC_BUDGET_OPTIMIZATION_PFR", asc_creation_package: "ASC_CREATION_PACKAGE", asc_fragmentation_v2: "ASC_FRAGMENTATION_V2", aspect_ratio: "ASPECT_RATIO", atleast_6_placements: "ATLEAST_6_PLACEMENTS", auction_overlap: "AUCTION_OVERLAP", auction_overlap_consolidation: "AUCTION_OVERLAP_CONSOLIDATION", audience_expansion: "AUDIENCE_EXPANSION", audience_expansion_retargeting: "AUDIENCE_EXPANSION_RETARGETING", audience_learning_limited: "AUDIENCE_LEARNING_LIMITED", autoflow_opt_in: "AUTOFLOW_OPT_IN", autoflow_opt_in_fallback_duplication_flow: "AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW", automatic_placements: "AUTOMATIC_PLACEMENTS", auto_bid: "AUTO_BID", blended_ads: "BLENDED_ADS", broad_targeting: "BROAD_TARGETING", capi: "CAPI", capi_performance_match_key: "CAPI_PERFORMANCE_MATCH_KEY", capi_performance_match_key_v2: "CAPI_PERFORMANCE_MATCH_KEY_V2", cash_rewards_opt_in: "CASH_REWARDS_OPT_IN", connected_sources: "CONNECTED_SOURCES", connect_facebook_page_to_instagram: "CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM", connect_facebook_page_to_whatsapp: "CONNECT_FACEBOOK_PAGE_TO_WHATSAPP", conversion_lead_ads: "CONVERSION_LEAD_ADS", cost_goal: "COST_GOAL", cost_goal_budget_limited: "COST_GOAL_BUDGET_LIMITED", cost_goal_cpa_limited: "COST_GOAL_CPA_LIMITED", cost_per_result: "COST_PER_RESULT", creation_package_upgrade_to_asc: "CREATION_PACKAGE_UPGRADE_TO_ASC", creation_package_upgrade_to_tla: "CREATION_PACKAGE_UPGRADE_TO_TLA", creation_package_upgrade_to_tmc: "CREATION_PACKAGE_UPGRADE_TO_TMC", creative_badge: "CREATIVE_BADGE", creative_diversity: "CREATIVE_DIVERSITY", creative_fatigue: "CREATIVE_FATIGUE", creative_fatigue_hourly: "CREATIVE_FATIGUE_HOURLY", creative_limited: "CREATIVE_LIMITED", creative_limited_hourly: "CREATIVE_LIMITED_HOURLY", creator_ads_pa_conversion: "CREATOR_ADS_PA_CONVERSION", cta: "CTA", ctx_budget_optimization: "CTX_BUDGET_OPTIMIZATION", ctx_creation_package: "CTX_CREATION_PACKAGE", ctx_guidance: "CTX_GUIDANCE", da_advantage_plus_creative_info_labels: "DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS", da_duplication_product_tags: "DA_DUPLICATION_PRODUCT_TAGS", dead_link: "DEAD_LINK", dynamic_advantage_campaign_budget: "DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET", ecosystem_bid_reduce_l1_cardinality: "ECOSYSTEM_BID_REDUCE_L1_CARDINALITY", evc_app_duplication_upgrade: "EVC_APP_DUPLICATION_UPGRADE", evc_web_duplication_upgrade: "EVC_WEB_DUPLICATION_UPGRADE", fragmentation: "FRAGMENTATION", ges_test: "GES_TEST", guidance_center_code_gen: "GUIDANCE_CENTER_CODE_GEN", high_cost: "HIGH_COST", historical_benchmark: "HISTORICAL_BENCHMARK", ig_multi_ads: "IG_MULTI_ADS", lead_ads_guidance: "LEAD_ADS_GUIDANCE", learning_limited: "LEARNING_LIMITED", learning_pause_friction: "LEARNING_PAUSE_FRICTION", learning_phase_budget_edits: "LEARNING_PHASE_BUDGET_EDITS", low_outcome: "LOW_OUTCOME", merlin_guidance: "MERLIN_GUIDANCE", mixed_pa_combine_adsets: "MIXED_PA_COMBINE_ADSETS", mmt_carousel_to_video: "MMT_CAROUSEL_TO_VIDEO", mobile_first_video: "MOBILE_FIRST_VIDEO", mr_aemv2sub_kconsolidation: "MR_AEMV2SUB_KCONSOLIDATION", multi_text: "MULTI_TEXT", music: "MUSIC", not_applicable: "NOT_APPLICABLE", optimal_bau: "OPTIMAL_BAU", payment_method: "PAYMENT_METHOD", performant_creative_reels_opt_in: "PERFORMANT_CREATIVE_REELS_OPT_IN", pfr_l1_inline_mmt: "PFR_L1_INLINE_MMT", predictive_creative_limited: "PREDICTIVE_CREATIVE_LIMITED", predictive_creative_limited_hourly: "PREDICTIVE_CREATIVE_LIMITED_HOURLY", preparing_status: "PREPARING_STATUS", rapid_learning_limited: "RAPID_LEARNING_LIMITED", rapid_learning_phase: "RAPID_LEARNING_PHASE", reels_duplication_upsell: "REELS_DUPLICATION_UPSELL", revert: "REVERT", scale_good_campaign: "SCALE_GOOD_CAMPAIGN", semantic_based_audience_expansion: "SEMANTIC_BASED_AUDIENCE_EXPANSION", setup_pixel: "SETUP_PIXEL", shops_ads: "SHOPS_ADS", signals_growth_capi: "SIGNALS_GROWTH_CAPI", signals_growth_capi_table: "SIGNALS_GROWTH_CAPI_TABLE", signals_growth_capi_v2: "SIGNALS_GROWTH_CAPI_V2", six_plus_manual_placements: "SIX_PLUS_MANUAL_PLACEMENTS", spend_limit: "SPEND_LIMIT", syd_test_mode: "SYD_TEST_MODE", tailored_lead_ad_campaign: "TAILORED_LEAD_AD_CAMPAIGN", tailored_messages_campaign: "TAILORED_MESSAGES_CAMPAIGN", top_adsets_with_ads_under_cap: "TOP_ADSETS_WITH_ADS_UNDER_CAP", top_campaigns_with_ads_under_cap: "TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP", two_p_guidance_card_aaa: "TWO_P_GUIDANCE_CARD_AAA", two_p_guidance_card_auto_placement: "TWO_P_GUIDANCE_CARD_AUTO_PLACEMENT", two_p_guidance_card_cbo_off: "TWO_P_GUIDANCE_CARD_CBO_OFF", two_p_guidance_card_ctm_preflight: "TWO_P_GUIDANCE_CARD_CTM_PREFLIGHT", uncrop_image: "UNCROP_IMAGE", uneconomical_ads_throttling: "UNECONOMICAL_ADS_THROTTLING", unused_budget: "UNUSED_BUDGET", video_length: "VIDEO_LENGTH", zero_conversion: "ZERO_CONVERSION", zero_impression: "ZERO_IMPRESSION" }); }, "get") }]); return AdAccountAdVolume2; }(AbstractCrudObject); var AsyncRequest = function(_AbstractCrudObject) { inherits(AsyncRequest2, _AbstractCrudObject); function AsyncRequest2() { classCallCheck(this, AsyncRequest2); return possibleConstructorReturn(this, (AsyncRequest2.__proto__ || Object.getPrototypeOf(AsyncRequest2)).apply(this, arguments)); } __name(AsyncRequest2, "AsyncRequest"); createClass(AsyncRequest2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", result: "result", status: "status", type: "type" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ error: "ERROR", executing: "EXECUTING", finished: "FINISHED", initialized: "INITIALIZED" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ async_adgroup_creation: "ASYNC_ADGROUP_CREATION", batch_api: "BATCH_API", drafts: "DRAFTS" }); }, "get") }]); return AsyncRequest2; }(AbstractCrudObject); var AdAsyncRequestSet = function(_AbstractCrudObject) { inherits(AdAsyncRequestSet2, _AbstractCrudObject); function AdAsyncRequestSet2() { classCallCheck(this, AdAsyncRequestSet2); return possibleConstructorReturn(this, (AdAsyncRequestSet2.__proto__ || Object.getPrototypeOf(AdAsyncRequestSet2)).apply(this, arguments)); } __name(AdAsyncRequestSet2, "AdAsyncRequestSet"); createClass(AdAsyncRequestSet2, [{ key: "getRequests", value: /* @__PURE__ */ __name(function getRequests(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAsyncRequest, fields, params, fetchFirstPage, "/requests"); }, "getRequests") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdAsyncRequestSet2.prototype.__proto__ || Object.getPrototypeOf(AdAsyncRequestSet2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdAsyncRequestSet2.prototype.__proto__ || Object.getPrototypeOf(AdAsyncRequestSet2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ canceled_count: "canceled_count", created_time: "created_time", error_count: "error_count", id: "id", in_progress_count: "in_progress_count", initial_count: "initial_count", is_completed: "is_completed", name: "name", notification_mode: "notification_mode", notification_result: "notification_result", notification_status: "notification_status", notification_uri: "notification_uri", owner_id: "owner_id", success_count: "success_count", total_count: "total_count", updated_time: "updated_time" }); }, "get") }, { key: "NotificationMode", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ off: "OFF", on_complete: "ON_COMPLETE" }); }, "get") }]); return AdAsyncRequestSet2; }(AbstractCrudObject); var BroadTargetingCategories = function(_AbstractCrudObject) { inherits(BroadTargetingCategories2, _AbstractCrudObject); function BroadTargetingCategories2() { classCallCheck(this, BroadTargetingCategories2); return possibleConstructorReturn(this, (BroadTargetingCategories2.__proto__ || Object.getPrototypeOf(BroadTargetingCategories2)).apply(this, arguments)); } __name(BroadTargetingCategories2, "BroadTargetingCategories"); createClass(BroadTargetingCategories2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ category_description: "category_description", id: "id", name: "name", parent_category: "parent_category", path: "path", size_lower_bound: "size_lower_bound", size_upper_bound: "size_upper_bound", source: "source", type: "type", type_name: "type_name", untranslated_name: "untranslated_name", untranslated_parent_name: "untranslated_parent_name" }); }, "get") }]); return BroadTargetingCategories2; }(AbstractCrudObject); var CustomAudiencesTOS = function(_AbstractCrudObject) { inherits(CustomAudiencesTOS2, _AbstractCrudObject); function CustomAudiencesTOS2() { classCallCheck(this, CustomAudiencesTOS2); return possibleConstructorReturn(this, (CustomAudiencesTOS2.__proto__ || Object.getPrototypeOf(CustomAudiencesTOS2)).apply(this, arguments)); } __name(CustomAudiencesTOS2, "CustomAudiencesTOS"); createClass(CustomAudiencesTOS2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ content: "content", id: "id", type: "type" }); }, "get") }]); return CustomAudiencesTOS2; }(AbstractCrudObject); var AdAccountDeliveryEstimate = function(_AbstractCrudObject) { inherits(AdAccountDeliveryEstimate2, _AbstractCrudObject); function AdAccountDeliveryEstimate2() { classCallCheck(this, AdAccountDeliveryEstimate2); return possibleConstructorReturn(this, (AdAccountDeliveryEstimate2.__proto__ || Object.getPrototypeOf(AdAccountDeliveryEstimate2)).apply(this, arguments)); } __name(AdAccountDeliveryEstimate2, "AdAccountDeliveryEstimate"); createClass(AdAccountDeliveryEstimate2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ daily_outcomes_curve: "daily_outcomes_curve", estimate_dau: "estimate_dau", estimate_mau_lower_bound: "estimate_mau_lower_bound", estimate_mau_upper_bound: "estimate_mau_upper_bound", estimate_ready: "estimate_ready", targeting_optimization_types: "targeting_optimization_types" }); }, "get") }, { key: "OptimizationGoal", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_recall_lift: "AD_RECALL_LIFT", app_installs: "APP_INSTALLS", app_installs_and_offsite_conversions: "APP_INSTALLS_AND_OFFSITE_CONVERSIONS", conversations: "CONVERSATIONS", derived_events: "DERIVED_EVENTS", engaged_users: "ENGAGED_USERS", event_responses: "EVENT_RESPONSES", impressions: "IMPRESSIONS", in_app_value: "IN_APP_VALUE", landing_page_views: "LANDING_PAGE_VIEWS", lead_generation: "LEAD_GENERATION", link_clicks: "LINK_CLICKS", meaningful_call_attempt: "MEANINGFUL_CALL_ATTEMPT", messaging_appointment_conversion: "MESSAGING_APPOINTMENT_CONVERSION", messaging_purchase_conversion: "MESSAGING_PURCHASE_CONVERSION", none: "NONE", offsite_conversions: "OFFSITE_CONVERSIONS", page_likes: "PAGE_LIKES", post_engagement: "POST_ENGAGEMENT", quality_call: "QUALITY_CALL", quality_lead: "QUALITY_LEAD", reach: "REACH", reminders_set: "REMINDERS_SET", subscribers: "SUBSCRIBERS", thruplay: "THRUPLAY", value: "VALUE", visit_instagram_profile: "VISIT_INSTAGRAM_PROFILE" }); }, "get") }]); return AdAccountDeliveryEstimate2; }(AbstractCrudObject); var AdAccountDsaRecommendations = function(_AbstractCrudObject) { inherits(AdAccountDsaRecommendations2, _AbstractCrudObject); function AdAccountDsaRecommendations2() { classCallCheck(this, AdAccountDsaRecommendations2); return possibleConstructorReturn(this, (AdAccountDsaRecommendations2.__proto__ || Object.getPrototypeOf(AdAccountDsaRecommendations2)).apply(this, arguments)); } __name(AdAccountDsaRecommendations2, "AdAccountDsaRecommendations"); createClass(AdAccountDsaRecommendations2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ recommendations: "recommendations" }); }, "get") }]); return AdAccountDsaRecommendations2; }(AbstractCrudObject); var AdAccountIosFourteenCampaignLimits = function(_AbstractCrudObject) { inherits(AdAccountIosFourteenCampaignLimits2, _AbstractCrudObject); function AdAccountIosFourteenCampaignLimits2() { classCallCheck(this, AdAccountIosFourteenCampaignLimits2); return possibleConstructorReturn(this, (AdAccountIosFourteenCampaignLimits2.__proto__ || Object.getPrototypeOf(AdAccountIosFourteenCampaignLimits2)).apply(this, arguments)); } __name(AdAccountIosFourteenCampaignLimits2, "AdAccountIosFourteenCampaignLimits"); createClass(AdAccountIosFourteenCampaignLimits2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ campaign_group_limit: "campaign_group_limit", campaign_group_limits_details: "campaign_group_limits_details", campaign_limit: "campaign_limit" }); }, "get") }]); return AdAccountIosFourteenCampaignLimits2; }(AbstractCrudObject); var AdAccountMatchedSearchApplicationsEdgeData = function(_AbstractCrudObject) { inherits(AdAccountMatchedSearchApplicationsEdgeData2, _AbstractCrudObject); function AdAccountMatchedSearchApplicationsEdgeData2() { classCallCheck(this, AdAccountMatchedSearchApplicationsEdgeData2); return possibleConstructorReturn(this, (AdAccountMatchedSearchApplicationsEdgeData2.__proto__ || Object.getPrototypeOf(AdAccountMatchedSearchApplicationsEdgeData2)).apply(this, arguments)); } __name(AdAccountMatchedSearchApplicationsEdgeData2, "AdAccountMatchedSearchApplicationsEdgeData"); createClass(AdAccountMatchedSearchApplicationsEdgeData2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_id: "app_id", are_app_events_unavailable: "are_app_events_unavailable", icon_url: "icon_url", name: "name", search_source_store: "search_source_store", store: "store", unique_id: "unique_id", url: "url" }); }, "get") }, { key: "AppStore", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amazon_app_store: "AMAZON_APP_STORE", apk_mirror: "APK_MIRROR", apk_monk: "APK_MONK", apk_pure: "APK_PURE", aptoide_a1_store: "APTOIDE_A1_STORE", bemobi_mobile_store: "BEMOBI_MOBILE_STORE", digital_turbine_store: "DIGITAL_TURBINE_STORE", does_not_exist: "DOES_NOT_EXIST", fb_android_store: "FB_ANDROID_STORE", fb_canvas: "FB_CANVAS", fb_gameroom: "FB_GAMEROOM", galaxy_store: "GALAXY_STORE", google_play: "GOOGLE_PLAY", instant_game: "INSTANT_GAME", itunes: "ITUNES", itunes_ipad: "ITUNES_IPAD", neon_android_store: "NEON_ANDROID_STORE", none: "NONE", oculus_app_store: "OCULUS_APP_STORE", oppo: "OPPO", roku_store: "ROKU_STORE", uptodown: "UPTODOWN", vivo: "VIVO", windows_10_store: "WINDOWS_10_STORE", windows_store: "WINDOWS_STORE", xiaomi: "XIAOMI" }); }, "get") }]); return AdAccountMatchedSearchApplicationsEdgeData2; }(AbstractCrudObject); var AdAccountMaxBid = function(_AbstractCrudObject) { inherits(AdAccountMaxBid2, _AbstractCrudObject); function AdAccountMaxBid2() { classCallCheck(this, AdAccountMaxBid2); return possibleConstructorReturn(this, (AdAccountMaxBid2.__proto__ || Object.getPrototypeOf(AdAccountMaxBid2)).apply(this, arguments)); } __name(AdAccountMaxBid2, "AdAccountMaxBid"); createClass(AdAccountMaxBid2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ max_bid: "max_bid" }); }, "get") }]); return AdAccountMaxBid2; }(AbstractCrudObject); var MinimumBudget = function(_AbstractCrudObject) { inherits(MinimumBudget2, _AbstractCrudObject); function MinimumBudget2() { classCallCheck(this, MinimumBudget2); return possibleConstructorReturn(this, (MinimumBudget2.__proto__ || Object.getPrototypeOf(MinimumBudget2)).apply(this, arguments)); } __name(MinimumBudget2, "MinimumBudget"); createClass(MinimumBudget2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ currency: "currency", min_daily_budget_high_freq: "min_daily_budget_high_freq", min_daily_budget_imp: "min_daily_budget_imp", min_daily_budget_low_freq: "min_daily_budget_low_freq", min_daily_budget_video_views: "min_daily_budget_video_views" }); }, "get") }]); return MinimumBudget2; }(AbstractCrudObject); var BusinessOwnedObjectOnBehalfOfRequest = function(_AbstractCrudObject) { inherits(BusinessOwnedObjectOnBehalfOfRequest2, _AbstractCrudObject); function BusinessOwnedObjectOnBehalfOfRequest2() { classCallCheck(this, BusinessOwnedObjectOnBehalfOfRequest2); return possibleConstructorReturn(this, (BusinessOwnedObjectOnBehalfOfRequest2.__proto__ || Object.getPrototypeOf(BusinessOwnedObjectOnBehalfOfRequest2)).apply(this, arguments)); } __name(BusinessOwnedObjectOnBehalfOfRequest2, "BusinessOwnedObjectOnBehalfOfRequest"); createClass(BusinessOwnedObjectOnBehalfOfRequest2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ business_owned_object: "business_owned_object", id: "id", receiving_business: "receiving_business", requesting_business: "requesting_business", status: "status" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ approve: "APPROVE", decline: "DECLINE", expired: "EXPIRED", in_progress: "IN_PROGRESS", pending: "PENDING", pending_email_verification: "PENDING_EMAIL_VERIFICATION", pending_integrity_review: "PENDING_INTEGRITY_REVIEW" }); }, "get") }]); return BusinessOwnedObjectOnBehalfOfRequest2; }(AbstractCrudObject); var PublisherBlockList = function(_AbstractCrudObject) { inherits(PublisherBlockList2, _AbstractCrudObject); function PublisherBlockList2() { classCallCheck(this, PublisherBlockList2); return possibleConstructorReturn(this, (PublisherBlockList2.__proto__ || Object.getPrototypeOf(PublisherBlockList2)).apply(this, arguments)); } __name(PublisherBlockList2, "PublisherBlockList"); createClass(PublisherBlockList2, [{ key: "createAppEndPublisherUrl", value: /* @__PURE__ */ __name(function createAppEndPublisherUrl(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/append_publisher_urls", fields, params, null, pathOverride); }, "createAppEndPublisherUrl") }, { key: "getPagedWebPublishers", value: /* @__PURE__ */ __name(function getPagedWebPublishers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/paged_web_publishers"); }, "getPagedWebPublishers") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(PublisherBlockList2.prototype.__proto__ || Object.getPrototypeOf(PublisherBlockList2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(PublisherBlockList2.prototype.__proto__ || Object.getPrototypeOf(PublisherBlockList2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_publishers: "app_publishers", business_owner_id: "business_owner_id", id: "id", is_auto_blocking_on: "is_auto_blocking_on", is_eligible_at_campaign_level: "is_eligible_at_campaign_level", last_update_time: "last_update_time", last_update_user: "last_update_user", name: "name", owner_ad_account_id: "owner_ad_account_id", web_publishers: "web_publishers" }); }, "get") }]); return PublisherBlockList2; }(AbstractCrudObject); var AdAccountReachEstimate = function(_AbstractCrudObject) { inherits(AdAccountReachEstimate2, _AbstractCrudObject); function AdAccountReachEstimate2() { classCallCheck(this, AdAccountReachEstimate2); return possibleConstructorReturn(this, (AdAccountReachEstimate2.__proto__ || Object.getPrototypeOf(AdAccountReachEstimate2)).apply(this, arguments)); } __name(AdAccountReachEstimate2, "AdAccountReachEstimate"); createClass(AdAccountReachEstimate2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ estimate_ready: "estimate_ready", users_lower_bound: "users_lower_bound", users_upper_bound: "users_upper_bound" }); }, "get") }]); return AdAccountReachEstimate2; }(AbstractCrudObject); var ReachFrequencyPrediction = function(_AbstractCrudObject) { inherits(ReachFrequencyPrediction2, _AbstractCrudObject); function ReachFrequencyPrediction2() { classCallCheck(this, ReachFrequencyPrediction2); return possibleConstructorReturn(this, (ReachFrequencyPrediction2.__proto__ || Object.getPrototypeOf(ReachFrequencyPrediction2)).apply(this, arguments)); } __name(ReachFrequencyPrediction2, "ReachFrequencyPrediction"); createClass(ReachFrequencyPrediction2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", activity_status: "activity_status", ad_formats: "ad_formats", auction_entry_option_index: "auction_entry_option_index", audience_size_lower_bound: "audience_size_lower_bound", audience_size_upper_bound: "audience_size_upper_bound", business_id: "business_id", buying_type: "buying_type", campaign_group_id: "campaign_group_id", campaign_id: "campaign_id", campaign_time_start: "campaign_time_start", campaign_time_stop: "campaign_time_stop", currency: "currency", curve_budget_reach: "curve_budget_reach", curve_reach: "curve_reach", daily_grp_curve: "daily_grp_curve", daily_impression_curve: "daily_impression_curve", daily_impression_curve_map: "daily_impression_curve_map", day_parting_schedule: "day_parting_schedule", destination_id: "destination_id", end_time: "end_time", expiration_time: "expiration_time", external_budget: "external_budget", external_impression: "external_impression", external_maximum_budget: "external_maximum_budget", external_maximum_impression: "external_maximum_impression", external_maximum_reach: "external_maximum_reach", external_minimum_budget: "external_minimum_budget", external_minimum_impression: "external_minimum_impression", external_minimum_reach: "external_minimum_reach", external_reach: "external_reach", feed_ratio_0000: "feed_ratio_0000", frequency_cap: "frequency_cap", frequency_distribution_map: "frequency_distribution_map", frequency_distribution_map_agg: "frequency_distribution_map_agg", grp_audience_size: "grp_audience_size", grp_avg_probability_map: "grp_avg_probability_map", grp_country_audience_size: "grp_country_audience_size", grp_curve: "grp_curve", grp_dmas_audience_size: "grp_dmas_audience_size", grp_filtering_threshold_00: "grp_filtering_threshold_00", grp_points: "grp_points", grp_ratio: "grp_ratio", grp_reach_ratio: "grp_reach_ratio", grp_status: "grp_status", holdout_percentage: "holdout_percentage", id: "id", impression_curve: "impression_curve", instagram_destination_id: "instagram_destination_id", instream_packages: "instream_packages", interval_frequency_cap: "interval_frequency_cap", interval_frequency_cap_reset_period: "interval_frequency_cap_reset_period", is_bonus_media: "is_bonus_media", is_conversion_goal: "is_conversion_goal", is_higher_average_frequency: "is_higher_average_frequency", is_io: "is_io", is_reserved_buying: "is_reserved_buying", is_trp: "is_trp", name: "name", objective: "objective", objective_name: "objective_name", odax_objective: "odax_objective", odax_objective_name: "odax_objective_name", optimization_goal: "optimization_goal", optimization_goal_name: "optimization_goal_name", pause_periods: "pause_periods", placement_breakdown: "placement_breakdown", placement_breakdown_map: "placement_breakdown_map", plan_name: "plan_name", plan_type: "plan_type", prediction_mode: "prediction_mode", prediction_progress: "prediction_progress", reference_id: "reference_id", reservation_status: "reservation_status", start_time: "start_time", status: "status", story_event_type: "story_event_type", target_cpm: "target_cpm", target_spec: "target_spec", time_created: "time_created", time_updated: "time_updated", timezone_id: "timezone_id", timezone_name: "timezone_name", topline_id: "topline_id", video_view_length_constraint: "video_view_length_constraint", viewtag: "viewtag" }); }, "get") }, { key: "Action", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ cancel: "cancel", quote: "quote", reserve: "reserve" }); }, "get") }, { key: "BuyingType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ auction: "AUCTION", deprecated_reach_block: "DEPRECATED_REACH_BLOCK", fixed_cpm: "FIXED_CPM", mixed: "MIXED", reachblock: "REACHBLOCK", research_poll: "RESEARCH_POLL", reserved: "RESERVED" }); }, "get") }, { key: "InstreamPackages", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ beauty: "BEAUTY", entertainment: "ENTERTAINMENT", food: "FOOD", normal: "NORMAL", premium: "PREMIUM", regular_animals_pets: "REGULAR_ANIMALS_PETS", regular_food: "REGULAR_FOOD", regular_games: "REGULAR_GAMES", regular_politics: "REGULAR_POLITICS", regular_sports: "REGULAR_SPORTS", regular_style: "REGULAR_STYLE", regular_tv_movies: "REGULAR_TV_MOVIES", spanish: "SPANISH", sports: "SPORTS" }); }, "get") }]); return ReachFrequencyPrediction2; }(AbstractCrudObject); var SavedAudience = function(_AbstractCrudObject) { inherits(SavedAudience2, _AbstractCrudObject); function SavedAudience2() { classCallCheck(this, SavedAudience2); return possibleConstructorReturn(this, (SavedAudience2.__proto__ || Object.getPrototypeOf(SavedAudience2)).apply(this, arguments)); } __name(SavedAudience2, "SavedAudience"); createClass(SavedAudience2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account: "account", approximate_count_lower_bound: "approximate_count_lower_bound", approximate_count_upper_bound: "approximate_count_upper_bound", delete_time: "delete_time", description: "description", id: "id", name: "name", operation_status: "operation_status", owner_business: "owner_business", page_deletion_marked_delete_time: "page_deletion_marked_delete_time", permission_for_actions: "permission_for_actions", run_status: "run_status", sentence_lines: "sentence_lines", targeting: "targeting", time_created: "time_created", time_updated: "time_updated" }); }, "get") }]); return SavedAudience2; }(AbstractCrudObject); var AdAccountSubscribedApps = function(_AbstractCrudObject) { inherits(AdAccountSubscribedApps2, _AbstractCrudObject); function AdAccountSubscribedApps2() { classCallCheck(this, AdAccountSubscribedApps2); return possibleConstructorReturn(this, (AdAccountSubscribedApps2.__proto__ || Object.getPrototypeOf(AdAccountSubscribedApps2)).apply(this, arguments)); } __name(AdAccountSubscribedApps2, "AdAccountSubscribedApps"); createClass(AdAccountSubscribedApps2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_id: "app_id", app_name: "app_name" }); }, "get") }]); return AdAccountSubscribedApps2; }(AbstractCrudObject); var AdAccountTargetingUnified = function(_AbstractCrudObject) { inherits(AdAccountTargetingUnified2, _AbstractCrudObject); function AdAccountTargetingUnified2() { classCallCheck(this, AdAccountTargetingUnified2); return possibleConstructorReturn(this, (AdAccountTargetingUnified2.__proto__ || Object.getPrototypeOf(AdAccountTargetingUnified2)).apply(this, arguments)); } __name(AdAccountTargetingUnified2, "AdAccountTargetingUnified"); createClass(AdAccountTargetingUnified2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ audience_size_lower_bound: "audience_size_lower_bound", audience_size_upper_bound: "audience_size_upper_bound", conversion_lift: "conversion_lift", description: "description", id: "id", img: "img", info: "info", info_title: "info_title", is_recommendation: "is_recommendation", key: "key", link: "link", name: "name", parent: "parent", partner: "partner", path: "path", performance_rating: "performance_rating", raw_name: "raw_name", recommendation_model: "recommendation_model", search_interest_id: "search_interest_id", source: "source", spend: "spend", type: "type", valid: "valid" }); }, "get") }, { key: "LimitType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ behaviors: "behaviors", college_years: "college_years", education_majors: "education_majors", education_schools: "education_schools", education_statuses: "education_statuses", ethnic_affinity: "ethnic_affinity", family_statuses: "family_statuses", generation: "generation", home_ownership: "home_ownership", home_type: "home_type", home_value: "home_value", household_composition: "household_composition", income: "income", industries: "industries", interested_in: "interested_in", interests: "interests", life_events: "life_events", location_categories: "location_categories", moms: "moms", net_worth: "net_worth", office_type: "office_type", politics: "politics", relationship_statuses: "relationship_statuses", user_adclusters: "user_adclusters", work_employers: "work_employers", work_positions: "work_positions" }); }, "get") }, { key: "RegulatedCategories", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ credit: "CREDIT", employment: "EMPLOYMENT", housing: "HOUSING", issues_elections_politics: "ISSUES_ELECTIONS_POLITICS", none: "NONE", online_gambling_and_gaming: "ONLINE_GAMBLING_AND_GAMING" }); }, "get") }, { key: "RegulatedCountries", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad: "AD", ae: "AE", af: "AF", ag: "AG", ai: "AI", al: "AL", am: "AM", an: "AN", ao: "AO", aq: "AQ", ar: "AR", as: "AS", at: "AT", au: "AU", aw: "AW", ax: "AX", az: "AZ", ba: "BA", bb: "BB", bd: "BD", be: "BE", bf: "BF", bg: "BG", bh: "BH", bi: "BI", bj: "BJ", bl: "BL", bm: "BM", bn: "BN", bo: "BO", bq: "BQ", br: "BR", bs: "BS", bt: "BT", bv: "BV", bw: "BW", by: "BY", bz: "BZ", ca: "CA", cc: "CC", cd: "CD", cf: "CF", cg: "CG", ch: "CH", ci: "CI", ck: "CK", cl: "CL", cm: "CM", cn: "CN", co: "CO", cr: "CR", cu: "CU", cv: "CV", cw: "CW", cx: "CX", cy: "CY", cz: "CZ", de: "DE", dj: "DJ", dk: "DK", dm: "DM", do: "DO", dz: "DZ", ec: "EC", ee: "EE", eg: "EG", eh: "EH", er: "ER", es: "ES", et: "ET", fi: "FI", fj: "FJ", fk: "FK", fm: "FM", fo: "FO", fr: "FR", ga: "GA", gb: "GB", gd: "GD", ge: "GE", gf: "GF", gg: "GG", gh: "GH", gi: "GI", gl: "GL", gm: "GM", gn: "GN", gp: "GP", gq: "GQ", gr: "GR", gs: "GS", gt: "GT", gu: "GU", gw: "GW", gy: "GY", hk: "HK", hm: "HM", hn: "HN", hr: "HR", ht: "HT", hu: "HU", id: "ID", ie: "IE", il: "IL", im: "IM", in: "IN", io: "IO", iq: "IQ", ir: "IR", is: "IS", it: "IT", je: "JE", jm: "JM", jo: "JO", jp: "JP", ke: "KE", kg: "KG", kh: "KH", ki: "KI", km: "KM", kn: "KN", kp: "KP", kr: "KR", kw: "KW", ky: "KY", kz: "KZ", la: "LA", lb: "LB", lc: "LC", li: "LI", lk: "LK", lr: "LR", ls: "LS", lt: "LT", lu: "LU", lv: "LV", ly: "LY", ma: "MA", mc: "MC", md: "MD", me: "ME", mf: "MF", mg: "MG", mh: "MH", mk: "MK", ml: "ML", mm: "MM", mn: "MN", mo: "MO", mp: "MP", mq: "MQ", mr: "MR", ms: "MS", mt: "MT", mu: "MU", mv: "MV", mw: "MW", mx: "MX", my: "MY", mz: "MZ", na: "NA", nc: "NC", ne: "NE", nf: "NF", ng: "NG", ni: "NI", nl: "NL", no: "NO", np: "NP", nr: "NR", nu: "NU", nz: "NZ", om: "OM", pa: "PA", pe: "PE", pf: "PF", pg: "PG", ph: "PH", pk: "PK", pl: "PL", pm: "PM", pn: "PN", pr: "PR", ps: "PS", pt: "PT", pw: "PW", py: "PY", qa: "QA", re: "RE", ro: "RO", rs: "RS", ru: "RU", rw: "RW", sa: "SA", sb: "SB", sc: "SC", sd: "SD", se: "SE", sg: "SG", sh: "SH", si: "SI", sj: "SJ", sk: "SK", sl: "SL", sm: "SM", sn: "SN", so: "SO", sr: "SR", ss: "SS", st: "ST", sv: "SV", sx: "SX", sy: "SY", sz: "SZ", tc: "TC", td: "TD", tf: "TF", tg: "TG", th: "TH", tj: "TJ", tk: "TK", tl: "TL", tm: "TM", tn: "TN", to: "TO", tr: "TR", tt: "TT", tv: "TV", tw: "TW", tz: "TZ", ua: "UA", ug: "UG", um: "UM", us: "US", uy: "UY", uz: "UZ", va: "VA", vc: "VC", ve: "VE", vg: "VG", vi: "VI", vn: "VN", vu: "VU", wf: "WF", ws: "WS", xk: "XK", ye: "YE", yt: "YT", za: "ZA", zm: "ZM", zw: "ZW" }); }, "get") }, { key: "WhitelistedTypes", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adgroup_id: "adgroup_id", age_max: "age_max", age_min: "age_min", age_range: "age_range", alternate_auto_targeting_option: "alternate_auto_targeting_option", app_install_state: "app_install_state", audience_network_positions: "audience_network_positions", behaviors: "behaviors", brand_safety_content_filter_levels: "brand_safety_content_filter_levels", brand_safety_content_severity_levels: "brand_safety_content_severity_levels", cafe_ca_contraction_targeting_signal: "cafe_ca_contraction_targeting_signal", cafe_ca_expansion_targeting_signal: "cafe_ca_expansion_targeting_signal", catalog_based_targeting: "catalog_based_targeting", cities: "cities", city_keys: "city_keys", college_years: "college_years", conjunctive_user_adclusters: "conjunctive_user_adclusters", connections: "connections", contextual_targeting_categories: "contextual_targeting_categories", countries: "countries", country: "country", country_groups: "country_groups", custom_audiences: "custom_audiences", device_platforms: "device_platforms", direct_install_devices: "direct_install_devices", dynamic_audience_ids: "dynamic_audience_ids", education_majors: "education_majors", education_schools: "education_schools", education_statuses: "education_statuses", effective_audience_network_positions: "effective_audience_network_positions", effective_device_platforms: "effective_device_platforms", effective_facebook_positions: "effective_facebook_positions", effective_instagram_positions: "effective_instagram_positions", effective_messenger_positions: "effective_messenger_positions", effective_oculus_positions: "effective_oculus_positions", effective_publisher_platforms: "effective_publisher_platforms", effective_whatsapp_positions: "effective_whatsapp_positions", engagement_specs: "engagement_specs", ethnic_affinity: "ethnic_affinity", exclude_previous_days: "exclude_previous_days", exclude_reached_since: "exclude_reached_since", excluded_brand_safety_content_types: "excluded_brand_safety_content_types", excluded_connections: "excluded_connections", excluded_custom_audiences: "excluded_custom_audiences", excluded_dynamic_audience_ids: "excluded_dynamic_audience_ids", excluded_engagement_specs: "excluded_engagement_specs", excluded_geo_locations: "excluded_geo_locations", excluded_mobile_device_model: "excluded_mobile_device_model", excluded_product_audience_specs: "excluded_product_audience_specs", excluded_publisher_categories: "excluded_publisher_categories", excluded_publisher_list_ids: "excluded_publisher_list_ids", excluded_user_adclusters: "excluded_user_adclusters", excluded_user_device: "excluded_user_device", exclusions: "exclusions", expanded_implicit_custom_audiences: "expanded_implicit_custom_audiences", facebook_positions: "facebook_positions", family_statuses: "family_statuses", fb_deal_id: "fb_deal_id", flexible_spec: "flexible_spec", follow_profiles: "follow_profiles", follow_profiles_negative: "follow_profiles_negative", format: "format", friends_of_connections: "friends_of_connections", gatekeepers: "gatekeepers", genders: "genders", generation: "generation", geo_locations: "geo_locations", home_ownership: "home_ownership", home_type: "home_type", home_value: "home_value", household_composition: "household_composition", id: "id", income: "income", industries: "industries", instagram_hashtags: "instagram_hashtags", instagram_positions: "instagram_positions", instream_video_skippable_excluded: "instream_video_skippable_excluded", instream_video_sponsorship_placements: "instream_video_sponsorship_placements", interest_defaults_source: "interest_defaults_source", interested_in: "interested_in", interests: "interests", is_instagram_destination_ad: "is_instagram_destination_ad", is_whatsapp_destination_ad: "is_whatsapp_destination_ad", keywords: "keywords", life_events: "life_events", locales: "locales", location_categories: "location_categories", location_cluster_ids: "location_cluster_ids", location_expansion: "location_expansion", marketing_message_channels: "marketing_message_channels", marketing_message_targeting: "marketing_message_targeting", marketplace_product_categories: "marketplace_product_categories", messenger_positions: "messenger_positions", mobile_device_model: "mobile_device_model", moms: "moms", net_worth: "net_worth", oculus_positions: "oculus_positions", office_type: "office_type", page_types: "page_types", place_page_set_ids: "place_page_set_ids", political_views: "political_views", politics: "politics", product_audience_specs: "product_audience_specs", prospecting_audience: "prospecting_audience", publisher_platforms: "publisher_platforms", radius: "radius", region_keys: "region_keys", regions: "regions", relationship_statuses: "relationship_statuses", rtb_flag: "rtb_flag", site_category: "site_category", tafe_ca_mitigation_strategy: "tafe_ca_mitigation_strategy", targeting_automation: "targeting_automation", targeting_optimization: "targeting_optimization", targeting_relaxation_types: "targeting_relaxation_types", timezones: "timezones", topic: "topic", trending: "trending", user_adclusters: "user_adclusters", user_device: "user_device", user_event: "user_event", user_os: "user_os", user_page_threads: "user_page_threads", user_page_threads_excluded: "user_page_threads_excluded", whatsapp_positions: "whatsapp_positions", wireless_carrier: "wireless_carrier", work_employers: "work_employers", work_positions: "work_positions", zips: "zips" }); }, "get") }, { key: "AppStore", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amazon_app_store: "amazon_app_store", apk_mirror: "apk_mirror", apk_monk: "apk_monk", apk_pure: "apk_pure", aptoide_a1_store: "aptoide_a1_store", bemobi_mobile_store: "bemobi_mobile_store", digital_turbine_store: "digital_turbine_store", does_not_exist: "does_not_exist", fb_android_store: "fb_android_store", fb_canvas: "fb_canvas", fb_gameroom: "fb_gameroom", galaxy_store: "galaxy_store", google_play: "google_play", instant_game: "instant_game", itunes: "itunes", itunes_ipad: "itunes_ipad", neon_android_store: "neon_android_store", none: "none", oculus_app_store: "oculus_app_store", oppo: "oppo", roku_channel_store: "roku_channel_store", uptodown: "uptodown", vivo: "vivo", windows_10_store: "windows_10_store", windows_store: "windows_store", xiaomi: "xiaomi" }); }, "get") }, { key: "Objective", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_installs: "APP_INSTALLS", brand_awareness: "BRAND_AWARENESS", conversions: "CONVERSIONS", event_responses: "EVENT_RESPONSES", lead_generation: "LEAD_GENERATION", link_clicks: "LINK_CLICKS", local_awareness: "LOCAL_AWARENESS", messages: "MESSAGES", offer_claims: "OFFER_CLAIMS", outcome_app_promotion: "OUTCOME_APP_PROMOTION", outcome_awareness: "OUTCOME_AWARENESS", outcome_engagement: "OUTCOME_ENGAGEMENT", outcome_leads: "OUTCOME_LEADS", outcome_sales: "OUTCOME_SALES", outcome_traffic: "OUTCOME_TRAFFIC", page_likes: "PAGE_LIKES", post_engagement: "POST_ENGAGEMENT", product_catalog_sales: "PRODUCT_CATALOG_SALES", reach: "REACH", store_visits: "STORE_VISITS", video_views: "VIDEO_VIEWS" }); }, "get") }, { key: "Mode", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ best_performing: "best_performing", recently_used: "recently_used", related: "related", suggestions: "suggestions" }); }, "get") }]); return AdAccountTargetingUnified2; }(AbstractCrudObject); var AdAccountTrackingData = function(_AbstractCrudObject) { inherits(AdAccountTrackingData2, _AbstractCrudObject); function AdAccountTrackingData2() { classCallCheck(this, AdAccountTrackingData2); return possibleConstructorReturn(this, (AdAccountTrackingData2.__proto__ || Object.getPrototypeOf(AdAccountTrackingData2)).apply(this, arguments)); } __name(AdAccountTrackingData2, "AdAccountTrackingData"); createClass(AdAccountTrackingData2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ tracking_specs: "tracking_specs" }); }, "get") }]); return AdAccountTrackingData2; }(AbstractCrudObject); var AdAccountUser = function(_AbstractCrudObject) { inherits(AdAccountUser2, _AbstractCrudObject); function AdAccountUser2() { classCallCheck(this, AdAccountUser2); return possibleConstructorReturn(this, (AdAccountUser2.__proto__ || Object.getPrototypeOf(AdAccountUser2)).apply(this, arguments)); } __name(AdAccountUser2, "AdAccountUser"); createClass(AdAccountUser2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name", tasks: "tasks" }); }, "get") }]); return AdAccountUser2; }(AbstractCrudObject); var AdAccount2 = function(_AbstractCrudObject) { inherits(AdAccount3, _AbstractCrudObject); function AdAccount3() { classCallCheck(this, AdAccount3); return possibleConstructorReturn(this, (AdAccount3.__proto__ || Object.getPrototypeOf(AdAccount3)).apply(this, arguments)); } __name(AdAccount3, "AdAccount"); createClass(AdAccount3, [{ key: "getAccountControls", value: /* @__PURE__ */ __name(function getAccountControls(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountBusinessConstraints, fields, params, fetchFirstPage, "/account_controls"); }, "getAccountControls") }, { key: "createAccountControl", value: /* @__PURE__ */ __name(function createAccountControl(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/account_controls", fields, params, AdAccountBusinessConstraints, pathOverride); }, "createAccountControl") }, { key: "getActivities", value: /* @__PURE__ */ __name(function getActivities(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdActivity, fields, params, fetchFirstPage, "/activities"); }, "getActivities") }, { key: "getAdPlacePageSets", value: /* @__PURE__ */ __name(function getAdPlacePageSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdPlacePageSet, fields, params, fetchFirstPage, "/ad_place_page_sets"); }, "getAdPlacePageSets") }, { key: "createAdPlacePageSet", value: /* @__PURE__ */ __name(function createAdPlacePageSet(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/ad_place_page_sets", fields, params, AdPlacePageSet, pathOverride); }, "createAdPlacePageSet") }, { key: "createAdPlacePageSetsAsync", value: /* @__PURE__ */ __name(function createAdPlacePageSetsAsync(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/ad_place_page_sets_async", fields, params, AdPlacePageSet, pathOverride); }, "createAdPlacePageSetsAsync") }, { key: "getAdSavedKeywords", value: /* @__PURE__ */ __name(function getAdSavedKeywords(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/ad_saved_keywords"); }, "getAdSavedKeywords") }, { key: "getAdStudies", value: /* @__PURE__ */ __name(function getAdStudies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdStudy, fields, params, fetchFirstPage, "/ad_studies"); }, "getAdStudies") }, { key: "getAdCloudPlayables", value: /* @__PURE__ */ __name(function getAdCloudPlayables(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CloudGame, fields, params, fetchFirstPage, "/adcloudplayables"); }, "getAdCloudPlayables") }, { key: "getAdCreatives", value: /* @__PURE__ */ __name(function getAdCreatives(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdCreative, fields, params, fetchFirstPage, "/adcreatives"); }, "getAdCreatives") }, { key: "createAdCreative", value: /* @__PURE__ */ __name(function createAdCreative(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adcreatives", fields, params, AdCreative, pathOverride); }, "createAdCreative") }, { key: "getAdCreativesByLabels", value: /* @__PURE__ */ __name(function getAdCreativesByLabels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdCreative, fields, params, fetchFirstPage, "/adcreativesbylabels"); }, "getAdCreativesByLabels") }, { key: "deleteAdImages", value: /* @__PURE__ */ __name(function deleteAdImages() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(AdAccount3.prototype.__proto__ || Object.getPrototypeOf(AdAccount3.prototype), "deleteEdge", this).call(this, "/adimages", params); }, "deleteAdImages") }, { key: "getAdImages", value: /* @__PURE__ */ __name(function getAdImages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdImage, fields, params, fetchFirstPage, "/adimages"); }, "getAdImages") }, { key: "createAdImage", value: /* @__PURE__ */ __name(function createAdImage(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adimages", fields, params, AdImage, pathOverride); }, "createAdImage") }, { key: "getAdLabels", value: /* @__PURE__ */ __name(function getAdLabels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdLabel, fields, params, fetchFirstPage, "/adlabels"); }, "getAdLabels") }, { key: "createAdLabel", value: /* @__PURE__ */ __name(function createAdLabel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adlabels", fields, params, AdLabel, pathOverride); }, "createAdLabel") }, { key: "getAdPlayables", value: /* @__PURE__ */ __name(function getAdPlayables(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PlayableContent, fields, params, fetchFirstPage, "/adplayables"); }, "getAdPlayables") }, { key: "createAdPlayable", value: /* @__PURE__ */ __name(function createAdPlayable(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adplayables", fields, params, PlayableContent, pathOverride); }, "createAdPlayable") }, { key: "getAdRulesHistory", value: /* @__PURE__ */ __name(function getAdRulesHistory(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountAdRulesHistory, fields, params, fetchFirstPage, "/adrules_history"); }, "getAdRulesHistory") }, { key: "getAdRulesLibrary", value: /* @__PURE__ */ __name(function getAdRulesLibrary(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdRule, fields, params, fetchFirstPage, "/adrules_library"); }, "getAdRulesLibrary") }, { key: "createAdRulesLibrary", value: /* @__PURE__ */ __name(function createAdRulesLibrary(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adrules_library", fields, params, AdRule, pathOverride); }, "createAdRulesLibrary") }, { key: "getAds", value: /* @__PURE__ */ __name(function getAds(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Ad2, fields, params, fetchFirstPage, "/ads"); }, "getAds") }, { key: "createAd", value: /* @__PURE__ */ __name(function createAd(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/ads", fields, params, Ad2, pathOverride); }, "createAd") }, { key: "getAdsReportingMmmReports", value: /* @__PURE__ */ __name(function getAdsReportingMmmReports(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/ads_reporting_mmm_reports"); }, "getAdsReportingMmmReports") }, { key: "getAdsReportingMmmSchedulers", value: /* @__PURE__ */ __name(function getAdsReportingMmmSchedulers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/ads_reporting_mmm_schedulers"); }, "getAdsReportingMmmSchedulers") }, { key: "getAdsVolume", value: /* @__PURE__ */ __name(function getAdsVolume(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountAdVolume, fields, params, fetchFirstPage, "/ads_volume"); }, "getAdsVolume") }, { key: "getAdsByLabels", value: /* @__PURE__ */ __name(function getAdsByLabels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Ad2, fields, params, fetchFirstPage, "/adsbylabels"); }, "getAdsByLabels") }, { key: "getAdSets", value: /* @__PURE__ */ __name(function getAdSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdSet2, fields, params, fetchFirstPage, "/adsets"); }, "getAdSets") }, { key: "createAdSet", value: /* @__PURE__ */ __name(function createAdSet(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adsets", fields, params, AdSet2, pathOverride); }, "createAdSet") }, { key: "getAdSetsByLabels", value: /* @__PURE__ */ __name(function getAdSetsByLabels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdSet2, fields, params, fetchFirstPage, "/adsetsbylabels"); }, "getAdSetsByLabels") }, { key: "getAdsPixels", value: /* @__PURE__ */ __name(function getAdsPixels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsPixel, fields, params, fetchFirstPage, "/adspixels"); }, "getAdsPixels") }, { key: "createAdsPixel", value: /* @__PURE__ */ __name(function createAdsPixel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adspixels", fields, params, AdsPixel, pathOverride); }, "createAdsPixel") }, { key: "getAdvertisableApplications", value: /* @__PURE__ */ __name(function getAdvertisableApplications(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Application, fields, params, fetchFirstPage, "/advertisable_applications"); }, "getAdvertisableApplications") }, { key: "deleteAdVideos", value: /* @__PURE__ */ __name(function deleteAdVideos() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(AdAccount3.prototype.__proto__ || Object.getPrototypeOf(AdAccount3.prototype), "deleteEdge", this).call(this, "/advideos", params); }, "deleteAdVideos") }, { key: "getAdVideos", value: /* @__PURE__ */ __name(function getAdVideos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdVideo, fields, params, fetchFirstPage, "/advideos"); }, "getAdVideos") }, { key: "createAdVideo", value: /* @__PURE__ */ __name(function createAdVideo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/advideos", fields, params, AdVideo, pathOverride); }, "createAdVideo") }, { key: "getAffectedAdSets", value: /* @__PURE__ */ __name(function getAffectedAdSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdSet2, fields, params, fetchFirstPage, "/affectedadsets"); }, "getAffectedAdSets") }, { key: "deleteAgencies", value: /* @__PURE__ */ __name(function deleteAgencies() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(AdAccount3.prototype.__proto__ || Object.getPrototypeOf(AdAccount3.prototype), "deleteEdge", this).call(this, "/agencies", params); }, "deleteAgencies") }, { key: "getAgencies", value: /* @__PURE__ */ __name(function getAgencies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/agencies"); }, "getAgencies") }, { key: "createAgency", value: /* @__PURE__ */ __name(function createAgency(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/agencies", fields, params, AdAccount3, pathOverride); }, "createAgency") }, { key: "getApplications", value: /* @__PURE__ */ __name(function getApplications(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Application, fields, params, fetchFirstPage, "/applications"); }, "getApplications") }, { key: "deleteAssignedUsers", value: /* @__PURE__ */ __name(function deleteAssignedUsers() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(AdAccount3.prototype.__proto__ || Object.getPrototypeOf(AdAccount3.prototype), "deleteEdge", this).call(this, "/assigned_users", params); }, "deleteAssignedUsers") }, { key: "getAssignedUsers", value: /* @__PURE__ */ __name(function getAssignedUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AssignedUser, fields, params, fetchFirstPage, "/assigned_users"); }, "getAssignedUsers") }, { key: "createAssignedUser", value: /* @__PURE__ */ __name(function createAssignedUser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/assigned_users", fields, params, AdAccount3, pathOverride); }, "createAssignedUser") }, { key: "createAsyncBatchRequest", value: /* @__PURE__ */ __name(function createAsyncBatchRequest(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/async_batch_requests", fields, params, Campaign2, pathOverride); }, "createAsyncBatchRequest") }, { key: "getAsyncRequests", value: /* @__PURE__ */ __name(function getAsyncRequests(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AsyncRequest, fields, params, fetchFirstPage, "/async_requests"); }, "getAsyncRequests") }, { key: "getAsyncAdRequestSets", value: /* @__PURE__ */ __name(function getAsyncAdRequestSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAsyncRequestSet, fields, params, fetchFirstPage, "/asyncadrequestsets"); }, "getAsyncAdRequestSets") }, { key: "createAsyncAdRequestSet", value: /* @__PURE__ */ __name(function createAsyncAdRequestSet(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/asyncadrequestsets", fields, params, AdAsyncRequestSet, pathOverride); }, "createAsyncAdRequestSet") }, { key: "getAudienceFunnel", value: /* @__PURE__ */ __name(function getAudienceFunnel(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/audience_funnel"); }, "getAudienceFunnel") }, { key: "createBlockListDraft", value: /* @__PURE__ */ __name(function createBlockListDraft(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/block_list_drafts", fields, params, AdAccount3, pathOverride); }, "createBlockListDraft") }, { key: "getBroadTargetingCategories", value: /* @__PURE__ */ __name(function getBroadTargetingCategories(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BroadTargetingCategories, fields, params, fetchFirstPage, "/broadtargetingcategories"); }, "getBroadTargetingCategories") }, { key: "getBusinessProjects", value: /* @__PURE__ */ __name(function getBusinessProjects(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/businessprojects"); }, "getBusinessProjects") }, { key: "deleteCampaigns", value: /* @__PURE__ */ __name(function deleteCampaigns() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(AdAccount3.prototype.__proto__ || Object.getPrototypeOf(AdAccount3.prototype), "deleteEdge", this).call(this, "/campaigns", params); }, "deleteCampaigns") }, { key: "getCampaigns", value: /* @__PURE__ */ __name(function getCampaigns(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Campaign2, fields, params, fetchFirstPage, "/campaigns"); }, "getCampaigns") }, { key: "createCampaign", value: /* @__PURE__ */ __name(function createCampaign(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/campaigns", fields, params, Campaign2, pathOverride); }, "createCampaign") }, { key: "getCampaignsByLabels", value: /* @__PURE__ */ __name(function getCampaignsByLabels(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Campaign2, fields, params, fetchFirstPage, "/campaignsbylabels"); }, "getCampaignsByLabels") }, { key: "getConnectedInstagramAccounts", value: /* @__PURE__ */ __name(function getConnectedInstagramAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(IGUser, fields, params, fetchFirstPage, "/connected_instagram_accounts"); }, "getConnectedInstagramAccounts") }, { key: "getConnectedInstagramAccountsWithIabp", value: /* @__PURE__ */ __name(function getConnectedInstagramAccountsWithIabp(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramUser, fields, params, fetchFirstPage, "/connected_instagram_accounts_with_iabp"); }, "getConnectedInstagramAccountsWithIabp") }, { key: "getConversionGoals", value: /* @__PURE__ */ __name(function getConversionGoals(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/conversion_goals"); }, "getConversionGoals") }, { key: "getCpaGuidance", value: /* @__PURE__ */ __name(function getCpaGuidance(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/cpa_guidance"); }, "getCpaGuidance") }, { key: "getCustomAudiences", value: /* @__PURE__ */ __name(function getCustomAudiences(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomAudience, fields, params, fetchFirstPage, "/customaudiences"); }, "getCustomAudiences") }, { key: "createCustomAudience", value: /* @__PURE__ */ __name(function createCustomAudience(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/customaudiences", fields, params, CustomAudience, pathOverride); }, "createCustomAudience") }, { key: "getCustomAudiencesTos", value: /* @__PURE__ */ __name(function getCustomAudiencesTos(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomAudiencesTOS, fields, params, fetchFirstPage, "/customaudiencestos"); }, "getCustomAudiencesTos") }, { key: "createCustomAudiencesTo", value: /* @__PURE__ */ __name(function createCustomAudiencesTo(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/customaudiencestos", fields, params, AdAccount3, pathOverride); }, "createCustomAudiencesTo") }, { key: "getCustomConversions", value: /* @__PURE__ */ __name(function getCustomConversions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CustomConversion, fields, params, fetchFirstPage, "/customconversions"); }, "getCustomConversions") }, { key: "createCustomConversion", value: /* @__PURE__ */ __name(function createCustomConversion(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/customconversions", fields, params, CustomConversion, pathOverride); }, "createCustomConversion") }, { key: "getDeliveryEstimate", value: /* @__PURE__ */ __name(function getDeliveryEstimate(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountDeliveryEstimate, fields, params, fetchFirstPage, "/delivery_estimate"); }, "getDeliveryEstimate") }, { key: "getDeprecatedTargetingAdSets", value: /* @__PURE__ */ __name(function getDeprecatedTargetingAdSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdSet2, fields, params, fetchFirstPage, "/deprecatedtargetingadsets"); }, "getDeprecatedTargetingAdSets") }, { key: "getDsaRecommendations", value: /* @__PURE__ */ __name(function getDsaRecommendations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountDsaRecommendations, fields, params, fetchFirstPage, "/dsa_recommendations"); }, "getDsaRecommendations") }, { key: "getGeneratePreviews", value: /* @__PURE__ */ __name(function getGeneratePreviews(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdPreview, fields, params, fetchFirstPage, "/generatepreviews"); }, "getGeneratePreviews") }, { key: "getImpactingAdStudies", value: /* @__PURE__ */ __name(function getImpactingAdStudies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdStudy, fields, params, fetchFirstPage, "/impacting_ad_studies"); }, "getImpactingAdStudies") }, { key: "getInsights", value: /* @__PURE__ */ __name(function getInsights(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsInsights, fields, params, fetchFirstPage, "/insights"); }, "getInsights") }, { key: "getInsightsAsync", value: /* @__PURE__ */ __name(function getInsightsAsync(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/insights", fields, params, AdReportRun, pathOverride); }, "getInsightsAsync") }, { key: "getInstagramAccounts", value: /* @__PURE__ */ __name(function getInstagramAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramUser, fields, params, fetchFirstPage, "/instagram_accounts"); }, "getInstagramAccounts") }, { key: "getIosFourteenCampaignLimits", value: /* @__PURE__ */ __name(function getIosFourteenCampaignLimits(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountIosFourteenCampaignLimits, fields, params, fetchFirstPage, "/ios_fourteen_campaign_limits"); }, "getIosFourteenCampaignLimits") }, { key: "createManagedPartnerAd", value: /* @__PURE__ */ __name(function createManagedPartnerAd(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/managed_partner_ads", fields, params, null, pathOverride); }, "createManagedPartnerAd") }, { key: "getMatchedSearchApplications", value: /* @__PURE__ */ __name(function getMatchedSearchApplications(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountMatchedSearchApplicationsEdgeData, fields, params, fetchFirstPage, "/matched_search_applications"); }, "getMatchedSearchApplications") }, { key: "getMaxBid", value: /* @__PURE__ */ __name(function getMaxBid(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountMaxBid, fields, params, fetchFirstPage, "/max_bid"); }, "getMaxBid") }, { key: "getMinimumBudgets", value: /* @__PURE__ */ __name(function getMinimumBudgets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(MinimumBudget, fields, params, fetchFirstPage, "/minimum_budgets"); }, "getMinimumBudgets") }, { key: "getOfflineConversionDataSets", value: /* @__PURE__ */ __name(function getOfflineConversionDataSets(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(OfflineConversionDataSet, fields, params, fetchFirstPage, "/offline_conversion_data_sets"); }, "getOfflineConversionDataSets") }, { key: "getOnBehalfRequests", value: /* @__PURE__ */ __name(function getOnBehalfRequests(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(BusinessOwnedObjectOnBehalfOfRequest, fields, params, fetchFirstPage, "/onbehalf_requests"); }, "getOnBehalfRequests") }, { key: "createProductAudience", value: /* @__PURE__ */ __name(function createProductAudience(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/product_audiences", fields, params, CustomAudience, pathOverride); }, "createProductAudience") }, { key: "getPromotePages", value: /* @__PURE__ */ __name(function getPromotePages(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Page, fields, params, fetchFirstPage, "/promote_pages"); }, "getPromotePages") }, { key: "getPublisherBlockLists", value: /* @__PURE__ */ __name(function getPublisherBlockLists(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(PublisherBlockList, fields, params, fetchFirstPage, "/publisher_block_lists"); }, "getPublisherBlockLists") }, { key: "createPublisherBlockList", value: /* @__PURE__ */ __name(function createPublisherBlockList(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/publisher_block_lists", fields, params, PublisherBlockList, pathOverride); }, "createPublisherBlockList") }, { key: "getReachEstimate", value: /* @__PURE__ */ __name(function getReachEstimate(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountReachEstimate, fields, params, fetchFirstPage, "/reachestimate"); }, "getReachEstimate") }, { key: "getReachFrequencyPredictions", value: /* @__PURE__ */ __name(function getReachFrequencyPredictions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(ReachFrequencyPrediction, fields, params, fetchFirstPage, "/reachfrequencypredictions"); }, "getReachFrequencyPredictions") }, { key: "createReachFrequencyPrediction", value: /* @__PURE__ */ __name(function createReachFrequencyPrediction(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/reachfrequencypredictions", fields, params, ReachFrequencyPrediction, pathOverride); }, "createReachFrequencyPrediction") }, { key: "getSavedAudiences", value: /* @__PURE__ */ __name(function getSavedAudiences(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(SavedAudience, fields, params, fetchFirstPage, "/saved_audiences"); }, "getSavedAudiences") }, { key: "deleteSubscribedApps", value: /* @__PURE__ */ __name(function deleteSubscribedApps() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(AdAccount3.prototype.__proto__ || Object.getPrototypeOf(AdAccount3.prototype), "deleteEdge", this).call(this, "/subscribed_apps", params); }, "deleteSubscribedApps") }, { key: "getSubscribedApps", value: /* @__PURE__ */ __name(function getSubscribedApps(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountSubscribedApps, fields, params, fetchFirstPage, "/subscribed_apps"); }, "getSubscribedApps") }, { key: "createSubscribedApp", value: /* @__PURE__ */ __name(function createSubscribedApp(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/subscribed_apps", fields, params, AdAccountSubscribedApps, pathOverride); }, "createSubscribedApp") }, { key: "getTargetingBrowse", value: /* @__PURE__ */ __name(function getTargetingBrowse(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountTargetingUnified, fields, params, fetchFirstPage, "/targetingbrowse"); }, "getTargetingBrowse") }, { key: "getTargetingSearch", value: /* @__PURE__ */ __name(function getTargetingSearch(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountTargetingUnified, fields, params, fetchFirstPage, "/targetingsearch"); }, "getTargetingSearch") }, { key: "getTargetingSentenceLines", value: /* @__PURE__ */ __name(function getTargetingSentenceLines(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(TargetingSentenceLine, fields, params, fetchFirstPage, "/targetingsentencelines"); }, "getTargetingSentenceLines") }, { key: "getTargetingSuggestions", value: /* @__PURE__ */ __name(function getTargetingSuggestions(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountTargetingUnified, fields, params, fetchFirstPage, "/targetingsuggestions"); }, "getTargetingSuggestions") }, { key: "getTargetingValidation", value: /* @__PURE__ */ __name(function getTargetingValidation(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountTargetingUnified, fields, params, fetchFirstPage, "/targetingvalidation"); }, "getTargetingValidation") }, { key: "getTracking", value: /* @__PURE__ */ __name(function getTracking(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountTrackingData, fields, params, fetchFirstPage, "/tracking"); }, "getTracking") }, { key: "createTracking", value: /* @__PURE__ */ __name(function createTracking(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/tracking", fields, params, AdAccount3, pathOverride); }, "createTracking") }, { key: "getUsers", value: /* @__PURE__ */ __name(function getUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccountUser, fields, params, fetchFirstPage, "/users"); }, "getUsers") }, { key: "deleteUsersOfAnyAudience", value: /* @__PURE__ */ __name(function deleteUsersOfAnyAudience() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(AdAccount3.prototype.__proto__ || Object.getPrototypeOf(AdAccount3.prototype), "deleteEdge", this).call(this, "/usersofanyaudience", params); }, "deleteUsersOfAnyAudience") }, { key: "getValueAdjustmentRuleCollections", value: /* @__PURE__ */ __name(function getValueAdjustmentRuleCollections(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/value_adjustment_rule_collections"); }, "getValueAdjustmentRuleCollections") }, { key: "getValueAdjustmentRules", value: /* @__PURE__ */ __name(function getValueAdjustmentRules(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/value_adjustment_rules"); }, "getValueAdjustmentRules") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdAccount3.prototype.__proto__ || Object.getPrototypeOf(AdAccount3.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", account_status: "account_status", ad_account_promotable_objects: "ad_account_promotable_objects", age: "age", agency_client_declaration: "agency_client_declaration", all_capabilities: "all_capabilities", amount_spent: "amount_spent", attribution_spec: "attribution_spec", balance: "balance", brand_safety_content_filter_levels: "brand_safety_content_filter_levels", business: "business", business_city: "business_city", business_country_code: "business_country_code", business_name: "business_name", business_state: "business_state", business_street: "business_street", business_street2: "business_street2", business_zip: "business_zip", can_create_brand_lift_study: "can_create_brand_lift_study", capabilities: "capabilities", created_time: "created_time", currency: "currency", custom_audience_info: "custom_audience_info", default_dsa_beneficiary: "default_dsa_beneficiary", default_dsa_payor: "default_dsa_payor", disable_reason: "disable_reason", end_advertiser: "end_advertiser", end_advertiser_name: "end_advertiser_name", existing_customers: "existing_customers", extended_credit_invoice_group: "extended_credit_invoice_group", failed_delivery_checks: "failed_delivery_checks", fb_entity: "fb_entity", funding_source: "funding_source", funding_source_details: "funding_source_details", has_migrated_permissions: "has_migrated_permissions", has_page_authorized_adaccount: "has_page_authorized_adaccount", id: "id", io_number: "io_number", is_attribution_spec_system_default: "is_attribution_spec_system_default", is_direct_deals_enabled: "is_direct_deals_enabled", is_in_3ds_authorization_enabled_market: "is_in_3ds_authorization_enabled_market", is_notifications_enabled: "is_notifications_enabled", is_personal: "is_personal", is_prepay_account: "is_prepay_account", is_tax_id_required: "is_tax_id_required", liable_address: "liable_address", line_numbers: "line_numbers", media_agency: "media_agency", min_campaign_group_spend_cap: "min_campaign_group_spend_cap", min_daily_budget: "min_daily_budget", name: "name", offsite_pixels_tos_accepted: "offsite_pixels_tos_accepted", owner: "owner", owner_business: "owner_business", partner: "partner", rf_spec: "rf_spec", send_bill_to_address: "send_bill_to_address", show_checkout_experience: "show_checkout_experience", sold_to_address: "sold_to_address", spend_cap: "spend_cap", tax_id: "tax_id", tax_id_status: "tax_id_status", tax_id_type: "tax_id_type", timezone_id: "timezone_id", timezone_name: "timezone_name", timezone_offset_hours_utc: "timezone_offset_hours_utc", tos_accepted: "tos_accepted", user_access_expire_time: "user_access_expire_time", user_tasks: "user_tasks", user_tos_accepted: "user_tos_accepted", viewable_business: "viewable_business" }); }, "get") }, { key: "Currency", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aed: "AED", ars: "ARS", aud: "AUD", bdt: "BDT", bob: "BOB", brl: "BRL", cad: "CAD", chf: "CHF", clp: "CLP", cny: "CNY", cop: "COP", crc: "CRC", czk: "CZK", dkk: "DKK", dzd: "DZD", egp: "EGP", eur: "EUR", gbp: "GBP", gtq: "GTQ", hkd: "HKD", hnl: "HNL", huf: "HUF", idr: "IDR", ils: "ILS", inr: "INR", isk: "ISK", jpy: "JPY", kes: "KES", krw: "KRW", lkr: "LKR", mop: "MOP", mxn: "MXN", myr: "MYR", ngn: "NGN", nio: "NIO", nok: "NOK", nzd: "NZD", pen: "PEN", php: "PHP", pkr: "PKR", pln: "PLN", pyg: "PYG", qar: "QAR", ron: "RON", sar: "SAR", sek: "SEK", sgd: "SGD", thb: "THB", try: "TRY", twd: "TWD", uah: "UAH", usd: "USD", uyu: "UYU", vnd: "VND", zar: "ZAR" }); }, "get") }, { key: "PermittedTasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aa_analyze: "AA_ANALYZE", advertise: "ADVERTISE", analyze: "ANALYZE", draft: "DRAFT", manage: "MANAGE" }); }, "get") }, { key: "Tasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aa_analyze: "AA_ANALYZE", advertise: "ADVERTISE", analyze: "ANALYZE", draft: "DRAFT", manage: "MANAGE" }); }, "get") }, { key: "ClaimObjective", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automotive_model: "AUTOMOTIVE_MODEL", collaborative_ads: "COLLABORATIVE_ADS", home_listing: "HOME_LISTING", media_title: "MEDIA_TITLE", product: "PRODUCT", travel: "TRAVEL", vehicle: "VEHICLE", vehicle_offer: "VEHICLE_OFFER" }); }, "get") }, { key: "ContentType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automotive_model: "AUTOMOTIVE_MODEL", destination: "DESTINATION", flight: "FLIGHT", generic: "GENERIC", home_listing: "HOME_LISTING", hotel: "HOTEL", job: "JOB", local_service_business: "LOCAL_SERVICE_BUSINESS", location_based_item: "LOCATION_BASED_ITEM", media_title: "MEDIA_TITLE", offline_product: "OFFLINE_PRODUCT", product: "PRODUCT", vehicle: "VEHICLE", vehicle_offer: "VEHICLE_OFFER" }); }, "get") }, { key: "Subtype", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app: "APP", bag_of_accounts: "BAG_OF_ACCOUNTS", bidding: "BIDDING", claim: "CLAIM", custom: "CUSTOM", engagement: "ENGAGEMENT", exclusion: "EXCLUSION", fox: "FOX", lookalike: "LOOKALIKE", managed: "MANAGED", measurement: "MEASUREMENT", offline_conversion: "OFFLINE_CONVERSION", partner: "PARTNER", primary: "PRIMARY", regulated_categories_audience: "REGULATED_CATEGORIES_AUDIENCE", study_rule_audience: "STUDY_RULE_AUDIENCE", subscriber_segment: "SUBSCRIBER_SEGMENT", video: "VIDEO", website: "WEBSITE" }); }, "get") }, { key: "ActionSource", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ physical_store: "PHYSICAL_STORE", website: "WEBSITE" }); }, "get") }]); return AdAccount3; }(AbstractCrudObject); var AdsPixelStatsResult = function(_AbstractCrudObject) { inherits(AdsPixelStatsResult2, _AbstractCrudObject); function AdsPixelStatsResult2() { classCallCheck(this, AdsPixelStatsResult2); return possibleConstructorReturn(this, (AdsPixelStatsResult2.__proto__ || Object.getPrototypeOf(AdsPixelStatsResult2)).apply(this, arguments)); } __name(AdsPixelStatsResult2, "AdsPixelStatsResult"); createClass(AdsPixelStatsResult2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aggregation: "aggregation", data: "data", start_time: "start_time" }); }, "get") }, { key: "Aggregation", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ browser_type: "browser_type", custom_data_field: "custom_data_field", device_os: "device_os", device_type: "device_type", event: "event", event_detection_method: "event_detection_method", event_processing_results: "event_processing_results", event_source: "event_source", event_total_counts: "event_total_counts", event_value_count: "event_value_count", had_pii: "had_pii", host: "host", match_keys: "match_keys", pixel_fire: "pixel_fire", url: "url", url_by_rule: "url_by_rule" }); }, "get") }]); return AdsPixelStatsResult2; }(AbstractCrudObject); var AdsPixel = function(_AbstractCrudObject) { inherits(AdsPixel2, _AbstractCrudObject); function AdsPixel2() { classCallCheck(this, AdsPixel2); return possibleConstructorReturn(this, (AdsPixel2.__proto__ || Object.getPrototypeOf(AdsPixel2)).apply(this, arguments)); } __name(AdsPixel2, "AdsPixel"); createClass(AdsPixel2, [{ key: "getAdAccounts", value: /* @__PURE__ */ __name(function getAdAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/adaccounts"); }, "getAdAccounts") }, { key: "getAgencies", value: /* @__PURE__ */ __name(function getAgencies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/agencies"); }, "getAgencies") }, { key: "createAhpConfig", value: /* @__PURE__ */ __name(function createAhpConfig(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/ahp_configs", fields, params, null, pathOverride); }, "createAhpConfig") }, { key: "getAssignedUsers", value: /* @__PURE__ */ __name(function getAssignedUsers(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AssignedUser, fields, params, fetchFirstPage, "/assigned_users"); }, "getAssignedUsers") }, { key: "createAssignedUser", value: /* @__PURE__ */ __name(function createAssignedUser(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/assigned_users", fields, params, AdsPixel2, pathOverride); }, "createAssignedUser") }, { key: "getDaChecks", value: /* @__PURE__ */ __name(function getDaChecks(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(DACheck, fields, params, fetchFirstPage, "/da_checks"); }, "getDaChecks") }, { key: "createEvent", value: /* @__PURE__ */ __name(function createEvent(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/events", fields, params, null, pathOverride); }, "createEvent") }, { key: "getOfflineEventUploads", value: /* @__PURE__ */ __name(function getOfflineEventUploads(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(OfflineConversionDataSetUpload, fields, params, fetchFirstPage, "/offline_event_uploads"); }, "getOfflineEventUploads") }, { key: "getOpenBridgeConfigurations", value: /* @__PURE__ */ __name(function getOpenBridgeConfigurations(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(OpenBridgeConfiguration, fields, params, fetchFirstPage, "/openbridge_configurations"); }, "getOpenBridgeConfigurations") }, { key: "createShadowTrafficHelper", value: /* @__PURE__ */ __name(function createShadowTrafficHelper(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/shadowtraffichelper", fields, params, null, pathOverride); }, "createShadowTrafficHelper") }, { key: "deleteSharedAccounts", value: /* @__PURE__ */ __name(function deleteSharedAccounts() { var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return get$1(AdsPixel2.prototype.__proto__ || Object.getPrototypeOf(AdsPixel2.prototype), "deleteEdge", this).call(this, "/shared_accounts", params); }, "deleteSharedAccounts") }, { key: "getSharedAccounts", value: /* @__PURE__ */ __name(function getSharedAccounts(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdAccount2, fields, params, fetchFirstPage, "/shared_accounts"); }, "getSharedAccounts") }, { key: "createSharedAccount", value: /* @__PURE__ */ __name(function createSharedAccount(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/shared_accounts", fields, params, AdsPixel2, pathOverride); }, "createSharedAccount") }, { key: "getSharedAgencies", value: /* @__PURE__ */ __name(function getSharedAgencies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Business, fields, params, fetchFirstPage, "/shared_agencies"); }, "getSharedAgencies") }, { key: "getStats", value: /* @__PURE__ */ __name(function getStats(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdsPixelStatsResult, fields, params, fetchFirstPage, "/stats"); }, "getStats") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(AdsPixel2.prototype.__proto__ || Object.getPrototypeOf(AdsPixel2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automatic_matching_fields: "automatic_matching_fields", can_proxy: "can_proxy", code: "code", config: "config", creation_time: "creation_time", creator: "creator", data_use_setting: "data_use_setting", description: "description", duplicate_entries: "duplicate_entries", enable_auto_assign_to_accounts: "enable_auto_assign_to_accounts", enable_automatic_matching: "enable_automatic_matching", event_stats: "event_stats", event_time_max: "event_time_max", event_time_min: "event_time_min", first_party_cookie_status: "first_party_cookie_status", id: "id", is_consolidated_container: "is_consolidated_container", is_created_by_business: "is_created_by_business", is_crm: "is_crm", is_mta_use: "is_mta_use", is_restricted_use: "is_restricted_use", is_unavailable: "is_unavailable", last_fired_time: "last_fired_time", last_upload_app: "last_upload_app", last_upload_app_changed_time: "last_upload_app_changed_time", match_rate_approx: "match_rate_approx", matched_entries: "matched_entries", name: "name", owner_ad_account: "owner_ad_account", owner_business: "owner_business", usage: "usage", user_access_expire_time: "user_access_expire_time", valid_entries: "valid_entries" }); }, "get") }, { key: "SortBy", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ last_fired_time: "LAST_FIRED_TIME", name: "NAME" }); }, "get") }, { key: "AutomaticMatchingFields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", ct: "ct", db: "db", em: "em", external_id: "external_id", fn: "fn", ge: "ge", ln: "ln", ph: "ph", st: "st", zp: "zp" }); }, "get") }, { key: "DataUseSetting", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertising_and_analytics: "ADVERTISING_AND_ANALYTICS", analytics_only: "ANALYTICS_ONLY", empty: "EMPTY" }); }, "get") }, { key: "FirstPartyCookieStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ empty: "EMPTY", first_party_cookie_disabled: "FIRST_PARTY_COOKIE_DISABLED", first_party_cookie_enabled: "FIRST_PARTY_COOKIE_ENABLED" }); }, "get") }, { key: "Tasks", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ aa_analyze: "AA_ANALYZE", advertise: "ADVERTISE", analyze: "ANALYZE", edit: "EDIT", upload: "UPLOAD" }); }, "get") }]); return AdsPixel2; }(AbstractCrudObject); var EventResponse = function() { function EventResponse2(events_received, messages, fbtrace_id, id, num_processed_entries) { classCallCheck(this, EventResponse2); this._events_received = events_received; this._messages = messages; this._fbtrace_id = fbtrace_id; this._id = id; this._num_processed_entries = num_processed_entries; } __name(EventResponse2, "EventResponse"); createClass(EventResponse2, [{ key: "setEventsReceived", /** * Sets the events received for the response received from Graph API. * events_received is represented by integer. * @param {Number} events_received representing the number of events received for the event Request */ value: /* @__PURE__ */ __name(function setEventsReceived(events_received) { this._events_received = events_received; return this; }, "setEventsReceived") /** * Sets the messages as array for the response received from Graph API. * @return messages in the event Response */ }, { key: "setMessages", /** * Sets the messages as array for the response received from Graph API. * @param {Array} messages in the event Response */ value: /* @__PURE__ */ __name(function setMessages(messages) { this._messages = messages; return this; }, "setMessages") /** * Gets the fbtrace_id for the response received from Graph API. * @return fbtrace_id in the event Response that can used for debugging purposes */ }, { key: "setFbtraceId", /** * Sets the fbtrace_id for the response received from Graph API. * @param {String} fbtrace_id in the event Response that can used for debugging purposes */ value: /* @__PURE__ */ __name(function setFbtraceId(fbtrace_id) { this._fbtrace_id = fbtrace_id; return this; }, "setFbtraceId") /** * Gets the id of container to which the event request was successfully posted to. * @return id of the dataset */ }, { key: "setId", /** * Sets the id of container to which the event request was successfully posted to. * @param {String} id in the event Response that can used for debugging purposes */ value: /* @__PURE__ */ __name(function setId(id) { this._id = id; return this; }, "setId") /** * Gets the number of events that got posted as part of the original request. * @return num_processed_entries number of events posted to the dataset. */ }, { key: "setId", /** * Sets the number of events that got succesfully posted as part of the original request. * @param {Number} num_processed_entries number of events posted to the dataset. */ value: /* @__PURE__ */ __name(function setId(num_processed_entries) { this._num_processed_entries = num_processed_entries; return this; }, "setId") }, { key: "events_received", get: /* @__PURE__ */ __name(function get() { return this._events_received; }, "get"), set: /* @__PURE__ */ __name(function set(events_received) { this._events_received = events_received; }, "set") }, { key: "messages", get: /* @__PURE__ */ __name(function get() { return this._messages; }, "get"), set: /* @__PURE__ */ __name(function set(messages) { this._messages = messages; }, "set") }, { key: "fbtrace_id", get: /* @__PURE__ */ __name(function get() { return this._fbtrace_id; }, "get"), set: /* @__PURE__ */ __name(function set(fbtrace_id) { this._fbtrace_id = fbtrace_id; }, "set") }, { key: "id", get: /* @__PURE__ */ __name(function get() { return this._id; }, "get"), set: /* @__PURE__ */ __name(function set(id) { this._id = id; }, "set") }, { key: "num_processed_entries", get: /* @__PURE__ */ __name(function get() { return this._num_processed_entries; }, "get"), set: /* @__PURE__ */ __name(function set(num_processed_entries) { this._num_processed_entries = num_processed_entries; }, "set") }]); return EventResponse2; }(); var HttpMethod = Object.freeze({ POST: "POST", PUT: "PUT", GET: "GET", DELETE: "DELETE" }); var HttpServiceInterface = function() { function HttpServiceInterface2() { classCallCheck(this, HttpServiceInterface2); } __name(HttpServiceInterface2, "HttpServiceInterface"); createClass(HttpServiceInterface2, [{ key: "executeRequest", /** * @param {String} $url The graph API endpoint that will be requested * @param {HttpMethod} $method The HTTP request method * @param {Object} $headers Contains HTTP request headers including User-Agent and Accept-Encoding * @param {Object} $params Contains request parameters including access_token, data, test_event_code, etc. * @return {Promise<Object>} */ value: /* @__PURE__ */ __name(function executeRequest(url, method2, headers, params) { return new Promise(function(resolve, reject) { return null; }); }, "executeRequest") }]); return HttpServiceInterface2; }(); var HttpServiceClientConfig = function() { function HttpServiceClientConfig2() { classCallCheck(this, HttpServiceClientConfig2); } __name(HttpServiceClientConfig2, "HttpServiceClientConfig"); createClass(HttpServiceClientConfig2, null, [{ key: "setClient", value: /* @__PURE__ */ __name(function setClient(client) { this._client = client; }, "setClient") }, { key: "getClient", value: /* @__PURE__ */ __name(function getClient() { return this._client; }, "getClient") }]); return HttpServiceClientConfig2; }(); var UserData = function() { function UserData2(email, phone, gender, first_name, last_name, date_of_birth, city, state, zip, country, external_id, client_ip_address, client_user_agent, fbp, fbc, subscription_id, fb_login_id, lead_id, dobd, dobm, doby, madid, anon_id, app_user_id, ctwa_clid, page_id) { classCallCheck(this, UserData2); if (email != null) { this._emails = new Array(email); } if (phone != null) { this._phones = new Array(phone); } if (gender != null) { this._genders = new Array(gender); } if (first_name != null) { this._first_names = new Array(first_name); } if (last_name != null) { this._last_names = new Array(last_name); } if (date_of_birth != null) { this._dates_of_birth = new Array(date_of_birth); } if (city != null) { this._cities = new Array(city); } if (state != null) { this._states = new Array(state); } if (country != null) { this._countries = new Array(country); } if (zip != null) { this._zips = new Array(zip); } if (external_id != null) { this._external_ids = new Array(external_id); } this._client_ip_address = client_ip_address; this._client_user_agent = client_user_agent; this._fbp = fbp; this._fbc = fbc; this._subscription_id = subscription_id; this._fb_login_id = fb_login_id; this._lead_id = lead_id; this._dobd = dobd; this._dobm = dobm; this._doby = doby; this._madid = madid; this._anon_id = anon_id; this._app_user_id = app_user_id; this._ctwa_clid = ctwa_clid; this._page_id = page_id; } __name(UserData2, "UserData"); createClass(UserData2, [{ key: "setEmail", /** * Sets the email address for the user data field. * @param {String} email An email address, in lowercase. * Example: joe@eg.com */ value: /* @__PURE__ */ __name(function setEmail(email) { this._emails = new Array(email); return this; }, "setEmail") /** * Sets email addresses for the user data field. * @param emails Email addresses, in lowercase. * Example: ['joe@eg.com', 'smith@test.com'] */ }, { key: "setEmails", value: /* @__PURE__ */ __name(function setEmails(emails) { this._emails = emails; return this; }, "setEmails") /** * Gets the phone number for the user data. * A phone number. Include only digits with country code, area code, and number. * Example: 16505551212 */ }, { key: "setPhone", /** * Sets the phone number for the user data. * @param {String} phone A phone number. Include only digits with country code, area code, and number. * Example: 16505551212 */ value: /* @__PURE__ */ __name(function setPhone(phone) { this._phones = new Array(phone); return this; }, "setPhone") /** * Sets the phone numbers for the user data. * @param phones Phone numbers. Include only digits with country code, area code, and number. * Example: ['16505551212', '12062072008'] */ }, { key: "setPhones", value: /* @__PURE__ */ __name(function setPhones(phones) { this._phones = phones; return this; }, "setPhones") /** * Gets the gender value for the user data. * Gender in lowercase. Either f for FEMALE or m for MALE. * Example: f */ }, { key: "setGender", /** * Sets the gender value for the user data. * @param {String} gender Gender in lowercase. Either f for FEMALE or m for MALE. * Example: f */ value: /* @__PURE__ */ __name(function setGender(gender) { this._genders = new Array(gender); return this; }, "setGender") /** * Sets the gender values for the user data. * @param genders Genders in lowercase. Either f for FEMALE or m for MALE. * Example: [f, m] */ }, { key: "setGenders", value: /* @__PURE__ */ __name(function setGenders(genders) { this._genders = genders; return this; }, "setGenders") /** * Gets the date of birth for the user data. * A date of birth given as year, month, and day in the Format YYYYMMDD * Example: 19971226 for December 26, 1997. */ }, { key: "setDateOfBirth", /** * Sets the date of birth for the user data. * @param {String} date_of_birth A date of birth given as year, month, and day in the Format YYYYMMDD * Example: 19971226 for December 26, 1997. */ value: /* @__PURE__ */ __name(function setDateOfBirth(date_of_birth) { this._dates_of_birth = new Array(date_of_birth); return this; }, "setDateOfBirth") /** * Sets the dates of birth for the user data. * @param {String} dates_of_birth A date of birth given as year, month, and day in the Format YYYYMMDD * Example: 19971226 for December 26, 1997. */ }, { key: "setDatesOfBirth", value: /* @__PURE__ */ __name(function setDatesOfBirth(dates_of_birth) { this._dates_of_birth = dates_of_birth; return this; }, "setDatesOfBirth") /** * Gets the last name for the user data. * last_name is the last name in lowercase. * Example: smith */ }, { key: "setLastName", /** * Sets the last name for the user data. * @param {String} last_name is last name in lowercase. * Example: smith */ value: /* @__PURE__ */ __name(function setLastName(last_name) { this._last_names = new Array(last_name); return this; }, "setLastName") /** * Sets the last name for the user data. * @param last_names is last name in lowercase. * Example: ['smith', 'wilson'] */ }, { key: "setLastNames", value: /* @__PURE__ */ __name(function setLastNames(last_names) { this._last_names = last_names; return this; }, "setLastNames") /** * Gets the first name for the user data. * first_name is first name in lowercase. * Example: joe */ }, { key: "setFirstName", /** * Sets the first name for the user data. * @param {String} first_name is first name in lowercase. * Example: joe */ value: /* @__PURE__ */ __name(function setFirstName(first_name) { this._first_names = new Array(first_name); return this; }, "setFirstName") /** * Sets the first names for the user data. * @param {String} first_names is first name in lowercase. * Example: joe */ }, { key: "setFirstNames", value: /* @__PURE__ */ __name(function setFirstNames(first_names) { this._first_names = first_names; return this; }, "setFirstNames") /** * Gets the city for the user data. * city is city in lower-case without spaces or punctuation. * Example: menlopark */ }, { key: "setCity", /** * Sets the city for the user data. * @param {String} city is city in lower-case without spaces or punctuation. * Example: menlopark */ value: /* @__PURE__ */ __name(function setCity(city) { this._cities = new Array(city); return this; }, "setCity") /** * Sets the cities for the user data. * @param cities is city in lower-case without spaces or punctuation. * Example: ['menlopark', 'seattle'] */ }, { key: "setCities", value: /* @__PURE__ */ __name(function setCities(cities) { this._cities = cities; return this; }, "setCities") /** * Gets the zip/postal code for the user data. * zip is a five-digit zip code for United States.For other locations, follow each country's standards. * Example: 98121 (for United States zip code) */ }, { key: "setZip", /** * Sets the zip/postal code for the user data. * @param {String} zip is a five-digit zip code for United States.For other locations, follow each country's standards. * Example: 98121 (for United States zip code) */ value: /* @__PURE__ */ __name(function setZip(zip) { this._zips = new Array(zip); return this; }, "setZip") /** * Sets the zip/postal codes for the user data. * @param zips is a five-digit zip code for United States.For other locations, follow each country's standards. * Example: 98121 (for United States zip code) */ }, { key: "setZips", value: /* @__PURE__ */ __name(function setZips(zips) { this._zips = zips; return this; }, "setZips") /** * Gets the state for the user data. * state is state in lower-case without spaces or punctuation. * Example: ca */ }, { key: "setState", /** * Sets the state for the user data. * @param {String} state is state in lower-case without spaces or punctuation. * Example: ca */ value: /* @__PURE__ */ __name(function setState(state) { this._states = new Array(state); return this; }, "setState") /** * Sets the states for the user data. * @param states is state in lower-case without spaces or punctuation. * Example: ca */ }, { key: "setStates", value: /* @__PURE__ */ __name(function setStates(states) { this._states = states; return this; }, "setStates") /** * Gets the country for the user data. * country is A two-letter country code in lowercase. * Example: usa */ }, { key: "setCountry", /** * Sets the country for the user data. * @param {String} country is A two-letter country code in lowercase. * Example: usa */ value: /* @__PURE__ */ __name(function setCountry(country) { this._countries = new Array(country); return this; }, "setCountry") /** * Sets the countries for the user data. * @param countries is A two-letter country code in lowercase. * Example: usa */ }, { key: "setCountries", value: /* @__PURE__ */ __name(function setCountries(countries) { this._countries = countries; return this; }, "setCountries") /** * Gets the external id for the user data. * external_id is a unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs. * In the Offline Conversions API this is known as extern_id. For more information, see Offline Conversions. * If External ID is being sent via other channels, then it should be sent in the same format via the Conversions API * @see {@link https://www.facebook.com/business/help/104039186799009} */ }, { key: "setExternalId", /** * Sets the external id for the user data. * @param {String} external_id is a unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs. * In the Offline Conversions API this is known as extern_id. For more information, see Offline Conversions. * If External ID is being sent via other channels, then it should be sent in the same format via the Conversions API * @see {@link https://www.facebook.com/business/help/104039186799009} */ value: /* @__PURE__ */ __name(function setExternalId(external_id) { this._external_ids = new Array(external_id); return this; }, "setExternalId") /** * Sets the external ids for the user data. * @param external_ids is a unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs. * In the Offline Conversions API this is known as extern_id. For more information, see Offline Conversions. * If External ID is being sent via other channels, then it should be sent in the same format via the Conversions API * @see {@link https://www.facebook.com/business/help/104039186799009} */ }, { key: "setExternalIds", value: /* @__PURE__ */ __name(function setExternalIds(external_ids) { this._external_ids = external_ids; return this; }, "setExternalIds") /** * Gets the client ip address for the user data. * client_ip_address is the IP address of the browser corresponding to the event. */ }, { key: "setClientIpAddress", /** * Sets the client ip address for the user data. * @param {String} client_ip_address is the IP address of the browser corresponding to the event. */ value: /* @__PURE__ */ __name(function setClientIpAddress(client_ip_address) { this._client_ip_address = client_ip_address; return this; }, "setClientIpAddress") /** * Gets the client user agent for the user data. * client_user_agent is the user agent for the browser corresponding to the event. */ }, { key: "setClientUserAgent", /** * Sets the client user agent for the user data. * @param {String} client_user_agent is the user agent for the browser corresponding to the event. */ value: /* @__PURE__ */ __name(function setClientUserAgent(client_user_agent) { this._client_user_agent = client_user_agent; return this; }, "setClientUserAgent") /** * Gets the fbc for the user data. * fbc is the Facebook click ID value stored in the _fbc browser cookie under your domain. * See Managing fbc and fbp Parameters for how to get this value @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters#fbc}, * You can also generate this value from a fbclid query parameter. */ }, { key: "setFbc", /** * Sets the fbc for the user data. * @param {String} fbc is the Facebook click ID value stored in the _fbc browser cookie under your domain. * See Managing fbc and fbp Parameters for how to get this value @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters#fbc}, * You can also generate this value from a fbclid query parameter. */ value: /* @__PURE__ */ __name(function setFbc(fbc) { this._fbc = fbc; return this; }, "setFbc") /** * Gets the fbp for the user data. * fbp is Facebook browser ID value stored in the _fbp browser cookie under your domain. * See Managing fbc and fbp Parameters for how to get this value @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters#fbp}, */ }, { key: "setFbp", /** * Sets the fbp for the user data. * @param {String} fbp is Facebook browser ID value stored in the _fbp browser cookie under your domain. * See Managing fbc and fbp Parameters for how to get this value @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters#fbp}, */ value: /* @__PURE__ */ __name(function setFbp(fbp) { this._fbp = fbp; return this; }, "setFbp") /** * Gets the subscription id for the user data. * @return subscription_id is the subscription ID for the user in this transaction. This is similar to the order ID for an individual product. * Example: anid1234. */ }, { key: "setSubscriptionId", /** * Sets the subscription id for the user data. * @param {String} subscription_id is the subscription ID for the user in this transaction. This is similar to the order ID for an individual product. * Example: anid1234. */ value: /* @__PURE__ */ __name(function setSubscriptionId(subscription_id) { this._subscription_id = subscription_id; return this; }, "setSubscriptionId") /** * * Gets the fb_login_id for the user data. */ }, { key: "setFbLoginId", /** * Sets the fb_login_id for the user data. */ value: /* @__PURE__ */ __name(function setFbLoginId(fb_login_id) { this._fb_login_id = fb_login_id; return this; }, "setFbLoginId") /** * * Gets the lead_id for the user data. Lead ID is associated with a lead generated by Facebook's Lead Ads. */ }, { key: "setLeadId", /** * Sets the lead_id for the user data. Lead ID is associated with a lead generated by Facebook's Lead Ads. */ value: /* @__PURE__ */ __name(function setLeadId(lead_id) { this._lead_id = lead_id; return this; }, "setLeadId") /** * * Gets the first 5 characters of the FirstName. */ }, { key: "setF5First", /** * Sets the first 5 characters of the FirstName. */ value: /* @__PURE__ */ __name(function setF5First(f5first) { this._f5first = f5first; return this; }, "setF5First") /** * * Gets the first 5 characters of the LastName. */ }, { key: "setF5Last", /** * Sets the first 5 characters of the LastName. */ value: /* @__PURE__ */ __name(function setF5Last(f5last) { this._f5last = f5last; return this; }, "setF5Last") /** * * Gets the first Name Initial. */ }, { key: "setFi", /** * Sets the first Name Initial. */ value: /* @__PURE__ */ __name(function setFi(fi) { this._fi = fi; return this; }, "setFi") /** * * Gets the date of birth day. */ }, { key: "setDobd", /** * Sets the date of birth day. */ value: /* @__PURE__ */ __name(function setDobd(dobd) { this._dobd = dobd; return this; }, "setDobd") /** * * Gets the date of birth month. */ }, { key: "setDobm", /** * Sets the date of birth month. */ value: /* @__PURE__ */ __name(function setDobm(dobm) { this._dobm = dobm; return this; }, "setDobm") /** * * Gets the date of birth year. */ }, { key: "setDoby", /** * Sets the date of birth year. */ value: /* @__PURE__ */ __name(function setDoby(doby) { this._doby = doby; return this; }, "setDoby") /** * */ }, { key: "setMadid", /** * */ value: /* @__PURE__ */ __name(function setMadid(madid) { this._madid = madid; return this; }, "setMadid") /** * */ }, { key: "setAnonId", /** * */ value: /* @__PURE__ */ __name(function setAnonId(anon_id) { this._anon_id = anon_id; return this; }, "setAnonId") /** * */ }, { key: "setAppUserId", /** * */ value: /* @__PURE__ */ __name(function setAppUserId(app_user_id) { this._app_user_id = app_user_id; return this; }, "setAppUserId") /** * */ }, { key: "setCtwaClid", /** * */ value: /* @__PURE__ */ __name(function setCtwaClid(ctwa_clid) { this._ctwa_clid = ctwa_clid; return this; }, "setCtwaClid") /** * */ }, { key: "setPageId", /** * */ value: /* @__PURE__ */ __name(function setPageId(page_id) { this._page_id = page_id; return this; }, "setPageId") /** * Returns the normalized payload for the user_data parameter. * @returns {Object} normalized user data payload. */ }, { key: "normalize", value: /* @__PURE__ */ __name(function normalize() { var userData = {}; if (this.emails) { userData["em"] = this.normalizeAndHashMultiValues(this.emails, "em"); } if (this.phones) { userData["ph"] = this.normalizeAndHashMultiValues(this.phones, "ph"); } if (this.genders) { userData["ge"] = this.normalizeAndHashMultiValues(this.genders, "ge"); } if (this.dates_of_birth) { userData["db"] = this.normalizeAndHashMultiValues(this.dates_of_birth, "db"); } if (this.last_names) { userData["ln"] = this.normalizeAndHashMultiValues(this.last_names, "ln"); } if (this.first_names) { userData["fn"] = this.normalizeAndHashMultiValues(this.first_names, "fn"); } if (this.cities) { userData["ct"] = this.normalizeAndHashMultiValues(this.cities, "ct"); } if (this.states) { userData["st"] = this.normalizeAndHashMultiValues(this.states, "st"); } if (this.zips) { userData["zp"] = this.normalizeAndHashMultiValues(this.zips, "zp"); } if (this.countries) { userData["country"] = this.normalizeAndHashMultiValues(this.countries, "country"); } if (this.external_ids) { userData["external_id"] = this.dedupArray(this.external_ids); } if (this.client_ip_address) { userData["client_ip_address"] = this.client_ip_address; } if (this.client_user_agent) { userData["client_user_agent"] = this.client_user_agent; } if (this.fbc) { userData["fbc"] = this.fbc; } if (this.fbp) { userData["fbp"] = this.fbp; } if (this.subscription_id) { userData["subscription_id"] = this.subscription_id; } if (this.fb_login_id) { userData["fb_login_id"] = this.fb_login_id; } if (this.lead_id) { userData["lead_id"] = this.lead_id; } if (this.f5first) { userData["f5first"] = ServerSideUtils.normalizeAndHash(this.f5first, "f5first"); } if (this.f5last) { userData["f5last"] = ServerSideUtils.normalizeAndHash(this.f5last, "f5last"); } if (this.fi) { userData["fi"] = ServerSideUtils.normalizeAndHash(this.fi, "fi"); } if (this.dobd) { userData["dobd"] = ServerSideUtils.normalizeAndHash(this.dobd, "dobd"); } if (this.dobm) { userData["dobm"] = ServerSideUtils.normalizeAndHash(this.dobm, "dobm"); } if (this.doby) { userData["doby"] = ServerSideUtils.normalizeAndHash(this.doby, "doby"); } if (this.madid) { userData["madid"] = this.madid; } if (this.anon_id) { userData["anon_id"] = this.anon_id; } if (this.app_user_id) { userData["app_user_id"] = ServerSideUtils.normalizeAndHash(this.app_user_id, "app_user_id"); } if (this.ctwa_clid) { userData["ctwa_clid"] = this.ctwa_clid; } if (this.page_id) { userData["page_id"] = this.page_id; } return userData; }, "normalize") /** * Returns the deduped and normalized payload for the given array of values and the field. * @returns {string[]} dedupped and normalized values. */ }, { key: "normalizeAndHashMultiValues", value: /* @__PURE__ */ __name(function normalizeAndHashMultiValues(arr, fieldName) { var normalizedArray = arr.map(function(value) { return ServerSideUtils.normalizeAndHash(value, fieldName); }); return this.dedupArray(normalizedArray); }, "normalizeAndHashMultiValues") /** * Returns the deduped payload for the given array of values. * This can be applied to fields that do not require normalization or hashing. * @returns {string[]} deduped values. */ }, { key: "dedupArray", value: /* @__PURE__ */ __name(function dedupArray(arr) { var dedupSet = new Set(arr); return Array.from(dedupSet); }, "dedupArray") }, { key: "email", /** * Gets the email address for the user data field. * An email address, in lowercase. * Example: joe@eg.com */ get: /* @__PURE__ */ __name(function get() { return this._emails == null ? null : this._emails[0]; }, "get"), /** * Sets the email address for the user data field. * @param email An email address, in lowercase. * Example: joe@eg.com */ set: /* @__PURE__ */ __name(function set(email) { this._emails = new Array(email); }, "set") /** * Sets email addresses for the user data field. * @param emails Email addresses, in lowercase. * Example: ['joe@eg.com', 'smith@test.com'] */ }, { key: "emails", get: /* @__PURE__ */ __name(function get() { return this._emails; }, "get"), set: /* @__PURE__ */ __name(function set(emails) { this._emails = emails; }, "set") }, { key: "phone", get: /* @__PURE__ */ __name(function get() { return this._phones == null ? null : this._phones[0]; }, "get"), /** * Sets the phone number for the user data. * @param phone A phone number. Include only digits with country code, area code, and number. * Example: 16505551212 */ set: /* @__PURE__ */ __name(function set(phone) { this._phones = new Array(phone); }, "set") /** * Sets the phone numbers for the user data. * @param phones Phone numbers. Include only digits with country code, area code, and number. * Example: ['16505551212', '12062072008'] */ }, { key: "phones", get: /* @__PURE__ */ __name(function get() { return this._phones; }, "get"), set: /* @__PURE__ */ __name(function set(phones) { this._phones = phones; }, "set") }, { key: "gender", get: /* @__PURE__ */ __name(function get() { return this._genders == null ? null : this.genders[0]; }, "get"), /** * Sets the gender value for the user data. * @param gender Gender in lowercase. Either f for FEMALE or m for MALE. * Example: f */ set: /* @__PURE__ */ __name(function set(gender) { this._genders = new Array(gender); }, "set") /** * Sets the gender values for the user data. * @param genders Genders in lowercase. Either f for FEMALE or m for MALE. * Example: [f, m] */ }, { key: "genders", get: /* @__PURE__ */ __name(function get() { return this._genders; }, "get"), set: /* @__PURE__ */ __name(function set(genders) { this._genders = genders; }, "set") }, { key: "date_of_birth", get: /* @__PURE__ */ __name(function get() { return this._dates_of_birth == null ? null : this._dates_of_birth[0]; }, "get"), /** * Sets the date of birth for the user data. * @param date_of_birth A date of birth given as year, month, and day in the Format YYYYMMDD * Example: 19971226 for December 26, 1997. */ set: /* @__PURE__ */ __name(function set(date_of_birth) { this._dates_of_birth = new Array(date_of_birth); }, "set") /** * Sets the dates of birth for the user data. * @param dates_of_birth A date of birth given as year, month, and day in the Format YYYYMMDD * Example: 19971226 for December 26, 1997. */ }, { key: "dates_of_birth", get: /* @__PURE__ */ __name(function get() { return this._dates_of_birth; }, "get"), set: /* @__PURE__ */ __name(function set(dates_of_birth) { this._dates_of_birth = dates_of_birth; }, "set") }, { key: "last_name", get: /* @__PURE__ */ __name(function get() { return this._last_names == null ? null : this._last_names[0]; }, "get"), /** * Sets the last name for the user data. * @param last_name is last name in lowercase. * Example: smith */ set: /* @__PURE__ */ __name(function set(last_name) { this._last_names = new Array(last_name); }, "set") /** * Sets the last names for the user data. * @param last_names is last name in lowercase. * Example: ['smith', 'wilson'] */ }, { key: "last_names", get: /* @__PURE__ */ __name(function get() { return this._last_names; }, "get"), set: /* @__PURE__ */ __name(function set(last_names) { this._last_names = last_names; }, "set") }, { key: "first_name", get: /* @__PURE__ */ __name(function get() { return this._first_names == null ? null : this._first_names[0]; }, "get"), /** * Sets the first name for the user data. * @param first_name is first name in lowercase. * Example: joe */ set: /* @__PURE__ */ __name(function set(first_name) { this._first_names = new Array(first_name); }, "set") /** * Sets the first names for the user data. * @param first_names is first name in lowercase. * Example: ['joe', 'mary'] */ }, { key: "first_names", get: /* @__PURE__ */ __name(function get() { return this._first_names; }, "get"), set: /* @__PURE__ */ __name(function set(first_names) { this._first_names = first_names; }, "set") }, { key: "city", get: /* @__PURE__ */ __name(function get() { return this._cities == null ? null : this._cities[0]; }, "get"), /** * Sets the city for the user data. * @param city is city in lower-case without spaces or punctuation. * Example: menlopark */ set: /* @__PURE__ */ __name(function set(city) { this._cities = new Array(city); }, "set") /** * Sets the cities for the user data. * @param cities is city in lower-case without spaces or punctuation. * Example: ['menlopark', 'seattle'] */ }, { key: "cities", get: /* @__PURE__ */ __name(function get() { return this._cities; }, "get"), set: /* @__PURE__ */ __name(function set(cities) { this._cities = cities; }, "set") }, { key: "zip", get: /* @__PURE__ */ __name(function get() { return this._zips == null ? null : this._zips[0]; }, "get"), /** * Sets the zip/postal code for the user data. * @param zip is a five-digit zip code for United States.For other locations, follow each country's standards. * Example: 98121 (for United States zip code) */ set: /* @__PURE__ */ __name(function set(zip) { this._zips = new Array(zip); }, "set") /** * Sets the zip/postal codes for the user data. * @param zips is a five-digit zip code for United States.For other locations, follow each country's standards. * Example: 98121 (for United States zip code) */ }, { key: "zips", get: /* @__PURE__ */ __name(function get() { return this._zips; }, "get"), set: /* @__PURE__ */ __name(function set(zips) { this._zips = zips; }, "set") }, { key: "state", get: /* @__PURE__ */ __name(function get() { return this._states == null ? null : this._states[0]; }, "get"), /** * Sets the state for the user data. * @param state is state in lower-case without spaces or punctuation. * Example: ca */ set: /* @__PURE__ */ __name(function set(state) { this._states = new Array(state); }, "set") /** * Sets the states for the user data. * @param states is state in lower-case without spaces or punctuation. * Example: ca */ }, { key: "states", get: /* @__PURE__ */ __name(function get() { return this._states; }, "get"), set: /* @__PURE__ */ __name(function set(states) { this._states = states; }, "set") }, { key: "country", get: /* @__PURE__ */ __name(function get() { return this._countries == null ? null : this._countries[0]; }, "get"), /** * Sets the country for the user data. * @param country is A two-letter country code in lowercase. * Example: usa */ set: /* @__PURE__ */ __name(function set(country) { this._countries = new Array(country); }, "set") /** * Sets the countries for the user data. * @param countries is A two-letter country code in lowercase. * Example: usa */ }, { key: "countries", get: /* @__PURE__ */ __name(function get() { return this._countries; }, "get"), set: /* @__PURE__ */ __name(function set(countries) { this._countries = countries; }, "set") }, { key: "external_id", get: /* @__PURE__ */ __name(function get() { return this._external_ids == null ? null : this._external_ids[0]; }, "get"), /** * Sets the external id for the user data. * @param external_id is a unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs. * In the Offline Conversions API this is known as extern_id. For more information, see Offline Conversions. * If External ID is being sent via other channels, then it should be sent in the same format via the Conversions API * @see {@link https://www.facebook.com/business/help/104039186799009} */ set: /* @__PURE__ */ __name(function set(external_id) { this._external_ids = new Array(external_id); }, "set") /** * Sets the external id for the user data. * @param external_ids is a unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs. * In the Offline Conversions API this is known as extern_id. For more information, see Offline Conversions. * If External ID is being sent via other channels, then it should be sent in the same format via the Conversions API * @see {@link https://www.facebook.com/business/help/104039186799009} */ }, { key: "external_ids", get: /* @__PURE__ */ __name(function get() { return this._external_ids; }, "get"), set: /* @__PURE__ */ __name(function set(external_ids) { this._external_ids = external_ids; }, "set") }, { key: "client_ip_address", get: /* @__PURE__ */ __name(function get() { return this._client_ip_address; }, "get"), set: /* @__PURE__ */ __name(function set(client_ip_address) { this._client_ip_address = client_ip_address; }, "set") }, { key: "client_user_agent", get: /* @__PURE__ */ __name(function get() { return this._client_user_agent; }, "get"), set: /* @__PURE__ */ __name(function set(client_user_agent) { this._client_user_agent = client_user_agent; }, "set") }, { key: "fbc", get: /* @__PURE__ */ __name(function get() { return this._fbc; }, "get"), set: /* @__PURE__ */ __name(function set(fbc) { this._fbc = fbc; }, "set") }, { key: "fbp", get: /* @__PURE__ */ __name(function get() { return this._fbp; }, "get"), set: /* @__PURE__ */ __name(function set(fbp) { this._fbp = fbp; }, "set") }, { key: "subscription_id", get: /* @__PURE__ */ __name(function get() { return this._subscription_id; }, "get"), set: /* @__PURE__ */ __name(function set(subscription_id) { this._subscription_id = subscription_id; }, "set") }, { key: "fb_login_id", get: /* @__PURE__ */ __name(function get() { return this._fb_login_id; }, "get"), set: /* @__PURE__ */ __name(function set(fb_login_id) { this._fb_login_id = fb_login_id; }, "set") }, { key: "lead_id", get: /* @__PURE__ */ __name(function get() { return this._lead_id; }, "get"), set: /* @__PURE__ */ __name(function set(lead_id) { this._lead_id = lead_id; }, "set") }, { key: "f5first", get: /* @__PURE__ */ __name(function get() { return this._f5first; }, "get"), set: /* @__PURE__ */ __name(function set(f5first) { this._f5first = f5first; }, "set") }, { key: "f5last", get: /* @__PURE__ */ __name(function get() { return this._f5last; }, "get"), set: /* @__PURE__ */ __name(function set(f5last) { this._f5last = f5last; }, "set") }, { key: "fi", get: /* @__PURE__ */ __name(function get() { return this._fi; }, "get"), set: /* @__PURE__ */ __name(function set(fi) { this._fi = fi; }, "set") }, { key: "dobd", get: /* @__PURE__ */ __name(function get() { return this._dobd; }, "get"), set: /* @__PURE__ */ __name(function set(dobd) { this._dobd = dobd; }, "set") }, { key: "dobm", get: /* @__PURE__ */ __name(function get() { return this._dobm; }, "get"), set: /* @__PURE__ */ __name(function set(dobm) { this._dobm = dobm; }, "set") }, { key: "doby", get: /* @__PURE__ */ __name(function get() { return this._doby; }, "get"), set: /* @__PURE__ */ __name(function set(doby) { this._doby = doby; }, "set") }, { key: "madid", get: /* @__PURE__ */ __name(function get() { return this._madid; }, "get"), set: /* @__PURE__ */ __name(function set(madid) { this._madid = madid; }, "set") }, { key: "anon_id", get: /* @__PURE__ */ __name(function get() { return this._anon_id; }, "get"), set: /* @__PURE__ */ __name(function set(anon_id) { this._anon_id = anon_id; }, "set") }, { key: "app_user_id", get: /* @__PURE__ */ __name(function get() { return this._app_user_id; }, "get"), set: /* @__PURE__ */ __name(function set(app_user_id) { this._app_user_id = app_user_id; }, "set") }, { key: "ctwa_clid", get: /* @__PURE__ */ __name(function get() { return this._ctwa_clid; }, "get"), set: /* @__PURE__ */ __name(function set(ctwa_clid) { this._ctwa_clid = ctwa_clid; }, "set") }, { key: "page_id", get: /* @__PURE__ */ __name(function get() { return this._page_id; }, "get"), set: /* @__PURE__ */ __name(function set(page_id) { this._page_id = page_id; }, "set") }], [{ key: "Gender", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ MALE: "m", FEMALE: "f" }); }, "get") }]); return UserData2; }(); var ExtendedDeviceInfo = function() { function ExtendedDeviceInfo2(ext_info_version, app_package_name, short_version, long_version, os_version, device_model_name, locale, timezone_abbreviation, carrier, screen_width, screen_height, screen_density, cpu_core_count, total_disk_space_gb, free_disk_space_gb, device_time_zone) { classCallCheck(this, ExtendedDeviceInfo2); this._ext_info_version = ext_info_version; this._app_package_name = app_package_name; this._short_version = short_version; this._long_version = long_version; this._os_version = os_version; this._device_model_name = device_model_name; this._locale = locale; this._timezone_abbreviation = timezone_abbreviation; this._carrier = carrier; this._screen_width = screen_width; this._screen_height = screen_height; this._screen_density = screen_density; this._cpu_core_count = cpu_core_count; this._total_disk_space_gb = total_disk_space_gb; this._free_disk_space_gb = free_disk_space_gb; this._device_time_zone = device_time_zone; } __name(ExtendedDeviceInfo2, "ExtendedDeviceInfo"); createClass(ExtendedDeviceInfo2, [{ key: "setExtInfoVersion", value: /* @__PURE__ */ __name(function setExtInfoVersion(ext_info_version) { this._ext_info_version = ext_info_version; return this; }, "setExtInfoVersion") }, { key: "setAppPackageName", value: /* @__PURE__ */ __name(function setAppPackageName(app_package_name) { this._app_package_name = app_package_name; return this; }, "setAppPackageName") }, { key: "setShortVersion", value: /* @__PURE__ */ __name(function setShortVersion(short_version) { this._short_version = short_version; return this; }, "setShortVersion") }, { key: "setLongVersion", value: /* @__PURE__ */ __name(function setLongVersion(long_version) { this._long_version = long_version; return this; }, "setLongVersion") }, { key: "setOsVersion", value: /* @__PURE__ */ __name(function setOsVersion(os_version) { this._os_version = os_version; return this; }, "setOsVersion") }, { key: "setDeviceModelName", value: /* @__PURE__ */ __name(function setDeviceModelName(device_model_name) { this._device_model_name = device_model_name; return this; }, "setDeviceModelName") }, { key: "setLocale", value: /* @__PURE__ */ __name(function setLocale(locale) { this._locale = locale; return this; }, "setLocale") }, { key: "setTimezoneAbbreviation", value: /* @__PURE__ */ __name(function setTimezoneAbbreviation(timezone_abbreviation) { this._timezone_abbreviation = timezone_abbreviation; return this; }, "setTimezoneAbbreviation") }, { key: "setCarrier", value: /* @__PURE__ */ __name(function setCarrier(carrier) { this._carrier = carrier; return this; }, "setCarrier") }, { key: "setScreenWidth", value: /* @__PURE__ */ __name(function setScreenWidth(screen_width) { this._screen_width = screen_width; return this; }, "setScreenWidth") }, { key: "setScreenHeight", value: /* @__PURE__ */ __name(function setScreenHeight(screen_height) { this._screen_height = screen_height; return this; }, "setScreenHeight") }, { key: "setScreenDensity", value: /* @__PURE__ */ __name(function setScreenDensity(screen_density) { this._screen_density = screen_density; return this; }, "setScreenDensity") }, { key: "setCpuCoreCount", value: /* @__PURE__ */ __name(function setCpuCoreCount(cpu_core_count) { this._cpu_core_count = cpu_core_count; return this; }, "setCpuCoreCount") }, { key: "setTotalDiskSpaceGb", value: /* @__PURE__ */ __name(function setTotalDiskSpaceGb(total_disk_space_gb) { this._total_disk_space_gb = total_disk_space_gb; return this; }, "setTotalDiskSpaceGb") }, { key: "setFreeDiskSpaceGb", value: /* @__PURE__ */ __name(function setFreeDiskSpaceGb(free_disk_space_gb) { this._free_disk_space_gb = free_disk_space_gb; return this; }, "setFreeDiskSpaceGb") }, { key: "setDeviceTimeZone", value: /* @__PURE__ */ __name(function setDeviceTimeZone(device_time_zone) { this._device_time_zone = device_time_zone; return this; }, "setDeviceTimeZone") }, { key: "normalize", value: /* @__PURE__ */ __name(function normalize() { var EXT_INFO_VERSION = 0; var APP_PACKAGE_NAME = 1; var SHORT_VERSION = 2; var LONG_VERSION = 3; var OS_VERSION = 4; var DEVICE_MODEL_NAME = 5; var LOCALE = 6; var TIMEZONE_ABBREVIATION = 7; var CARRIER = 8; var SCREEN_WIDTH = 9; var SCREEN_HEIGHT = 10; var SCREEN_DENSITY = 11; var CPU_CORE_COUNT = 12; var TOTAL_DISK_SPACE_GB = 13; var FREE_DISK_SPACE_GB = 14; var DEVICE_TIME_ZONE = 15; var extDeviceInfo = {}; extDeviceInfo[EXT_INFO_VERSION] = this._ext_info_version; extDeviceInfo[APP_PACKAGE_NAME] = this._app_package_name; extDeviceInfo[SHORT_VERSION] = this._short_version; extDeviceInfo[LONG_VERSION] = this._long_version; extDeviceInfo[OS_VERSION] = this._os_version; extDeviceInfo[DEVICE_MODEL_NAME] = this._device_model_name; extDeviceInfo[LOCALE] = this._locale; extDeviceInfo[TIMEZONE_ABBREVIATION] = this._timezone_abbreviation; extDeviceInfo[CARRIER] = this._carrier; extDeviceInfo[SCREEN_WIDTH] = this._screen_width; extDeviceInfo[SCREEN_HEIGHT] = this._screen_height; extDeviceInfo[SCREEN_DENSITY] = this._screen_density; extDeviceInfo[CPU_CORE_COUNT] = this._cpu_core_count; extDeviceInfo[TOTAL_DISK_SPACE_GB] = this._total_disk_space_gb; extDeviceInfo[FREE_DISK_SPACE_GB] = this._free_disk_space_gb; extDeviceInfo[DEVICE_TIME_ZONE] = this._device_time_zone; return extDeviceInfo; }, "normalize") }, { key: "toJson", value: /* @__PURE__ */ __name(function toJson() { return { "ext_info_version": this._ext_info_version, "app_package_name": this._app_package_name, "short_version": this._short_version, "long_version": this._long_version, "os_version": this._os_version, "device_model_name": this._device_model_name, "locale": this._locale, "timezone_abbreviation": this._timezone_abbreviation, "carrier": this._carrier, "screen_width": this._screen_width, "screen_height": this._screen_height, "screen_density": this._screen_density, "cpu_core_count": this._cpu_core_count, "total_disk_space_gb": this._total_disk_space_gb, "free_disk_space_gb": this._free_disk_space_gb, "device_time_zone": this._device_time_zone }; }, "toJson") }, { key: "ext_info_version", get: /* @__PURE__ */ __name(function get() { return this._ext_info_version; }, "get"), set: /* @__PURE__ */ __name(function set(ext_info_version) { this._ext_info_version = ext_info_version; }, "set") }, { key: "app_package_name", get: /* @__PURE__ */ __name(function get() { return this._app_package_name; }, "get"), set: /* @__PURE__ */ __name(function set(app_package_name) { this._app_package_name = app_package_name; }, "set") }, { key: "short_version", get: /* @__PURE__ */ __name(function get() { return this._short_version; }, "get"), set: /* @__PURE__ */ __name(function set(short_version) { this._short_version = short_version; }, "set") }, { key: "long_version", get: /* @__PURE__ */ __name(function get() { return this._long_version; }, "get"), set: /* @__PURE__ */ __name(function set(long_version) { this._long_version = long_version; }, "set") }, { key: "os_version", get: /* @__PURE__ */ __name(function get() { return this._os_version; }, "get"), set: /* @__PURE__ */ __name(function set(os_version) { this._os_version = os_version; }, "set") }, { key: "device_model_name", get: /* @__PURE__ */ __name(function get() { return this._device_model_name; }, "get"), set: /* @__PURE__ */ __name(function set(device_model_name) { this._device_model_name = device_model_name; }, "set") }, { key: "locale", get: /* @__PURE__ */ __name(function get() { return this._locale; }, "get"), set: /* @__PURE__ */ __name(function set(locale) { this._locale = locale; }, "set") }, { key: "timezone_abbreviation", get: /* @__PURE__ */ __name(function get() { return this._timezone_abbreviation; }, "get"), set: /* @__PURE__ */ __name(function set(timezone_abbreviation) { this._timezone_abbreviation = timezone_abbreviation; }, "set") }, { key: "carrier", get: /* @__PURE__ */ __name(function get() { return this._carrier; }, "get"), set: /* @__PURE__ */ __name(function set(carrier) { this._carrier = carrier; }, "set") }, { key: "screen_width", get: /* @__PURE__ */ __name(function get() { return this._screen_width; }, "get"), set: /* @__PURE__ */ __name(function set(screen_width) { this._screen_width = screen_width; }, "set") }, { key: "screen_height", get: /* @__PURE__ */ __name(function get() { return this._screen_height; }, "get"), set: /* @__PURE__ */ __name(function set(screen_height) { this._screen_height = screen_height; }, "set") }, { key: "screen_density", get: /* @__PURE__ */ __name(function get() { return this._screen_density; }, "get"), set: /* @__PURE__ */ __name(function set(screen_density) { this._screen_density = screen_density; }, "set") }, { key: "cpu_core_count", get: /* @__PURE__ */ __name(function get() { return this._cpu_core_count; }, "get"), set: /* @__PURE__ */ __name(function set(cpu_core_count) { this._cpu_core_count = cpu_core_count; }, "set") }, { key: "total_disk_space_gb", get: /* @__PURE__ */ __name(function get() { return this._total_disk_space_gb; }, "get"), set: /* @__PURE__ */ __name(function set(total_disk_space_gb) { this._total_disk_space_gb = total_disk_space_gb; }, "set") }, { key: "free_disk_space_gb", get: /* @__PURE__ */ __name(function get() { return this._free_disk_space_gb; }, "get"), set: /* @__PURE__ */ __name(function set(free_disk_space_gb) { this._free_disk_space_gb = free_disk_space_gb; }, "set") }, { key: "device_time_zone", get: /* @__PURE__ */ __name(function get() { return this._device_time_zone; }, "get"), set: /* @__PURE__ */ __name(function set(device_time_zone) { this._device_time_zone = device_time_zone; }, "set") }]); return ExtendedDeviceInfo2; }(); var AppData = function() { function AppData2(application_tracking_enabled, advertiser_tracking_enabled, campaign_ids, consider_views, extinfo, include_dwell_data, include_video_data, install_referrer, installer_package, receipt_data, url_schemes, windows_attribution_id) { classCallCheck(this, AppData2); this._application_tracking_enabled = application_tracking_enabled; this._advertiser_tracking_enabled = advertiser_tracking_enabled; this._campaign_ids = campaign_ids; this._consider_views = consider_views; this._extinfo = extinfo; this._include_dwell_data = include_dwell_data; this._include_video_data = include_video_data; this._install_referrer = install_referrer; this._installer_package = installer_package; this._receipt_data = receipt_data; this._url_schemes = url_schemes; this._windows_attribution_id = windows_attribution_id; } __name(AppData2, "AppData"); createClass(AppData2, [{ key: "setApplicationTrackingEnabled", value: /* @__PURE__ */ __name(function setApplicationTrackingEnabled(application_tracking_enabled) { this._application_tracking_enabled = application_tracking_enabled; return this; }, "setApplicationTrackingEnabled") }, { key: "setAdvertiserTrackingEnabled", value: /* @__PURE__ */ __name(function setAdvertiserTrackingEnabled(advertiser_tracking_enabled) { this._advertiser_tracking_enabled = advertiser_tracking_enabled; return this; }, "setAdvertiserTrackingEnabled") }, { key: "setCampaignIds", value: /* @__PURE__ */ __name(function setCampaignIds(campaign_ids) { this._campaign_ids = campaign_ids; return this; }, "setCampaignIds") }, { key: "setConsiderViews", value: /* @__PURE__ */ __name(function setConsiderViews(consider_views) { this._consider_views = consider_views; return this; }, "setConsiderViews") }, { key: "setExtinfo", value: /* @__PURE__ */ __name(function setExtinfo(extinfo) { this._extinfo = extinfo; return this; }, "setExtinfo") }, { key: "setIncludeDwellData", value: /* @__PURE__ */ __name(function setIncludeDwellData(include_dwell_data) { this._include_dwell_data = include_dwell_data; return this; }, "setIncludeDwellData") }, { key: "setIncludeVideoData", value: /* @__PURE__ */ __name(function setIncludeVideoData(include_video_data) { this._include_video_data = include_video_data; return this; }, "setIncludeVideoData") }, { key: "setInstallReferrer", value: /* @__PURE__ */ __name(function setInstallReferrer(install_referrer) { this._install_referrer = install_referrer; return this; }, "setInstallReferrer") }, { key: "setInstallerPackage", value: /* @__PURE__ */ __name(function setInstallerPackage(installer_package) { this._installer_package = installer_package; return this; }, "setInstallerPackage") }, { key: "setReceiptData", value: /* @__PURE__ */ __name(function setReceiptData(receipt_data) { this._receipt_data = receipt_data; return this; }, "setReceiptData") }, { key: "setUrlSchemes", value: /* @__PURE__ */ __name(function setUrlSchemes(url_schemes) { this._url_schemes = url_schemes; return this; }, "setUrlSchemes") }, { key: "setWindowsAttributionId", value: /* @__PURE__ */ __name(function setWindowsAttributionId(windows_attribution_id) { this._windows_attribution_id = windows_attribution_id; return this; }, "setWindowsAttributionId") }, { key: "normalize", value: /* @__PURE__ */ __name(function normalize() { var appData = {}; appData.application_tracking_enabled = this.application_tracking_enabled; appData.advertiser_tracking_enabled = this.advertiser_tracking_enabled; appData.campaign_ids = this.campaign_ids; appData.consider_views = this.consider_views; appData.extinfo = this.extinfo.normalize(); appData.include_dwell_data = this.include_dwell_data; appData.include_video_data = this.include_video_data; appData.install_referrer = this.install_referrer; appData.installer_package = this.installer_package; appData.receipt_data = this.receipt_data; appData.url_schemes = this.url_schemes; appData.windows_attribution_id = this.windows_attribution_id; return appData; }, "normalize") }, { key: "toJson", value: /* @__PURE__ */ __name(function toJson() { return { "application_tracking_enabled": this._application_tracking_enabled, "advertiser_tracking_enabled": this._advertiser_tracking_enabled, "campaign_ids": this._campaign_ids, "consider_views": this._consider_views, "extinfo": this._extinfo.normalize(), "include_dwell_data": this._include_dwell_data, "include_video_data": this._include_video_data, "install_referrer": this._install_referrer, "installer_package": this._installer_package, "receipt_data": this._receipt_data, "url_schemes": this._url_schemes, "windows_attribution_id": this._windows_attribution_id }; }, "toJson") }, { key: "application_tracking_enabled", get: /* @__PURE__ */ __name(function get() { return this._application_tracking_enabled; }, "get"), set: /* @__PURE__ */ __name(function set(application_tracking_enabled) { this._application_tracking_enabled = application_tracking_enabled; }, "set") }, { key: "advertiser_tracking_enabled", get: /* @__PURE__ */ __name(function get() { return this._advertiser_tracking_enabled; }, "get"), set: /* @__PURE__ */ __name(function set(advertiser_tracking_enabled) { this._advertiser_tracking_enabled = advertiser_tracking_enabled; }, "set") }, { key: "campaign_ids", get: /* @__PURE__ */ __name(function get() { return this._campaign_ids; }, "get"), set: /* @__PURE__ */ __name(function set(campaign_ids) { this._campaign_ids = campaign_ids; }, "set") }, { key: "consider_views", get: /* @__PURE__ */ __name(function get() { return this._consider_views; }, "get"), set: /* @__PURE__ */ __name(function set(consider_views) { this._consider_views = consider_views; }, "set") }, { key: "extinfo", get: /* @__PURE__ */ __name(function get() { return this._extinfo; }, "get"), set: /* @__PURE__ */ __name(function set(extinfo) { this._extinfo = extinfo; }, "set") }, { key: "include_dwell_data", get: /* @__PURE__ */ __name(function get() { return this._include_dwell_data; }, "get"), set: /* @__PURE__ */ __name(function set(include_dwell_data) { this._include_dwell_data = include_dwell_data; }, "set") }, { key: "include_video_data", get: /* @__PURE__ */ __name(function get() { return this._include_video_data; }, "get"), set: /* @__PURE__ */ __name(function set(include_video_data) { this._include_video_data = include_video_data; }, "set") }, { key: "install_referrer", get: /* @__PURE__ */ __name(function get() { return this._install_referrer; }, "get"), set: /* @__PURE__ */ __name(function set(install_referrer) { this._install_referrer = install_referrer; }, "set") }, { key: "installer_package", get: /* @__PURE__ */ __name(function get() { return this._installer_package; }, "get"), set: /* @__PURE__ */ __name(function set(installer_package) { this._installer_package = installer_package; }, "set") }, { key: "receipt_data", get: /* @__PURE__ */ __name(function get() { return this._receipt_data; }, "get"), set: /* @__PURE__ */ __name(function set(receipt_data) { this._receipt_data = receipt_data; }, "set") }, { key: "url_schemes", get: /* @__PURE__ */ __name(function get() { return this._url_schemes; }, "get"), set: /* @__PURE__ */ __name(function set(url_schemes) { this._url_schemes = url_schemes; }, "set") }, { key: "windows_attribution_id", get: /* @__PURE__ */ __name(function get() { return this._windows_attribution_id; }, "get"), set: /* @__PURE__ */ __name(function set(windows_attribution_id) { this._windows_attribution_id = windows_attribution_id; }, "set") }]); return AppData2; }(); var ServerEvent = function() { function ServerEvent2(event_name, event_time, event_source_url, user_data, custom_data, app_data, event_id, opt_out, action_source, data_processing_options, data_processing_options_country, data_processing_options_state, advanced_measurement_table, advertiser_tracking_enabled, messaging_channel) { classCallCheck(this, ServerEvent2); this._event_name = event_name; this._event_time = event_time; this._user_data = user_data; this._custom_data = custom_data; this._app_data = app_data; this._event_source_url = event_source_url; this._event_id = event_id; this._opt_out = opt_out; this._action_source = action_source; this._data_processing_options = data_processing_options; this._data_processing_options_country = data_processing_options_country; this._data_processing_options_state = data_processing_options_state; this._advanced_measurement_table = advanced_measurement_table; this._messaging_channel = messaging_channel; } __name(ServerEvent2, "ServerEvent"); createClass(ServerEvent2, [{ key: "setEventName", /** * Sets the Event Name for the current Event. * @param {String} event_name Facebook pixel Standard Event or Custom Event name. */ value: /* @__PURE__ */ __name(function setEventName(event_name) { this._event_name = event_name; return this; }, "setEventName") /** * Gets the Event Time when the current Event happened. */ }, { key: "setEventTime", /** * Sets the Event Time when the current Event happened. * @param {Number} event_time is a Unix timestamp in seconds indicating when the actual event occurred. */ value: /* @__PURE__ */ __name(function setEventTime(event_time) { this._event_time = event_time; return this; }, "setEventTime") /** * Gets the browser url source for the current event. */ }, { key: "setEventSourceUrl", /** * Sets the browser url source for the current event. * @param {String} event_source_url The browser URL where the event happened. */ value: /* @__PURE__ */ __name(function setEventSourceUrl(event_source_url) { this._event_source_url = event_source_url; return this; }, "setEventSourceUrl") /** * Gets the event_id for the current Event. */ }, { key: "setEventId", /** * Sets the event Id for the current Event. * @param {String} event_id can be any string chosen by the advertiser. This is used with event_name to determine if events are identical. * Learn about Deduplicate Pixel and Conversions API Events: {@link https://developers.facebook.com/docs/marketing-api/conversions-api/deduplicate-pixel-and-server-events} * @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/server-event#event-id} */ value: /* @__PURE__ */ __name(function setEventId(event_id) { this._event_id = event_id; return this; }, "setEventId") /** * Gets the action_source for the current event. The Action Source represents where the action took place. */ }, { key: "setActionSource", /** * Sets the action_source for the current event. * @param {String} action_source represents where the action took place. One of {'physical_store','app','chat','email','other','phone_call','system_generated','website'} */ value: /* @__PURE__ */ __name(function setActionSource(action_source) { this._action_source = action_source; return this; }, "setActionSource") /** * Gets the opt_out feature for the current event.opt_out is a boolean flag that indicates we should not use this event for ads delivery optimization. If set to true, we only use the event for attribution. */ }, { key: "setOptOut", /** * Sets the opt_out feature for the current event. * @param {Boolean} opt_out is a boolean flag that indicates we should not use this event for ads delivery optimization. If set to true, we only use the event for attribution. */ value: /* @__PURE__ */ __name(function setOptOut(opt_out) { this._opt_out = opt_out; return this; }, "setOptOut") /** * Gets the user data object for the current Server Event. * @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/server-event#user-data} */ }, { key: "setUserData", /** * Sets the user data object for the current Server Event. * @param {UserData} user_data user_data is a map that contains user data. See User Data Parameter Table for options. Also see Advanced Matching with the Pixel to see comparable options available for data sent via Facebook pixel. * @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/server-event#user-data} */ value: /* @__PURE__ */ __name(function setUserData(user_data) { this._user_data = user_data; return this; }, "setUserData") /** * Gets the custom data object for the current Server Event. * @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/server-event#custom-data} */ }, { key: "setCustomData", /** * Sets the custom data object for the current Server Event. * @param {CustomData} custom_data is a map that includes additional business data about the event. * @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/server-event#custom-data} */ value: /* @__PURE__ */ __name(function setCustomData(custom_data) { this._custom_data = custom_data; return this; }, "setCustomData") /** * */ }, { key: "setAppData", /** * */ value: /* @__PURE__ */ __name(function setAppData(app_data) { this._app_data = app_data; return this; }, "setAppData") /** * Gets the data_processing_options for the current event. * Processing options you would like to enable for a specific event. */ }, { key: "setDataProcessingOptions", /** * Sets the data_processing_options for the current event. * @param {Array<string>} data_processing_options represents Data processing options you would like to enable for a specific event, e.g. [] or ['LDU'] * @see {@link https://developers.facebook.com/docs/marketing-apis/data-processing-options} */ value: /* @__PURE__ */ __name(function setDataProcessingOptions(data_processing_options) { this._data_processing_options = data_processing_options; return this; }, "setDataProcessingOptions") /** * Gets the data_processing_options_country for the current event. * A country that you want to associate to this data processing option. * @see {@link https://developers.facebook.com/docs/marketing-apis/data-processing-options} */ }, { key: "setDataProcessingOptionsCountry", /** * Sets the data_processing_options_country for the current event. * @param {number} data_processing_options_country represents country that you want to associate to this data processing option. */ value: /* @__PURE__ */ __name(function setDataProcessingOptionsCountry(data_processing_options_country) { this._data_processing_options_country = data_processing_options_country; return this; }, "setDataProcessingOptionsCountry") /** * Gets the data_processing_options_state for the current event. * A state that you want to associate with this data processing option. * @see {@link https://developers.facebook.com/docs/marketing-apis/data-processing-options} */ }, { key: "setDataProcessingOptionsState", /** * Sets the data_processing_options_state for the current event. * @param {number} data_processing_options_state represents state that you want to associate with this data processing option. */ value: /* @__PURE__ */ __name(function setDataProcessingOptionsState(data_processing_options_state) { this._data_processing_options_state = data_processing_options_state; return this; }, "setDataProcessingOptionsState") /** * Gets the advanced_measurement_table for the current event. * Name of Advanced Measurement table. Only used for the Advanced Measurement API in the Advanced Analytics product. */ }, { key: "setAdvancedMeasurementTable", /** * Sets the advanced_measurement_table for the current event. * @param {string} advanced_measurement_table Name of Advanced Measurement table. Only used for the Advanced Measurement API in the Advanced Analytics product. */ value: /* @__PURE__ */ __name(function setAdvancedMeasurementTable(advanced_measurement_table) { this._advanced_measurement_table = advanced_measurement_table; return this; }, "setAdvancedMeasurementTable") /** * Gets the advertiser_tracking_enabled for the current event. * @see {@link https://developers.facebook.com/docs/app-events/guides/advertising-tracking-enabled} (documentation only covers iOS SDK) */ }, { key: "setAdvertiserTrackingEnabled", /** * Sets the advertiser_tracking_enabled for the current event. * @param {number} data_processing_options_country represents whether the user has opted into/out of advertiser tracking on apps. */ value: /* @__PURE__ */ __name(function setAdvertiserTrackingEnabled(advertiser_tracking_enabled) { this._advertiser_tracking_enabled = advertiser_tracking_enabled; return this; }, "setAdvertiserTrackingEnabled") /** * Gets the messaging_channel for the current event. */ }, { key: "setMessagingChannel", /** * Sets the messaging_channel for the current event. * @param {number} messaging_channel represents where the conversation occurred. */ value: /* @__PURE__ */ __name(function setMessagingChannel(messaging_channel) { this._messaging_channel = messaging_channel; return this; }, "setMessagingChannel") /** * Returns the normalized payload for the event. * @returns {Object} normalized event payload. */ }, { key: "normalize", value: /* @__PURE__ */ __name(function normalize() { var serverEvent = {}; if (this.event_name) { serverEvent.event_name = this.event_name; } if (this.event_time) { serverEvent.event_time = this.event_time; } if (this.user_data) { serverEvent.user_data = this.user_data.normalize(); } if (this.custom_data) { serverEvent.custom_data = this.custom_data.normalize(); } if (this.app_data) { serverEvent.app_data = this.app_data.normalize(); } if (this.action_source) { serverEvent.action_source = this.action_source.toLowerCase(); } if (this.opt_out) { serverEvent.opt_out = this.opt_out; } if (this.event_id) { serverEvent.event_id = this.event_id; } if (this.event_source_url) { serverEvent.event_source_url = this.event_source_url; } if (this.data_processing_options) { serverEvent.data_processing_options = this.data_processing_options; } if (this.data_processing_options_country || this.data_processing_options_country === 0) { serverEvent.data_processing_options_country = this.data_processing_options_country; } if (this.data_processing_options_state || this.data_processing_options_state === 0) { serverEvent.data_processing_options_state = this.data_processing_options_state; } if (this.advanced_measurement_table) { serverEvent.advanced_measurement_table = this.advanced_measurement_table; } if (this.advertiser_tracking_enabled === true || this.advertiser_tracking_enabled === false) { serverEvent.advertiser_tracking_enabled = this.advertiser_tracking_enabled; } if (this.messaging_channel) { serverEvent.messaging_channel = this.messaging_channel; } return serverEvent; }, "normalize") }, { key: "event_name", get: /* @__PURE__ */ __name(function get() { return this._event_name; }, "get"), set: /* @__PURE__ */ __name(function set(event_name) { this._event_name = event_name; }, "set") }, { key: "event_time", get: /* @__PURE__ */ __name(function get() { return this._event_time; }, "get"), set: /* @__PURE__ */ __name(function set(event_time) { this._event_time = event_time; }, "set") }, { key: "event_source_url", get: /* @__PURE__ */ __name(function get() { return this._event_source_url; }, "get"), set: /* @__PURE__ */ __name(function set(event_source_url) { this._event_source_url = event_source_url; }, "set") }, { key: "event_id", get: /* @__PURE__ */ __name(function get() { return this._event_id; }, "get"), set: /* @__PURE__ */ __name(function set(event_id) { this._event_id = event_id; }, "set") }, { key: "action_source", get: /* @__PURE__ */ __name(function get() { return this._action_source; }, "get"), set: /* @__PURE__ */ __name(function set(action_source) { this._action_source = action_source; }, "set") }, { key: "opt_out", get: /* @__PURE__ */ __name(function get() { return this._opt_out; }, "get"), set: /* @__PURE__ */ __name(function set(opt_out) { this._opt_out = opt_out; }, "set") }, { key: "user_data", get: /* @__PURE__ */ __name(function get() { return this._user_data; }, "get"), set: /* @__PURE__ */ __name(function set(user_data) { this._user_data = user_data; }, "set") }, { key: "custom_data", get: /* @__PURE__ */ __name(function get() { return this._custom_data; }, "get"), set: /* @__PURE__ */ __name(function set(custom_data) { this._custom_data = custom_data; }, "set") }, { key: "app_data", get: /* @__PURE__ */ __name(function get() { return this._app_data; }, "get"), set: /* @__PURE__ */ __name(function set(app_data) { this._app_data = app_data; }, "set") }, { key: "data_processing_options", get: /* @__PURE__ */ __name(function get() { return this._data_processing_options; }, "get"), set: /* @__PURE__ */ __name(function set(data_processing_options) { this._data_processing_options = data_processing_options; }, "set") }, { key: "data_processing_options_country", get: /* @__PURE__ */ __name(function get() { return this._data_processing_options_country; }, "get"), set: /* @__PURE__ */ __name(function set(data_processing_options_country) { this._data_processing_options_country = data_processing_options_country; }, "set") }, { key: "data_processing_options_state", get: /* @__PURE__ */ __name(function get() { return this._data_processing_options_state; }, "get"), set: /* @__PURE__ */ __name(function set(data_processing_options_state) { this._data_processing_options_state = data_processing_options_state; }, "set") }, { key: "advanced_measurement_table", get: /* @__PURE__ */ __name(function get() { return this._advanced_measurement_table; }, "get"), set: /* @__PURE__ */ __name(function set(advanced_measurement_table) { this._advanced_measurement_table = advanced_measurement_table; }, "set") }, { key: "advertiser_tracking_enabled", get: /* @__PURE__ */ __name(function get() { return this._advertiser_tracking_enabled; }, "get"), set: /* @__PURE__ */ __name(function set(advertiser_tracking_enabled) { this._advertiser_tracking_enabled = advertiser_tracking_enabled; }, "set") }, { key: "messaging_channel", get: /* @__PURE__ */ __name(function get() { return this._messaging_channel; }, "get"), set: /* @__PURE__ */ __name(function set(messaging_channel) { this._messaging_channel = messaging_channel; }, "set") }]); return ServerEvent2; }(); var EventRequest = function() { function EventRequest2(access_token, pixel_id) { var events = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; var partner_agent = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null; var test_event_code = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null; var namespace_id = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : null; var upload_id = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : null; var upload_tag = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : null; var upload_source = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : null; var debug_mode_flag = arguments.length > 9 && arguments[9] !== void 0 ? arguments[9] : false; var http_service = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : null; classCallCheck(this, EventRequest2); this._access_token = access_token; this._pixel_id = pixel_id; this._events = events; this._partner_agent = partner_agent; this._test_event_code = test_event_code; this._namespace_id = namespace_id; this._upload_id = upload_id; this._upload_tag = upload_tag; this._upload_source = upload_source; this._debug_mode = debug_mode_flag; this._http_service = http_service; this._api = FacebookAdsApi2.init(this._access_token); } __name(EventRequest2, "EventRequest"); createClass(EventRequest2, [{ key: "setEvents", /** * Sets the events for the request Payload for a Conversions API Event. * events is represented by a list/array of ServerEvent objects. * @param events for the current server event */ value: /* @__PURE__ */ __name(function setEvents(events) { this._events = events; return this; }, "setEvents") /** * Gets the partner_agent for the request * Allows you to specify the platform from which the event is sent e.g. wordpress */ }, { key: "setPartnerAgent", /** * Sets the partner_agent for the request * Allows you to specify the platform from which the event is sent e.g. wordpress * @param {String} partner_agent String value for the partner agent */ value: /* @__PURE__ */ __name(function setPartnerAgent(partner_agent) { this._partner_agent = partner_agent; return this; }, "setPartnerAgent") /** * Gets the test_event_code for the request * Code used to verify that your server events are received correctly by Facebook. * Use this code to test your server events in the Test Events feature in Events Manager. * See Test Events Tool @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/main-body#test_event_code} for an example. */ }, { key: "setTestEventCode", /** * Sets the test_event_code for the request * Code used to verify that your server events are received correctly by Facebook. * Use this code to test your server events in the Test Events feature in Events Manager. * See Test Events Tool @see {@link https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/main-body#test_event_code} for an example. */ value: /* @__PURE__ */ __name(function setTestEventCode(test_event_code) { this._test_event_code = test_event_code; return this; }, "setTestEventCode") /** * Gets the debug mode flag for the Graph API request */ }, { key: "setDebugMode", /** * Sets the debug mode flag for the Graph API request * @param {Boolean} debug_mode boolean value representing whether you want to send the request in debug mode to get detailed logging. */ value: /* @__PURE__ */ __name(function setDebugMode(debug_mode) { this._debug_mode = debug_mode; return this; }, "setDebugMode") /** * Gets the access token for the Graph API request */ }, { key: "setAccessToken", /** * Sets the access token for the Graph API request * @param {String} access_token string representing the access token that is used to make the Graph API. */ value: /* @__PURE__ */ __name(function setAccessToken(access_token) { this._access_token = access_token; return this; }, "setAccessToken") /** * Gets the pixel against which we send the events */ }, { key: "setPixelId", /** * Sets the pixel against which we send the events * @param {String} pixel_id String value for the pixel_id against which you want to send the events. */ value: /* @__PURE__ */ __name(function setPixelId(pixel_id) { this._pixel_id = pixel_id; return this; }, "setPixelId") /* Region Offline Conversion Fields */ /** * Gets the NamespaceId for the events */ }, { key: "setNamespaceId", /** * Sets the namespace_id for the events * @param {String} namespace_id Scope used to resolve extern_id or Third-party ID. Can be another data set or data partner ID. */ value: /* @__PURE__ */ __name(function setNamespaceId(namespace_id) { this._namespace_id = namespace_id; return this; }, "setNamespaceId") /** * Gets the Upload Tag for the current events upload */ }, { key: "setUploadTag", /** * Sets the upload_tag for the current events upload * @param {String} upload_tag Tag string added to Track your Offline event uploads */ value: /* @__PURE__ */ __name(function setUploadTag(upload_tag) { this._upload_tag = upload_tag; return this; }, "setUploadTag") /** * Gets the Upload Tag for the current events upload */ }, { key: "setUploadId", /** * Sets the upload_id for the current events upload * @param {String} upload_id Unique id used to denote the current set being uploaded */ value: /* @__PURE__ */ __name(function setUploadId(upload_id) { this._upload_id = upload_id; return this; }, "setUploadId") /** * Gets the Upload Tag for the current events upload */ }, { key: "setUploadSource", /** * Sets the upload_source for the current events upload * @param {String} upload_source origin/source of data for the dataset to be uploaded. */ value: /* @__PURE__ */ __name(function setUploadSource(upload_source) { this._upload_source = upload_source; return this; }, "setUploadSource") /** * Gets the http_service object for making the events request */ }, { key: "setHttpService", /** * Sets the http_service object for making the events request * @param {HttpServiceInterface} http_service */ value: /* @__PURE__ */ __name(function setHttpService(http_service) { this._http_service = http_service; return this; }, "setHttpService") /** * Executes the current event_request data by making a call to the Facebook Graph API. */ }, { key: "execute", value: /* @__PURE__ */ __name(function execute() { var fields = void 0, params = void 0; fields = []; params = {}; var normalized_events = []; for (var i = 0; i < this.events.length; i++) { var event = this.events[i]; var normalized_event = event.normalize.call(event); normalized_events.push(normalized_event); } if (this.debug_mode) { this._api.setDebug(true); } params = { "data": normalized_events, "partner_agent": this.partner_agent, "test_event_code": this.test_event_code, "namespace_id": this.namespace_id, "upload_id": this.upload_id, "upload_tag": this.upload_tag, "upload_source": this.upload_source, "access_token": this.access_token }; var http_service = void 0; if (this._http_service != null) { http_service = this._http_service; } else { http_service = HttpServiceClientConfig.getClient(); } if (http_service != null) { var url = [FacebookAdsApi2.GRAPH, FacebookAdsApi2.VERSION, this._pixel_id, "events"].join("/"); var headers = { "User-Agent": "fbbizsdk-nodejs-v" + FacebookAdsApi2.SDK_VERSION, "Content-Type": "application/json", "Accept": "application/json" }; return http_service.executeRequest(url, HttpMethod.POST, headers, params); } var adsPixelPromise = new AdsPixel(this._pixel_id).createEvent(fields, params); return adsPixelPromise.then(function(response) { return new EventResponse(response._data["events_received"], response._data["messages"], response._data["fbtrace_id"], response._data["id"], response._data["num_processed_entries"]); }); }, "execute") }, { key: "cloneWithoutEvents", value: /* @__PURE__ */ __name(function cloneWithoutEvents() { return new EventRequest2(this._access_token, this._pixel_id, [], this._partner_agent, this._test_event_code, this._namespace_id, this._upload_id, this._upload_tag, this._upload_source, this._debug_mode); }, "cloneWithoutEvents") }, { key: "events", get: /* @__PURE__ */ __name(function get() { return this._events; }, "get"), set: /* @__PURE__ */ __name(function set(events) { this._events = events; }, "set") }, { key: "partner_agent", get: /* @__PURE__ */ __name(function get() { return this._partner_agent; }, "get"), set: /* @__PURE__ */ __name(function set(partner_agent) { this._partner_agent = partner_agent; }, "set") }, { key: "test_event_code", get: /* @__PURE__ */ __name(function get() { return this._test_event_code; }, "get"), set: /* @__PURE__ */ __name(function set(test_event_code) { this._test_event_code = test_event_code; }, "set") }, { key: "debug_mode", get: /* @__PURE__ */ __name(function get() { return this._debug_mode; }, "get"), set: /* @__PURE__ */ __name(function set(debug_mode) { this._debug_mode = debug_mode; }, "set") }, { key: "access_token", get: /* @__PURE__ */ __name(function get() { return this._access_token; }, "get"), set: /* @__PURE__ */ __name(function set(access_token) { this._access_token = access_token; }, "set") }, { key: "pixel", get: /* @__PURE__ */ __name(function get() { return this._pixel_id; }, "get") /** * Sets the pixel against which we send the events * @param {String} pixel_id string value representing the Pixel's Id to which you are sending the events. */ }, { key: "pixel_id", set: /* @__PURE__ */ __name(function set(pixel_id) { this._pixel_id = pixel_id; }, "set") }, { key: "namespace_id", get: /* @__PURE__ */ __name(function get() { return this._namespace_id; }, "get"), set: /* @__PURE__ */ __name(function set(namespace_id) { this._namespace_id = namespace_id; }, "set") }, { key: "upload_tag", get: /* @__PURE__ */ __name(function get() { return this._upload_tag; }, "get"), set: /* @__PURE__ */ __name(function set(upload_tag) { this._upload_tag = upload_tag; }, "set") }, { key: "upload_id", get: /* @__PURE__ */ __name(function get() { return this._upload_id; }, "get"), set: /* @__PURE__ */ __name(function set(upload_id) { this._upload_id = upload_id; }, "set") }, { key: "upload_source", get: /* @__PURE__ */ __name(function get() { return this._upload_source; }, "get"), set: /* @__PURE__ */ __name(function set(upload_source) { this._upload_source = upload_source; }, "set") }, { key: "http_service", get: /* @__PURE__ */ __name(function get() { return this._http_service; }, "get"), set: /* @__PURE__ */ __name(function set(http_service) { this._http_service = http_service; }, "set") }]); return EventRequest2; }(); var BatchProcessor = function() { function BatchProcessor2(batch_size, concurrent_requests) { classCallCheck(this, BatchProcessor2); this._batch_size = batch_size; this._concurrent_requests = concurrent_requests; } __name(BatchProcessor2, "BatchProcessor"); createClass(BatchProcessor2, [{ key: "processEventRequestsGenerator", value: /* @__PURE__ */ __name(function* processEventRequestsGenerator(event_requests) { var start = 0; var end = this._concurrent_requests; var requests = event_requests.slice(start, end); while (requests.length > 0) { yield requests.map(function(request) { return request.execute(); }); start = end; end += this._concurrent_requests; requests = event_requests.slice(start, end); } return; }, "processEventRequestsGenerator") }, { key: "processEventRequests", value: function() { var _ref = asyncToGenerator(function* (event_requests) { var generator = this.processEventRequestsGenerator(event_requests); while (true) { var batch = generator.next().value; if (!batch || batch.length === 0) { generator.return(); return; } yield Promise.all(batch); } }); function processEventRequests(_x) { return _ref.apply(this, arguments); } __name(processEventRequests, "processEventRequests"); return processEventRequests; }() }, { key: "processEventsGenerator", value: /* @__PURE__ */ __name(function* processEventsGenerator(event_request_to_clone, all_events) { var index = 0; while (index < all_events.length) { var event_requests = []; while (index < all_events.length && event_requests.length < this._concurrent_requests) { var event_request = event_request_to_clone.cloneWithoutEvents(); var events = all_events.slice(index, index + this._batch_size); event_request.setEvents(events); event_requests.push(event_request); index += this._batch_size; } yield event_requests.map(function(request) { return request.execute(); }); } return; }, "processEventsGenerator") }, { key: "processEvents", value: function() { var _ref2 = asyncToGenerator(function* (event_request_to_clone, all_events) { var generator = this.processEventsGenerator(event_request_to_clone, all_events); while (true) { var batch = generator.next().value; if (!batch || batch.length === 0) { generator.return(); return; } yield Promise.all(batch); } }); function processEvents(_x2, _x3) { return _ref2.apply(this, arguments); } __name(processEvents, "processEvents"); return processEvents; }() }]); return BatchProcessor2; }(); var UserData$3 = function() { function UserData2(email, phone, first_name, last_name, date_of_birth, city, state, zip, country, external_id, address) { classCallCheck(this, UserData2); this._email = email; this._phone = phone; this._first_name = first_name; this._last_name = last_name; this._date_of_birth = date_of_birth; this._city = city; this._state = state; this._country = country; this._zip = zip; this._external_id = external_id; this._address = address; } __name(UserData2, "UserData"); createClass(UserData2, [{ key: "setEmail", /** * Sets the email address for the user data field. * @param {String} email An email address, in lowercase. * Example: joe@eg.com */ value: /* @__PURE__ */ __name(function setEmail(email) { this._email = email; return this; }, "setEmail") /** * Gets the phone number for the user data. * A phone number. Include only digits with country code, area code, and number. * Example: 16505551212 */ }, { key: "setPhone", /** * Sets the phone number for the user data. * @param {String} phone A phone number. Include only digits with country code, area code, and number. * Example: 16505551212 */ value: /* @__PURE__ */ __name(function setPhone(phone) { this._phone = phone; return this; }, "setPhone") /** * Gets the date of birth for the user data. * A date of birth given as year, month, and day in the Format YYYYMMDD * Example: 19971226 for December 26, 1997. */ }, { key: "setDateOfBirth", /** * Sets the date of birth for the user data. * @param {String} date_of_birth A date of birth given as year, month, and day in the Format YYYYMMDD * Example: 19971226 for December 26, 1997. */ value: /* @__PURE__ */ __name(function setDateOfBirth(date_of_birth) { this._date_of_birth = date_of_birth; return this; }, "setDateOfBirth") /** * Gets the last name for the user data. * last_name is the last name in lowercase. * Example: smith */ }, { key: "setLastName", /** * Sets the last name for the user data. * @param {String} last_name is last name in lowercase. * Example: smith */ value: /* @__PURE__ */ __name(function setLastName(last_name) { this._last_name = last_name; return this; }, "setLastName") /** * Gets the first name for the user data. * first_name is first name in lowercase. * Example: joe */ }, { key: "setFirstName", /** * Sets the first name for the user data. * @param {String} first_name is first name in lowercase. * Example: joe */ value: /* @__PURE__ */ __name(function setFirstName(first_name) { this._first_name = first_name; return this; }, "setFirstName") /** * Gets the city for the user data. * city is city in lower-case without spaces or punctuation. * Example: menlopark */ }, { key: "setCity", /** * Sets the city for the user data. * @param {String} city is city in lower-case without spaces or punctuation. * Example: menlopark */ value: /* @__PURE__ */ __name(function setCity(city) { this._city = city; return this; }, "setCity") /** * Gets the zip/postal code for the user data. * zip is a five-digit zip code for United States.For other locations, follow each country's standards. * Example: 98121 (for United States zip code) */ }, { key: "setZip", /** * Sets the zip/postal code for the user data. * @param {String} zip is a five-digit zip code for United States.For other locations, follow each country's standards. * Example: 98121 (for United States zip code) */ value: /* @__PURE__ */ __name(function setZip(zip) { this._zip = zip; return this; }, "setZip") /** * Gets the state for the user data. * state is state in lower-case without spaces or punctuation. * Example: ca */ }, { key: "setState", /** * Sets the state for the user data. * @param {String} state is state in lower-case without spaces or punctuation. * Example: ca */ value: /* @__PURE__ */ __name(function setState(state) { this._state = state; return this; }, "setState") /** * Gets the country for the user data. * country is A two-letter country code in lowercase. * Example: usa */ }, { key: "setCountry", /** * Sets the country for the user data. * @param {String} country is A two-letter country code in lowercase. * Example: usa */ value: /* @__PURE__ */ __name(function setCountry(country) { this._country = country; return this; }, "setCountry") /** * Gets the external id for the user data. * external_id is a unique ID from the business, such as loyalty membership IDs, user IDs, and external cookie IDs. */ }, { key: "setExternalId", /** * Sets the external id for the user data. * @param {String} external_id is a unique ID from the business, such as loyalty membership IDs, user IDs, and external cookie IDs. */ value: /* @__PURE__ */ __name(function setExternalId(external_id) { this._external_id = external_id; return this; }, "setExternalId") /** * Gets the address for the user data. * address is a physical address */ }, { key: "setAddress", /** * Sets the address for the user data. * @param {String} address is a physical address */ value: /* @__PURE__ */ __name(function setAddress(address) { this._address = address; }, "setAddress") /** * Convert to Json object for api call */ }, { key: "toJson", value: /* @__PURE__ */ __name(function toJson() { return { "em": this._email, "ph": this._phone, "fn": this._first_name, "ln": this._last_name, "db": this._date_of_birth, "ct": this._city, "st": this._state, "country": this._country, "zp": this._zip, "external_id": this._external_id, "addr": this._address }; }, "toJson") }, { key: "email", get: /* @__PURE__ */ __name(function get() { return this._email; }, "get"), set: /* @__PURE__ */ __name(function set(email) { this._email = email; }, "set") }, { key: "phone", get: /* @__PURE__ */ __name(function get() { return this._phone; }, "get"), set: /* @__PURE__ */ __name(function set(phone) { this._phone = phone; }, "set") }, { key: "date_of_birth", get: /* @__PURE__ */ __name(function get() { return this._date_of_birth; }, "get"), set: /* @__PURE__ */ __name(function set(date_of_birth) { this._date_of_birth = date_of_birth; }, "set") }, { key: "last_name", get: /* @__PURE__ */ __name(function get() { return this._last_name; }, "get"), set: /* @__PURE__ */ __name(function set(last_name) { this._last_name = last_name; }, "set") }, { key: "first_name", get: /* @__PURE__ */ __name(function get() { return this._first_name; }, "get"), set: /* @__PURE__ */ __name(function set(first_name) { this._first_name = first_name; }, "set") }, { key: "city", get: /* @__PURE__ */ __name(function get() { return this._city; }, "get"), set: /* @__PURE__ */ __name(function set(city) { this._city = city; }, "set") }, { key: "zip", get: /* @__PURE__ */ __name(function get() { return this._zip; }, "get"), set: /* @__PURE__ */ __name(function set(zip) { this._zip = zip; }, "set") }, { key: "state", get: /* @__PURE__ */ __name(function get() { return this._state; }, "get"), set: /* @__PURE__ */ __name(function set(state) { this._state = state; }, "set") }, { key: "country", get: /* @__PURE__ */ __name(function get() { return this._country; }, "get"), set: /* @__PURE__ */ __name(function set(country) { this._country = country; }, "set") }, { key: "external_id", get: /* @__PURE__ */ __name(function get() { return this._external_id; }, "get"), set: /* @__PURE__ */ __name(function set(external_id) { this._external_id = external_id; }, "set") }, { key: "address", get: /* @__PURE__ */ __name(function get() { return this._address; }, "get"), set: /* @__PURE__ */ __name(function set(address) { this._address = address; }, "set") }]); return UserData2; }(); var Utils$2 = function() { function Utils2() { classCallCheck(this, Utils2); } __name(Utils2, "Utils"); createClass(Utils2, null, [{ key: "constructResponse", /** * construct set method return * @param any server_return * @param any bdapi_return * @return {Object} combined server field and business data field return */ value: /* @__PURE__ */ __name(function constructResponse(server_return, bdapi_return) { return { "conversion_api": server_return, "business_data_api": bdapi_return }; }, "constructResponse") }]); return Utils2; }(); var UserData$1 = function() { function UserData$$1(email, phone, first_name, last_name, date_of_birth, city, state, zip, country, external_id, gender, client_ip_address, client_user_agent, fbp, fbc, subscription_id, fb_login_id, lead_id, dobd, dobm, doby, f5first, f5last, fi, address) { classCallCheck(this, UserData$$1); this._business_data_user_data = new UserData$3(email, phone, first_name, last_name, date_of_birth, city, state, zip, country, external_id, address); this._server_user_data = new UserData(email, phone, gender, first_name, last_name, date_of_birth, city, state, zip, country, external_id, client_ip_address, client_user_agent, fbp, fbc, subscription_id, fb_login_id, lead_id, dobd, dobm, doby); this._server_user_data.f5first = f5first; this._server_user_data.f5last = f5last; this._server_user_data.fi = fi; } __name(UserData$$1, "UserData$$1"); createClass(UserData$$1, [{ key: "setEmail", /** * Sets the email address for the user data field. * @param {String} email An email address, in lowercase. * Example: joe@eg.com */ value: /* @__PURE__ */ __name(function setEmail(email) { this._business_data_user_data.email = email; this._server_user_data.email = email; return this; }, "setEmail") /** * Gets the phone number for the user data. * A phone number. Include only digits with country code, area code, and number. * Example: 16505551212 */ }, { key: "setPhone", /** * Sets the phone number for the user data. * @param {String} phone A phone number. Include only digits with country code, area code, and number. * Example: 16505551212 */ value: /* @__PURE__ */ __name(function setPhone(phone) { this._business_data_user_data.phone = phone; this._server_user_data.phone = phone; return this; }, "setPhone") /** * Gets the date of birth for the user data. * A date of birth given as year, month, and day in the Format YYYYMMDD * Example: 19971226 for December 26, 1997. */ }, { key: "setDateOfBirth", /** * Sets the date of birth for the user data. * @param {String} date_of_birth A date of birth given as year, month, and day in the Format YYYYMMDD * Example: 19971226 for December 26, 1997. */ value: /* @__PURE__ */ __name(function setDateOfBirth(date_of_birth) { this._business_data_user_data.date_of_birth = date_of_birth; this._server_user_data.date_of_birth = date_of_birth; return this; }, "setDateOfBirth") /** * Gets the last name for the user data. * last_name is the last name in lowercase. * Example: smith */ }, { key: "setLastName", /** * Sets the last name for the user data. * @param {String} last_name is last name in lowercase. * Example: smith */ value: /* @__PURE__ */ __name(function setLastName(last_name) { this._business_data_user_data.last_name = last_name; this._server_user_data.last_name = last_name; return this; }, "setLastName") /** * Gets the first name for the user data. * first_name is first name in lowercase. * Example: joe */ }, { key: "setFirstName", /** * Sets the first name for the user data. * @param {String} first_name is first name in lowercase. * Example: joe */ value: /* @__PURE__ */ __name(function setFirstName(first_name) { this._business_data_user_data.first_name = first_name; this._server_user_data.first_name = first_name; return this; }, "setFirstName") /** * Gets the city for the user data. * city is city in lower-case without spaces or punctuation. * Example: menlopark */ }, { key: "setCity", /** * Sets the city for the user data. * @param {String} city is city in lower-case without spaces or punctuation. * Example: menlopark */ value: /* @__PURE__ */ __name(function setCity(city) { this._business_data_user_data.city = city; this._server_user_data.city = city; return this; }, "setCity") /** * Gets the zip/postal code for the user data. * zip is a five-digit zip code for United States.For other locations, follow each country's standards. * Example: 98121 (for United States zip code) */ }, { key: "setZip", /** * Sets the zip/postal code for the user data. * @param {String} zip is a five-digit zip code for United States.For other locations, follow each country's standards. * Example: 98121 (for United States zip code) */ value: /* @__PURE__ */ __name(function setZip(zip) { this._business_data_user_data.zip = zip; this._server_user_data.zip = zip; return this; }, "setZip") /** * Gets the state for the user data. * state is state in lower-case without spaces or punctuation. * Example: ca */ }, { key: "setState", /** * Sets the state for the user data. * @param {String} state is state in lower-case without spaces or punctuation. * Example: ca */ value: /* @__PURE__ */ __name(function setState(state) { this._business_data_user_data.state = state; this._server_user_data.state = state; return this; }, "setState") /** * Gets the country for the user data. * country is A two-letter country code in lowercase. * Example: usa */ }, { key: "setCountry", /** * Sets the country for the user data. * @param {String} country is A two-letter country code in lowercase. * Example: usa */ value: /* @__PURE__ */ __name(function setCountry(country) { this._business_data_user_data.country = country; this._server_user_data.country = country; return this; }, "setCountry") /** * Gets the external id for the user data. * external_id is a unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs. * In the Offline Conversions API this is known as extern_id. For more information, see Offline Conversions. * If External ID is being sent via other channels, then it should be sent in the same format via the server-side API * @see {@link https://www.facebook.com/business/help/104039186799009} */ }, { key: "setExternalId", /** * Sets the external id for the user data. * @param {String} external_id is a unique ID from the advertiser, such as loyalty membership IDs, user IDs, and external cookie IDs. * In the Offline Conversions API this is known as extern_id. For more information, see Offline Conversions. * If External ID is being sent via other channels, then it should be sent in the same format via the server-side API * @see {@link https://www.facebook.com/business/help/104039186799009} */ value: /* @__PURE__ */ __name(function setExternalId(external_id) { this._business_data_user_data.external_id = external_id; this._server_user_data.external_id = external_id; return this; }, "setExternalId") /** * Gets the gender value for the user data. * Gender in lowercase. Either f for FEMALE or m for MALE. * Example: f */ }, { key: "setGender", /** * Sets the gender value for the user data. * @param {String} gender Gender in lowercase. Either f for FEMALE or m for MALE. * Example: f */ value: /* @__PURE__ */ __name(function setGender(gender) { this._server_user_data.gender = gender; return this; }, "setGender") /** * Gets the client ip address for the user data. * client_ip_address is the IP address of the browser corresponding to the event. */ }, { key: "setClientIpAddress", /** * Sets the client ip address for the user data. * @param {String} client_ip_address is the IP address of the browser corresponding to the event. */ value: /* @__PURE__ */ __name(function setClientIpAddress(client_ip_address) { this._server_user_data.client_ip_address = client_ip_address; return this; }, "setClientIpAddress") /** * Gets the client user agent for the user data. * client_user_agent is the user agent for the browser corresponding to the event. */ }, { key: "setClientUserAgent", /** * Sets the client user agent for the user data. * @param {String} client_user_agent is the user agent for the browser corresponding to the event. */ value: /* @__PURE__ */ __name(function setClientUserAgent(client_user_agent) { this._server_user_data.client_user_agent = client_user_agent; return this; }, "setClientUserAgent") /** * Gets the fbc for the user data. * fbc is the Facebook click ID value stored in the _fbc browser cookie under your domain. * See Managing fbc and fbp Parameters for how to get this value @see {@link https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/parameters#fbc}, * You can also generate this value from a fbclid query parameter. */ }, { key: "setFbc", /** * Sets the fbc for the user data. * @param {String} fbc is the Facebook click ID value stored in the _fbc browser cookie under your domain. * See Managing fbc and fbp Parameters for how to get this value @see {@link https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/parameters#fbc}, * You can also generate this value from a fbclid query parameter. */ value: /* @__PURE__ */ __name(function setFbc(fbc) { this._server_user_data.fbc = fbc; return this; }, "setFbc") /** * Gets the fbp for the user data. * fbp is Facebook browser ID value stored in the _fbp browser cookie under your domain. * See Managing fbc and fbp Parameters for how to get this value @see {@link https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/parameters#fbp}, */ }, { key: "setFbp", /** * Sets the fbp for the user data. * @param {String} fbp is Facebook browser ID value stored in the _fbp browser cookie under your domain. * See Managing fbc and fbp Parameters for how to get this value @see {@link https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api/parameters#fbp}, */ value: /* @__PURE__ */ __name(function setFbp(fbp) { this._server_user_data.fbp = fbp; return this; }, "setFbp") /** * Gets the subscription id for the user data. * @return subscription_id is the subscription ID for the user in this transaction. This is similar to the order ID for an individual product. * Example: anid1234. */ }, { key: "setSubscriptionId", /** * Sets the subscription id for the user data. * @param {String} subscription_id is the subscription ID for the user in this transaction. This is similar to the order ID for an individual product. * Example: anid1234. */ value: /* @__PURE__ */ __name(function setSubscriptionId(subscription_id) { this._server_user_data.subscription_id = subscription_id; return this; }, "setSubscriptionId") /** * Gets the fb_login_id for the user data. */ }, { key: "setFbLoginId", /** * Sets the fb_login_id for the user data. * @param {String} fb_login_id */ value: /* @__PURE__ */ __name(function setFbLoginId(fb_login_id) { this._server_user_data.fb_login_id = fb_login_id; return this; }, "setFbLoginId") /** * Gets the lead_id for the user data. Lead ID is associated with a lead generated by Facebook's Lead Ads. */ }, { key: "setLeadId", /** * Sets the lead_id for the user data. Lead ID is associated with a lead generated by Facebook's Lead Ads. * @param {String} lead_id */ value: /* @__PURE__ */ __name(function setLeadId(lead_id) { this._server_user_data.lead_id = lead_id; return this; }, "setLeadId") /** * Gets the first 5 characters of the FirstName. */ }, { key: "setF5First", /** * Sets the first 5 characters of the FirstName. * @param {String} f5first */ value: /* @__PURE__ */ __name(function setF5First(f5first) { this._server_user_data.f5first = f5first; return this; }, "setF5First") /** * Gets the first 5 characters of the LastName. */ }, { key: "setF5Last", /** * Sets the first 5 characters of the LastName. * @param {String} f5last */ value: /* @__PURE__ */ __name(function setF5Last(f5last) { this._server_user_data.f5last = f5last; return this; }, "setF5Last") /** * Gets the first Name Initial. */ }, { key: "setFi", /** * Sets the first Name Initial. * @param {String} fi */ value: /* @__PURE__ */ __name(function setFi(fi) { this._server_user_data.fi = fi; return this; }, "setFi") /** * Gets the date of birth day. */ }, { key: "setDobd", /** * Sets the date of birth day. * @param {String} dobd */ value: /* @__PURE__ */ __name(function setDobd(dobd) { this._server_user_data.dobd = dobd; return this; }, "setDobd") /** * Gets the date of birth month. */ }, { key: "setDobm", /** * Sets the date of birth month. * @param {String} dobm */ value: /* @__PURE__ */ __name(function setDobm(dobm) { this._server_user_data.dobm = dobm; return this; }, "setDobm") /** * Gets the date of birth year. */ }, { key: "setDoby", /** * Sets the date of birth year. * @param {String} doby */ value: /* @__PURE__ */ __name(function setDoby(doby) { this._server_user_data.doby = doby; return this; }, "setDoby") /** * Gets the address for the user data. * address is a physical address */ }, { key: "setAddress", /** * Sets the date of birth year. * @param {String} address */ value: /* @__PURE__ */ __name(function setAddress(address) { this._business_data_user_data.address = address; return this; }, "setAddress") /** * Gets the user_data for the Business Data API. */ }, { key: "email", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.email, this._business_data_user_data.email); }, "get"), set: /* @__PURE__ */ __name(function set(email) { this._business_data_user_data._email = email; this._server_user_data._email = email; }, "set") }, { key: "phone", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.phone, this._business_data_user_data.phone); }, "get"), set: /* @__PURE__ */ __name(function set(phone) { this._business_data_user_data.phone = phone; this._server_user_data.phone = phone; }, "set") }, { key: "date_of_birth", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.date_of_birth, this._business_data_user_data.date_of_birth); }, "get"), set: /* @__PURE__ */ __name(function set(date_of_birth) { this._business_data_user_data.date_of_birth = date_of_birth; this._server_user_data.date_of_birth = date_of_birth; }, "set") }, { key: "last_name", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.last_name, this._business_data_user_data.last_name); }, "get"), set: /* @__PURE__ */ __name(function set(last_name) { this._business_data_user_data.last_name = last_name; this._server_user_data.last_name = last_name; }, "set") }, { key: "first_name", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.first_name, this._business_data_user_data.first_name); }, "get"), set: /* @__PURE__ */ __name(function set(first_name) { this._business_data_user_data.first_name = first_name; this._server_user_data.first_name = first_name; }, "set") }, { key: "city", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.city, this._business_data_user_data.city); }, "get"), set: /* @__PURE__ */ __name(function set(city) { this._business_data_user_data.city = city; this._server_user_data.city = city; }, "set") }, { key: "zip", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.zip, this._business_data_user_data.zip); }, "get"), set: /* @__PURE__ */ __name(function set(zip) { this._business_data_user_data.zip = zip; this._server_user_data.zip = zip; }, "set") }, { key: "state", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.state, this._business_data_user_data.state); }, "get"), set: /* @__PURE__ */ __name(function set(state) { this._business_data_user_data.state = state; this._server_user_data.state = state; }, "set") }, { key: "country", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.country, this._business_data_user_data.country); }, "get"), set: /* @__PURE__ */ __name(function set(country) { this._business_data_user_data.country = country; this._server_user_data.country = country; }, "set") }, { key: "external_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.external_id, this._business_data_user_data.external_id); }, "get"), set: /* @__PURE__ */ __name(function set(external_id) { this._business_data_user_data.external_id = external_id; this._server_user_data.external_id = external_id; }, "set") }, { key: "gender", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.gender, null); }, "get"), set: /* @__PURE__ */ __name(function set(gender) { this._server_user_data.gender = gender; }, "set") }, { key: "client_ip_address", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.client_ip_address, null); }, "get"), set: /* @__PURE__ */ __name(function set(client_ip_address) { this._server_user_data.client_ip_address = client_ip_address; }, "set") }, { key: "client_user_agent", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.client_user_agent, null); }, "get"), set: /* @__PURE__ */ __name(function set(client_user_agent) { this._server_user_data.client_user_agent = client_user_agent; }, "set") }, { key: "fbc", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.fbc, null); }, "get"), set: /* @__PURE__ */ __name(function set(fbc) { this._server_user_data.fbc = fbc; }, "set") }, { key: "fbp", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.fbp, null); }, "get"), set: /* @__PURE__ */ __name(function set(fbp) { this._server_user_data.fbp = fbp; }, "set") }, { key: "subscription_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.subscription_id, null); }, "get"), set: /* @__PURE__ */ __name(function set(subscription_id) { this._server_user_data.subscription_id = subscription_id; }, "set") }, { key: "fb_login_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.fb_login_id, null); }, "get"), set: /* @__PURE__ */ __name(function set(fb_login_id) { this._server_user_data.fb_login_id = fb_login_id; }, "set") }, { key: "lead_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.lead_id, null); }, "get"), set: /* @__PURE__ */ __name(function set(lead_id) { this._server_user_data.lead_id = lead_id; }, "set") }, { key: "f5first", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.f5first, null); }, "get"), set: /* @__PURE__ */ __name(function set(f5first) { this._server_user_data.f5first = f5first; }, "set") }, { key: "f5last", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.f5last, null); }, "get"), set: /* @__PURE__ */ __name(function set(f5last) { this._server_user_data.f5last = f5last; }, "set") }, { key: "fi", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.fi, null); }, "get"), set: /* @__PURE__ */ __name(function set(fi) { this._server_user_data.fi = fi; }, "set") }, { key: "dobd", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.dobd, null); }, "get"), set: /* @__PURE__ */ __name(function set(dobd) { this._server_user_data.dobd = dobd; }, "set") }, { key: "dobm", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.dobm, null); }, "get"), set: /* @__PURE__ */ __name(function set(dobm) { this._server_user_data.dobm = dobm; }, "set") }, { key: "doby", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_user_data.doby, null); }, "get"), set: /* @__PURE__ */ __name(function set(doby) { this._server_user_data.doby = doby; }, "set") }, { key: "address", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(null, this._business_data_user_data.address); }, "get"), set: /* @__PURE__ */ __name(function set(address) { this._business_data_user_data.address = address; }, "set") }, { key: "business_data_user_data", get: /* @__PURE__ */ __name(function get() { return this._business_data_user_data; }, "get") /** * Gets the user_data for the Conversion API. */ }, { key: "server_user_data", get: /* @__PURE__ */ __name(function get() { return this._server_user_data; }, "get") }]); return UserData$$1; }(); var Content$3 = function() { function Content2(id, quantity, price, title2, tax, external_content_id) { classCallCheck(this, Content2); this._id = id; this._quantity = quantity; this._price = price; this._title = title2; this._external_content_id = external_content_id; this._tax = tax; } __name(Content2, "Content"); createClass(Content2, [{ key: "setId", /** * Sets the Product Id of the Item. * @param {String} id is a string representing the unique id for the product. * Example: XYZ. */ value: /* @__PURE__ */ __name(function setId(id) { this._id = id; return this; }, "setId") /** * Gets the quantity of the Item. * The number/quantity of the content that is being involved in the customer interaction. * Example: 5 */ }, { key: "setQuantity", /** * Sets the quantity of the Content/Item. * @param {Number} quantity The number/quantity of the product that is being involved in the customer interaction. * Example: 5 */ value: /* @__PURE__ */ __name(function setQuantity(quantity) { this._quantity = quantity; return this; }, "setQuantity") /** * Gets the total price of the Item. * The total price for the products that are being involved in the customer interaction. * Example: '123.45' */ }, { key: "setPrice", /** * Sets the total price of the Item. * @param {Number} price The total price for the products that are being involved in the customer interaction. * Example: '123.45' */ value: /* @__PURE__ */ __name(function setPrice(price) { this._price = price; return this; }, "setPrice") /** * Gets the Title of the listed Item. * A string representing the Title for the product. */ }, { key: "setTitle", /** * Sets the Title of the Item. * @param {String} title is a string representing listed title for the product. */ value: /* @__PURE__ */ __name(function setTitle(title2) { this._title = title2; return this; }, "setTitle") /** * Gets the total tax of the Item. * The total tax for the products that are being involved in the customer interaction. * Example: 45.5 */ }, { key: "setTax", /** * Sets the total tax of the Item. * @param {Number} tax The total tax for the products that are being involved in the customer interaction. * Example: 45.5 */ value: /* @__PURE__ */ __name(function setTax(tax) { this._tax = tax; return this; }, "setTax") /** * Gets the external id for this order item * The external id for the products that are being involved in the customer interaction. */ }, { key: "setExternalContentID", /** * Sets the external id for this order item * @param {String} external_content_id The external id for the products that are being involved in the customer interaction. */ value: /* @__PURE__ */ __name(function setExternalContentID(external_content_id) { this._external_content_id = external_content_id; return this; }, "setExternalContentID") /** * Convert to Json object for api call */ }, { key: "toJson", value: /* @__PURE__ */ __name(function toJson() { return { "id": this._id, "quantity": this._quantity, "price": this._price, "title": this._title, "tax": this._tax, "external_content_id": this._external_content_id }; }, "toJson") }, { key: "id", get: /* @__PURE__ */ __name(function get() { return this._id; }, "get"), set: /* @__PURE__ */ __name(function set(id) { this._id = id; }, "set") }, { key: "quantity", get: /* @__PURE__ */ __name(function get() { return this._quantity; }, "get"), set: /* @__PURE__ */ __name(function set(quantity) { this._quantity = quantity; }, "set") }, { key: "price", get: /* @__PURE__ */ __name(function get() { return this._price; }, "get"), set: /* @__PURE__ */ __name(function set(price) { this._price = price; }, "set") }, { key: "title", get: /* @__PURE__ */ __name(function get() { return this._title; }, "get"), set: /* @__PURE__ */ __name(function set(title2) { this._title = title2; }, "set") }, { key: "tax", get: /* @__PURE__ */ __name(function get() { return this._tax; }, "get"), set: /* @__PURE__ */ __name(function set(tax) { this._tax = tax; }, "set") }, { key: "external_content_id", get: /* @__PURE__ */ __name(function get() { return this._external_content_id; }, "get"), set: /* @__PURE__ */ __name(function set(external_content_id) { this._external_content_id = external_content_id; }, "set") }]); return Content2; }(); var Content$1 = function() { function Content$$1(id, quantity, price, item_price, title2, description, brand, category, delivery_category, tax, external_content_id) { classCallCheck(this, Content$$1); this._business_data_content = new Content$3(id, quantity, price, title2, tax, external_content_id); this._server_content = new Content(id, quantity, item_price, title2, description, brand, category, delivery_category); } __name(Content$$1, "Content$$1"); createClass(Content$$1, [{ key: "setId", /** * Sets the Product Id of the Item. * @param id is a string representing the unique id for the product. * Example: XYZ. */ value: /* @__PURE__ */ __name(function setId(id) { this._server_content.id = id; this._business_data_content.id = id; return this; }, "setId") /** * Gets the quantity of the Item. * The number/quantity of the content that is being involved in the customer interaction. * Example: 5 */ }, { key: "setQuantity", /** * Sets the quantity of the Content/Item. * @param {Number} quantity The number/quantity of the product that is being involved in the customer interaction. * Example: 5 */ value: /* @__PURE__ */ __name(function setQuantity(quantity) { this._server_content.quantity = quantity; this._business_data_content.quantity = quantity; return this; }, "setQuantity") /** * Gets the item price for the Product. * The item_price or price per unit of the product. * Example: '123.45' */ }, { key: "setItemPrice", /** * Sets the item price for the Content. * @param {Number} item_price The item_price or price per unit of the product. * Example: '123.45' */ value: /* @__PURE__ */ __name(function setItemPrice(item_price) { this._server_content.item_price = item_price; return this; }, "setItemPrice") /** * Gets the Title of the listed Item. * A string representing the Title for the product. */ }, { key: "setTitle", /** * Sets the Title of the Item. * @param title is a string representing listed title for the product. */ value: /* @__PURE__ */ __name(function setTitle(title2) { this._server_content.title = title2; this._business_data_content.title = title2; return this; }, "setTitle") /** * Gets the Description of the listed Item. * A string representing the Description for the product. */ }, { key: "setDescription", /** * Sets the Product Description of the Item. * @param description is a string representing the description for the product. */ value: /* @__PURE__ */ __name(function setDescription(description) { this._server_content.description = description; return this; }, "setDescription") /** * Gets the Brand of the listed Item. * A string representing the Brand for the product. */ }, { key: "setBrand", /** * Sets the Brand of the Product. * @param brand is a string representing the Brand for the product. */ value: /* @__PURE__ */ __name(function setBrand(brand) { this._server_content.brand = brand; return this; }, "setBrand") /** * Gets the Category of the listed Item. * A string representing the Category for the product. */ }, { key: "setCategory", /** * Sets the Category of the Product. * @param category is a string representing the Category for the product. */ value: /* @__PURE__ */ __name(function setCategory(category) { this._server_content.category = category; return this; }, "setCategory") /** * Gets the delivery category. */ }, { key: "setDeliveryCategory", /** * Sets the type of delivery for a purchase event. * @param {String} delivery_category The delivery category. */ value: /* @__PURE__ */ __name(function setDeliveryCategory(delivery_category) { this._server_content.delivery_category = delivery_category; return this; }, "setDeliveryCategory") /** * Gets the total tax of the Item. * The total tax for the products that are being involved in the customer interaction. * Example: 45.5 */ }, { key: "setTax", /** * Sets the total tax of the Item. * @param {Number} tax The total tax for the products that are being involved in the customer interaction. * Example: 45.5 */ value: /* @__PURE__ */ __name(function setTax(tax) { this._business_data_content.tax = tax; return this; }, "setTax") /** * Gets the external id for this order item * The external id for the products that are being involved in the customer interaction. */ }, { key: "setExternalContentId", /** * Sets the total tax of the Item. * @param {String} external_content_id The total tax for the products that are being involved in the customer interaction. */ value: /* @__PURE__ */ __name(function setExternalContentId(external_content_id) { this._business_data_content.external_content_id = external_content_id; return this; }, "setExternalContentId") /** * Gets the total price of the Item. * The total price for the products that are being involved in the customer interaction. * Example: '123.45' */ }, { key: "setPrice", /** * Sets the total price of the Item. * @param {Number} price The total price for the products that are being involved in the customer interaction. * Example: '123.45' */ value: /* @__PURE__ */ __name(function setPrice(price) { this._business_data_content.price = price; return this; }, "setPrice") /** * Gets the constructed content for Business Data API */ }, { key: "id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_content.id, this._business_data_content.id); }, "get"), set: /* @__PURE__ */ __name(function set(id) { this._server_content.id = id; this._business_data_content.id = id; }, "set") }, { key: "quantity", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_content.quantity, this._business_data_content.quantity); }, "get"), set: /* @__PURE__ */ __name(function set(quantity) { this._server_content.quantity = quantity; this._business_data_content.quantity = quantity; }, "set") }, { key: "item_price", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_content.item_price, null); }, "get"), set: /* @__PURE__ */ __name(function set(item_price) { this._server_content.item_price = item_price; }, "set") }, { key: "title", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_content.title, this._business_data_content.title); }, "get"), set: /* @__PURE__ */ __name(function set(title2) { this._server_content.title = title2; this._business_data_content.title = title2; }, "set") }, { key: "description", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_content.description, null); }, "get"), set: /* @__PURE__ */ __name(function set(description) { this._server_content.description = description; }, "set") }, { key: "brand", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_content.brand, null); }, "get"), set: /* @__PURE__ */ __name(function set(brand) { this._server_content.brand = brand; }, "set") }, { key: "category", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_content.category, null); }, "get"), set: /* @__PURE__ */ __name(function set(category) { this._server_content.category = category; }, "set") }, { key: "delivery_category", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_content.delivery_category, null); }, "get"), set: /* @__PURE__ */ __name(function set(delivery_category) { this._server_content.delivery_category = delivery_category; }, "set") }, { key: "tax", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(null, this._business_data_content.tax); }, "get"), set: /* @__PURE__ */ __name(function set(tax) { this._business_data_content.tax = tax; }, "set") }, { key: "external_content_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(null, this._business_data_content.external_content_id); }, "get"), set: /* @__PURE__ */ __name(function set(external_content_id) { this._business_data_content.external_content_id = external_content_id; }, "set") }, { key: "price", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(null, this._business_data_content.price); }, "get"), set: /* @__PURE__ */ __name(function set(price) { this._business_data_content.price = price; }, "set") }, { key: "business_data_content", get: /* @__PURE__ */ __name(function get() { return this._business_data_content; }, "get") /** * Gets the constructed content for Conversion API */ }, { key: "server_content", get: /* @__PURE__ */ __name(function get() { return this._server_content; }, "get") }]); return Content$$1; }(); var CustomData$3 = function() { function CustomData2(value, currency, contents, order_id, status, shipping_contact, billing_contact, external_order_id, original_order_id, message) { classCallCheck(this, CustomData2); this._value = value; this._currency = currency; this._contents = contents; this._order_id = order_id; this._status = status; this._shipping_contact = shipping_contact; this._billing_contact = billing_contact; this._external_order_id = external_order_id; this._original_order_id = original_order_id; this._message = message; } __name(CustomData2, "CustomData"); createClass(CustomData2, [{ key: "setValue", /** * Sets the value of the custom data. * @param {Number} value A numeric value associated with this event. This could be a monetary value or a value in some other metric. * Example: 142.54. */ value: /* @__PURE__ */ __name(function setValue(value) { this._value = value; return this; }, "setValue") /** * Gets the currency for the custom data. * The currency for the value specified, if applicable. Currency must be a valid ISO 4217 three digit currency code. * Example: 'usd' */ }, { key: "setCurrency", /** * Sets the currency for the custom data. * @param {String} currency The currency for the value specified, if applicable. Currency must be a valid ISO 4217 three digit currency code. * Example: 'usd' */ value: /* @__PURE__ */ __name(function setCurrency(currency) { this._currency = currency; return this; }, "setCurrency") /** * Gets the contents for the custom data. * An array of Content objects that contain the product IDs associated with the event plus information about the products. * Example: [{'id':'ABC123','quantity' :2,'price':5.99}, {'id':'XYZ789','quantity':2, 'price':9.99}] */ }, { key: "setContents", /** * Sets the contents for the custom data. * @param { Array< Content >} contents An array of Content objects that contain the product IDs associated with the event plus information about the products. * Example: [{'id':'ABC123','quantity' :2,'item_price':5.99}, {'id':'XYZ789','quantity':2, 'item_price':9.99}] */ value: /* @__PURE__ */ __name(function setContents(contents) { this._contents = contents; return this; }, "setContents") /** * Gets the order id for the custom data. * order_id is the order ID for this transaction as a String. * Example: 'order1234' */ }, { key: "setOrderId", /** * Sets the order_id for the custom data. * @param {String} order_id The order ID for this transaction as a String. * Example: 'order1234' */ value: /* @__PURE__ */ __name(function setOrderId(order_id) { this._order_id = order_id; return this; }, "setOrderId") /** * Gets the status of order. * Status of the order, as a String. */ }, { key: "setStatus", /** * Sets the status of the registration event. * @param {String} status Status of the registration event, as a String. */ value: /* @__PURE__ */ __name(function setStatus(status) { this._status = status; return this; }, "setStatus") /** * Gets the shipping contact of the order. * An Object contains the user data of shipping contact. Use {UserData} to construct the object. */ }, { key: "setShippingContact", /** * Sets the shipping contact of the order. * @param {UserData} shipping_contact An Object contains the user data of shipping contact. Use {UserData} to construct the object. */ value: /* @__PURE__ */ __name(function setShippingContact(shipping_contact) { this._shipping_contact = shipping_contact; return this; }, "setShippingContact") /** * Gets the billing contact of the order. * An Object contains the user data of billing contact. Use {UserData} to construct the object. */ }, { key: "setBillingContact", /** * Sets the billing contact of the order. * @param {UserData} billing_contact An Object contains the user data of billing contact. Use {UserData} to construct the object. */ value: /* @__PURE__ */ __name(function setBillingContact(billing_contact) { this._billing_contact = billing_contact; return this; }, "setBillingContact") /** * Gets the unique id of the order. * Unique ID representing the order, universal across multiple categories from the business. */ }, { key: "setExternalOrderId", /** * Sets the unique id of the order. * @param {String} external_order_id Unique ID representing the order, universal across multiple categories from the business. */ value: /* @__PURE__ */ __name(function setExternalOrderId(external_order_id) { this._external_order_id = external_order_id; return this; }, "setExternalOrderId") /** * Gets the unique id of the original order. * Original order id for refund. For Refund event only. */ }, { key: "setOriginalOrderId", /** * Sets the unique id of the original order. * @param {String} original_order_id Original order id for refund. For Refund event only. */ value: /* @__PURE__ */ __name(function setOriginalOrderId(original_order_id) { this._original_order_id = original_order_id; return this; }, "setOriginalOrderId") /** * Gets the unique id of the original order. * Reason for refund. For Refund event only. */ }, { key: "setMessage", /** * Sets the unique id of the original order. * @param {String} message Reason for refund. For Refund event only. */ value: /* @__PURE__ */ __name(function setMessage(message) { this._message = message; return this; }, "setMessage") /** * Convert to Json object for api call */ }, { key: "toJson", value: /* @__PURE__ */ __name(function toJson() { var contents = this._contents ? this._contents.map(function(content) { return content.toJson(); }) : []; return { "value": this._value, "currency": this._currency, "contents": contents, "order_id": this._order_id, "status": this._status, "shipping_contact": this._shipping_contact.toJson(), "billing_contact": this._billing_contact.toJson(), "external_order_id": this._external_order_id, "original_order_id": this._original_order_id, "message": this._message }; }, "toJson") }, { key: "value", get: /* @__PURE__ */ __name(function get() { return this._value; }, "get"), set: /* @__PURE__ */ __name(function set(value) { this._value = value; }, "set") }, { key: "currency", get: /* @__PURE__ */ __name(function get() { return this._currency; }, "get"), set: /* @__PURE__ */ __name(function set(currency) { this._currency = currency; }, "set") }, { key: "contents", get: /* @__PURE__ */ __name(function get() { return this._contents; }, "get"), set: /* @__PURE__ */ __name(function set(contents) { this._contents = contents; }, "set") }, { key: "order_id", get: /* @__PURE__ */ __name(function get() { return this._order_id; }, "get"), set: /* @__PURE__ */ __name(function set(order_id) { this._order_id = order_id; }, "set") }, { key: "status", get: /* @__PURE__ */ __name(function get() { return this._status; }, "get"), set: /* @__PURE__ */ __name(function set(status) { this._status = status; }, "set") }, { key: "shipping_contact", get: /* @__PURE__ */ __name(function get() { return this._shipping_contact; }, "get"), set: /* @__PURE__ */ __name(function set(shipping_contact) { this._shipping_contact = shipping_contact; }, "set") }, { key: "billing_contact", get: /* @__PURE__ */ __name(function get() { return this._billing_contact; }, "get"), set: /* @__PURE__ */ __name(function set(billing_contact) { this._billing_contact = billing_contact; }, "set") }, { key: "external_order_id", get: /* @__PURE__ */ __name(function get() { return this._external_order_id; }, "get"), set: /* @__PURE__ */ __name(function set(external_order_id) { this._external_order_id = external_order_id; }, "set") }, { key: "original_order_id", get: /* @__PURE__ */ __name(function get() { return this._original_order_id; }, "get"), set: /* @__PURE__ */ __name(function set(original_order_id) { this._original_order_id = original_order_id; }, "set") }, { key: "message", get: /* @__PURE__ */ __name(function get() { return this._message; }, "get"), set: /* @__PURE__ */ __name(function set(message) { this._message = message; }, "set") }]); return CustomData2; }(); var CustomData$1 = function() { function CustomData$$1(value, currency, content_name, content_category, content_ids, contents, content_type, order_id, predicted_ltv, num_items, search_string, status, item_number, delivery_category, custom_properties, shipping_contact, billing_contact, external_order_id, original_order_id, message) { classCallCheck(this, CustomData$$1); var business_data_contents = contents != void 0 ? contents.map(function(content) { return content.business_data_content; }) : []; var server_contents = contents != void 0 ? contents.map(function(content) { return content.server_content; }) : []; var business_data_shipping_contact = shipping_contact != void 0 ? shipping_contact.business_data_user_data : shipping_contact; var business_data_billing_contact = billing_contact != void 0 ? billing_contact.business_data_user_data : billing_contact; this._business_data_custom_data = new CustomData$3(value, currency, business_data_contents, order_id, status, business_data_shipping_contact, business_data_billing_contact, external_order_id, original_order_id, message); this._server_custom_data = new CustomData(value, currency, content_name, content_category, content_ids, server_contents, content_type, order_id, predicted_ltv, num_items, search_string, status, item_number, delivery_category, custom_properties); } __name(CustomData$$1, "CustomData$$1"); createClass(CustomData$$1, [{ key: "setValue", /** * Sets the value of the custom data. * @param {Number} value A numeric value associated with this event. This could be a monetary value or a value in some other metric. * Example: 142.54. */ value: /* @__PURE__ */ __name(function setValue(value) { this._business_data_custom_data.value = value; this._server_custom_data.value = value; return this; }, "setValue") /** * Gets the currency for the custom data. * The currency for the value specified, if applicable. Currency must be a valid ISO 4217 three digit currency code. * Example: 'usd' */ }, { key: "setCurrency", /** * Sets the currency for the custom data. * @param {String} currency The currency for the value specified, if applicable. Currency must be a valid ISO 4217 three digit currency code. * Example: 'usd' */ value: /* @__PURE__ */ __name(function setCurrency(currency) { this._business_data_custom_data.currency = currency; this._server_custom_data.currency = currency; return this; }, "setCurrency") /** * Gets the contents for the custom data. * An array of Content objects that contain the product IDs associated with the event plus information about the products. id, quantity, and item_price are available fields. * Example: [{'id':'ABC123','quantity' :2,'item_price':5.99}, {'id':'XYZ789','quantity':2, 'item_price':9.99}] */ }, { key: "setContents", /** * Sets the contents for the custom data. * @param {Array<Content>} contents An array of Content objects that contain the product IDs associated with the event plus information about the products. id, quantity, and item_price are available fields. * Example: [{'id':'ABC123','quantity' :2,'item_price':5.99}, {'id':'XYZ789','quantity':2, 'item_price':9.99}] */ value: /* @__PURE__ */ __name(function setContents(contents) { var business_data_contents = contents.map(function(content) { return content.business_data_content; }); var server_contents = contents.map(function(content) { return content.server_content; }); this._business_data_custom_data.contents = business_data_contents; this._server_custom_data.contents = server_contents; return this; }, "setContents") /** * Gets the order id for the custom data. * order_id is the order ID for this transaction as a String. * Example: 'order1234' */ }, { key: "setOrderId", /** * Sets the order_id for the custom data. * @param {String} order_id The order ID for this transaction as a String. * Example: 'order1234' */ value: /* @__PURE__ */ __name(function setOrderId(order_id) { this._business_data_custom_data.order_id = order_id; this._server_custom_data.order_id = order_id; return this; }, "setOrderId") /** * Status of the registration in Registration event or Status of the order in Purchase/UpdateOrder event. * - Used only with CompleteRegistration events for Conversion API. * - Used only with Purchase or UpdateOrder events for Business Data API */ }, { key: "setStatus", /** * Sets status of the registration in Registration event or status of the order in Purchase/UpdateOrder event. * - Used only with CompleteRegistration events for Conversion API. * - Used only with Purchase or UpdateOrder events for Business Data API * @param {String} status status, as a String. */ value: /* @__PURE__ */ __name(function setStatus(status) { this._server_custom_data.status = status; this._business_data_custom_data.status = status; return this; }, "setStatus") /** * Gets the content name for the custom data. The name of the page or product associated with the event. * The name of the page or product associated with the event. * Example: 'lettuce' */ }, { key: "setContentName", /** * Sets the content name for the custom data. * @param content_name The name of the page or product associated with the event. * Example: 'lettuce' */ value: /* @__PURE__ */ __name(function setContentName(content_name) { this._server_custom_data.content_name = content_name; return this; }, "setContentName") /** * Gets the content category for the custom data. * The category of the content associated with the event. * Example: 'grocery' */ }, { key: "setContentCategory", /** * Sets the content_category for the custom data. * @param content_category The category of the content associated with the event. * Example: 'grocery' */ value: /* @__PURE__ */ __name(function setContentCategory(content_category) { this._server_custom_data.content_category = content_category; return this; }, "setContentCategory") /** * Gets the content_ids for the custom data. * The content IDs associated with the event, such as product SKUs for items in an AddToCart, represented as Array of string. * If content_type is a product, then your content IDs must be an array with a single string value. Otherwise, this array can contain any number of string values. * Example: ['ABC123', 'XYZ789'] */ }, { key: "setContentIds", /** * Sets the content_ids for the custom data. * @param {Array} content_ids The content IDs associated with the event, such as product SKUs for items in an AddToCart, represented as Array of string. * If content_type is a product, then your content IDs must be an array with a single string value. Otherwise, this array can contain any number of string values. * Example: ['ABC123', 'XYZ789'] */ value: /* @__PURE__ */ __name(function setContentIds(content_ids) { this._server_custom_data.content_ids = content_ids; return this; }, "setContentIds") /** * Gets the content type for the custom data. * A String equal to either product or product_group. Set to product if the keys you send content_ids or contents represent products. * Set to product_group if the keys you send in content_ids represent product groups. */ }, { key: "setContentType", /** * Sets the content type for the custom data. * @param {String} content_type A string equal to either product or product_group. Set to product if the keys you send content_ids or contents represent products. * Set to product_group if the keys you send in content_ids represent product groups. */ value: /* @__PURE__ */ __name(function setContentType(content_type) { this._server_custom_data.content_type = content_type; return this; }, "setContentType") /** * Gets the predicted LifeTimeValue for the (user) in custom data. * The predicted lifetime value of a conversion event, as a String. * Example: '432.12' */ }, { key: "setPredictedLtv", /** * Sets the predicted LifeTimeValue for the custom data. * @param {Number} predicted_ltv The predicted lifetime value of a conversion event, as a String. * Example: '432.12' */ value: /* @__PURE__ */ __name(function setPredictedLtv(predicted_ltv) { this._server_custom_data.predicted_ltv = predicted_ltv; return this; }, "setPredictedLtv") /** * Gets the number of items for the custom data. * The number of items that a user tries to buy during checkout. Use only with InitiateCheckout type events. * Example: 5 */ }, { key: "setNumItems", /** * Sets the number of items for the custom data. * @param {Number} num_items The number of items that a user tries to buy during checkout. Use only with InitiateCheckout type events. * Example: 5 */ value: /* @__PURE__ */ __name(function setNumItems(num_items) { this._server_custom_data.num_items = num_items; return this; }, "setNumItems") /** * Gets the search string for the custom data. * A search query made by a user.Use only with Search events. * Eg: 'lettuce' */ }, { key: "setSearchString", /** * Sets the search string for the custom data. * @param search_string A search query made by a user.Use only with Search events. * Eg: 'lettuce' */ value: /* @__PURE__ */ __name(function setSearchString(search_string) { this._server_custom_data.search_string = search_string; return this; }, "setSearchString") /** * Gets the item number. */ }, { key: "setItemNumber", /** * Sets the item number. * @param {String} item_number The item number. */ value: /* @__PURE__ */ __name(function setItemNumber(item_number) { this._server_custom_data.item_number = item_number; return this; }, "setItemNumber") /** * Gets the delivery category. */ }, { key: "setDeliveryCategory", /** * Sets the type of delivery for a purchase event. * @param {String} delivery_category The delivery category. */ value: /* @__PURE__ */ __name(function setDeliveryCategory(delivery_category) { this._server_custom_data.delivery_category = delivery_category; return this; }, "setDeliveryCategory") /** * Gets the custom properties to be included in the Custom Data. * If our predefined object properties don't suit your needs, you can include your own, custom properties. Custom properties can be used with both standard and custom events, and can help you further define custom audiences. * This behavior is the same for Server-Side API and Facebook Pixel. * @see {@link https://developers.facebook.com/docs/marketing-api/server-side-api/parameters/custom-data#custom-properties} * Eg: '{ 'warehouse_location' : 'washington', 'package_size' : 'L'}' */ }, { key: "setCustomProperties", /** * Sets the search string for the custom data. * @param custom_properties A custom properties property bag to be included in the Custom Data. * If our predefined object properties don't suit your needs, you can include your own, custom properties. Custom properties can be used with both standard and custom events, and can help you further define custom audiences. * This behavior is the same for Server-Side API and Facebook Pixel. * @see {@link https://developers.facebook.com/docs/marketing-api/server-side-api/parameters/custom-data#custom-properties} * Eg: '{ 'warehouse_location' : 'washington', 'package_size' : 'L'}' * * @returns {Object} custom_properties property bag. */ value: /* @__PURE__ */ __name(function setCustomProperties(custom_properties) { this._server_custom_data.custom_properties = custom_properties; return this; }, "setCustomProperties") /** * Adds the custom property (key, value) to the custom property bag. * @param {string} key The Key for the property to be added. * @param {string} value The Value for the property to be added. */ }, { key: "add_custom_property", value: /* @__PURE__ */ __name(function add_custom_property(key, value) { if (this._server_custom_data.custom_properties == null) { this._server_custom_data.custom_properties = {}; } this._server_custom_data.custom_properties[key] = value; }, "add_custom_property") /** * Gets the shipping_contact for Purchase/Update Order event. * shipping_contact of an order */ }, { key: "setShippingContact", /** * Sets the shipping_contact for Purchase/Update Order event. * @param {SignalUserData} shipping_contact shipping contact of an order, use {SignalUserData} to build */ value: /* @__PURE__ */ __name(function setShippingContact(shipping_contact) { this._business_data_custom_data.shipping_contact = shipping_contact.business_data_user_data; return this; }, "setShippingContact") /** * Gets the billing_contact for Purchase/Update Order event. * billing_contact of an order */ }, { key: "setBillingContact", /** * Sets the billing_contact for Purchase/Update Order event. * @param {SignalUserData} billing_contact billing contact of an order, use {SignalUserData} to build */ value: /* @__PURE__ */ __name(function setBillingContact(billing_contact) { this._business_data_custom_data.billing_contact = billing_contact.business_data_user_data; return this; }, "setBillingContact") /** * Gets the unique id of the order. * Unique ID representing the order, universal across multiple categories from the business. */ }, { key: "setExternalOrderId", /** * Sets the unique id of the order. * @param {String} external_order_id Unique ID representing the order, universal across multiple categories from the business. */ value: /* @__PURE__ */ __name(function setExternalOrderId(external_order_id) { this._business_data_custom_data.external_order_id = external_order_id; return this; }, "setExternalOrderId") /** * Gets the unique id of the original order. * Original order id for refund. For Refund event only. */ }, { key: "setOriginalOrderId", /** * Sets the unique id of the original order. * @param {String} original_order_id Original order id for refund. For Refund event only. */ value: /* @__PURE__ */ __name(function setOriginalOrderId(original_order_id) { this._business_data_custom_data.original_order_id = original_order_id; return this; }, "setOriginalOrderId") /** * Gets the unique id of the original order. * Reason for refund. For Refund event only. */ }, { key: "setMessage", /** * Sets the unique id of the original order. * @param {String} message Reason for refund. For Refund event only. */ value: /* @__PURE__ */ __name(function setMessage(message) { this._business_data_custom_data.message = message; return this; }, "setMessage") /** * Gets the constructed custom data for Business Data API */ }, { key: "value", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.value, this._business_data_custom_data.value); }, "get"), set: /* @__PURE__ */ __name(function set(value) { this._business_data_custom_data.value = value; this._server_custom_data.value = value; }, "set") }, { key: "currency", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.currency, this._business_data_custom_data.currency); }, "get"), set: /* @__PURE__ */ __name(function set(currency) { this._business_data_custom_data.currency = currency; this._server_custom_data.currency = currency; }, "set") }, { key: "contents", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.contents, this._business_data_custom_data.contents); }, "get"), set: /* @__PURE__ */ __name(function set(contents) { var business_data_contents = contents.map(function(content) { return content.business_data_content; }); var server_contents = contents.map(function(content) { return content.server_content; }); this._business_data_custom_data.contents = business_data_contents; this._server_custom_data.contents = server_contents; }, "set") }, { key: "order_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.order_id, this._business_data_custom_data.order_id); }, "get"), set: /* @__PURE__ */ __name(function set(order_id) { this._business_data_custom_data.order_id = order_id; this._server_custom_data.order_id = order_id; }, "set") }, { key: "status", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.status, this._business_data_custom_data.status); }, "get"), set: /* @__PURE__ */ __name(function set(status) { this._server_custom_data.status = status; this._business_data_custom_data.status = status; }, "set") }, { key: "content_name", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.content_name, null); }, "get"), set: /* @__PURE__ */ __name(function set(content_name) { this._server_custom_data.content_name = content_name; }, "set") }, { key: "content_category", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.content_category, null); }, "get"), set: /* @__PURE__ */ __name(function set(content_category) { this._server_custom_data.content_category = content_category; }, "set") }, { key: "content_ids", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.content_ids, null); }, "get"), set: /* @__PURE__ */ __name(function set(content_ids) { this._server_custom_data.content_ids = content_ids; }, "set") }, { key: "content_type", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.content_type, null); }, "get"), set: /* @__PURE__ */ __name(function set(content_type) { this._server_custom_data.content_type = content_type; }, "set") }, { key: "predicted_ltv", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.predicted_ltv, null); }, "get"), set: /* @__PURE__ */ __name(function set(predicted_ltv) { this._server_custom_data.predicted_ltv = predicted_ltv; }, "set") }, { key: "num_items", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.num_items, null); }, "get"), set: /* @__PURE__ */ __name(function set(num_items) { this._server_custom_data.num_items = num_items; }, "set") }, { key: "search_string", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.search_string, null); }, "get"), set: /* @__PURE__ */ __name(function set(search_string) { this._server_custom_data.search_string = search_string; }, "set") }, { key: "item_number", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.item_number, null); }, "get"), set: /* @__PURE__ */ __name(function set(item_number) { this._server_custom_data.item_number = item_number; }, "set") }, { key: "delivery_category", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.delivery_category, null); }, "get"), set: /* @__PURE__ */ __name(function set(delivery_category) { this._server_custom_data.delivery_category = delivery_category; }, "set") }, { key: "custom_properties", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_custom_data.custom_properties, null); }, "get"), set: /* @__PURE__ */ __name(function set(custom_properties) { this._server_custom_data.custom_properties = custom_properties; }, "set") }, { key: "shipping_contact", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(null, this._business_data_custom_data.shipping_contact); }, "get"), set: /* @__PURE__ */ __name(function set(shipping_contact) { this._business_data_custom_data.shipping_contact = shipping_contact.business_data_user_data; }, "set") }, { key: "billing_contact", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(null, this._business_data_custom_data.billing_contact); }, "get"), set: /* @__PURE__ */ __name(function set(billing_contact) { this._business_data_custom_data.billing_contact = billing_contact.business_data_user_data; }, "set") }, { key: "external_order_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(null, this._business_data_custom_data.external_order_id); }, "get"), set: /* @__PURE__ */ __name(function set(external_order_id) { this._business_data_custom_data.external_order_id = external_order_id; }, "set") }, { key: "original_order_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(null, this._business_data_custom_data.original_order_id); }, "get"), set: /* @__PURE__ */ __name(function set(original_order_id) { this._business_data_custom_data.original_order_id = original_order_id; }, "set") }, { key: "message", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(null, this._business_data_custom_data.message); }, "get"), set: /* @__PURE__ */ __name(function set(message) { this._business_data_custom_data.message = message; }, "set") }, { key: "business_data_custom_data", get: /* @__PURE__ */ __name(function get() { return this._business_data_custom_data; }, "get") /** * Gets the constructed custom data for Business Data API */ }, { key: "server_custom_data", get: /* @__PURE__ */ __name(function get() { return this._server_custom_data; }, "get") }]); return CustomData$$1; }(); var Event$4 = function() { function Event2(event_name, event_time, user_data, custom_data, event_id, data_processing_options, data_processing_options_country, data_processing_options_state) { classCallCheck(this, Event2); this._event_name = event_name; this._event_time = event_time; this._user_data = user_data; this._custom_data = custom_data; this.event_id = event_id; this._data_processing_options = data_processing_options; this._data_processing_options_country = data_processing_options_country; this._data_processing_options_state = data_processing_options_state; } __name(Event2, "Event"); createClass(Event2, [{ key: "toJson", /** * Convert to Json object for api call */ value: /* @__PURE__ */ __name(function toJson() { return { "event_name": this._event_name, "event_time": this._event_time, "event_id": this._event_id, "user_data": this._user_data.toJson(), "custom_data": this._custom_data.toJson(), "data_processing_options": this._data_processing_options, "data_processing_options_country": this._data_processing_options_country, "data_processing_options_state": this._data_processing_options_state }; }, "toJson") }, { key: "event_name", get: /* @__PURE__ */ __name(function get() { return this._event_name; }, "get"), set: /* @__PURE__ */ __name(function set(event_name) { this._event_name = event_name; }, "set") /** * Gets the Event Time when the current Event happened. */ }, { key: "event_time", get: /* @__PURE__ */ __name(function get() { return this._event_time; }, "get"), set: /* @__PURE__ */ __name(function set(event_time) { this._event_time = event_time; }, "set") /** * Gets the event_id for the current Event. */ }, { key: "event_id", get: /* @__PURE__ */ __name(function get() { return this._event_id; }, "get"), set: /* @__PURE__ */ __name(function set(event_id) { this._event_id = event_id; }, "set") /** * Gets the user data object for the current Event. */ }, { key: "user_data", get: /* @__PURE__ */ __name(function get() { return this._user_data; }, "get"), set: /* @__PURE__ */ __name(function set(user_data) { this._user_data = user_data; }, "set") /** * Gets the custom data object for the current Event. */ }, { key: "custom_data", get: /* @__PURE__ */ __name(function get() { return this._custom_data; }, "get"), set: /* @__PURE__ */ __name(function set(custom_data) { this._custom_data = custom_data; }, "set") /** * Gets the data_processing_options for the current event. * Processing options you would like to enable for a specific event. */ }, { key: "data_processing_options", get: /* @__PURE__ */ __name(function get() { return this._data_processing_options; }, "get"), set: /* @__PURE__ */ __name(function set(data_processing_options) { this._data_processing_options = data_processing_options; }, "set") /** * Gets the data_processing_options_country for the current event. * A country that you want to associate to this data processing option. * @see {@link https://developers.facebook.com/docs/marketing-apis/data-processing-options} */ }, { key: "data_processing_options_country", get: /* @__PURE__ */ __name(function get() { return this._data_processing_options_country; }, "get"), set: /* @__PURE__ */ __name(function set(data_processing_options_country) { this._data_processing_options_country = data_processing_options_country; }, "set") /** * Gets the data_processing_options_state for the current event. * A state that you want to associate with this data processing option. */ }, { key: "data_processing_options_state", get: /* @__PURE__ */ __name(function get() { return this._data_processing_options_state; }, "get"), set: /* @__PURE__ */ __name(function set(data_processing_options_state) { this._data_processing_options_state = data_processing_options_state; }, "set") }]); return Event2; }(); var Event$2 = function() { function Event2(event_name, event_time, event_source_url, user_data, custom_data, event_id, opt_out, action_source, data_processing_options, data_processing_options_country, data_processing_options_state) { classCallCheck(this, Event2); var business_data_user_data = user_data != void 0 ? user_data.business_data_user_data : user_data; var server_user_data = user_data != void 0 ? user_data.server_user_data : user_data; var business_data_custom_data = custom_data != void 0 ? custom_data.business_data_custom_data : custom_data; var server_custom_data = custom_data != void 0 ? custom_data.server_custom_data : custom_data; this._business_data_event = new Event$4(event_name, event_time, business_data_user_data, business_data_custom_data, event_id, data_processing_options, data_processing_options_country, data_processing_options_state); this._server_event = new ServerEvent(event_name, event_time, event_source_url, server_user_data, server_custom_data, event_id, opt_out, action_source, data_processing_options, data_processing_options_country, data_processing_options_state); } __name(Event2, "Event"); createClass(Event2, [{ key: "setEventName", /** * Sets the Event Name for the current Event. * @param {String} event_name Facebook pixel Standard Event or Custom Event name. */ value: /* @__PURE__ */ __name(function setEventName(event_name) { this._server_event.event_name = event_name; this._business_data_event.event_name = event_name; return this; }, "setEventName") /** * Gets the Event Time when the current Event happened. */ }, { key: "setEventTime", /** * Sets the Event Time when the current Event happened. * @param {Number} event_time is a Unix timestamp in seconds indicating when the actual event occurred. */ value: /* @__PURE__ */ __name(function setEventTime(event_time) { this._server_event.event_time = event_time; this._business_data_event.event_time = event_time; return this; }, "setEventTime") /** * Gets the browser url source for the current event. */ }, { key: "setEventSourceUrl", /** * Sets the browser url source for the current event. * @param {String} event_source_url The browser URL where the event happened. */ value: /* @__PURE__ */ __name(function setEventSourceUrl(event_source_url) { this._server_event.event_source_url = event_source_url; return this; }, "setEventSourceUrl") /** * Gets the event_id for the current Event. */ }, { key: "setEventId", /** * Sets the event Id for the current Event. * @param {String} event_id can be any string chosen by the advertiser. This is used with event_name to determine if events are identical for Conversion API. */ value: /* @__PURE__ */ __name(function setEventId(event_id) { this._server_event.event_id = event_id; this._business_data_event.event_id = event_id; return this; }, "setEventId") /** * Gets the action_source for the current event. The Action Source represents where the action took place. */ }, { key: "setActionSource", /** * Sets the action_source for the current event. * @param {String} action_source represents where the action took place. One of {'physical_store','app','chat','email','other','phone_call','system_generated','website'} */ value: /* @__PURE__ */ __name(function setActionSource(action_source) { this._server_event.action_source = action_source; return this; }, "setActionSource") /** * Gets the opt_out feature for the current event.opt_out is a boolean flag that indicates we should not use this event for ads delivery optimization. If set to true, we only use the event for attribution. */ }, { key: "setOptOut", /** * Sets the opt_out feature for the current event. * @param {Boolean} opt_out is a boolean flag that indicates we should not use this event for ads delivery optimization. If set to true, we only use the event for attribution. */ value: /* @__PURE__ */ __name(function setOptOut(opt_out) { this._server_event.opt_out = opt_out; return this; }, "setOptOut") /** * Gets the user data objects for Business Data API and Conversion API. * @param user_data contains user data, use SignalUserData to construct */ }, { key: "setUserData", /** * Sets the user data objects for Business Data API and Conversion API. * @param {SignalUserData} user_data contains user data, use SignalUserData to construct */ value: /* @__PURE__ */ __name(function setUserData(user_data) { this._server_event.user_data = user_data.server_user_data; this._business_data_event.user_data = user_data.business_data_user_data; return this; }, "setUserData") /** * Gets the custom data objects for Business Data API and Conversion API. */ }, { key: "setCustomData", /** * Sets the custom data objects for Business Data API and Conversion API. * @param {SignalCustomData} custom_data contains custom data, use SignalCustomData to construct */ value: /* @__PURE__ */ __name(function setCustomData(custom_data) { this._server_event.custom_data = custom_data.server_custom_data; this._business_data_event.custom_data = custom_data.business_data_custom_data; return this; }, "setCustomData") /** * Gets the data_processing_options for the current event. * Processing options you would like to enable for a specific event. */ }, { key: "setDataProcessingOptions", /** * Sets the data_processing_options for the current event. * @param {Array<string>} data_processing_options represents Data processing options you would like to enable for a specific event, e.g. [] or ['LDU'] */ value: /* @__PURE__ */ __name(function setDataProcessingOptions(data_processing_options) { this._server_event.data_processing_options = data_processing_options; this._business_data_event.data_processing_options = data_processing_options; return this; }, "setDataProcessingOptions") /** * Gets the data_processing_options_country for the current event. * A country that you want to associate to this data processing option. */ }, { key: "setDataProcessingOptionsCountry", /** * Sets the data_processing_options_country for the current event. * @param {number} data_processing_options_country represents country that you want to associate to this data processing option. */ value: /* @__PURE__ */ __name(function setDataProcessingOptionsCountry(data_processing_options_country) { this._server_event.data_processing_options_country = data_processing_options_country; this._business_data_event.data_processing_options_country = data_processing_options_country; return this; }, "setDataProcessingOptionsCountry") /** * Gets the data_processing_options_state for the current event. * A state that you want to associate with this data processing option. */ }, { key: "setDataProcessingOptionsState", /** * Sets the data_processing_options_state for the current event. * @param {number} data_processing_options_state represents state that you want to associate with this data processing option. */ value: /* @__PURE__ */ __name(function setDataProcessingOptionsState(data_processing_options_state) { this._server_event.data_processing_options_state = data_processing_options_state; this._business_data_event.data_processing_options_state = data_processing_options_state; return this; }, "setDataProcessingOptionsState") /** * Gets the constructed custom data for Business Data API */ }, { key: "toJson", /** * Convert to Json object for api call */ value: /* @__PURE__ */ __name(function toJson() { var business_data_event = this._business_data_event.toJson(); var server_event = this._server_event.normalize(); return Utils$2.constructResponse(server_event, business_data_event); }, "toJson") }, { key: "event_name", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.event_name, this._business_data_event.event_name); }, "get"), set: /* @__PURE__ */ __name(function set(event_name) { this._server_event.event_name = event_name; this._business_data_event.event_name = event_name; }, "set") }, { key: "event_time", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.event_time, this._business_data_event.event_time); }, "get"), set: /* @__PURE__ */ __name(function set(event_time) { this._server_event.event_time = event_time; this._business_data_event.event_time = event_time; }, "set") }, { key: "event_source_url", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.event_source_url, null); }, "get"), set: /* @__PURE__ */ __name(function set(event_source_url) { this._server_event.event_source_url = event_source_url; }, "set") }, { key: "event_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.event_id, this._business_data_event.event_id); }, "get"), set: /* @__PURE__ */ __name(function set(event_id) { this._server_event.event_id = event_id; this._business_data_event.event_id = event_id; }, "set") }, { key: "action_source", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.action_source, null); }, "get"), set: /* @__PURE__ */ __name(function set(action_source) { this._server_event.action_source = action_source; }, "set") }, { key: "opt_out", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.opt_out, null); }, "get"), set: /* @__PURE__ */ __name(function set(opt_out) { this._server_event.opt_out = opt_out; }, "set") }, { key: "user_data", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.user_data, this._business_data_event.user_data); }, "get"), set: /* @__PURE__ */ __name(function set(user_data) { this._server_event.user_data = user_data.server_user_data; this._business_data_event.user_data = user_data.business_data_user_data; }, "set") }, { key: "custom_data", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.custom_data, this._business_data_event.custom_data); }, "get"), set: /* @__PURE__ */ __name(function set(custom_data) { this._server_event.custom_data = custom_data.server_custom_data; this._business_data_event.custom_data = custom_data.business_data_custom_data; }, "set") }, { key: "data_processing_options", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.data_processing_options, this._business_data_event.data_processing_options); }, "get"), set: /* @__PURE__ */ __name(function set(data_processing_options) { this._server_event.data_processing_options = data_processing_options; this._business_data_event.data_processing_options = data_processing_options; }, "set") }, { key: "data_processing_options_country", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.data_processing_options_country, this._business_data_event.data_processing_options_country); }, "get"), set: /* @__PURE__ */ __name(function set(data_processing_options_country) { this._server_event.data_processing_options_country = data_processing_options_country; this._business_data_event.data_processing_options_country = data_processing_options_country; }, "set") }, { key: "data_processing_options_state", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event.data_processing_options_state, this._business_data_event.data_processing_options_state); }, "get"), set: /* @__PURE__ */ __name(function set(data_processing_options_state) { this._server_event.data_processing_options_state = data_processing_options_state; this._business_data_event.data_processing_options_state = data_processing_options_state; }, "set") }, { key: "business_data_event", get: /* @__PURE__ */ __name(function get() { return this._business_data_event; }, "get") /** * Gets the constructed custom data for Business Data API */ }, { key: "server_event", get: /* @__PURE__ */ __name(function get() { return this._server_event; }, "get") }]); return Event2; }(); var EventResponse$2 = function() { function EventResponse2(events_received, events_dropped) { var message = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; classCallCheck(this, EventResponse2); this._events_received = events_received; this._events_dropped = events_dropped; this._message = message; } __name(EventResponse2, "EventResponse"); createClass(EventResponse2, [{ key: "setEventsReceived", /** * Sets the events received number for the Graph API Response. * events_received is represented by integer. * @param {Number} events_received representing the number of events received for the event Request */ value: /* @__PURE__ */ __name(function setEventsReceived(events_received) { this._events_received = events_received; return this; }, "setEventsReceived") /** * Gets the events dropped number from the Graph API Response. */ }, { key: "setEventsDropped", /** * Sets the events dropped number for the Graph API Response. * events_dropped is represented by integer. * @param {Number} events_dropped representing the number of events dropped during events processing */ value: /* @__PURE__ */ __name(function setEventsDropped(events_dropped) { this._events_dropped = events_dropped; return this; }, "setEventsDropped") /** * Gets the messages from the response received from Graph API. * @return messages in the event Response */ }, { key: "setMessage", /** * Sets the messages as array for the response received from Graph API. * @param {Array} message in the event Response */ value: /* @__PURE__ */ __name(function setMessage(message) { this._message = message; return this; }, "setMessage") }, { key: "events_received", get: /* @__PURE__ */ __name(function get() { return this._events_received; }, "get"), set: /* @__PURE__ */ __name(function set(events_received) { this._events_received = events_received; }, "set") }, { key: "events_dropped", get: /* @__PURE__ */ __name(function get() { return this._events_dropped; }, "get"), set: /* @__PURE__ */ __name(function set(events_dropped) { this._events_dropped = events_dropped; }, "set") }, { key: "message", get: /* @__PURE__ */ __name(function get() { return this._message; }, "get"), set: /* @__PURE__ */ __name(function set(message) { this._message = message; }, "set") }]); return EventResponse2; }(); var EventRequest$3 = function() { function EventRequest2(access_token, page_id) { var events = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; var partner_agent = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null; classCallCheck(this, EventRequest2); this._access_token = access_token; this._page_id = page_id; this._events = events; this._partner_agent = partner_agent; this._api = FacebookAdsApi2.init(this._access_token); } __name(EventRequest2, "EventRequest"); createClass(EventRequest2, [{ key: "setEvents", /** * Sets the events for the request Payload for a Business Data Event. * @param events for the current event */ value: /* @__PURE__ */ __name(function setEvents(events) { this._events = events; return this; }, "setEvents") /** * Gets the partner_agent for the request * Allows you to specify the platform from which the event is sent e.g. Zapier */ }, { key: "setPartnerAgent", /** * Sets the partner_agent for the request * Allows you to specify the platform from which the event is sent e.g. Zapier * @param {String} partner_agent String value for the partner agent */ value: /* @__PURE__ */ __name(function setPartnerAgent(partner_agent) { this._partner_agent = partner_agent; return this; }, "setPartnerAgent") /** * Gets the access token for the Graph API request */ }, { key: "setAccessToken", /** * Sets the access token for the Graph API request * @param {String} access_token string representing the access token that is used to make the Graph API. */ value: /* @__PURE__ */ __name(function setAccessToken(access_token) { this._access_token = access_token; return this; }, "setAccessToken") /** * Gets the page id against which we send the events */ }, { key: "setPageId", /** * Sets the page id against which we send the events * @param {String} page_id string value representing the page id to which you are sending the events. */ value: /* @__PURE__ */ __name(function setPageId(page_id) { this._page_id = page_id; return this; }, "setPageId") /** * Executes the current event_request data by making a call to the Facebook Graph API. */ }, { key: "execute", value: /* @__PURE__ */ __name(function execute() { var events_json = this._events.map(function(event) { return event.toJson(); }); var params = { "data": events_json, "partner_agent": this._partner_agent, "access_token": this._access_token }; var pagePromise = new Page(this._page_id).createBusinessDatum([], params); return pagePromise.then(function(response) { return new EventResponse$2(response._data["events_received"], response._data["events_dropped"], response._data["message"]); }); }, "execute") }, { key: "events", get: /* @__PURE__ */ __name(function get() { return this._events; }, "get"), set: /* @__PURE__ */ __name(function set(events) { this._events = events; }, "set") }, { key: "partner_agent", get: /* @__PURE__ */ __name(function get() { return this._partner_agent; }, "get"), set: /* @__PURE__ */ __name(function set(partner_agent) { this._partner_agent = partner_agent; }, "set") }, { key: "access_token", get: /* @__PURE__ */ __name(function get() { return this._access_token; }, "get"), set: /* @__PURE__ */ __name(function set(access_token) { this._access_token = access_token; }, "set") }, { key: "page_id", get: /* @__PURE__ */ __name(function get() { return this._page_id; }, "get"), set: /* @__PURE__ */ __name(function set(page_id) { this._page_id = page_id; }, "set") }]); return EventRequest2; }(); var EventRequest$1 = function() { function EventRequest$$1(access_token, pixel_id, page_id) { var events = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : []; var partner_agent = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null; var test_event_code = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : null; var namespace_id = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : null; var upload_id = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : null; var upload_tag = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : null; var upload_source = arguments.length > 9 && arguments[9] !== void 0 ? arguments[9] : null; var debug_mode_flag = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : false; var http_service = arguments.length > 11 && arguments[11] !== void 0 ? arguments[11] : null; classCallCheck(this, EventRequest$$1); var business_data_events = events.map(function(event) { return event.business_data_event; }); this._business_data_event_request = new EventRequest$3(access_token, page_id, business_data_events, partner_agent); var server_events = events.map(function(event) { return event.server_event; }); this._server_event_request = new EventRequest(access_token, pixel_id, server_events, partner_agent, test_event_code, namespace_id, upload_id, upload_tag, upload_source, debug_mode_flag, http_service); } __name(EventRequest$$1, "EventRequest$$1"); createClass(EventRequest$$1, [{ key: "setEvents", /** * Sets the events for the request Payload for a Server Side Event and Business Data Event. * @param {Array<SignalEvent>} events for the current event */ value: /* @__PURE__ */ __name(function setEvents(events) { var business_data_events = events.map(function(event) { return event.business_data_event; }); var server_events = events.map(function(event) { return event.server_event; }); this._server_event_request.events = server_events; this._business_data_event_request.events = business_data_events; return this; }, "setEvents") /** * Gets the partner_agent for the request * Allows you to specify the platform from which the event is sent e.g. wordpress, Zapier */ }, { key: "setPartnerAgent", /** * Sets the partner_agent for the request * Allows you to specify the platform from which the event is sent e.g. wordpress * @param {String} partner_agent String value for the partner agent */ value: /* @__PURE__ */ __name(function setPartnerAgent(partner_agent) { this._server_event_request.partner_agent = partner_agent; this._business_data_event_request.partner_agent = partner_agent; return this; }, "setPartnerAgent") /** * Gets the test_event_code for the request */ }, { key: "setTestEventCode", /** * Sets the test_event_code for the request */ value: /* @__PURE__ */ __name(function setTestEventCode(test_event_code) { this._server_event_request.test_event_code = test_event_code; return this; }, "setTestEventCode") /** * Gets the debug mode flag for the Graph API request */ }, { key: "setDebugMode", /** * Sets the debug mode flag for the Graph API request * @param {Boolean} debug_mode boolean value representing whether you want to send the request in debug mode to get detailed logging. */ value: /* @__PURE__ */ __name(function setDebugMode(debug_mode) { this._server_event_request.debug_mode = debug_mode; return this; }, "setDebugMode") /** * Gets the access token for the Graph API request */ }, { key: "setAccessToken", /** * Sets the access token for the Graph API request * @param {String} access_token string representing the access token that is used to make the Graph API. */ value: /* @__PURE__ */ __name(function setAccessToken(access_token) { this._server_event_request.access_token = access_token; this._business_data_event_request.access_token = access_token; return this; }, "setAccessToken") /** * Gets the pixel against which we send the events */ }, { key: "setPixelId", /** * Sets the pixel against which we send the events * @param {String} pixel_id String value for the pixel_id against which you want to send the events. */ value: /* @__PURE__ */ __name(function setPixelId(pixel_id) { this._server_event_request.pixel_id = pixel_id; return this; }, "setPixelId") /* Region Offline Conversion Fields */ /** * Gets the NamespaceId for the events */ }, { key: "setNamespaceId", /** * Sets the namespace_id for the events * @param {String} namespace_id Scope used to resolve extern_id or Third-party ID. Can be another data set or data partner ID. */ value: /* @__PURE__ */ __name(function setNamespaceId(namespace_id) { this._server_event_request.namespace_id = namespace_id; return this; }, "setNamespaceId") /** * Gets the Upload Tag for the current events upload */ }, { key: "setUploadTag", /** * Sets the upload_tag for the current events upload * @param {String} upload_tag Tag string added to Track your Offline event uploads */ value: /* @__PURE__ */ __name(function setUploadTag(upload_tag) { this._server_event_request.upload_tag = upload_tag; return this; }, "setUploadTag") /** * Gets the Upload Tag for the current events upload */ }, { key: "setUploadId", /** * Sets the upload_id for the current events upload * @param {String} upload_id Unique id used to denote the current set being uploaded */ value: /* @__PURE__ */ __name(function setUploadId(upload_id) { this._server_event_request.upload_id = upload_id; return this; }, "setUploadId") /** * Gets the Upload Tag for the current events upload */ }, { key: "setUploadSource", /** * Sets the upload_source for the current events upload * @param {String} upload_source origin/source of data for the dataset to be uploaded. */ value: /* @__PURE__ */ __name(function setUploadSource(upload_source) { this._server_event_request.upload_source = upload_source; return this; }, "setUploadSource") /** * Gets the http_service object for making the events request */ }, { key: "setHttpService", /** * Sets the http_service object for making the events request * @param {HttpServiceInterface} http_service */ value: /* @__PURE__ */ __name(function setHttpService(http_service) { this._server_event_request.http_service = http_service; return this; }, "setHttpService") /** * Executes the current event_request data by making a call to the Facebook Graph API. */ }, { key: "execute", value: /* @__PURE__ */ __name(function execute() { return Promise.all([this._server_event_request.execute().catch(Error), this._business_data_event_request.execute().catch(Error)]).then(function(response) { return Utils$2.constructResponse(response[0], response[1]); }); }, "execute") }, { key: "events", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.events, this._business_data_event_request.events); }, "get"), set: /* @__PURE__ */ __name(function set(events) { var business_data_events = events.map(function(event) { return event.business_data_event; }); var server_events = events.map(function(event) { return event.server_event; }); this._server_event_request.events = server_events; this._business_data_event_request.events = business_data_events; }, "set") }, { key: "partner_agent", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.partner_agent, this._business_data_event_request.partner_agent); }, "get"), set: /* @__PURE__ */ __name(function set(partner_agent) { this._server_event_request.partner_agent = partner_agent; this._business_data_event_request.partner_agent = partner_agent; }, "set") }, { key: "test_event_code", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.partner_agent, null); }, "get"), set: /* @__PURE__ */ __name(function set(test_event_code) { this._server_event_request.test_event_code = test_event_code; }, "set") }, { key: "debug_mode", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.debug_mode, null); }, "get"), set: /* @__PURE__ */ __name(function set(debug_mode) { this._server_event_request.debug_mode = debug_mode; }, "set") }, { key: "access_token", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.access_token, this._business_data_event_request.access_token); }, "get"), set: /* @__PURE__ */ __name(function set(access_token) { this._server_event_request.access_token = access_token; this._business_data_event_request.access_token = access_token; }, "set") }, { key: "pixel_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.pixel, null); }, "get"), set: /* @__PURE__ */ __name(function set(pixel_id) { this._server_event_request.pixel_id = pixel_id; }, "set") }, { key: "namespace_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.namespace_id, null); }, "get"), set: /* @__PURE__ */ __name(function set(namespace_id) { this._server_event_request.namespace_id = namespace_id; }, "set") }, { key: "upload_tag", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.upload_tag, null); }, "get"), set: /* @__PURE__ */ __name(function set(upload_tag) { this._server_event_request.upload_tag = upload_tag; }, "set") }, { key: "upload_id", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.upload_id, null); }, "get"), set: /* @__PURE__ */ __name(function set(upload_id) { this._server_event_request.upload_id = upload_id; }, "set") }, { key: "upload_source", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.upload_source, null); }, "get"), set: /* @__PURE__ */ __name(function set(upload_source) { this._server_event_request.upload_source = upload_source; }, "set") }, { key: "http_service", get: /* @__PURE__ */ __name(function get() { return Utils$2.constructResponse(this._server_event_request.http_service, null); }, "get"), set: /* @__PURE__ */ __name(function set(http_service) { this._server_event_request.http_service = http_service; }, "set") }]); return EventRequest$$1; }(); var AdAccountDefaultDestination = function(_AbstractCrudObject) { inherits(AdAccountDefaultDestination2, _AbstractCrudObject); function AdAccountDefaultDestination2() { classCallCheck(this, AdAccountDefaultDestination2); return possibleConstructorReturn(this, (AdAccountDefaultDestination2.__proto__ || Object.getPrototypeOf(AdAccountDefaultDestination2)).apply(this, arguments)); } __name(AdAccountDefaultDestination2, "AdAccountDefaultDestination"); createClass(AdAccountDefaultDestination2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ destination_id: "destination_id", destination_url: "destination_url" }); }, "get") }]); return AdAccountDefaultDestination2; }(AbstractCrudObject); var AdAccountDefaultObjective = function(_AbstractCrudObject) { inherits(AdAccountDefaultObjective2, _AbstractCrudObject); function AdAccountDefaultObjective2() { classCallCheck(this, AdAccountDefaultObjective2); return possibleConstructorReturn(this, (AdAccountDefaultObjective2.__proto__ || Object.getPrototypeOf(AdAccountDefaultObjective2)).apply(this, arguments)); } __name(AdAccountDefaultObjective2, "AdAccountDefaultObjective"); createClass(AdAccountDefaultObjective2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ default_objective_for_user: "default_objective_for_user", objective_for_level: "objective_for_level" }); }, "get") }, { key: "DefaultObjectiveForUser", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_installs: "APP_INSTALLS", brand_awareness: "BRAND_AWARENESS", event_responses: "EVENT_RESPONSES", lead_generation: "LEAD_GENERATION", link_clicks: "LINK_CLICKS", local_awareness: "LOCAL_AWARENESS", messages: "MESSAGES", offer_claims: "OFFER_CLAIMS", outcome_app_promotion: "OUTCOME_APP_PROMOTION", outcome_awareness: "OUTCOME_AWARENESS", outcome_engagement: "OUTCOME_ENGAGEMENT", outcome_leads: "OUTCOME_LEADS", outcome_sales: "OUTCOME_SALES", outcome_traffic: "OUTCOME_TRAFFIC", page_likes: "PAGE_LIKES", post_engagement: "POST_ENGAGEMENT", product_catalog_sales: "PRODUCT_CATALOG_SALES", reach: "REACH", store_visits: "STORE_VISITS", video_views: "VIDEO_VIEWS", website_conversions: "WEBSITE_CONVERSIONS" }); }, "get") }, { key: "ObjectiveForLevel", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_installs: "APP_INSTALLS", brand_awareness: "BRAND_AWARENESS", event_responses: "EVENT_RESPONSES", lead_generation: "LEAD_GENERATION", link_clicks: "LINK_CLICKS", local_awareness: "LOCAL_AWARENESS", messages: "MESSAGES", offer_claims: "OFFER_CLAIMS", outcome_app_promotion: "OUTCOME_APP_PROMOTION", outcome_awareness: "OUTCOME_AWARENESS", outcome_engagement: "OUTCOME_ENGAGEMENT", outcome_leads: "OUTCOME_LEADS", outcome_sales: "OUTCOME_SALES", outcome_traffic: "OUTCOME_TRAFFIC", page_likes: "PAGE_LIKES", post_engagement: "POST_ENGAGEMENT", product_catalog_sales: "PRODUCT_CATALOG_SALES", reach: "REACH", store_visits: "STORE_VISITS", video_views: "VIDEO_VIEWS", website_conversions: "WEBSITE_CONVERSIONS" }); }, "get") }]); return AdAccountDefaultObjective2; }(AbstractCrudObject); var AdAccountPromotableObjects = function(_AbstractCrudObject) { inherits(AdAccountPromotableObjects2, _AbstractCrudObject); function AdAccountPromotableObjects2() { classCallCheck(this, AdAccountPromotableObjects2); return possibleConstructorReturn(this, (AdAccountPromotableObjects2.__proto__ || Object.getPrototypeOf(AdAccountPromotableObjects2)).apply(this, arguments)); } __name(AdAccountPromotableObjects2, "AdAccountPromotableObjects"); createClass(AdAccountPromotableObjects2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ promotable_app_ids: "promotable_app_ids", promotable_page_ids: "promotable_page_ids", promotable_urls: "promotable_urls" }); }, "get") }]); return AdAccountPromotableObjects2; }(AbstractCrudObject); var AdAccountRecommendedCamapaignBudget = function(_AbstractCrudObject) { inherits(AdAccountRecommendedCamapaignBudget2, _AbstractCrudObject); function AdAccountRecommendedCamapaignBudget2() { classCallCheck(this, AdAccountRecommendedCamapaignBudget2); return possibleConstructorReturn(this, (AdAccountRecommendedCamapaignBudget2.__proto__ || Object.getPrototypeOf(AdAccountRecommendedCamapaignBudget2)).apply(this, arguments)); } __name(AdAccountRecommendedCamapaignBudget2, "AdAccountRecommendedCamapaignBudget"); createClass(AdAccountRecommendedCamapaignBudget2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ daily: "daily", lifetime: "lifetime", objective: "objective" }); }, "get") }]); return AdAccountRecommendedCamapaignBudget2; }(AbstractCrudObject); var AdAssetBody = function(_AbstractCrudObject) { inherits(AdAssetBody2, _AbstractCrudObject); function AdAssetBody2() { classCallCheck(this, AdAssetBody2); return possibleConstructorReturn(this, (AdAssetBody2.__proto__ || Object.getPrototypeOf(AdAssetBody2)).apply(this, arguments)); } __name(AdAssetBody2, "AdAssetBody"); createClass(AdAssetBody2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", text: "text", url_tags: "url_tags" }); }, "get") }]); return AdAssetBody2; }(AbstractCrudObject); var AdAssetCallToActionType = function(_AbstractCrudObject) { inherits(AdAssetCallToActionType2, _AbstractCrudObject); function AdAssetCallToActionType2() { classCallCheck(this, AdAssetCallToActionType2); return possibleConstructorReturn(this, (AdAssetCallToActionType2.__proto__ || Object.getPrototypeOf(AdAssetCallToActionType2)).apply(this, arguments)); } __name(AdAssetCallToActionType2, "AdAssetCallToActionType"); createClass(AdAssetCallToActionType2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name" }); }, "get") }]); return AdAssetCallToActionType2; }(AbstractCrudObject); var AdAssetCustomizationRuleCustomizationSpec = function(_AbstractCrudObject) { inherits(AdAssetCustomizationRuleCustomizationSpec2, _AbstractCrudObject); function AdAssetCustomizationRuleCustomizationSpec2() { classCallCheck(this, AdAssetCustomizationRuleCustomizationSpec2); return possibleConstructorReturn(this, (AdAssetCustomizationRuleCustomizationSpec2.__proto__ || Object.getPrototypeOf(AdAssetCustomizationRuleCustomizationSpec2)).apply(this, arguments)); } __name(AdAssetCustomizationRuleCustomizationSpec2, "AdAssetCustomizationRuleCustomizationSpec"); createClass(AdAssetCustomizationRuleCustomizationSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ age_max: "age_max", age_min: "age_min", audience_network_positions: "audience_network_positions", device_platforms: "device_platforms", facebook_positions: "facebook_positions", geo_locations: "geo_locations", instagram_positions: "instagram_positions", locales: "locales", messenger_positions: "messenger_positions", publisher_platforms: "publisher_platforms" }); }, "get") }, { key: "DevicePlatforms", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ desktop: "desktop", mobile: "mobile" }); }, "get") }]); return AdAssetCustomizationRuleCustomizationSpec2; }(AbstractCrudObject); var AdAssetDescription = function(_AbstractCrudObject) { inherits(AdAssetDescription2, _AbstractCrudObject); function AdAssetDescription2() { classCallCheck(this, AdAssetDescription2); return possibleConstructorReturn(this, (AdAssetDescription2.__proto__ || Object.getPrototypeOf(AdAssetDescription2)).apply(this, arguments)); } __name(AdAssetDescription2, "AdAssetDescription"); createClass(AdAssetDescription2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", text: "text", url_tags: "url_tags" }); }, "get") }]); return AdAssetDescription2; }(AbstractCrudObject); var AdAssetFeedAdditionalData = function(_AbstractCrudObject) { inherits(AdAssetFeedAdditionalData2, _AbstractCrudObject); function AdAssetFeedAdditionalData2() { classCallCheck(this, AdAssetFeedAdditionalData2); return possibleConstructorReturn(this, (AdAssetFeedAdditionalData2.__proto__ || Object.getPrototypeOf(AdAssetFeedAdditionalData2)).apply(this, arguments)); } __name(AdAssetFeedAdditionalData2, "AdAssetFeedAdditionalData"); createClass(AdAssetFeedAdditionalData2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automated_product_tags: "automated_product_tags", brand_page_id: "brand_page_id", is_click_to_message: "is_click_to_message", multi_share_end_card: "multi_share_end_card", page_welcome_message: "page_welcome_message", partner_app_welcome_message_flow_id: "partner_app_welcome_message_flow_id" }); }, "get") }]); return AdAssetFeedAdditionalData2; }(AbstractCrudObject); var AdAssetFeedSpec = function(_AbstractCrudObject) { inherits(AdAssetFeedSpec2, _AbstractCrudObject); function AdAssetFeedSpec2() { classCallCheck(this, AdAssetFeedSpec2); return possibleConstructorReturn(this, (AdAssetFeedSpec2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpec2)).apply(this, arguments)); } __name(AdAssetFeedSpec2, "AdAssetFeedSpec"); createClass(AdAssetFeedSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_formats: "ad_formats", additional_data: "additional_data", app_product_page_id: "app_product_page_id", asset_customization_rules: "asset_customization_rules", autotranslate: "autotranslate", bodies: "bodies", call_to_action_types: "call_to_action_types", call_to_actions: "call_to_actions", captions: "captions", carousels: "carousels", descriptions: "descriptions", events: "events", groups: "groups", images: "images", link_urls: "link_urls", message_extensions: "message_extensions", onsite_destinations: "onsite_destinations", optimization_type: "optimization_type", promotional_metadata: "promotional_metadata", reasons_to_shop: "reasons_to_shop", shops_bundle: "shops_bundle", titles: "titles", videos: "videos" }); }, "get") }, { key: "CallToActionTypes", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ add_to_cart: "ADD_TO_CART", apply_now: "APPLY_NOW", ask_about_services: "ASK_ABOUT_SERVICES", ask_for_more_info: "ASK_FOR_MORE_INFO", audio_call: "AUDIO_CALL", book_a_consultation: "BOOK_A_CONSULTATION", book_now: "BOOK_NOW", book_travel: "BOOK_TRAVEL", buy: "BUY", buy_now: "BUY_NOW", buy_tickets: "BUY_TICKETS", buy_via_message: "BUY_VIA_MESSAGE", call: "CALL", call_me: "CALL_ME", call_now: "CALL_NOW", chat_with_us: "CHAT_WITH_US", confirm: "CONFIRM", contact: "CONTACT", contact_us: "CONTACT_US", donate: "DONATE", donate_now: "DONATE_NOW", download: "DOWNLOAD", event_rsvp: "EVENT_RSVP", find_a_group: "FIND_A_GROUP", find_your_groups: "FIND_YOUR_GROUPS", follow_news_storyline: "FOLLOW_NEWS_STORYLINE", follow_page: "FOLLOW_PAGE", follow_user: "FOLLOW_USER", get_a_quote: "GET_A_QUOTE", get_directions: "GET_DIRECTIONS", get_offer: "GET_OFFER", get_offer_view: "GET_OFFER_VIEW", get_promotions: "GET_PROMOTIONS", get_quote: "GET_QUOTE", get_showtimes: "GET_SHOWTIMES", get_started: "GET_STARTED", inquire_now: "INQUIRE_NOW", install_app: "INSTALL_APP", install_mobile_app: "INSTALL_MOBILE_APP", join_channel: "JOIN_CHANNEL", learn_more: "LEARN_MORE", like_page: "LIKE_PAGE", listen_music: "LISTEN_MUSIC", listen_now: "LISTEN_NOW", make_an_appointment: "MAKE_AN_APPOINTMENT", message_page: "MESSAGE_PAGE", mobile_download: "MOBILE_DOWNLOAD", no_button: "NO_BUTTON", open_instant_app: "OPEN_INSTANT_APP", open_link: "OPEN_LINK", order_now: "ORDER_NOW", pay_to_access: "PAY_TO_ACCESS", play_game: "PLAY_GAME", play_game_on_facebook: "PLAY_GAME_ON_FACEBOOK", purchase_gift_cards: "PURCHASE_GIFT_CARDS", raise_money: "RAISE_MONEY", record_now: "RECORD_NOW", refer_friends: "REFER_FRIENDS", request_time: "REQUEST_TIME", say_thanks: "SAY_THANKS", see_more: "SEE_MORE", sell_now: "SELL_NOW", send_a_gift: "SEND_A_GIFT", send_gift_money: "SEND_GIFT_MONEY", send_updates: "SEND_UPDATES", share: "SHARE", shop_now: "SHOP_NOW", sign_up: "SIGN_UP", sotto_subscribe: "SOTTO_SUBSCRIBE", start_order: "START_ORDER", subscribe: "SUBSCRIBE", swipe_up_product: "SWIPE_UP_PRODUCT", swipe_up_shop: "SWIPE_UP_SHOP", update_app: "UPDATE_APP", use_app: "USE_APP", use_mobile_app: "USE_MOBILE_APP", video_annotation: "VIDEO_ANNOTATION", video_call: "VIDEO_CALL", visit_pages_feed: "VISIT_PAGES_FEED", watch_more: "WATCH_MORE", watch_video: "WATCH_VIDEO", whatsapp_message: "WHATSAPP_MESSAGE", woodhenge_support: "WOODHENGE_SUPPORT" }); }, "get") }]); return AdAssetFeedSpec2; }(AbstractCrudObject); var AdAssetFeedSpecAssetCustomizationRule = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecAssetCustomizationRule2, _AbstractCrudObject); function AdAssetFeedSpecAssetCustomizationRule2() { classCallCheck(this, AdAssetFeedSpecAssetCustomizationRule2); return possibleConstructorReturn(this, (AdAssetFeedSpecAssetCustomizationRule2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecAssetCustomizationRule2)).apply(this, arguments)); } __name(AdAssetFeedSpecAssetCustomizationRule2, "AdAssetFeedSpecAssetCustomizationRule"); createClass(AdAssetFeedSpecAssetCustomizationRule2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ body_label: "body_label", call_to_action_label: "call_to_action_label", call_to_action_type_label: "call_to_action_type_label", caption_label: "caption_label", carousel_label: "carousel_label", customization_spec: "customization_spec", description_label: "description_label", image_label: "image_label", is_default: "is_default", link_url_label: "link_url_label", priority: "priority", title_label: "title_label", video_label: "video_label" }); }, "get") }]); return AdAssetFeedSpecAssetCustomizationRule2; }(AbstractCrudObject); var AdAssetFeedSpecAssetLabel = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecAssetLabel2, _AbstractCrudObject); function AdAssetFeedSpecAssetLabel2() { classCallCheck(this, AdAssetFeedSpecAssetLabel2); return possibleConstructorReturn(this, (AdAssetFeedSpecAssetLabel2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecAssetLabel2)).apply(this, arguments)); } __name(AdAssetFeedSpecAssetLabel2, "AdAssetFeedSpecAssetLabel"); createClass(AdAssetFeedSpecAssetLabel2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name" }); }, "get") }]); return AdAssetFeedSpecAssetLabel2; }(AbstractCrudObject); var AdAssetFeedSpecBody = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecBody2, _AbstractCrudObject); function AdAssetFeedSpecBody2() { classCallCheck(this, AdAssetFeedSpecBody2); return possibleConstructorReturn(this, (AdAssetFeedSpecBody2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecBody2)).apply(this, arguments)); } __name(AdAssetFeedSpecBody2, "AdAssetFeedSpecBody"); createClass(AdAssetFeedSpecBody2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adlabels: "adlabels", text: "text", url_tags: "url_tags" }); }, "get") }]); return AdAssetFeedSpecBody2; }(AbstractCrudObject); var AdAssetFeedSpecCallToAction = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecCallToAction2, _AbstractCrudObject); function AdAssetFeedSpecCallToAction2() { classCallCheck(this, AdAssetFeedSpecCallToAction2); return possibleConstructorReturn(this, (AdAssetFeedSpecCallToAction2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecCallToAction2)).apply(this, arguments)); } __name(AdAssetFeedSpecCallToAction2, "AdAssetFeedSpecCallToAction"); createClass(AdAssetFeedSpecCallToAction2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adlabels: "adlabels", type: "type", value: "value" }); }, "get") }]); return AdAssetFeedSpecCallToAction2; }(AbstractCrudObject); var AdAssetFeedSpecCaption = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecCaption2, _AbstractCrudObject); function AdAssetFeedSpecCaption2() { classCallCheck(this, AdAssetFeedSpecCaption2); return possibleConstructorReturn(this, (AdAssetFeedSpecCaption2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecCaption2)).apply(this, arguments)); } __name(AdAssetFeedSpecCaption2, "AdAssetFeedSpecCaption"); createClass(AdAssetFeedSpecCaption2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adlabels: "adlabels", text: "text", url_tags: "url_tags" }); }, "get") }]); return AdAssetFeedSpecCaption2; }(AbstractCrudObject); var AdAssetFeedSpecCarousel = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecCarousel2, _AbstractCrudObject); function AdAssetFeedSpecCarousel2() { classCallCheck(this, AdAssetFeedSpecCarousel2); return possibleConstructorReturn(this, (AdAssetFeedSpecCarousel2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecCarousel2)).apply(this, arguments)); } __name(AdAssetFeedSpecCarousel2, "AdAssetFeedSpecCarousel"); createClass(AdAssetFeedSpecCarousel2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adlabels: "adlabels", child_attachments: "child_attachments", multi_share_end_card: "multi_share_end_card", multi_share_optimized: "multi_share_optimized" }); }, "get") }]); return AdAssetFeedSpecCarousel2; }(AbstractCrudObject); var AdAssetFeedSpecCarouselChildAttachment = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecCarouselChildAttachment2, _AbstractCrudObject); function AdAssetFeedSpecCarouselChildAttachment2() { classCallCheck(this, AdAssetFeedSpecCarouselChildAttachment2); return possibleConstructorReturn(this, (AdAssetFeedSpecCarouselChildAttachment2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecCarouselChildAttachment2)).apply(this, arguments)); } __name(AdAssetFeedSpecCarouselChildAttachment2, "AdAssetFeedSpecCarouselChildAttachment"); createClass(AdAssetFeedSpecCarouselChildAttachment2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ body_label: "body_label", call_to_action_type_label: "call_to_action_type_label", caption_label: "caption_label", description_label: "description_label", image_label: "image_label", link_url_label: "link_url_label", phone_data_ids_label: "phone_data_ids_label", static_card: "static_card", title_label: "title_label", video_label: "video_label" }); }, "get") }]); return AdAssetFeedSpecCarouselChildAttachment2; }(AbstractCrudObject); var AdAssetFeedSpecDescription = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecDescription2, _AbstractCrudObject); function AdAssetFeedSpecDescription2() { classCallCheck(this, AdAssetFeedSpecDescription2); return possibleConstructorReturn(this, (AdAssetFeedSpecDescription2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecDescription2)).apply(this, arguments)); } __name(AdAssetFeedSpecDescription2, "AdAssetFeedSpecDescription"); createClass(AdAssetFeedSpecDescription2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adlabels: "adlabels", text: "text", url_tags: "url_tags" }); }, "get") }]); return AdAssetFeedSpecDescription2; }(AbstractCrudObject); var AdAssetFeedSpecEvents = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecEvents2, _AbstractCrudObject); function AdAssetFeedSpecEvents2() { classCallCheck(this, AdAssetFeedSpecEvents2); return possibleConstructorReturn(this, (AdAssetFeedSpecEvents2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecEvents2)).apply(this, arguments)); } __name(AdAssetFeedSpecEvents2, "AdAssetFeedSpecEvents"); createClass(AdAssetFeedSpecEvents2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id" }); }, "get") }]); return AdAssetFeedSpecEvents2; }(AbstractCrudObject); var AdAssetFeedSpecGroupRule = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecGroupRule2, _AbstractCrudObject); function AdAssetFeedSpecGroupRule2() { classCallCheck(this, AdAssetFeedSpecGroupRule2); return possibleConstructorReturn(this, (AdAssetFeedSpecGroupRule2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecGroupRule2)).apply(this, arguments)); } __name(AdAssetFeedSpecGroupRule2, "AdAssetFeedSpecGroupRule"); createClass(AdAssetFeedSpecGroupRule2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ body_label: "body_label", caption_label: "caption_label", description_label: "description_label", image_label: "image_label", link_url_label: "link_url_label", title_label: "title_label", video_label: "video_label" }); }, "get") }]); return AdAssetFeedSpecGroupRule2; }(AbstractCrudObject); var AdAssetFeedSpecImage = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecImage2, _AbstractCrudObject); function AdAssetFeedSpecImage2() { classCallCheck(this, AdAssetFeedSpecImage2); return possibleConstructorReturn(this, (AdAssetFeedSpecImage2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecImage2)).apply(this, arguments)); } __name(AdAssetFeedSpecImage2, "AdAssetFeedSpecImage"); createClass(AdAssetFeedSpecImage2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adlabels: "adlabels", hash: "hash", image_crops: "image_crops", url: "url", url_tags: "url_tags" }); }, "get") }]); return AdAssetFeedSpecImage2; }(AbstractCrudObject); var AdAssetFeedSpecLinkURL = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecLinkURL2, _AbstractCrudObject); function AdAssetFeedSpecLinkURL2() { classCallCheck(this, AdAssetFeedSpecLinkURL2); return possibleConstructorReturn(this, (AdAssetFeedSpecLinkURL2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecLinkURL2)).apply(this, arguments)); } __name(AdAssetFeedSpecLinkURL2, "AdAssetFeedSpecLinkURL"); createClass(AdAssetFeedSpecLinkURL2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adlabels: "adlabels", carousel_see_more_url: "carousel_see_more_url", deeplink_url: "deeplink_url", display_url: "display_url", url_tags: "url_tags", website_url: "website_url" }); }, "get") }]); return AdAssetFeedSpecLinkURL2; }(AbstractCrudObject); var AdAssetFeedSpecTitle = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecTitle2, _AbstractCrudObject); function AdAssetFeedSpecTitle2() { classCallCheck(this, AdAssetFeedSpecTitle2); return possibleConstructorReturn(this, (AdAssetFeedSpecTitle2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecTitle2)).apply(this, arguments)); } __name(AdAssetFeedSpecTitle2, "AdAssetFeedSpecTitle"); createClass(AdAssetFeedSpecTitle2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adlabels: "adlabels", text: "text", url_tags: "url_tags" }); }, "get") }]); return AdAssetFeedSpecTitle2; }(AbstractCrudObject); var AdAssetFeedSpecVideo = function(_AbstractCrudObject) { inherits(AdAssetFeedSpecVideo2, _AbstractCrudObject); function AdAssetFeedSpecVideo2() { classCallCheck(this, AdAssetFeedSpecVideo2); return possibleConstructorReturn(this, (AdAssetFeedSpecVideo2.__proto__ || Object.getPrototypeOf(AdAssetFeedSpecVideo2)).apply(this, arguments)); } __name(AdAssetFeedSpecVideo2, "AdAssetFeedSpecVideo"); createClass(AdAssetFeedSpecVideo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adlabels: "adlabels", caption_ids: "caption_ids", thumbnail_hash: "thumbnail_hash", thumbnail_url: "thumbnail_url", url_tags: "url_tags", video_id: "video_id" }); }, "get") }]); return AdAssetFeedSpecVideo2; }(AbstractCrudObject); var AdAssetImage = function(_AbstractCrudObject) { inherits(AdAssetImage2, _AbstractCrudObject); function AdAssetImage2() { classCallCheck(this, AdAssetImage2); return possibleConstructorReturn(this, (AdAssetImage2.__proto__ || Object.getPrototypeOf(AdAssetImage2)).apply(this, arguments)); } __name(AdAssetImage2, "AdAssetImage"); createClass(AdAssetImage2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ hash: "hash", id: "id", image_crops: "image_crops", name: "name", tag: "tag", url: "url", url_tags: "url_tags" }); }, "get") }]); return AdAssetImage2; }(AbstractCrudObject); var AdAssetLinkURL = function(_AbstractCrudObject) { inherits(AdAssetLinkURL2, _AbstractCrudObject); function AdAssetLinkURL2() { classCallCheck(this, AdAssetLinkURL2); return possibleConstructorReturn(this, (AdAssetLinkURL2.__proto__ || Object.getPrototypeOf(AdAssetLinkURL2)).apply(this, arguments)); } __name(AdAssetLinkURL2, "AdAssetLinkURL"); createClass(AdAssetLinkURL2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ android_deeplink_url: "android_deeplink_url", carousel_see_more_url: "carousel_see_more_url", deeplink_url: "deeplink_url", display_url: "display_url", id: "id", ipad_deeplink_url: "ipad_deeplink_url", iphone_deeplink_url: "iphone_deeplink_url", url_tags: "url_tags", website_url: "website_url" }); }, "get") }]); return AdAssetLinkURL2; }(AbstractCrudObject); var AdAssetMessageExtensions = function(_AbstractCrudObject) { inherits(AdAssetMessageExtensions2, _AbstractCrudObject); function AdAssetMessageExtensions2() { classCallCheck(this, AdAssetMessageExtensions2); return possibleConstructorReturn(this, (AdAssetMessageExtensions2.__proto__ || Object.getPrototypeOf(AdAssetMessageExtensions2)).apply(this, arguments)); } __name(AdAssetMessageExtensions2, "AdAssetMessageExtensions"); createClass(AdAssetMessageExtensions2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ type: "type" }); }, "get") }]); return AdAssetMessageExtensions2; }(AbstractCrudObject); var AdAssetOnsiteDestinations = function(_AbstractCrudObject) { inherits(AdAssetOnsiteDestinations2, _AbstractCrudObject); function AdAssetOnsiteDestinations2() { classCallCheck(this, AdAssetOnsiteDestinations2); return possibleConstructorReturn(this, (AdAssetOnsiteDestinations2.__proto__ || Object.getPrototypeOf(AdAssetOnsiteDestinations2)).apply(this, arguments)); } __name(AdAssetOnsiteDestinations2, "AdAssetOnsiteDestinations"); createClass(AdAssetOnsiteDestinations2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ auto_optimization: "auto_optimization", details_page_product_id: "details_page_product_id", shop_collection_product_set_id: "shop_collection_product_set_id", storefront_shop_id: "storefront_shop_id" }); }, "get") }]); return AdAssetOnsiteDestinations2; }(AbstractCrudObject); var AdAssetTargetRuleTargeting = function(_AbstractCrudObject) { inherits(AdAssetTargetRuleTargeting2, _AbstractCrudObject); function AdAssetTargetRuleTargeting2() { classCallCheck(this, AdAssetTargetRuleTargeting2); return possibleConstructorReturn(this, (AdAssetTargetRuleTargeting2.__proto__ || Object.getPrototypeOf(AdAssetTargetRuleTargeting2)).apply(this, arguments)); } __name(AdAssetTargetRuleTargeting2, "AdAssetTargetRuleTargeting"); createClass(AdAssetTargetRuleTargeting2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ age_max: "age_max", age_min: "age_min", audience_network_positions: "audience_network_positions", device_platforms: "device_platforms", facebook_positions: "facebook_positions", geo_locations: "geo_locations", instagram_positions: "instagram_positions", publisher_platforms: "publisher_platforms" }); }, "get") }, { key: "DevicePlatforms", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ desktop: "desktop", mobile: "mobile" }); }, "get") }]); return AdAssetTargetRuleTargeting2; }(AbstractCrudObject); var AdAssetTitle = function(_AbstractCrudObject) { inherits(AdAssetTitle2, _AbstractCrudObject); function AdAssetTitle2() { classCallCheck(this, AdAssetTitle2); return possibleConstructorReturn(this, (AdAssetTitle2.__proto__ || Object.getPrototypeOf(AdAssetTitle2)).apply(this, arguments)); } __name(AdAssetTitle2, "AdAssetTitle"); createClass(AdAssetTitle2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", text: "text", url_tags: "url_tags" }); }, "get") }]); return AdAssetTitle2; }(AbstractCrudObject); var AdAssetVideo = function(_AbstractCrudObject) { inherits(AdAssetVideo2, _AbstractCrudObject); function AdAssetVideo2() { classCallCheck(this, AdAssetVideo2); return possibleConstructorReturn(this, (AdAssetVideo2.__proto__ || Object.getPrototypeOf(AdAssetVideo2)).apply(this, arguments)); } __name(AdAssetVideo2, "AdAssetVideo"); createClass(AdAssetVideo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ caption_ids: "caption_ids", id: "id", source_image_url: "source_image_url", tag: "tag", thumbnail_hash: "thumbnail_hash", thumbnail_source: "thumbnail_source", thumbnail_url: "thumbnail_url", url: "url", url_tags: "url_tags", video_id: "video_id", video_name: "video_name" }); }, "get") }]); return AdAssetVideo2; }(AbstractCrudObject); var AdAsyncRequestSetNotificationResult = function(_AbstractCrudObject) { inherits(AdAsyncRequestSetNotificationResult2, _AbstractCrudObject); function AdAsyncRequestSetNotificationResult2() { classCallCheck(this, AdAsyncRequestSetNotificationResult2); return possibleConstructorReturn(this, (AdAsyncRequestSetNotificationResult2.__proto__ || Object.getPrototypeOf(AdAsyncRequestSetNotificationResult2)).apply(this, arguments)); } __name(AdAsyncRequestSetNotificationResult2, "AdAsyncRequestSetNotificationResult"); createClass(AdAsyncRequestSetNotificationResult2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ response: "response", status: "status" }); }, "get") }]); return AdAsyncRequestSetNotificationResult2; }(AbstractCrudObject); var AdBidAdjustments = function(_AbstractCrudObject) { inherits(AdBidAdjustments2, _AbstractCrudObject); function AdBidAdjustments2() { classCallCheck(this, AdBidAdjustments2); return possibleConstructorReturn(this, (AdBidAdjustments2.__proto__ || Object.getPrototypeOf(AdBidAdjustments2)).apply(this, arguments)); } __name(AdBidAdjustments2, "AdBidAdjustments"); createClass(AdBidAdjustments2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ age_range: "age_range", page_types: "page_types", user_groups: "user_groups" }); }, "get") }]); return AdBidAdjustments2; }(AbstractCrudObject); var AdCampaignBidConstraint = function(_AbstractCrudObject) { inherits(AdCampaignBidConstraint2, _AbstractCrudObject); function AdCampaignBidConstraint2() { classCallCheck(this, AdCampaignBidConstraint2); return possibleConstructorReturn(this, (AdCampaignBidConstraint2.__proto__ || Object.getPrototypeOf(AdCampaignBidConstraint2)).apply(this, arguments)); } __name(AdCampaignBidConstraint2, "AdCampaignBidConstraint"); createClass(AdCampaignBidConstraint2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ roas_average_floor: "roas_average_floor" }); }, "get") }]); return AdCampaignBidConstraint2; }(AbstractCrudObject); var AdCampaignDeliveryStatsUnsupportedReasons = function(_AbstractCrudObject) { inherits(AdCampaignDeliveryStatsUnsupportedReasons2, _AbstractCrudObject); function AdCampaignDeliveryStatsUnsupportedReasons2() { classCallCheck(this, AdCampaignDeliveryStatsUnsupportedReasons2); return possibleConstructorReturn(this, (AdCampaignDeliveryStatsUnsupportedReasons2.__proto__ || Object.getPrototypeOf(AdCampaignDeliveryStatsUnsupportedReasons2)).apply(this, arguments)); } __name(AdCampaignDeliveryStatsUnsupportedReasons2, "AdCampaignDeliveryStatsUnsupportedReasons"); createClass(AdCampaignDeliveryStatsUnsupportedReasons2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ reason_data: "reason_data", reason_type: "reason_type" }); }, "get") }]); return AdCampaignDeliveryStatsUnsupportedReasons2; }(AbstractCrudObject); var AdCampaignFrequencyControlSpecs = function(_AbstractCrudObject) { inherits(AdCampaignFrequencyControlSpecs2, _AbstractCrudObject); function AdCampaignFrequencyControlSpecs2() { classCallCheck(this, AdCampaignFrequencyControlSpecs2); return possibleConstructorReturn(this, (AdCampaignFrequencyControlSpecs2.__proto__ || Object.getPrototypeOf(AdCampaignFrequencyControlSpecs2)).apply(this, arguments)); } __name(AdCampaignFrequencyControlSpecs2, "AdCampaignFrequencyControlSpecs"); createClass(AdCampaignFrequencyControlSpecs2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ event: "event", interval_days: "interval_days", max_frequency: "max_frequency" }); }, "get") }]); return AdCampaignFrequencyControlSpecs2; }(AbstractCrudObject); var AdCampaignIssuesInfo = function(_AbstractCrudObject) { inherits(AdCampaignIssuesInfo2, _AbstractCrudObject); function AdCampaignIssuesInfo2() { classCallCheck(this, AdCampaignIssuesInfo2); return possibleConstructorReturn(this, (AdCampaignIssuesInfo2.__proto__ || Object.getPrototypeOf(AdCampaignIssuesInfo2)).apply(this, arguments)); } __name(AdCampaignIssuesInfo2, "AdCampaignIssuesInfo"); createClass(AdCampaignIssuesInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ error_code: "error_code", error_message: "error_message", error_summary: "error_summary", error_type: "error_type", level: "level" }); }, "get") }]); return AdCampaignIssuesInfo2; }(AbstractCrudObject); var AdCampaignLearningStageInfo = function(_AbstractCrudObject) { inherits(AdCampaignLearningStageInfo2, _AbstractCrudObject); function AdCampaignLearningStageInfo2() { classCallCheck(this, AdCampaignLearningStageInfo2); return possibleConstructorReturn(this, (AdCampaignLearningStageInfo2.__proto__ || Object.getPrototypeOf(AdCampaignLearningStageInfo2)).apply(this, arguments)); } __name(AdCampaignLearningStageInfo2, "AdCampaignLearningStageInfo"); createClass(AdCampaignLearningStageInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ attribution_windows: "attribution_windows", conversions: "conversions", last_sig_edit_ts: "last_sig_edit_ts", status: "status" }); }, "get") }]); return AdCampaignLearningStageInfo2; }(AbstractCrudObject); var AdCampaignOptimizationEvent = function(_AbstractCrudObject) { inherits(AdCampaignOptimizationEvent2, _AbstractCrudObject); function AdCampaignOptimizationEvent2() { classCallCheck(this, AdCampaignOptimizationEvent2); return possibleConstructorReturn(this, (AdCampaignOptimizationEvent2.__proto__ || Object.getPrototypeOf(AdCampaignOptimizationEvent2)).apply(this, arguments)); } __name(AdCampaignOptimizationEvent2, "AdCampaignOptimizationEvent"); createClass(AdCampaignOptimizationEvent2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ custom_conversion_id: "custom_conversion_id", event_sequence: "event_sequence", event_type: "event_type" }); }, "get") }]); return AdCampaignOptimizationEvent2; }(AbstractCrudObject); var AdCampaignPacedBidInfo = function(_AbstractCrudObject) { inherits(AdCampaignPacedBidInfo2, _AbstractCrudObject); function AdCampaignPacedBidInfo2() { classCallCheck(this, AdCampaignPacedBidInfo2); return possibleConstructorReturn(this, (AdCampaignPacedBidInfo2.__proto__ || Object.getPrototypeOf(AdCampaignPacedBidInfo2)).apply(this, arguments)); } __name(AdCampaignPacedBidInfo2, "AdCampaignPacedBidInfo"); createClass(AdCampaignPacedBidInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ bidding_status: "bidding_status" }); }, "get") }]); return AdCampaignPacedBidInfo2; }(AbstractCrudObject); var AdCreativeAdDisclaimer = function(_AbstractCrudObject) { inherits(AdCreativeAdDisclaimer2, _AbstractCrudObject); function AdCreativeAdDisclaimer2() { classCallCheck(this, AdCreativeAdDisclaimer2); return possibleConstructorReturn(this, (AdCreativeAdDisclaimer2.__proto__ || Object.getPrototypeOf(AdCreativeAdDisclaimer2)).apply(this, arguments)); } __name(AdCreativeAdDisclaimer2, "AdCreativeAdDisclaimer"); createClass(AdCreativeAdDisclaimer2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ text: "text", title: "title", url: "url" }); }, "get") }]); return AdCreativeAdDisclaimer2; }(AbstractCrudObject); var AdCreativeBrandedContentAds = function(_AbstractCrudObject) { inherits(AdCreativeBrandedContentAds2, _AbstractCrudObject); function AdCreativeBrandedContentAds2() { classCallCheck(this, AdCreativeBrandedContentAds2); return possibleConstructorReturn(this, (AdCreativeBrandedContentAds2.__proto__ || Object.getPrototypeOf(AdCreativeBrandedContentAds2)).apply(this, arguments)); } __name(AdCreativeBrandedContentAds2, "AdCreativeBrandedContentAds"); createClass(AdCreativeBrandedContentAds2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_format: "ad_format", creator_ad_permission_type: "creator_ad_permission_type", instagram_boost_post_access_token: "instagram_boost_post_access_token", is_mca_internal: "is_mca_internal", partners: "partners", promoted_page_id: "promoted_page_id", ui_version: "ui_version" }); }, "get") }]); return AdCreativeBrandedContentAds2; }(AbstractCrudObject); var AdCreativeBrandedContentAdsPartners = function(_AbstractCrudObject) { inherits(AdCreativeBrandedContentAdsPartners2, _AbstractCrudObject); function AdCreativeBrandedContentAdsPartners2() { classCallCheck(this, AdCreativeBrandedContentAdsPartners2); return possibleConstructorReturn(this, (AdCreativeBrandedContentAdsPartners2.__proto__ || Object.getPrototypeOf(AdCreativeBrandedContentAdsPartners2)).apply(this, arguments)); } __name(AdCreativeBrandedContentAdsPartners2, "AdCreativeBrandedContentAdsPartners"); createClass(AdCreativeBrandedContentAdsPartners2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ fb_page_id: "fb_page_id", identity_type: "identity_type", ig_asset_id: "ig_asset_id", ig_user_id: "ig_user_id" }); }, "get") }]); return AdCreativeBrandedContentAdsPartners2; }(AbstractCrudObject); var AdCreativeCollectionThumbnailInfo = function(_AbstractCrudObject) { inherits(AdCreativeCollectionThumbnailInfo2, _AbstractCrudObject); function AdCreativeCollectionThumbnailInfo2() { classCallCheck(this, AdCreativeCollectionThumbnailInfo2); return possibleConstructorReturn(this, (AdCreativeCollectionThumbnailInfo2.__proto__ || Object.getPrototypeOf(AdCreativeCollectionThumbnailInfo2)).apply(this, arguments)); } __name(AdCreativeCollectionThumbnailInfo2, "AdCreativeCollectionThumbnailInfo"); createClass(AdCreativeCollectionThumbnailInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ element_child_index: "element_child_index", element_crops: "element_crops", element_id: "element_id" }); }, "get") }]); return AdCreativeCollectionThumbnailInfo2; }(AbstractCrudObject); var AdCreativeDegreesOfFreedomSpec = function(_AbstractCrudObject) { inherits(AdCreativeDegreesOfFreedomSpec2, _AbstractCrudObject); function AdCreativeDegreesOfFreedomSpec2() { classCallCheck(this, AdCreativeDegreesOfFreedomSpec2); return possibleConstructorReturn(this, (AdCreativeDegreesOfFreedomSpec2.__proto__ || Object.getPrototypeOf(AdCreativeDegreesOfFreedomSpec2)).apply(this, arguments)); } __name(AdCreativeDegreesOfFreedomSpec2, "AdCreativeDegreesOfFreedomSpec"); createClass(AdCreativeDegreesOfFreedomSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_handle_type: "ad_handle_type", creative_features_spec: "creative_features_spec", degrees_of_freedom_type: "degrees_of_freedom_type", image_transformation_types: "image_transformation_types", multi_media_transformation_type: "multi_media_transformation_type", stories_transformation_types: "stories_transformation_types", text_transformation_types: "text_transformation_types", video_transformation_types: "video_transformation_types" }); }, "get") }]); return AdCreativeDegreesOfFreedomSpec2; }(AbstractCrudObject); var AdCreativeFacebookBrandedContent = function(_AbstractCrudObject) { inherits(AdCreativeFacebookBrandedContent2, _AbstractCrudObject); function AdCreativeFacebookBrandedContent2() { classCallCheck(this, AdCreativeFacebookBrandedContent2); return possibleConstructorReturn(this, (AdCreativeFacebookBrandedContent2.__proto__ || Object.getPrototypeOf(AdCreativeFacebookBrandedContent2)).apply(this, arguments)); } __name(AdCreativeFacebookBrandedContent2, "AdCreativeFacebookBrandedContent"); createClass(AdCreativeFacebookBrandedContent2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ shared_to_sponsor_status: "shared_to_sponsor_status", sponsor_page_id: "sponsor_page_id", sponsor_relationship: "sponsor_relationship" }); }, "get") }]); return AdCreativeFacebookBrandedContent2; }(AbstractCrudObject); var AdCreativeFeatureDetails = function(_AbstractCrudObject) { inherits(AdCreativeFeatureDetails2, _AbstractCrudObject); function AdCreativeFeatureDetails2() { classCallCheck(this, AdCreativeFeatureDetails2); return possibleConstructorReturn(this, (AdCreativeFeatureDetails2.__proto__ || Object.getPrototypeOf(AdCreativeFeatureDetails2)).apply(this, arguments)); } __name(AdCreativeFeatureDetails2, "AdCreativeFeatureDetails"); createClass(AdCreativeFeatureDetails2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ enroll_status: "enroll_status" }); }, "get") }]); return AdCreativeFeatureDetails2; }(AbstractCrudObject); var AdCreativeFeaturesSpec = function(_AbstractCrudObject) { inherits(AdCreativeFeaturesSpec2, _AbstractCrudObject); function AdCreativeFeaturesSpec2() { classCallCheck(this, AdCreativeFeaturesSpec2); return possibleConstructorReturn(this, (AdCreativeFeaturesSpec2.__proto__ || Object.getPrototypeOf(AdCreativeFeaturesSpec2)).apply(this, arguments)); } __name(AdCreativeFeaturesSpec2, "AdCreativeFeaturesSpec"); createClass(AdCreativeFeaturesSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advantage_plus_creative: "advantage_plus_creative", app_highlights: "app_highlights", audio: "audio", carousel_to_video: "carousel_to_video", catalog_feed_tag: "catalog_feed_tag", customize_product_recommendation: "customize_product_recommendation", cv_transformation: "cv_transformation", description_automation: "description_automation", dha_optimization: "dha_optimization", ig_glados_feed: "ig_glados_feed", image_auto_crop: "image_auto_crop", image_background_gen: "image_background_gen", image_enhancement: "image_enhancement", image_templates: "image_templates", image_touchups: "image_touchups", image_uncrop: "image_uncrop", inline_comment: "inline_comment", media_liquidity_animated_image: "media_liquidity_animated_image", media_order: "media_order", media_type_automation: "media_type_automation", product_extensions: "product_extensions", product_metadata_automation: "product_metadata_automation", product_tags: "product_tags", profile_card: "profile_card", site_extensions: "site_extensions", standard_enhancements: "standard_enhancements", standard_enhancements_catalog: "standard_enhancements_catalog", text_generation: "text_generation", text_optimizations: "text_optimizations", video_auto_crop: "video_auto_crop", video_highlight: "video_highlight" }); }, "get") }]); return AdCreativeFeaturesSpec2; }(AbstractCrudObject); var AdCreativeInstagramBrandedContent = function(_AbstractCrudObject) { inherits(AdCreativeInstagramBrandedContent2, _AbstractCrudObject); function AdCreativeInstagramBrandedContent2() { classCallCheck(this, AdCreativeInstagramBrandedContent2); return possibleConstructorReturn(this, (AdCreativeInstagramBrandedContent2.__proto__ || Object.getPrototypeOf(AdCreativeInstagramBrandedContent2)).apply(this, arguments)); } __name(AdCreativeInstagramBrandedContent2, "AdCreativeInstagramBrandedContent"); createClass(AdCreativeInstagramBrandedContent2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ sponsor_id: "sponsor_id" }); }, "get") }]); return AdCreativeInstagramBrandedContent2; }(AbstractCrudObject); var AdCreativeInteractiveComponentsSpec = function(_AbstractCrudObject) { inherits(AdCreativeInteractiveComponentsSpec2, _AbstractCrudObject); function AdCreativeInteractiveComponentsSpec2() { classCallCheck(this, AdCreativeInteractiveComponentsSpec2); return possibleConstructorReturn(this, (AdCreativeInteractiveComponentsSpec2.__proto__ || Object.getPrototypeOf(AdCreativeInteractiveComponentsSpec2)).apply(this, arguments)); } __name(AdCreativeInteractiveComponentsSpec2, "AdCreativeInteractiveComponentsSpec"); createClass(AdCreativeInteractiveComponentsSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ child_attachments: "child_attachments", components: "components" }); }, "get") }]); return AdCreativeInteractiveComponentsSpec2; }(AbstractCrudObject); var AdCreativeLinkData = function(_AbstractCrudObject) { inherits(AdCreativeLinkData2, _AbstractCrudObject); function AdCreativeLinkData2() { classCallCheck(this, AdCreativeLinkData2); return possibleConstructorReturn(this, (AdCreativeLinkData2.__proto__ || Object.getPrototypeOf(AdCreativeLinkData2)).apply(this, arguments)); } __name(AdCreativeLinkData2, "AdCreativeLinkData"); createClass(AdCreativeLinkData2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_context: "ad_context", additional_image_index: "additional_image_index", app_link_spec: "app_link_spec", attachment_style: "attachment_style", automated_product_tags: "automated_product_tags", branded_content_shared_to_sponsor_status: "branded_content_shared_to_sponsor_status", branded_content_sponsor_page_id: "branded_content_sponsor_page_id", call_to_action: "call_to_action", caption: "caption", child_attachments: "child_attachments", collection_thumbnails: "collection_thumbnails", customization_rules_spec: "customization_rules_spec", description: "description", event_id: "event_id", force_single_link: "force_single_link", format_option: "format_option", image_crops: "image_crops", image_hash: "image_hash", image_layer_specs: "image_layer_specs", image_overlay_spec: "image_overlay_spec", link: "link", message: "message", multi_share_end_card: "multi_share_end_card", multi_share_optimized: "multi_share_optimized", name: "name", offer_id: "offer_id", page_welcome_message: "page_welcome_message", picture: "picture", post_click_configuration: "post_click_configuration", preferred_image_tags: "preferred_image_tags", retailer_item_ids: "retailer_item_ids", show_multiple_images: "show_multiple_images", static_fallback_spec: "static_fallback_spec", use_flexible_image_aspect_ratio: "use_flexible_image_aspect_ratio" }); }, "get") }, { key: "FormatOption", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ carousel_ar_effects: "carousel_ar_effects", carousel_images_multi_items: "carousel_images_multi_items", carousel_images_single_item: "carousel_images_single_item", carousel_slideshows: "carousel_slideshows", collection_video: "collection_video", single_image: "single_image" }); }, "get") }]); return AdCreativeLinkData2; }(AbstractCrudObject); var AdCreativeLinkDataAppLinkSpec = function(_AbstractCrudObject) { inherits(AdCreativeLinkDataAppLinkSpec2, _AbstractCrudObject); function AdCreativeLinkDataAppLinkSpec2() { classCallCheck(this, AdCreativeLinkDataAppLinkSpec2); return possibleConstructorReturn(this, (AdCreativeLinkDataAppLinkSpec2.__proto__ || Object.getPrototypeOf(AdCreativeLinkDataAppLinkSpec2)).apply(this, arguments)); } __name(AdCreativeLinkDataAppLinkSpec2, "AdCreativeLinkDataAppLinkSpec"); createClass(AdCreativeLinkDataAppLinkSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ android: "android", ios: "ios", ipad: "ipad", iphone: "iphone" }); }, "get") }]); return AdCreativeLinkDataAppLinkSpec2; }(AbstractCrudObject); var AdCreativeLinkDataCallToAction = function(_AbstractCrudObject) { inherits(AdCreativeLinkDataCallToAction2, _AbstractCrudObject); function AdCreativeLinkDataCallToAction2() { classCallCheck(this, AdCreativeLinkDataCallToAction2); return possibleConstructorReturn(this, (AdCreativeLinkDataCallToAction2.__proto__ || Object.getPrototypeOf(AdCreativeLinkDataCallToAction2)).apply(this, arguments)); } __name(AdCreativeLinkDataCallToAction2, "AdCreativeLinkDataCallToAction"); createClass(AdCreativeLinkDataCallToAction2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ type: "type", value: "value" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ add_to_cart: "ADD_TO_CART", apply_now: "APPLY_NOW", ask_about_services: "ASK_ABOUT_SERVICES", ask_for_more_info: "ASK_FOR_MORE_INFO", audio_call: "AUDIO_CALL", book_a_consultation: "BOOK_A_CONSULTATION", book_now: "BOOK_NOW", book_travel: "BOOK_TRAVEL", buy: "BUY", buy_now: "BUY_NOW", buy_tickets: "BUY_TICKETS", buy_via_message: "BUY_VIA_MESSAGE", call: "CALL", call_me: "CALL_ME", call_now: "CALL_NOW", chat_with_us: "CHAT_WITH_US", confirm: "CONFIRM", contact: "CONTACT", contact_us: "CONTACT_US", donate: "DONATE", donate_now: "DONATE_NOW", download: "DOWNLOAD", event_rsvp: "EVENT_RSVP", find_a_group: "FIND_A_GROUP", find_your_groups: "FIND_YOUR_GROUPS", follow_news_storyline: "FOLLOW_NEWS_STORYLINE", follow_page: "FOLLOW_PAGE", follow_user: "FOLLOW_USER", get_a_quote: "GET_A_QUOTE", get_directions: "GET_DIRECTIONS", get_offer: "GET_OFFER", get_offer_view: "GET_OFFER_VIEW", get_promotions: "GET_PROMOTIONS", get_quote: "GET_QUOTE", get_showtimes: "GET_SHOWTIMES", get_started: "GET_STARTED", inquire_now: "INQUIRE_NOW", install_app: "INSTALL_APP", install_mobile_app: "INSTALL_MOBILE_APP", join_channel: "JOIN_CHANNEL", learn_more: "LEARN_MORE", like_page: "LIKE_PAGE", listen_music: "LISTEN_MUSIC", listen_now: "LISTEN_NOW", make_an_appointment: "MAKE_AN_APPOINTMENT", message_page: "MESSAGE_PAGE", mobile_download: "MOBILE_DOWNLOAD", no_button: "NO_BUTTON", open_instant_app: "OPEN_INSTANT_APP", open_link: "OPEN_LINK", order_now: "ORDER_NOW", pay_to_access: "PAY_TO_ACCESS", play_game: "PLAY_GAME", play_game_on_facebook: "PLAY_GAME_ON_FACEBOOK", purchase_gift_cards: "PURCHASE_GIFT_CARDS", raise_money: "RAISE_MONEY", record_now: "RECORD_NOW", refer_friends: "REFER_FRIENDS", request_time: "REQUEST_TIME", say_thanks: "SAY_THANKS", see_more: "SEE_MORE", sell_now: "SELL_NOW", send_a_gift: "SEND_A_GIFT", send_gift_money: "SEND_GIFT_MONEY", send_updates: "SEND_UPDATES", share: "SHARE", shop_now: "SHOP_NOW", sign_up: "SIGN_UP", sotto_subscribe: "SOTTO_SUBSCRIBE", start_order: "START_ORDER", subscribe: "SUBSCRIBE", swipe_up_product: "SWIPE_UP_PRODUCT", swipe_up_shop: "SWIPE_UP_SHOP", update_app: "UPDATE_APP", use_app: "USE_APP", use_mobile_app: "USE_MOBILE_APP", video_annotation: "VIDEO_ANNOTATION", video_call: "VIDEO_CALL", visit_pages_feed: "VISIT_PAGES_FEED", watch_more: "WATCH_MORE", watch_video: "WATCH_VIDEO", whatsapp_message: "WHATSAPP_MESSAGE", woodhenge_support: "WOODHENGE_SUPPORT" }); }, "get") }]); return AdCreativeLinkDataCallToAction2; }(AbstractCrudObject); var AdCreativeLinkDataCallToActionValue = function(_AbstractCrudObject) { inherits(AdCreativeLinkDataCallToActionValue2, _AbstractCrudObject); function AdCreativeLinkDataCallToActionValue2() { classCallCheck(this, AdCreativeLinkDataCallToActionValue2); return possibleConstructorReturn(this, (AdCreativeLinkDataCallToActionValue2.__proto__ || Object.getPrototypeOf(AdCreativeLinkDataCallToActionValue2)).apply(this, arguments)); } __name(AdCreativeLinkDataCallToActionValue2, "AdCreativeLinkDataCallToActionValue"); createClass(AdCreativeLinkDataCallToActionValue2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_destination: "app_destination", app_link: "app_link", application: "application", event_id: "event_id", lead_gen_form_id: "lead_gen_form_id", link: "link", link_caption: "link_caption", link_format: "link_format", page: "page", product_link: "product_link", whatsapp_number: "whatsapp_number" }); }, "get") }]); return AdCreativeLinkDataCallToActionValue2; }(AbstractCrudObject); var AdCreativeLinkDataChildAttachment = function(_AbstractCrudObject) { inherits(AdCreativeLinkDataChildAttachment2, _AbstractCrudObject); function AdCreativeLinkDataChildAttachment2() { classCallCheck(this, AdCreativeLinkDataChildAttachment2); return possibleConstructorReturn(this, (AdCreativeLinkDataChildAttachment2.__proto__ || Object.getPrototypeOf(AdCreativeLinkDataChildAttachment2)).apply(this, arguments)); } __name(AdCreativeLinkDataChildAttachment2, "AdCreativeLinkDataChildAttachment"); createClass(AdCreativeLinkDataChildAttachment2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ call_to_action: "call_to_action", caption: "caption", description: "description", image_crops: "image_crops", image_hash: "image_hash", link: "link", name: "name", picture: "picture", place_data: "place_data", static_card: "static_card", video_id: "video_id" }); }, "get") }]); return AdCreativeLinkDataChildAttachment2; }(AbstractCrudObject); var AdCreativeLinkDataImageLayerSpec = function(_AbstractCrudObject) { inherits(AdCreativeLinkDataImageLayerSpec2, _AbstractCrudObject); function AdCreativeLinkDataImageLayerSpec2() { classCallCheck(this, AdCreativeLinkDataImageLayerSpec2); return possibleConstructorReturn(this, (AdCreativeLinkDataImageLayerSpec2.__proto__ || Object.getPrototypeOf(AdCreativeLinkDataImageLayerSpec2)).apply(this, arguments)); } __name(AdCreativeLinkDataImageLayerSpec2, "AdCreativeLinkDataImageLayerSpec"); createClass(AdCreativeLinkDataImageLayerSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ blending_mode: "blending_mode", content: "content", frame_image_hash: "frame_image_hash", frame_source: "frame_source", image_source: "image_source", layer_type: "layer_type", opacity: "opacity", overlay_position: "overlay_position", overlay_shape: "overlay_shape", scale: "scale", shape_color: "shape_color", text_color: "text_color", text_font: "text_font" }); }, "get") }, { key: "BlendingMode", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ lighten: "lighten", multiply: "multiply", normal: "normal" }); }, "get") }, { key: "FrameSource", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ custom: "custom" }); }, "get") }, { key: "ImageSource", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ catalog: "catalog" }); }, "get") }, { key: "LayerType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ frame_overlay: "frame_overlay", image: "image", text_overlay: "text_overlay" }); }, "get") }, { key: "OverlayPosition", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ bottom: "bottom", bottom_left: "bottom_left", bottom_right: "bottom_right", center: "center", left: "left", right: "right", top: "top", top_left: "top_left", top_right: "top_right" }); }, "get") }, { key: "OverlayShape", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ circle: "circle", none: "none", pill: "pill", rectangle: "rectangle", triangle: "triangle" }); }, "get") }, { key: "TextFont", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ droid_serif_regular: "droid_serif_regular", lato_regular: "lato_regular", noto_sans_regular: "noto_sans_regular", nunito_sans_bold: "nunito_sans_bold", open_sans_bold: "open_sans_bold", open_sans_condensed_bold: "open_sans_condensed_bold", pt_serif_bold: "pt_serif_bold", roboto_condensed_regular: "roboto_condensed_regular", roboto_medium: "roboto_medium" }); }, "get") }]); return AdCreativeLinkDataImageLayerSpec2; }(AbstractCrudObject); var AdCreativeLinkDataImageOverlaySpec = function(_AbstractCrudObject) { inherits(AdCreativeLinkDataImageOverlaySpec2, _AbstractCrudObject); function AdCreativeLinkDataImageOverlaySpec2() { classCallCheck(this, AdCreativeLinkDataImageOverlaySpec2); return possibleConstructorReturn(this, (AdCreativeLinkDataImageOverlaySpec2.__proto__ || Object.getPrototypeOf(AdCreativeLinkDataImageOverlaySpec2)).apply(this, arguments)); } __name(AdCreativeLinkDataImageOverlaySpec2, "AdCreativeLinkDataImageOverlaySpec"); createClass(AdCreativeLinkDataImageOverlaySpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ custom_text_type: "custom_text_type", float_with_margin: "float_with_margin", overlay_template: "overlay_template", position: "position", text_font: "text_font", text_template_tags: "text_template_tags", text_type: "text_type", theme_color: "theme_color" }); }, "get") }, { key: "CustomTextType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ free_shipping: "free_shipping", popular: "popular" }); }, "get") }, { key: "OverlayTemplate", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ circle_with_text: "circle_with_text", pill_with_text: "pill_with_text", triangle_with_text: "triangle_with_text" }); }, "get") }, { key: "Position", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ bottom_left: "bottom_left", bottom_right: "bottom_right", top_left: "top_left", top_right: "top_right" }); }, "get") }, { key: "TextFont", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ droid_serif_regular: "droid_serif_regular", dynads_hybrid_bold: "dynads_hybrid_bold", lato_regular: "lato_regular", noto_sans_regular: "noto_sans_regular", nunito_sans_bold: "nunito_sans_bold", open_sans_bold: "open_sans_bold", open_sans_condensed_bold: "open_sans_condensed_bold", pt_serif_bold: "pt_serif_bold", roboto_condensed_regular: "roboto_condensed_regular", roboto_medium: "roboto_medium" }); }, "get") }, { key: "TextType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ automated_personalize: "automated_personalize", custom: "custom", disclaimer: "disclaimer", from_price: "from_price", guest_rating: "guest_rating", percentage_off: "percentage_off", price: "price", star_rating: "star_rating", strikethrough_price: "strikethrough_price", sustainable: "sustainable" }); }, "get") }, { key: "ThemeColor", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ background_000000_text_ffffff: "background_000000_text_ffffff", background_0090ff_text_ffffff: "background_0090ff_text_ffffff", background_00af4c_text_ffffff: "background_00af4c_text_ffffff", background_595959_text_ffffff: "background_595959_text_ffffff", background_755dde_text_ffffff: "background_755dde_text_ffffff", background_e50900_text_ffffff: "background_e50900_text_ffffff", background_f23474_text_ffffff: "background_f23474_text_ffffff", background_f78400_text_ffffff: "background_f78400_text_ffffff", background_ffffff_text_000000: "background_ffffff_text_000000", background_ffffff_text_007ad0: "background_ffffff_text_007ad0", background_ffffff_text_009c2a: "background_ffffff_text_009c2a", background_ffffff_text_646464: "background_ffffff_text_646464", background_ffffff_text_755dde: "background_ffffff_text_755dde", background_ffffff_text_c91b00: "background_ffffff_text_c91b00", background_ffffff_text_f23474: "background_ffffff_text_f23474", background_ffffff_text_f78400: "background_ffffff_text_f78400" }); }, "get") }]); return AdCreativeLinkDataImageOverlaySpec2; }(AbstractCrudObject); var AdCreativeLinkDataSponsorshipInfoSpec = function(_AbstractCrudObject) { inherits(AdCreativeLinkDataSponsorshipInfoSpec2, _AbstractCrudObject); function AdCreativeLinkDataSponsorshipInfoSpec2() { classCallCheck(this, AdCreativeLinkDataSponsorshipInfoSpec2); return possibleConstructorReturn(this, (AdCreativeLinkDataSponsorshipInfoSpec2.__proto__ || Object.getPrototypeOf(AdCreativeLinkDataSponsorshipInfoSpec2)).apply(this, arguments)); } __name(AdCreativeLinkDataSponsorshipInfoSpec2, "AdCreativeLinkDataSponsorshipInfoSpec"); createClass(AdCreativeLinkDataSponsorshipInfoSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ sponsor_image_url: "sponsor_image_url", sponsor_name: "sponsor_name" }); }, "get") }]); return AdCreativeLinkDataSponsorshipInfoSpec2; }(AbstractCrudObject); var AdCreativeLinkDataTemplateVideoSpec = function(_AbstractCrudObject) { inherits(AdCreativeLinkDataTemplateVideoSpec2, _AbstractCrudObject); function AdCreativeLinkDataTemplateVideoSpec2() { classCallCheck(this, AdCreativeLinkDataTemplateVideoSpec2); return possibleConstructorReturn(this, (AdCreativeLinkDataTemplateVideoSpec2.__proto__ || Object.getPrototypeOf(AdCreativeLinkDataTemplateVideoSpec2)).apply(this, arguments)); } __name(AdCreativeLinkDataTemplateVideoSpec2, "AdCreativeLinkDataTemplateVideoSpec"); createClass(AdCreativeLinkDataTemplateVideoSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ categorization_criteria: "categorization_criteria", customization: "customization", template_id: "template_id" }); }, "get") }]); return AdCreativeLinkDataTemplateVideoSpec2; }(AbstractCrudObject); var AdCreativeObjectStorySpec = function(_AbstractCrudObject) { inherits(AdCreativeObjectStorySpec2, _AbstractCrudObject); function AdCreativeObjectStorySpec2() { classCallCheck(this, AdCreativeObjectStorySpec2); return possibleConstructorReturn(this, (AdCreativeObjectStorySpec2.__proto__ || Object.getPrototypeOf(AdCreativeObjectStorySpec2)).apply(this, arguments)); } __name(AdCreativeObjectStorySpec2, "AdCreativeObjectStorySpec"); createClass(AdCreativeObjectStorySpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ instagram_actor_id: "instagram_actor_id", link_data: "link_data", page_id: "page_id", photo_data: "photo_data", template_data: "template_data", text_data: "text_data", video_data: "video_data" }); }, "get") }]); return AdCreativeObjectStorySpec2; }(AbstractCrudObject); var AdCreativeOmnichannelLinkSpec = function(_AbstractCrudObject) { inherits(AdCreativeOmnichannelLinkSpec2, _AbstractCrudObject); function AdCreativeOmnichannelLinkSpec2() { classCallCheck(this, AdCreativeOmnichannelLinkSpec2); return possibleConstructorReturn(this, (AdCreativeOmnichannelLinkSpec2.__proto__ || Object.getPrototypeOf(AdCreativeOmnichannelLinkSpec2)).apply(this, arguments)); } __name(AdCreativeOmnichannelLinkSpec2, "AdCreativeOmnichannelLinkSpec"); createClass(AdCreativeOmnichannelLinkSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app: "app", web: "web" }); }, "get") }]); return AdCreativeOmnichannelLinkSpec2; }(AbstractCrudObject); var AdCreativePhotoData = function(_AbstractCrudObject) { inherits(AdCreativePhotoData2, _AbstractCrudObject); function AdCreativePhotoData2() { classCallCheck(this, AdCreativePhotoData2); return possibleConstructorReturn(this, (AdCreativePhotoData2.__proto__ || Object.getPrototypeOf(AdCreativePhotoData2)).apply(this, arguments)); } __name(AdCreativePhotoData2, "AdCreativePhotoData"); createClass(AdCreativePhotoData2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ branded_content_shared_to_sponsor_status: "branded_content_shared_to_sponsor_status", branded_content_sponsor_page_id: "branded_content_sponsor_page_id", caption: "caption", image_hash: "image_hash", page_welcome_message: "page_welcome_message", url: "url" }); }, "get") }]); return AdCreativePhotoData2; }(AbstractCrudObject); var AdCreativePhotoDataMediaElements = function(_AbstractCrudObject) { inherits(AdCreativePhotoDataMediaElements2, _AbstractCrudObject); function AdCreativePhotoDataMediaElements2() { classCallCheck(this, AdCreativePhotoDataMediaElements2); return possibleConstructorReturn(this, (AdCreativePhotoDataMediaElements2.__proto__ || Object.getPrototypeOf(AdCreativePhotoDataMediaElements2)).apply(this, arguments)); } __name(AdCreativePhotoDataMediaElements2, "AdCreativePhotoDataMediaElements"); createClass(AdCreativePhotoDataMediaElements2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ element_id: "element_id", element_type: "element_type", x: "x", y: "y" }); }, "get") }]); return AdCreativePhotoDataMediaElements2; }(AbstractCrudObject); var AdCreativePlaceData = function(_AbstractCrudObject) { inherits(AdCreativePlaceData2, _AbstractCrudObject); function AdCreativePlaceData2() { classCallCheck(this, AdCreativePlaceData2); return possibleConstructorReturn(this, (AdCreativePlaceData2.__proto__ || Object.getPrototypeOf(AdCreativePlaceData2)).apply(this, arguments)); } __name(AdCreativePlaceData2, "AdCreativePlaceData"); createClass(AdCreativePlaceData2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ address_string: "address_string", label: "label", latitude: "latitude", location_source_id: "location_source_id", longitude: "longitude", type: "type" }); }, "get") }]); return AdCreativePlaceData2; }(AbstractCrudObject); var AdCreativePlatformCustomization = function(_AbstractCrudObject) { inherits(AdCreativePlatformCustomization2, _AbstractCrudObject); function AdCreativePlatformCustomization2() { classCallCheck(this, AdCreativePlatformCustomization2); return possibleConstructorReturn(this, (AdCreativePlatformCustomization2.__proto__ || Object.getPrototypeOf(AdCreativePlatformCustomization2)).apply(this, arguments)); } __name(AdCreativePlatformCustomization2, "AdCreativePlatformCustomization"); createClass(AdCreativePlatformCustomization2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ instagram: "instagram" }); }, "get") }]); return AdCreativePlatformCustomization2; }(AbstractCrudObject); var AdCreativePortraitCustomizations = function(_AbstractCrudObject) { inherits(AdCreativePortraitCustomizations2, _AbstractCrudObject); function AdCreativePortraitCustomizations2() { classCallCheck(this, AdCreativePortraitCustomizations2); return possibleConstructorReturn(this, (AdCreativePortraitCustomizations2.__proto__ || Object.getPrototypeOf(AdCreativePortraitCustomizations2)).apply(this, arguments)); } __name(AdCreativePortraitCustomizations2, "AdCreativePortraitCustomizations"); createClass(AdCreativePortraitCustomizations2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ carousel_delivery_mode: "carousel_delivery_mode", specifications: "specifications" }); }, "get") }]); return AdCreativePortraitCustomizations2; }(AbstractCrudObject); var AdCreativePostClickConfiguration = function(_AbstractCrudObject) { inherits(AdCreativePostClickConfiguration2, _AbstractCrudObject); function AdCreativePostClickConfiguration2() { classCallCheck(this, AdCreativePostClickConfiguration2); return possibleConstructorReturn(this, (AdCreativePostClickConfiguration2.__proto__ || Object.getPrototypeOf(AdCreativePostClickConfiguration2)).apply(this, arguments)); } __name(AdCreativePostClickConfiguration2, "AdCreativePostClickConfiguration"); createClass(AdCreativePostClickConfiguration2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ post_click_item_description: "post_click_item_description", post_click_item_headline: "post_click_item_headline" }); }, "get") }]); return AdCreativePostClickConfiguration2; }(AbstractCrudObject); var AdCreativePromotionMetadataSpec = function(_AbstractCrudObject) { inherits(AdCreativePromotionMetadataSpec2, _AbstractCrudObject); function AdCreativePromotionMetadataSpec2() { classCallCheck(this, AdCreativePromotionMetadataSpec2); return possibleConstructorReturn(this, (AdCreativePromotionMetadataSpec2.__proto__ || Object.getPrototypeOf(AdCreativePromotionMetadataSpec2)).apply(this, arguments)); } __name(AdCreativePromotionMetadataSpec2, "AdCreativePromotionMetadataSpec"); createClass(AdCreativePromotionMetadataSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ end_date: "end_date", id: "id", promotion_source: "promotion_source", promotion_type: "promotion_type", promotion_value: "promotion_value", required_code: "required_code", start_date: "start_date" }); }, "get") }]); return AdCreativePromotionMetadataSpec2; }(AbstractCrudObject); var AdCreativeRecommenderSettings = function(_AbstractCrudObject) { inherits(AdCreativeRecommenderSettings2, _AbstractCrudObject); function AdCreativeRecommenderSettings2() { classCallCheck(this, AdCreativeRecommenderSettings2); return possibleConstructorReturn(this, (AdCreativeRecommenderSettings2.__proto__ || Object.getPrototypeOf(AdCreativeRecommenderSettings2)).apply(this, arguments)); } __name(AdCreativeRecommenderSettings2, "AdCreativeRecommenderSettings"); createClass(AdCreativeRecommenderSettings2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ preferred_events: "preferred_events", product_sales_channel: "product_sales_channel" }); }, "get") }]); return AdCreativeRecommenderSettings2; }(AbstractCrudObject); var AdCreativeSiteLinksSpec = function(_AbstractCrudObject) { inherits(AdCreativeSiteLinksSpec2, _AbstractCrudObject); function AdCreativeSiteLinksSpec2() { classCallCheck(this, AdCreativeSiteLinksSpec2); return possibleConstructorReturn(this, (AdCreativeSiteLinksSpec2.__proto__ || Object.getPrototypeOf(AdCreativeSiteLinksSpec2)).apply(this, arguments)); } __name(AdCreativeSiteLinksSpec2, "AdCreativeSiteLinksSpec"); createClass(AdCreativeSiteLinksSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ site_link_title: "site_link_title", site_link_url: "site_link_url" }); }, "get") }]); return AdCreativeSiteLinksSpec2; }(AbstractCrudObject); var AdCreativeSourcingSpec = function(_AbstractCrudObject) { inherits(AdCreativeSourcingSpec2, _AbstractCrudObject); function AdCreativeSourcingSpec2() { classCallCheck(this, AdCreativeSourcingSpec2); return possibleConstructorReturn(this, (AdCreativeSourcingSpec2.__proto__ || Object.getPrototypeOf(AdCreativeSourcingSpec2)).apply(this, arguments)); } __name(AdCreativeSourcingSpec2, "AdCreativeSourcingSpec"); createClass(AdCreativeSourcingSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ associated_product_set_id: "associated_product_set_id", promotion_metadata_spec: "promotion_metadata_spec", site_links_spec: "site_links_spec", source_url: "source_url" }); }, "get") }]); return AdCreativeSourcingSpec2; }(AbstractCrudObject); var AdCreativeStaticFallbackSpec = function(_AbstractCrudObject) { inherits(AdCreativeStaticFallbackSpec2, _AbstractCrudObject); function AdCreativeStaticFallbackSpec2() { classCallCheck(this, AdCreativeStaticFallbackSpec2); return possibleConstructorReturn(this, (AdCreativeStaticFallbackSpec2.__proto__ || Object.getPrototypeOf(AdCreativeStaticFallbackSpec2)).apply(this, arguments)); } __name(AdCreativeStaticFallbackSpec2, "AdCreativeStaticFallbackSpec"); createClass(AdCreativeStaticFallbackSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ call_to_action: "call_to_action", description: "description", image_hash: "image_hash", link: "link", message: "message", name: "name" }); }, "get") }]); return AdCreativeStaticFallbackSpec2; }(AbstractCrudObject); var AdCreativeTemplateURLSpec = function(_AbstractCrudObject) { inherits(AdCreativeTemplateURLSpec2, _AbstractCrudObject); function AdCreativeTemplateURLSpec2() { classCallCheck(this, AdCreativeTemplateURLSpec2); return possibleConstructorReturn(this, (AdCreativeTemplateURLSpec2.__proto__ || Object.getPrototypeOf(AdCreativeTemplateURLSpec2)).apply(this, arguments)); } __name(AdCreativeTemplateURLSpec2, "AdCreativeTemplateURLSpec"); createClass(AdCreativeTemplateURLSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ android: "android", config: "config", ios: "ios", ipad: "ipad", iphone: "iphone", web: "web", windows_phone: "windows_phone" }); }, "get") }]); return AdCreativeTemplateURLSpec2; }(AbstractCrudObject); var AdCreativeTextData = function(_AbstractCrudObject) { inherits(AdCreativeTextData2, _AbstractCrudObject); function AdCreativeTextData2() { classCallCheck(this, AdCreativeTextData2); return possibleConstructorReturn(this, (AdCreativeTextData2.__proto__ || Object.getPrototypeOf(AdCreativeTextData2)).apply(this, arguments)); } __name(AdCreativeTextData2, "AdCreativeTextData"); createClass(AdCreativeTextData2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ message: "message" }); }, "get") }]); return AdCreativeTextData2; }(AbstractCrudObject); var AdCreativeVideoData = function(_AbstractCrudObject) { inherits(AdCreativeVideoData2, _AbstractCrudObject); function AdCreativeVideoData2() { classCallCheck(this, AdCreativeVideoData2); return possibleConstructorReturn(this, (AdCreativeVideoData2.__proto__ || Object.getPrototypeOf(AdCreativeVideoData2)).apply(this, arguments)); } __name(AdCreativeVideoData2, "AdCreativeVideoData"); createClass(AdCreativeVideoData2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ additional_image_index: "additional_image_index", branded_content_shared_to_sponsor_status: "branded_content_shared_to_sponsor_status", branded_content_sponsor_page_id: "branded_content_sponsor_page_id", call_to_action: "call_to_action", collection_thumbnails: "collection_thumbnails", customization_rules_spec: "customization_rules_spec", image_hash: "image_hash", image_url: "image_url", link_description: "link_description", message: "message", offer_id: "offer_id", page_welcome_message: "page_welcome_message", post_click_configuration: "post_click_configuration", retailer_item_ids: "retailer_item_ids", targeting: "targeting", title: "title", video_id: "video_id" }); }, "get") }]); return AdCreativeVideoData2; }(AbstractCrudObject); var AdCustomizationRuleSpec = function(_AbstractCrudObject) { inherits(AdCustomizationRuleSpec2, _AbstractCrudObject); function AdCustomizationRuleSpec2() { classCallCheck(this, AdCustomizationRuleSpec2); return possibleConstructorReturn(this, (AdCustomizationRuleSpec2.__proto__ || Object.getPrototypeOf(AdCustomizationRuleSpec2)).apply(this, arguments)); } __name(AdCustomizationRuleSpec2, "AdCustomizationRuleSpec"); createClass(AdCustomizationRuleSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ caption: "caption", customization_spec: "customization_spec", description: "description", image_hash: "image_hash", link: "link", message: "message", name: "name", priority: "priority", template_url_spec: "template_url_spec", video_id: "video_id" }); }, "get") }]); return AdCustomizationRuleSpec2; }(AbstractCrudObject); var AdDynamicCreative = function(_AbstractCrudObject) { inherits(AdDynamicCreative2, _AbstractCrudObject); function AdDynamicCreative2() { classCallCheck(this, AdDynamicCreative2); return possibleConstructorReturn(this, (AdDynamicCreative2.__proto__ || Object.getPrototypeOf(AdDynamicCreative2)).apply(this, arguments)); } __name(AdDynamicCreative2, "AdDynamicCreative"); createClass(AdDynamicCreative2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ preview_url: "preview_url" }); }, "get") }]); return AdDynamicCreative2; }(AbstractCrudObject); var AdEntityTargetSpend = function(_AbstractCrudObject) { inherits(AdEntityTargetSpend2, _AbstractCrudObject); function AdEntityTargetSpend2() { classCallCheck(this, AdEntityTargetSpend2); return possibleConstructorReturn(this, (AdEntityTargetSpend2.__proto__ || Object.getPrototypeOf(AdEntityTargetSpend2)).apply(this, arguments)); } __name(AdEntityTargetSpend2, "AdEntityTargetSpend"); createClass(AdEntityTargetSpend2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amount: "amount", has_error: "has_error", is_accurate: "is_accurate", is_prorated: "is_prorated", is_updating: "is_updating" }); }, "get") }]); return AdEntityTargetSpend2; }(AbstractCrudObject); var AdKeywords = function(_AbstractCrudObject) { inherits(AdKeywords2, _AbstractCrudObject); function AdKeywords2() { classCallCheck(this, AdKeywords2); return possibleConstructorReturn(this, (AdKeywords2.__proto__ || Object.getPrototypeOf(AdKeywords2)).apply(this, arguments)); } __name(AdKeywords2, "AdKeywords"); createClass(AdKeywords2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ brands: "brands", product_categories: "product_categories", product_names: "product_names", search_terms: "search_terms" }); }, "get") }]); return AdKeywords2; }(AbstractCrudObject); var AdMonetizationProperty = function(_AbstractCrudObject) { inherits(AdMonetizationProperty2, _AbstractCrudObject); function AdMonetizationProperty2() { classCallCheck(this, AdMonetizationProperty2); return possibleConstructorReturn(this, (AdMonetizationProperty2.__proto__ || Object.getPrototypeOf(AdMonetizationProperty2)).apply(this, arguments)); } __name(AdMonetizationProperty2, "AdMonetizationProperty"); createClass(AdMonetizationProperty2, [{ key: "getAdNetworkAnalytics", value: /* @__PURE__ */ __name(function getAdNetworkAnalytics(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdNetworkAnalyticsSyncQueryResult, fields, params, fetchFirstPage, "/adnetworkanalytics"); }, "getAdNetworkAnalytics") }, { key: "createAdNetworkAnalytic", value: /* @__PURE__ */ __name(function createAdNetworkAnalytic(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/adnetworkanalytics", fields, params, AdMonetizationProperty2, pathOverride); }, "createAdNetworkAnalytic") }, { key: "getAdNetworkAnalyticsResults", value: /* @__PURE__ */ __name(function getAdNetworkAnalyticsResults(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AdNetworkAnalyticsAsyncQueryResult, fields, params, fetchFirstPage, "/adnetworkanalytics_results"); }, "getAdNetworkAnalyticsResults") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ owner_business: "owner_business", id: "id" }); }, "get") }]); return AdMonetizationProperty2; }(AbstractCrudObject); var AdPlacePageSetMetadata = function(_AbstractCrudObject) { inherits(AdPlacePageSetMetadata2, _AbstractCrudObject); function AdPlacePageSetMetadata2() { classCallCheck(this, AdPlacePageSetMetadata2); return possibleConstructorReturn(this, (AdPlacePageSetMetadata2.__proto__ || Object.getPrototypeOf(AdPlacePageSetMetadata2)).apply(this, arguments)); } __name(AdPlacePageSetMetadata2, "AdPlacePageSetMetadata"); createClass(AdPlacePageSetMetadata2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ audience: "audience", custom: "custom", extra_data: "extra_data", fixed_radius: "fixed_radius" }); }, "get") }]); return AdPlacePageSetMetadata2; }(AbstractCrudObject); var AdPromotedObject = function(_AbstractCrudObject) { inherits(AdPromotedObject2, _AbstractCrudObject); function AdPromotedObject2() { classCallCheck(this, AdPromotedObject2); return possibleConstructorReturn(this, (AdPromotedObject2.__proto__ || Object.getPrototypeOf(AdPromotedObject2)).apply(this, arguments)); } __name(AdPromotedObject2, "AdPromotedObject"); createClass(AdPromotedObject2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ application_id: "application_id", conversion_goal_id: "conversion_goal_id", custom_conversion_id: "custom_conversion_id", custom_event_str: "custom_event_str", custom_event_type: "custom_event_type", event_id: "event_id", fundraiser_campaign_id: "fundraiser_campaign_id", mcme_conversion_id: "mcme_conversion_id", object_store_url: "object_store_url", offer_id: "offer_id", offline_conversion_data_set_id: "offline_conversion_data_set_id", offsite_conversion_event_id: "offsite_conversion_event_id", omnichannel_object: "omnichannel_object", page_id: "page_id", pixel_aggregation_rule: "pixel_aggregation_rule", pixel_id: "pixel_id", pixel_rule: "pixel_rule", place_page_set: "place_page_set", place_page_set_id: "place_page_set_id", product_catalog_id: "product_catalog_id", product_item_id: "product_item_id", product_set: "product_set", product_set_id: "product_set_id", retention_days: "retention_days", whatsapp_phone_number: "whatsapp_phone_number" }); }, "get") }, { key: "CustomEventType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ achievement_unlocked: "ACHIEVEMENT_UNLOCKED", add_payment_info: "ADD_PAYMENT_INFO", add_to_cart: "ADD_TO_CART", add_to_wishlist: "ADD_TO_WISHLIST", ad_impression: "AD_IMPRESSION", complete_registration: "COMPLETE_REGISTRATION", contact: "CONTACT", content_view: "CONTENT_VIEW", customize_product: "CUSTOMIZE_PRODUCT", d2_retention: "D2_RETENTION", d7_retention: "D7_RETENTION", donate: "DONATE", find_location: "FIND_LOCATION", initiated_checkout: "INITIATED_CHECKOUT", lead: "LEAD", level_achieved: "LEVEL_ACHIEVED", listing_interaction: "LISTING_INTERACTION", messaging_conversation_started_7d: "MESSAGING_CONVERSATION_STARTED_7D", other: "OTHER", purchase: "PURCHASE", rate: "RATE", schedule: "SCHEDULE", search: "SEARCH", service_booking_request: "SERVICE_BOOKING_REQUEST", spent_credits: "SPENT_CREDITS", start_trial: "START_TRIAL", submit_application: "SUBMIT_APPLICATION", subscribe: "SUBSCRIBE", tutorial_completion: "TUTORIAL_COMPLETION" }); }, "get") }]); return AdPromotedObject2; }(AbstractCrudObject); var AdRecommendation = function(_AbstractCrudObject) { inherits(AdRecommendation2, _AbstractCrudObject); function AdRecommendation2() { classCallCheck(this, AdRecommendation2); return possibleConstructorReturn(this, (AdRecommendation2.__proto__ || Object.getPrototypeOf(AdRecommendation2)).apply(this, arguments)); } __name(AdRecommendation2, "AdRecommendation"); createClass(AdRecommendation2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ blame_field: "blame_field", code: "code", confidence: "confidence", importance: "importance", message: "message", recommendation_data: "recommendation_data", title: "title" }); }, "get") }, { key: "Confidence", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ high: "HIGH", low: "LOW", medium: "MEDIUM" }); }, "get") }, { key: "Importance", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ high: "HIGH", low: "LOW", medium: "MEDIUM" }); }, "get") }]); return AdRecommendation2; }(AbstractCrudObject); var AdRecommendationData = function(_AbstractCrudObject) { inherits(AdRecommendationData2, _AbstractCrudObject); function AdRecommendationData2() { classCallCheck(this, AdRecommendationData2); return possibleConstructorReturn(this, (AdRecommendationData2.__proto__ || Object.getPrototypeOf(AdRecommendationData2)).apply(this, arguments)); } __name(AdRecommendationData2, "AdRecommendationData"); createClass(AdRecommendationData2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ link: "link" }); }, "get") }]); return AdRecommendationData2; }(AbstractCrudObject); var AdRuleEvaluationSpec = function(_AbstractCrudObject) { inherits(AdRuleEvaluationSpec2, _AbstractCrudObject); function AdRuleEvaluationSpec2() { classCallCheck(this, AdRuleEvaluationSpec2); return possibleConstructorReturn(this, (AdRuleEvaluationSpec2.__proto__ || Object.getPrototypeOf(AdRuleEvaluationSpec2)).apply(this, arguments)); } __name(AdRuleEvaluationSpec2, "AdRuleEvaluationSpec"); createClass(AdRuleEvaluationSpec2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ evaluation_type: "evaluation_type", filters: "filters", trigger: "trigger", id: "id" }); }, "get") }, { key: "EvaluationType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ schedule: "SCHEDULE", trigger: "TRIGGER" }); }, "get") }]); return AdRuleEvaluationSpec2; }(AbstractCrudObject); var AdRuleExecutionOptions = function(_AbstractCrudObject) { inherits(AdRuleExecutionOptions2, _AbstractCrudObject); function AdRuleExecutionOptions2() { classCallCheck(this, AdRuleExecutionOptions2); return possibleConstructorReturn(this, (AdRuleExecutionOptions2.__proto__ || Object.getPrototypeOf(AdRuleExecutionOptions2)).apply(this, arguments)); } __name(AdRuleExecutionOptions2, "AdRuleExecutionOptions"); createClass(AdRuleExecutionOptions2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ field: "field", operator: "operator", value: "value" }); }, "get") }, { key: "Operator", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ equal: "EQUAL", in: "IN" }); }, "get") }]); return AdRuleExecutionOptions2; }(AbstractCrudObject); var AdRuleExecutionSpec = function(_AbstractCrudObject) { inherits(AdRuleExecutionSpec2, _AbstractCrudObject); function AdRuleExecutionSpec2() { classCallCheck(this, AdRuleExecutionSpec2); return possibleConstructorReturn(this, (AdRuleExecutionSpec2.__proto__ || Object.getPrototypeOf(AdRuleExecutionSpec2)).apply(this, arguments)); } __name(AdRuleExecutionSpec2, "AdRuleExecutionSpec"); createClass(AdRuleExecutionSpec2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ execution_options: "execution_options", execution_type: "execution_type", id: "id" }); }, "get") }, { key: "ExecutionType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ add_interest_relaxation: "ADD_INTEREST_RELAXATION", add_questionnaire_interests: "ADD_QUESTIONNAIRE_INTERESTS", audience_consolidation: "AUDIENCE_CONSOLIDATION", audience_consolidation_ask_first: "AUDIENCE_CONSOLIDATION_ASK_FIRST", change_bid: "CHANGE_BID", change_budget: "CHANGE_BUDGET", change_campaign_budget: "CHANGE_CAMPAIGN_BUDGET", dco: "DCO", increase_radius: "INCREASE_RADIUS", notification: "NOTIFICATION", pause: "PAUSE", ping_endpoint: "PING_ENDPOINT", rebalance_budget: "REBALANCE_BUDGET", rotate: "ROTATE", unpause: "UNPAUSE", update_creative: "UPDATE_CREATIVE", update_lax_budget: "UPDATE_LAX_BUDGET", update_lax_duration: "UPDATE_LAX_DURATION" }); }, "get") }]); return AdRuleExecutionSpec2; }(AbstractCrudObject); var AdRuleFilters = function(_AbstractCrudObject) { inherits(AdRuleFilters2, _AbstractCrudObject); function AdRuleFilters2() { classCallCheck(this, AdRuleFilters2); return possibleConstructorReturn(this, (AdRuleFilters2.__proto__ || Object.getPrototypeOf(AdRuleFilters2)).apply(this, arguments)); } __name(AdRuleFilters2, "AdRuleFilters"); createClass(AdRuleFilters2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ field: "field", operator: "operator", value: "value" }); }, "get") }, { key: "Operator", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ all: "ALL", any: "ANY", contain: "CONTAIN", equal: "EQUAL", greater_than: "GREATER_THAN", in: "IN", in_range: "IN_RANGE", less_than: "LESS_THAN", none: "NONE", not_contain: "NOT_CONTAIN", not_equal: "NOT_EQUAL", not_in: "NOT_IN", not_in_range: "NOT_IN_RANGE" }); }, "get") }]); return AdRuleFilters2; }(AbstractCrudObject); var AdRuleHistoryResult = function(_AbstractCrudObject) { inherits(AdRuleHistoryResult2, _AbstractCrudObject); function AdRuleHistoryResult2() { classCallCheck(this, AdRuleHistoryResult2); return possibleConstructorReturn(this, (AdRuleHistoryResult2.__proto__ || Object.getPrototypeOf(AdRuleHistoryResult2)).apply(this, arguments)); } __name(AdRuleHistoryResult2, "AdRuleHistoryResult"); createClass(AdRuleHistoryResult2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ actions: "actions", object_id: "object_id", object_type: "object_type" }); }, "get") }, { key: "ObjectType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad: "AD", adset: "ADSET", campaign: "CAMPAIGN" }); }, "get") }]); return AdRuleHistoryResult2; }(AbstractCrudObject); var AdRuleHistoryResultAction = function(_AbstractCrudObject) { inherits(AdRuleHistoryResultAction2, _AbstractCrudObject); function AdRuleHistoryResultAction2() { classCallCheck(this, AdRuleHistoryResultAction2); return possibleConstructorReturn(this, (AdRuleHistoryResultAction2.__proto__ || Object.getPrototypeOf(AdRuleHistoryResultAction2)).apply(this, arguments)); } __name(AdRuleHistoryResultAction2, "AdRuleHistoryResultAction"); createClass(AdRuleHistoryResultAction2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ action: "action", field: "field", new_value: "new_value", old_value: "old_value" }); }, "get") }]); return AdRuleHistoryResultAction2; }(AbstractCrudObject); var AdRuleSchedule = function(_AbstractCrudObject) { inherits(AdRuleSchedule2, _AbstractCrudObject); function AdRuleSchedule2() { classCallCheck(this, AdRuleSchedule2); return possibleConstructorReturn(this, (AdRuleSchedule2.__proto__ || Object.getPrototypeOf(AdRuleSchedule2)).apply(this, arguments)); } __name(AdRuleSchedule2, "AdRuleSchedule"); createClass(AdRuleSchedule2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ days: "days", end_minute: "end_minute", start_minute: "start_minute" }); }, "get") }]); return AdRuleSchedule2; }(AbstractCrudObject); var AdRuleScheduleSpec = function(_AbstractCrudObject) { inherits(AdRuleScheduleSpec2, _AbstractCrudObject); function AdRuleScheduleSpec2() { classCallCheck(this, AdRuleScheduleSpec2); return possibleConstructorReturn(this, (AdRuleScheduleSpec2.__proto__ || Object.getPrototypeOf(AdRuleScheduleSpec2)).apply(this, arguments)); } __name(AdRuleScheduleSpec2, "AdRuleScheduleSpec"); createClass(AdRuleScheduleSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ schedule: "schedule", schedule_type: "schedule_type" }); }, "get") }]); return AdRuleScheduleSpec2; }(AbstractCrudObject); var AdRuleTrigger = function(_AbstractCrudObject) { inherits(AdRuleTrigger2, _AbstractCrudObject); function AdRuleTrigger2() { classCallCheck(this, AdRuleTrigger2); return possibleConstructorReturn(this, (AdRuleTrigger2.__proto__ || Object.getPrototypeOf(AdRuleTrigger2)).apply(this, arguments)); } __name(AdRuleTrigger2, "AdRuleTrigger"); createClass(AdRuleTrigger2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ field: "field", operator: "operator", type: "type", value: "value" }); }, "get") }, { key: "Operator", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ all: "ALL", any: "ANY", contain: "CONTAIN", equal: "EQUAL", greater_than: "GREATER_THAN", in: "IN", in_range: "IN_RANGE", less_than: "LESS_THAN", none: "NONE", not_contain: "NOT_CONTAIN", not_equal: "NOT_EQUAL", not_in: "NOT_IN", not_in_range: "NOT_IN_RANGE" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ delivery_insights_change: "DELIVERY_INSIGHTS_CHANGE", metadata_creation: "METADATA_CREATION", metadata_update: "METADATA_UPDATE", stats_change: "STATS_CHANGE", stats_milestone: "STATS_MILESTONE" }); }, "get") }]); return AdRuleTrigger2; }(AbstractCrudObject); var AdStudyObjectiveID = function(_AbstractCrudObject) { inherits(AdStudyObjectiveID2, _AbstractCrudObject); function AdStudyObjectiveID2() { classCallCheck(this, AdStudyObjectiveID2); return possibleConstructorReturn(this, (AdStudyObjectiveID2.__proto__ || Object.getPrototypeOf(AdStudyObjectiveID2)).apply(this, arguments)); } __name(AdStudyObjectiveID2, "AdStudyObjectiveID"); createClass(AdStudyObjectiveID2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ event_names: "event_names", id: "id", type: "type" }); }, "get") }]); return AdStudyObjectiveID2; }(AbstractCrudObject); var AdStudyObjectiveOffsiteDatasets = function(_AbstractCrudObject) { inherits(AdStudyObjectiveOffsiteDatasets2, _AbstractCrudObject); function AdStudyObjectiveOffsiteDatasets2() { classCallCheck(this, AdStudyObjectiveOffsiteDatasets2); return possibleConstructorReturn(this, (AdStudyObjectiveOffsiteDatasets2.__proto__ || Object.getPrototypeOf(AdStudyObjectiveOffsiteDatasets2)).apply(this, arguments)); } __name(AdStudyObjectiveOffsiteDatasets2, "AdStudyObjectiveOffsiteDatasets"); createClass(AdStudyObjectiveOffsiteDatasets2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ event_names: "event_names", id: "id" }); }, "get") }]); return AdStudyObjectiveOffsiteDatasets2; }(AbstractCrudObject); var AdgroupIssuesInfo = function(_AbstractCrudObject) { inherits(AdgroupIssuesInfo2, _AbstractCrudObject); function AdgroupIssuesInfo2() { classCallCheck(this, AdgroupIssuesInfo2); return possibleConstructorReturn(this, (AdgroupIssuesInfo2.__proto__ || Object.getPrototypeOf(AdgroupIssuesInfo2)).apply(this, arguments)); } __name(AdgroupIssuesInfo2, "AdgroupIssuesInfo"); createClass(AdgroupIssuesInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ error_code: "error_code", error_message: "error_message", error_summary: "error_summary", error_type: "error_type", level: "level" }); }, "get") }]); return AdgroupIssuesInfo2; }(AbstractCrudObject); var AdgroupMetadata = function(_AbstractCrudObject) { inherits(AdgroupMetadata2, _AbstractCrudObject); function AdgroupMetadata2() { classCallCheck(this, AdgroupMetadata2); return possibleConstructorReturn(this, (AdgroupMetadata2.__proto__ || Object.getPrototypeOf(AdgroupMetadata2)).apply(this, arguments)); } __name(AdgroupMetadata2, "AdgroupMetadata"); createClass(AdgroupMetadata2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_standard_enhancements_edit_source: "ad_standard_enhancements_edit_source", adgroup_creation_source: "adgroup_creation_source", adgroup_edit_source: "adgroup_edit_source", carousel_style: "carousel_style", carousel_with_static_card_style: "carousel_with_static_card_style" }); }, "get") }]); return AdgroupMetadata2; }(AbstractCrudObject); var AdgroupPlacementSpecificReviewFeedback = function(_AbstractCrudObject) { inherits(AdgroupPlacementSpecificReviewFeedback2, _AbstractCrudObject); function AdgroupPlacementSpecificReviewFeedback2() { classCallCheck(this, AdgroupPlacementSpecificReviewFeedback2); return possibleConstructorReturn(this, (AdgroupPlacementSpecificReviewFeedback2.__proto__ || Object.getPrototypeOf(AdgroupPlacementSpecificReviewFeedback2)).apply(this, arguments)); } __name(AdgroupPlacementSpecificReviewFeedback2, "AdgroupPlacementSpecificReviewFeedback"); createClass(AdgroupPlacementSpecificReviewFeedback2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_admin: "account_admin", ad: "ad", ads_conversion_experiences: "ads_conversion_experiences", b2c: "b2c", b2c_commerce_unified: "b2c_commerce_unified", bsg: "bsg", city_community: "city_community", commerce: "commerce", compromise: "compromise", daily_deals: "daily_deals", daily_deals_legacy: "daily_deals_legacy", dpa: "dpa", dri_copyright: "dri_copyright", dri_counterfeit: "dri_counterfeit", facebook: "facebook", facebook_pages_live_shopping: "facebook_pages_live_shopping", independent_work: "independent_work", instagram: "instagram", instagram_shop: "instagram_shop", job_search: "job_search", lead_gen_honeypot: "lead_gen_honeypot", marketplace: "marketplace", marketplace_home_rentals: "marketplace_home_rentals", marketplace_home_sales: "marketplace_home_sales", marketplace_motors: "marketplace_motors", marketplace_shops: "marketplace_shops", max_review_placements: "max_review_placements", neighborhoods: "neighborhoods", page_admin: "page_admin", product: "product", product_service: "product_service", profile: "profile", seller: "seller", shops: "shops", traffic_quality: "traffic_quality", unified_commerce_content: "unified_commerce_content", whatsapp: "whatsapp" }); }, "get") }]); return AdgroupPlacementSpecificReviewFeedback2; }(AbstractCrudObject); var AdgroupReviewFeedback = function(_AbstractCrudObject) { inherits(AdgroupReviewFeedback2, _AbstractCrudObject); function AdgroupReviewFeedback2() { classCallCheck(this, AdgroupReviewFeedback2); return possibleConstructorReturn(this, (AdgroupReviewFeedback2.__proto__ || Object.getPrototypeOf(AdgroupReviewFeedback2)).apply(this, arguments)); } __name(AdgroupReviewFeedback2, "AdgroupReviewFeedback"); createClass(AdgroupReviewFeedback2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ global: "global", placement_specific: "placement_specific" }); }, "get") }]); return AdgroupReviewFeedback2; }(AbstractCrudObject); var AdsActionStats = function(_AbstractCrudObject) { inherits(AdsActionStats2, _AbstractCrudObject); function AdsActionStats2() { classCallCheck(this, AdsActionStats2); return possibleConstructorReturn(this, (AdsActionStats2.__proto__ || Object.getPrototypeOf(AdsActionStats2)).apply(this, arguments)); } __name(AdsActionStats2, "AdsActionStats"); createClass(AdsActionStats2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ value_1d_click: "1d_click", value_1d_ev: "1d_ev", value_1d_view: "1d_view", value_28d_click: "28d_click", value_28d_view: "28d_view", value_7d_click: "7d_click", value_7d_view: "7d_view", action_brand: "action_brand", action_canvas_component_id: "action_canvas_component_id", action_canvas_component_name: "action_canvas_component_name", action_carousel_card_id: "action_carousel_card_id", action_carousel_card_name: "action_carousel_card_name", action_category: "action_category", action_converted_product_id: "action_converted_product_id", action_destination: "action_destination", action_device: "action_device", action_event_channel: "action_event_channel", action_link_click_destination: "action_link_click_destination", action_location_code: "action_location_code", action_reaction: "action_reaction", action_target_id: "action_target_id", action_type: "action_type", action_video_asset_id: "action_video_asset_id", action_video_sound: "action_video_sound", action_video_type: "action_video_type", dda: "dda", inline: "inline", interactive_component_sticker_id: "interactive_component_sticker_id", interactive_component_sticker_response: "interactive_component_sticker_response", skan_click: "skan_click", skan_click_second_postback: "skan_click_second_postback", skan_click_third_postback: "skan_click_third_postback", skan_view: "skan_view", skan_view_second_postback: "skan_view_second_postback", skan_view_third_postback: "skan_view_third_postback", value: "value" }); }, "get") }]); return AdsActionStats2; }(AbstractCrudObject); var AdsHistogramStats = function(_AbstractCrudObject) { inherits(AdsHistogramStats2, _AbstractCrudObject); function AdsHistogramStats2() { classCallCheck(this, AdsHistogramStats2); return possibleConstructorReturn(this, (AdsHistogramStats2.__proto__ || Object.getPrototypeOf(AdsHistogramStats2)).apply(this, arguments)); } __name(AdsHistogramStats2, "AdsHistogramStats"); createClass(AdsHistogramStats2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ value_1d_click: "1d_click", value_1d_ev: "1d_ev", value_1d_view: "1d_view", value_28d_click: "28d_click", value_28d_view: "28d_view", value_7d_click: "7d_click", value_7d_view: "7d_view", action_brand: "action_brand", action_canvas_component_id: "action_canvas_component_id", action_canvas_component_name: "action_canvas_component_name", action_carousel_card_id: "action_carousel_card_id", action_carousel_card_name: "action_carousel_card_name", action_category: "action_category", action_converted_product_id: "action_converted_product_id", action_destination: "action_destination", action_device: "action_device", action_event_channel: "action_event_channel", action_link_click_destination: "action_link_click_destination", action_location_code: "action_location_code", action_reaction: "action_reaction", action_target_id: "action_target_id", action_type: "action_type", action_video_asset_id: "action_video_asset_id", action_video_sound: "action_video_sound", action_video_type: "action_video_type", dda: "dda", inline: "inline", interactive_component_sticker_id: "interactive_component_sticker_id", interactive_component_sticker_response: "interactive_component_sticker_response", skan_click: "skan_click", skan_click_second_postback: "skan_click_second_postback", skan_click_third_postback: "skan_click_third_postback", skan_view: "skan_view", skan_view_second_postback: "skan_view_second_postback", skan_view_third_postback: "skan_view_third_postback", value: "value" }); }, "get") }]); return AdsHistogramStats2; }(AbstractCrudObject); var AdsImageCrops = function(_AbstractCrudObject) { inherits(AdsImageCrops2, _AbstractCrudObject); function AdsImageCrops2() { classCallCheck(this, AdsImageCrops2); return possibleConstructorReturn(this, (AdsImageCrops2.__proto__ || Object.getPrototypeOf(AdsImageCrops2)).apply(this, arguments)); } __name(AdsImageCrops2, "AdsImageCrops"); createClass(AdsImageCrops2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ value_100x100: "100x100", value_100x72: "100x72", value_191x100: "191x100", value_400x150: "400x150", value_400x500: "400x500", value_600x360: "600x360", value_90x160: "90x160" }); }, "get") }]); return AdsImageCrops2; }(AbstractCrudObject); var AdsOptimalDeliveryGrowthOpportunity = function(_AbstractCrudObject) { inherits(AdsOptimalDeliveryGrowthOpportunity2, _AbstractCrudObject); function AdsOptimalDeliveryGrowthOpportunity2() { classCallCheck(this, AdsOptimalDeliveryGrowthOpportunity2); return possibleConstructorReturn(this, (AdsOptimalDeliveryGrowthOpportunity2.__proto__ || Object.getPrototypeOf(AdsOptimalDeliveryGrowthOpportunity2)).apply(this, arguments)); } __name(AdsOptimalDeliveryGrowthOpportunity2, "AdsOptimalDeliveryGrowthOpportunity"); createClass(AdsOptimalDeliveryGrowthOpportunity2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ child_metadata: "child_metadata", metadata: "metadata", optimization_type: "optimization_type" }); }, "get") }]); return AdsOptimalDeliveryGrowthOpportunity2; }(AbstractCrudObject); var AdsPixelStats = function(_AbstractCrudObject) { inherits(AdsPixelStats2, _AbstractCrudObject); function AdsPixelStats2() { classCallCheck(this, AdsPixelStats2); return possibleConstructorReturn(this, (AdsPixelStats2.__proto__ || Object.getPrototypeOf(AdsPixelStats2)).apply(this, arguments)); } __name(AdsPixelStats2, "AdsPixelStats"); createClass(AdsPixelStats2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ count: "count", diagnostics_hourly_last_timestamp: "diagnostics_hourly_last_timestamp", event: "event", value: "value" }); }, "get") }]); return AdsPixelStats2; }(AbstractCrudObject); var AgeRange = function(_AbstractCrudObject) { inherits(AgeRange2, _AbstractCrudObject); function AgeRange2() { classCallCheck(this, AgeRange2); return possibleConstructorReturn(this, (AgeRange2.__proto__ || Object.getPrototypeOf(AgeRange2)).apply(this, arguments)); } __name(AgeRange2, "AgeRange"); createClass(AgeRange2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ max: "max", min: "min" }); }, "get") }]); return AgeRange2; }(AbstractCrudObject); var AgencyClientDeclaration = function(_AbstractCrudObject) { inherits(AgencyClientDeclaration2, _AbstractCrudObject); function AgencyClientDeclaration2() { classCallCheck(this, AgencyClientDeclaration2); return possibleConstructorReturn(this, (AgencyClientDeclaration2.__proto__ || Object.getPrototypeOf(AgencyClientDeclaration2)).apply(this, arguments)); } __name(AgencyClientDeclaration2, "AgencyClientDeclaration"); createClass(AgencyClientDeclaration2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ agency_representing_client: "agency_representing_client", client_based_in_france: "client_based_in_france", client_city: "client_city", client_country_code: "client_country_code", client_email_address: "client_email_address", client_name: "client_name", client_postal_code: "client_postal_code", client_province: "client_province", client_street: "client_street", client_street2: "client_street2", has_written_mandate_from_advertiser: "has_written_mandate_from_advertiser", is_client_paying_invoices: "is_client_paying_invoices" }); }, "get") }]); return AgencyClientDeclaration2; }(AbstractCrudObject); var AnalyticsSegment = function(_AbstractCrudObject) { inherits(AnalyticsSegment2, _AbstractCrudObject); function AnalyticsSegment2() { classCallCheck(this, AnalyticsSegment2); return possibleConstructorReturn(this, (AnalyticsSegment2.__proto__ || Object.getPrototypeOf(AnalyticsSegment2)).apply(this, arguments)); } __name(AnalyticsSegment2, "AnalyticsSegment"); createClass(AnalyticsSegment2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ custom_audience_ineligiblity_reasons: "custom_audience_ineligiblity_reasons", description: "description", estimated_custom_audience_size: "estimated_custom_audience_size", event_info_rules: "event_info_rules", event_rules: "event_rules", filter_set: "filter_set", has_demographic_rules: "has_demographic_rules", id: "id", is_all_user: "is_all_user", is_eligible_for_push_campaign: "is_eligible_for_push_campaign", is_internal: "is_internal", name: "name", percentile_rules: "percentile_rules", time_last_seen: "time_last_seen", time_last_updated: "time_last_updated", user_property_rules: "user_property_rules", web_param_rules: "web_param_rules" }); }, "get") }]); return AnalyticsSegment2; }(AbstractCrudObject); var AndroidAppLink = function(_AbstractCrudObject) { inherits(AndroidAppLink2, _AbstractCrudObject); function AndroidAppLink2() { classCallCheck(this, AndroidAppLink2); return possibleConstructorReturn(this, (AndroidAppLink2.__proto__ || Object.getPrototypeOf(AndroidAppLink2)).apply(this, arguments)); } __name(AndroidAppLink2, "AndroidAppLink"); createClass(AndroidAppLink2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_name: "app_name", class: "class", package: "package", url: "url" }); }, "get") }]); return AndroidAppLink2; }(AbstractCrudObject); var AsyncSession = function(_AbstractCrudObject) { inherits(AsyncSession2, _AbstractCrudObject); function AsyncSession2() { classCallCheck(this, AsyncSession2); return possibleConstructorReturn(this, (AsyncSession2.__proto__ || Object.getPrototypeOf(AsyncSession2)).apply(this, arguments)); } __name(AsyncSession2, "AsyncSession"); createClass(AsyncSession2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app: "app", complete_time: "complete_time", error_code: "error_code", exception: "exception", id: "id", method: "method", name: "name", page: "page", percent_completed: "percent_completed", platform_version: "platform_version", result: "result", start_time: "start_time", status: "status", uri: "uri", user: "user" }); }, "get") }]); return AsyncSession2; }(AbstractCrudObject); var AttributionSpec = function(_AbstractCrudObject) { inherits(AttributionSpec2, _AbstractCrudObject); function AttributionSpec2() { classCallCheck(this, AttributionSpec2); return possibleConstructorReturn(this, (AttributionSpec2.__proto__ || Object.getPrototypeOf(AttributionSpec2)).apply(this, arguments)); } __name(AttributionSpec2, "AttributionSpec"); createClass(AttributionSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ event_type: "event_type", window_days: "window_days" }); }, "get") }]); return AttributionSpec2; }(AbstractCrudObject); var AudiencePermissionForActions = function(_AbstractCrudObject) { inherits(AudiencePermissionForActions2, _AbstractCrudObject); function AudiencePermissionForActions2() { classCallCheck(this, AudiencePermissionForActions2); return possibleConstructorReturn(this, (AudiencePermissionForActions2.__proto__ || Object.getPrototypeOf(AudiencePermissionForActions2)).apply(this, arguments)); } __name(AudiencePermissionForActions2, "AudiencePermissionForActions"); createClass(AudiencePermissionForActions2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ can_edit: "can_edit", can_see_insight: "can_see_insight", can_share: "can_share", subtype_supports_lookalike: "subtype_supports_lookalike", supports_recipient_lookalike: "supports_recipient_lookalike" }); }, "get") }]); return AudiencePermissionForActions2; }(AbstractCrudObject); var AudioCopyright = function(_AbstractCrudObject) { inherits(AudioCopyright2, _AbstractCrudObject); function AudioCopyright2() { classCallCheck(this, AudioCopyright2); return possibleConstructorReturn(this, (AudioCopyright2.__proto__ || Object.getPrototypeOf(AudioCopyright2)).apply(this, arguments)); } __name(AudioCopyright2, "AudioCopyright"); createClass(AudioCopyright2, [{ key: "getUpdateRecords", value: /* @__PURE__ */ __name(function getUpdateRecords(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(AbstractObject, fields, params, fetchFirstPage, "/update_records"); }, "getUpdateRecords") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ creation_time: "creation_time", displayed_matches_count: "displayed_matches_count", id: "id", in_conflict: "in_conflict", isrc: "isrc", match_rule: "match_rule", ownership_countries: "ownership_countries", reference_file_status: "reference_file_status", ridge_monitoring_status: "ridge_monitoring_status", tags: "tags", update_time: "update_time", whitelisted_fb_users: "whitelisted_fb_users", whitelisted_ig_users: "whitelisted_ig_users" }); }, "get") }]); return AudioCopyright2; }(AbstractCrudObject); var AvatarProfilePicture = function(_AbstractCrudObject) { inherits(AvatarProfilePicture2, _AbstractCrudObject); function AvatarProfilePicture2() { classCallCheck(this, AvatarProfilePicture2); return possibleConstructorReturn(this, (AvatarProfilePicture2.__proto__ || Object.getPrototypeOf(AvatarProfilePicture2)).apply(this, arguments)); } __name(AvatarProfilePicture2, "AvatarProfilePicture"); createClass(AvatarProfilePicture2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", url: "url" }); }, "get") }]); return AvatarProfilePicture2; }(AbstractCrudObject); var BrandSafetyBlockListUsage = function(_AbstractCrudObject) { inherits(BrandSafetyBlockListUsage2, _AbstractCrudObject); function BrandSafetyBlockListUsage2() { classCallCheck(this, BrandSafetyBlockListUsage2); return possibleConstructorReturn(this, (BrandSafetyBlockListUsage2.__proto__ || Object.getPrototypeOf(BrandSafetyBlockListUsage2)).apply(this, arguments)); } __name(BrandSafetyBlockListUsage2, "BrandSafetyBlockListUsage"); createClass(BrandSafetyBlockListUsage2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ current_usage: "current_usage", new_usage: "new_usage", platform: "platform", position: "position", threshold: "threshold" }); }, "get") }]); return BrandSafetyBlockListUsage2; }(AbstractCrudObject); var BusinessManagedPartnerEligibility = function(_AbstractCrudObject) { inherits(BusinessManagedPartnerEligibility2, _AbstractCrudObject); function BusinessManagedPartnerEligibility2() { classCallCheck(this, BusinessManagedPartnerEligibility2); return possibleConstructorReturn(this, (BusinessManagedPartnerEligibility2.__proto__ || Object.getPrototypeOf(BusinessManagedPartnerEligibility2)).apply(this, arguments)); } __name(BusinessManagedPartnerEligibility2, "BusinessManagedPartnerEligibility"); createClass(BusinessManagedPartnerEligibility2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ is_eligible: "is_eligible", reason_code: "reason_code", reason_description: "reason_description" }); }, "get") }]); return BusinessManagedPartnerEligibility2; }(AbstractCrudObject); var BusinessPartnerPremiumOptions = function(_AbstractCrudObject) { inherits(BusinessPartnerPremiumOptions2, _AbstractCrudObject); function BusinessPartnerPremiumOptions2() { classCallCheck(this, BusinessPartnerPremiumOptions2); return possibleConstructorReturn(this, (BusinessPartnerPremiumOptions2.__proto__ || Object.getPrototypeOf(BusinessPartnerPremiumOptions2)).apply(this, arguments)); } __name(BusinessPartnerPremiumOptions2, "BusinessPartnerPremiumOptions"); createClass(BusinessPartnerPremiumOptions2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ enable_basket_insight: "enable_basket_insight", enable_extended_audience_retargeting: "enable_extended_audience_retargeting", retailer_custom_audience_config: "retailer_custom_audience_config" }); }, "get") }]); return BusinessPartnerPremiumOptions2; }(AbstractCrudObject); var BusinessVideo = function(_AbstractCrudObject) { inherits(BusinessVideo2, _AbstractCrudObject); function BusinessVideo2() { classCallCheck(this, BusinessVideo2); return possibleConstructorReturn(this, (BusinessVideo2.__proto__ || Object.getPrototypeOf(BusinessVideo2)).apply(this, arguments)); } __name(BusinessVideo2, "BusinessVideo"); createClass(BusinessVideo2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ business: "business", id: "id", media_library_url: "media_library_url", name: "name", video: "video" }); }, "get") }]); return BusinessVideo2; }(AbstractCrudObject); var CRMAddress = function(_AbstractCrudObject) { inherits(CRMAddress2, _AbstractCrudObject); function CRMAddress2() { classCallCheck(this, CRMAddress2); return possibleConstructorReturn(this, (CRMAddress2.__proto__ || Object.getPrototypeOf(CRMAddress2)).apply(this, arguments)); } __name(CRMAddress2, "CRMAddress"); createClass(CRMAddress2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ city: "city", cnpj_tax_id: "cnpj_tax_id", country: "country", id: "id", postal_code: "postal_code", registration_label: "registration_label", registration_number: "registration_number", state: "state", street1: "street1", street2: "street2", street3: "street3", street4: "street4", validation_status: "validation_status", vat_tax_id: "vat_tax_id" }); }, "get") }]); return CRMAddress2; }(AbstractCrudObject); var CampaignGroupBrandConfiguration = function(_AbstractCrudObject) { inherits(CampaignGroupBrandConfiguration2, _AbstractCrudObject); function CampaignGroupBrandConfiguration2() { classCallCheck(this, CampaignGroupBrandConfiguration2); return possibleConstructorReturn(this, (CampaignGroupBrandConfiguration2.__proto__ || Object.getPrototypeOf(CampaignGroupBrandConfiguration2)).apply(this, arguments)); } __name(CampaignGroupBrandConfiguration2, "CampaignGroupBrandConfiguration"); createClass(CampaignGroupBrandConfiguration2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ brand_product_name: "brand_product_name", locale: "locale", vertical: "vertical" }); }, "get") }]); return CampaignGroupBrandConfiguration2; }(AbstractCrudObject); var CampaignGroupCollaborativeAdsPartnerInfo = function(_AbstractCrudObject) { inherits(CampaignGroupCollaborativeAdsPartnerInfo2, _AbstractCrudObject); function CampaignGroupCollaborativeAdsPartnerInfo2() { classCallCheck(this, CampaignGroupCollaborativeAdsPartnerInfo2); return possibleConstructorReturn(this, (CampaignGroupCollaborativeAdsPartnerInfo2.__proto__ || Object.getPrototypeOf(CampaignGroupCollaborativeAdsPartnerInfo2)).apply(this, arguments)); } __name(CampaignGroupCollaborativeAdsPartnerInfo2, "CampaignGroupCollaborativeAdsPartnerInfo"); createClass(CampaignGroupCollaborativeAdsPartnerInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({}); }, "get") }]); return CampaignGroupCollaborativeAdsPartnerInfo2; }(AbstractCrudObject); var CanvasAdSettings = function(_AbstractCrudObject) { inherits(CanvasAdSettings2, _AbstractCrudObject); function CanvasAdSettings2() { classCallCheck(this, CanvasAdSettings2); return possibleConstructorReturn(this, (CanvasAdSettings2.__proto__ || Object.getPrototypeOf(CanvasAdSettings2)).apply(this, arguments)); } __name(CanvasAdSettings2, "CanvasAdSettings"); createClass(CanvasAdSettings2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ is_canvas_collection_eligible: "is_canvas_collection_eligible", lead_form_created_time: "lead_form_created_time", lead_form_name: "lead_form_name", lead_gen_form_id: "lead_gen_form_id", leads_count: "leads_count", product_set_id: "product_set_id", use_retailer_item_ids: "use_retailer_item_ids" }); }, "get") }]); return CanvasAdSettings2; }(AbstractCrudObject); var CanvasCollectionThumbnail = function(_AbstractCrudObject) { inherits(CanvasCollectionThumbnail2, _AbstractCrudObject); function CanvasCollectionThumbnail2() { classCallCheck(this, CanvasCollectionThumbnail2); return possibleConstructorReturn(this, (CanvasCollectionThumbnail2.__proto__ || Object.getPrototypeOf(CanvasCollectionThumbnail2)).apply(this, arguments)); } __name(CanvasCollectionThumbnail2, "CanvasCollectionThumbnail"); createClass(CanvasCollectionThumbnail2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ element_child_index: "element_child_index", element_id: "element_id", photo: "photo" }); }, "get") }]); return CanvasCollectionThumbnail2; }(AbstractCrudObject); var CanvasDynamicSetting = function(_AbstractCrudObject) { inherits(CanvasDynamicSetting2, _AbstractCrudObject); function CanvasDynamicSetting2() { classCallCheck(this, CanvasDynamicSetting2); return possibleConstructorReturn(this, (CanvasDynamicSetting2.__proto__ || Object.getPrototypeOf(CanvasDynamicSetting2)).apply(this, arguments)); } __name(CanvasDynamicSetting2, "CanvasDynamicSetting"); createClass(CanvasDynamicSetting2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ child_documents: "child_documents", product_set_id: "product_set_id", id: "id" }); }, "get") }]); return CanvasDynamicSetting2; }(AbstractCrudObject); var CatalogBasedTargeting = function(_AbstractCrudObject) { inherits(CatalogBasedTargeting2, _AbstractCrudObject); function CatalogBasedTargeting2() { classCallCheck(this, CatalogBasedTargeting2); return possibleConstructorReturn(this, (CatalogBasedTargeting2.__proto__ || Object.getPrototypeOf(CatalogBasedTargeting2)).apply(this, arguments)); } __name(CatalogBasedTargeting2, "CatalogBasedTargeting"); createClass(CatalogBasedTargeting2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ geo_targeting_type: "geo_targeting_type" }); }, "get") }]); return CatalogBasedTargeting2; }(AbstractCrudObject); var CatalogItemAppLinks = function(_AbstractCrudObject) { inherits(CatalogItemAppLinks2, _AbstractCrudObject); function CatalogItemAppLinks2() { classCallCheck(this, CatalogItemAppLinks2); return possibleConstructorReturn(this, (CatalogItemAppLinks2.__proto__ || Object.getPrototypeOf(CatalogItemAppLinks2)).apply(this, arguments)); } __name(CatalogItemAppLinks2, "CatalogItemAppLinks"); createClass(CatalogItemAppLinks2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ android: "android", ios: "ios", ipad: "ipad", iphone: "iphone", web: "web", windows: "windows", windows_phone: "windows_phone", windows_universal: "windows_universal" }); }, "get") }]); return CatalogItemAppLinks2; }(AbstractCrudObject); var CatalogItemAppealStatus = function(_AbstractCrudObject) { inherits(CatalogItemAppealStatus2, _AbstractCrudObject); function CatalogItemAppealStatus2() { classCallCheck(this, CatalogItemAppealStatus2); return possibleConstructorReturn(this, (CatalogItemAppealStatus2.__proto__ || Object.getPrototypeOf(CatalogItemAppealStatus2)).apply(this, arguments)); } __name(CatalogItemAppealStatus2, "CatalogItemAppealStatus"); createClass(CatalogItemAppealStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ handle: "handle", item_id: "item_id", status: "status", use_cases: "use_cases" }); }, "get") }, { key: "Status", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ this_item_cannot_be_appealed_as_it_is_either_approved_or_already_has_an_appeal: "This item cannot be appealed as it is either approved or already has an appeal", this_item_is_not_rejected_for_any_of_channels: "This item is not rejected for any of channels", we_ve_encountered_unexpected_error_while_processing_this_request_please_try_again_later_: "We've encountered unexpected error while processing this request. Please try again later !", you_ve_reached_the_maximum_number_of_item_requests_you_can_make_this_week_you_ll_be_able_to_request_item_reviews_again_within_the_next_7_days_: "You've reached the maximum number of item requests you can make this week. You'll be able to request item reviews again within the next 7 days.", your_request_was_received_see_information_below_to_learn_more_: "Your request was received. See information below to learn more." }); }, "get") }]); return CatalogItemAppealStatus2; }(AbstractCrudObject); var CatalogSubVerticalList = function(_AbstractCrudObject) { inherits(CatalogSubVerticalList2, _AbstractCrudObject); function CatalogSubVerticalList2() { classCallCheck(this, CatalogSubVerticalList2); return possibleConstructorReturn(this, (CatalogSubVerticalList2.__proto__ || Object.getPrototypeOf(CatalogSubVerticalList2)).apply(this, arguments)); } __name(CatalogSubVerticalList2, "CatalogSubVerticalList"); createClass(CatalogSubVerticalList2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ appliances: "appliances", baby_feeding: "baby_feeding", baby_transport: "baby_transport", beauty: "beauty", bedding: "bedding", cameras: "cameras", cameras_and_photos: "cameras_and_photos", cell_phones_and_smart_watches: "cell_phones_and_smart_watches", cleaning_supplies: "cleaning_supplies", clo_offer: "clo_offer", clothing: "clothing", clothing_accessories: "clothing_accessories", computer_components: "computer_components", computers_and_tablets: "computers_and_tablets", computers_laptops_and_tablets: "computers_laptops_and_tablets", diapering_and_potty_training: "diapering_and_potty_training", digital_product_offer: "digital_product_offer", electronic_accessories_and_cables: "electronic_accessories_and_cables", electronics_accessories: "electronics_accessories", furniture: "furniture", health: "health", home: "home", home_goods: "home_goods", household_and_cleaning_supplies: "household_and_cleaning_supplies", jewelry: "jewelry", large_appliances: "large_appliances", local_service_business_item: "local_service_business_item", local_service_business_restaurant: "local_service_business_restaurant", loyalty_offer: "loyalty_offer", nursery: "nursery", printers_and_scanners: "printers_and_scanners", printers_scanners_and_fax_machines: "printers_scanners_and_fax_machines", product_discount: "product_discount", projectors: "projectors", shoes: "shoes", shoes_and_footwear: "shoes_and_footwear", software: "software", televisions_and_monitors: "televisions_and_monitors", test_child_sub_vertical: "test_child_sub_vertical", test_grand_child_sub_vertical: "test_grand_child_sub_vertical", test_sub_vertical: "test_sub_vertical", test_sub_vertical_alias: "test_sub_vertical_alias", test_sub_vertical_data_object: "test_sub_vertical_data_object", third_party_electronics: "third_party_electronics", third_party_toys_and_games: "third_party_toys_and_games", toys: "toys", toys_and_games: "toys_and_games", tvs_and_monitors: "tvs_and_monitors", vehicle_manufacturer: "vehicle_manufacturer", video_game_consoles_and_video_games: "video_game_consoles_and_video_games", video_games_and_consoles: "video_games_and_consoles", video_projectors: "video_projectors", watches: "watches" }); }, "get") }]); return CatalogSubVerticalList2; }(AbstractCrudObject); var ChildEvent = function(_AbstractCrudObject) { inherits(ChildEvent2, _AbstractCrudObject); function ChildEvent2() { classCallCheck(this, ChildEvent2); return possibleConstructorReturn(this, (ChildEvent2.__proto__ || Object.getPrototypeOf(ChildEvent2)).apply(this, arguments)); } __name(ChildEvent2, "ChildEvent"); createClass(ChildEvent2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ end_time: "end_time", id: "id", start_time: "start_time", ticket_uri: "ticket_uri" }); }, "get") }]); return ChildEvent2; }(AbstractCrudObject); var CollaborativeAdsPartnerInfoListItem = function(_AbstractCrudObject) { inherits(CollaborativeAdsPartnerInfoListItem2, _AbstractCrudObject); function CollaborativeAdsPartnerInfoListItem2() { classCallCheck(this, CollaborativeAdsPartnerInfoListItem2); return possibleConstructorReturn(this, (CollaborativeAdsPartnerInfoListItem2.__proto__ || Object.getPrototypeOf(CollaborativeAdsPartnerInfoListItem2)).apply(this, arguments)); } __name(CollaborativeAdsPartnerInfoListItem2, "CollaborativeAdsPartnerInfoListItem"); createClass(CollaborativeAdsPartnerInfoListItem2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({}); }, "get") }]); return CollaborativeAdsPartnerInfoListItem2; }(AbstractCrudObject); var CommerceSettings = function(_AbstractCrudObject) { inherits(CommerceSettings2, _AbstractCrudObject); function CommerceSettings2() { classCallCheck(this, CommerceSettings2); return possibleConstructorReturn(this, (CommerceSettings2.__proto__ || Object.getPrototypeOf(CommerceSettings2)).apply(this, arguments)); } __name(CommerceSettings2, "CommerceSettings"); createClass(CommerceSettings2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ inventory: "inventory", total_inventory: "total_inventory" }); }, "get") }]); return CommerceSettings2; }(AbstractCrudObject); var ConnectionsTargeting = function(_AbstractCrudObject) { inherits(ConnectionsTargeting2, _AbstractCrudObject); function ConnectionsTargeting2() { classCallCheck(this, ConnectionsTargeting2); return possibleConstructorReturn(this, (ConnectionsTargeting2.__proto__ || Object.getPrototypeOf(ConnectionsTargeting2)).apply(this, arguments)); } __name(ConnectionsTargeting2, "ConnectionsTargeting"); createClass(ConnectionsTargeting2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name" }); }, "get") }]); return ConnectionsTargeting2; }(AbstractCrudObject); var ContextualBundlingSpec = function(_AbstractCrudObject) { inherits(ContextualBundlingSpec2, _AbstractCrudObject); function ContextualBundlingSpec2() { classCallCheck(this, ContextualBundlingSpec2); return possibleConstructorReturn(this, (ContextualBundlingSpec2.__proto__ || Object.getPrototypeOf(ContextualBundlingSpec2)).apply(this, arguments)); } __name(ContextualBundlingSpec2, "ContextualBundlingSpec"); createClass(ContextualBundlingSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ status: "status" }); }, "get") }]); return ContextualBundlingSpec2; }(AbstractCrudObject); var ConversionActionQuery = function(_AbstractCrudObject) { inherits(ConversionActionQuery2, _AbstractCrudObject); function ConversionActionQuery2() { classCallCheck(this, ConversionActionQuery2); return possibleConstructorReturn(this, (ConversionActionQuery2.__proto__ || Object.getPrototypeOf(ConversionActionQuery2)).apply(this, arguments)); } __name(ConversionActionQuery2, "ConversionActionQuery"); createClass(ConversionActionQuery2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ action_type: "action.type", application: "application", conversion_id: "conversion_id", creative: "creative", dataset: "dataset", event: "event", event_creator: "event.creator", event_type: "event_type", fb_pixel: "fb_pixel", fb_pixel_event: "fb_pixel_event", leadgen: "leadgen", object: "object", object_domain: "object.domain", offer: "offer", offer_creator: "offer.creator", offsite_pixel: "offsite_pixel", page: "page", page_parent: "page.parent", post: "post", post_object: "post.object", post_object_wall: "post.object.wall", post_wall: "post.wall", question: "question", question_creator: "question.creator", response: "response", subtype: "subtype" }); }, "get") }]); return ConversionActionQuery2; }(AbstractCrudObject); var CopyrightReferenceContainer = function(_AbstractCrudObject) { inherits(CopyrightReferenceContainer2, _AbstractCrudObject); function CopyrightReferenceContainer2() { classCallCheck(this, CopyrightReferenceContainer2); return possibleConstructorReturn(this, (CopyrightReferenceContainer2.__proto__ || Object.getPrototypeOf(CopyrightReferenceContainer2)).apply(this, arguments)); } __name(CopyrightReferenceContainer2, "CopyrightReferenceContainer"); createClass(CopyrightReferenceContainer2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ content_type: "content_type", copyright_creation_time: "copyright_creation_time", download_hd_url: "download_hd_url", duration_in_sec: "duration_in_sec", id: "id", iswc: "iswc", metadata: "metadata", published_time: "published_time", thumbnail_url: "thumbnail_url", title: "title", universal_content_id: "universal_content_id", writer_names: "writer_names" }); }, "get") }]); return CopyrightReferenceContainer2; }(AbstractCrudObject); var CoverPhoto = function(_AbstractCrudObject) { inherits(CoverPhoto2, _AbstractCrudObject); function CoverPhoto2() { classCallCheck(this, CoverPhoto2); return possibleConstructorReturn(this, (CoverPhoto2.__proto__ || Object.getPrototypeOf(CoverPhoto2)).apply(this, arguments)); } __name(CoverPhoto2, "CoverPhoto"); createClass(CoverPhoto2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ cover_id: "cover_id", id: "id", offset_x: "offset_x", offset_y: "offset_y", source: "source" }); }, "get") }]); return CoverPhoto2; }(AbstractCrudObject); var CreativeHistory = function(_AbstractCrudObject) { inherits(CreativeHistory2, _AbstractCrudObject); function CreativeHistory2() { classCallCheck(this, CreativeHistory2); return possibleConstructorReturn(this, (CreativeHistory2.__proto__ || Object.getPrototypeOf(CreativeHistory2)).apply(this, arguments)); } __name(CreativeHistory2, "CreativeHistory"); createClass(CreativeHistory2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ creative_fingerprint: "creative_fingerprint", time_ranges: "time_ranges" }); }, "get") }]); return CreativeHistory2; }(AbstractCrudObject); var CreditPartitionActionOptions = function(_AbstractCrudObject) { inherits(CreditPartitionActionOptions2, _AbstractCrudObject); function CreditPartitionActionOptions2() { classCallCheck(this, CreditPartitionActionOptions2); return possibleConstructorReturn(this, (CreditPartitionActionOptions2.__proto__ || Object.getPrototypeOf(CreditPartitionActionOptions2)).apply(this, arguments)); } __name(CreditPartitionActionOptions2, "CreditPartitionActionOptions"); createClass(CreditPartitionActionOptions2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ liability_type: "liability_type", partition_type: "partition_type", send_bill_to: "send_bill_to" }); }, "get") }]); return CreditPartitionActionOptions2; }(AbstractCrudObject); var Currency = function(_AbstractCrudObject) { inherits(Currency2, _AbstractCrudObject); function Currency2() { classCallCheck(this, Currency2); return possibleConstructorReturn(this, (Currency2.__proto__ || Object.getPrototypeOf(Currency2)).apply(this, arguments)); } __name(Currency2, "Currency"); createClass(Currency2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ currency_offset: "currency_offset", usd_exchange: "usd_exchange", usd_exchange_inverse: "usd_exchange_inverse", user_currency: "user_currency" }); }, "get") }]); return Currency2; }(AbstractCrudObject); var CurrencyAmount = function(_AbstractCrudObject) { inherits(CurrencyAmount2, _AbstractCrudObject); function CurrencyAmount2() { classCallCheck(this, CurrencyAmount2); return possibleConstructorReturn(this, (CurrencyAmount2.__proto__ || Object.getPrototypeOf(CurrencyAmount2)).apply(this, arguments)); } __name(CurrencyAmount2, "CurrencyAmount"); createClass(CurrencyAmount2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amount: "amount", amount_in_hundredths: "amount_in_hundredths", currency: "currency", offsetted_amount: "offsetted_amount" }); }, "get") }]); return CurrencyAmount2; }(AbstractCrudObject); var CustomAudienceAdAccount = function(_AbstractCrudObject) { inherits(CustomAudienceAdAccount2, _AbstractCrudObject); function CustomAudienceAdAccount2() { classCallCheck(this, CustomAudienceAdAccount2); return possibleConstructorReturn(this, (CustomAudienceAdAccount2.__proto__ || Object.getPrototypeOf(CustomAudienceAdAccount2)).apply(this, arguments)); } __name(CustomAudienceAdAccount2, "CustomAudienceAdAccount"); createClass(CustomAudienceAdAccount2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id" }); }, "get") }]); return CustomAudienceAdAccount2; }(AbstractCrudObject); var CustomAudienceDataSource = function(_AbstractCrudObject) { inherits(CustomAudienceDataSource2, _AbstractCrudObject); function CustomAudienceDataSource2() { classCallCheck(this, CustomAudienceDataSource2); return possibleConstructorReturn(this, (CustomAudienceDataSource2.__proto__ || Object.getPrototypeOf(CustomAudienceDataSource2)).apply(this, arguments)); } __name(CustomAudienceDataSource2, "CustomAudienceDataSource"); createClass(CustomAudienceDataSource2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ creation_params: "creation_params", sub_type: "sub_type", type: "type" }); }, "get") }, { key: "SubType", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ anything: "ANYTHING", app_users: "APP_USERS", ar_effects_events: "AR_EFFECTS_EVENTS", ar_experience_events: "AR_EXPERIENCE_EVENTS", campaign_conversions: "CAMPAIGN_CONVERSIONS", combination_custom_audience_users: "COMBINATION_CUSTOM_AUDIENCE_USERS", constant_contacts_email_hashes: "CONSTANT_CONTACTS_EMAIL_HASHES", contact_importer: "CONTACT_IMPORTER", conversion_pixel_hits: "CONVERSION_PIXEL_HITS", copy_paste_email_hashes: "COPY_PASTE_EMAIL_HASHES", custom_audience_users: "CUSTOM_AUDIENCE_USERS", custom_data_targeting: "CUSTOM_DATA_TARGETING", data_file: "DATA_FILE", dynamic_rule: "DYNAMIC_RULE", engagement_event_users: "ENGAGEMENT_EVENT_USERS", expanded_audience: "EXPANDED_AUDIENCE", external_ids: "EXTERNAL_IDS", external_ids_mix: "EXTERNAL_IDS_MIX", facebook_wifi_events: "FACEBOOK_WIFI_EVENTS", fb_event_signals: "FB_EVENT_SIGNALS", fb_pixel_hits: "FB_PIXEL_HITS", hashes: "HASHES", hashes_or_user_ids: "HASHES_OR_USER_IDS", household_expansion: "HOUSEHOLD_EXPANSION", ig_business_events: "IG_BUSINESS_EVENTS", ig_promoted_post: "IG_PROMOTED_POST", instant_article_events: "INSTANT_ARTICLE_EVENTS", lookalike_platform: "LOOKALIKE_PLATFORM", mail_chimp_email_hashes: "MAIL_CHIMP_EMAIL_HASHES", marketplace_listings: "MARKETPLACE_LISTINGS", messenger_onsite_subscription: "MESSENGER_ONSITE_SUBSCRIPTION", mobile_advertiser_ids: "MOBILE_ADVERTISER_IDS", mobile_app_combination_events: "MOBILE_APP_COMBINATION_EVENTS", mobile_app_custom_audience_users: "MOBILE_APP_CUSTOM_AUDIENCE_USERS", mobile_app_events: "MOBILE_APP_EVENTS", multicountry_combination: "MULTICOUNTRY_COMBINATION", multi_data_events: "MULTI_DATA_EVENTS", multi_event_source: "MULTI_EVENT_SOURCE", multi_hashes: "MULTI_HASHES", nothing: "NOTHING", offline_event_users: "OFFLINE_EVENT_USERS", page_fans: "PAGE_FANS", page_smart_audience: "PAGE_SMART_AUDIENCE", partner_category_users: "PARTNER_CATEGORY_USERS", place_visits: "PLACE_VISITS", platform: "PLATFORM", platform_users: "PLATFORM_USERS", seed_list: "SEED_LIST", signal_source: "SIGNAL_SOURCE", smart_audience: "SMART_AUDIENCE", store_visit_events: "STORE_VISIT_EVENTS", subscriber_list: "SUBSCRIBER_LIST", s_expr: "S_EXPR", tokens: "TOKENS", user_ids: "USER_IDS", video_events: "VIDEO_EVENTS", video_event_users: "VIDEO_EVENT_USERS", web_pixel_combination_events: "WEB_PIXEL_COMBINATION_EVENTS", web_pixel_hits: "WEB_PIXEL_HITS", web_pixel_hits_custom_audience_users: "WEB_PIXEL_HITS_CUSTOM_AUDIENCE_USERS", whatsapp_subscriber_pool: "WHATSAPP_SUBSCRIBER_POOL" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ contact_importer: "CONTACT_IMPORTER", copy_paste: "COPY_PASTE", event_based: "EVENT_BASED", file_imported: "FILE_IMPORTED", household_audience: "HOUSEHOLD_AUDIENCE", seed_based: "SEED_BASED", third_party_imported: "THIRD_PARTY_IMPORTED", unknown: "UNKNOWN" }); }, "get") }]); return CustomAudienceDataSource2; }(AbstractCrudObject); var CustomAudienceGroup = function(_AbstractCrudObject) { inherits(CustomAudienceGroup2, _AbstractCrudObject); function CustomAudienceGroup2() { classCallCheck(this, CustomAudienceGroup2); return possibleConstructorReturn(this, (CustomAudienceGroup2.__proto__ || Object.getPrototypeOf(CustomAudienceGroup2)).apply(this, arguments)); } __name(CustomAudienceGroup2, "CustomAudienceGroup"); createClass(CustomAudienceGroup2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ audience_type_param_name: "audience_type_param_name", existing_customer_tag: "existing_customer_tag", new_customer_tag: "new_customer_tag" }); }, "get") }]); return CustomAudienceGroup2; }(AbstractCrudObject); var CustomAudienceSharingStatus = function(_AbstractCrudObject) { inherits(CustomAudienceSharingStatus2, _AbstractCrudObject); function CustomAudienceSharingStatus2() { classCallCheck(this, CustomAudienceSharingStatus2); return possibleConstructorReturn(this, (CustomAudienceSharingStatus2.__proto__ || Object.getPrototypeOf(CustomAudienceSharingStatus2)).apply(this, arguments)); } __name(CustomAudienceSharingStatus2, "CustomAudienceSharingStatus"); createClass(CustomAudienceSharingStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ sharing_relationship_id: "sharing_relationship_id", status: "status" }); }, "get") }]); return CustomAudienceSharingStatus2; }(AbstractCrudObject); var CustomAudienceStatus = function(_AbstractCrudObject) { inherits(CustomAudienceStatus2, _AbstractCrudObject); function CustomAudienceStatus2() { classCallCheck(this, CustomAudienceStatus2); return possibleConstructorReturn(this, (CustomAudienceStatus2.__proto__ || Object.getPrototypeOf(CustomAudienceStatus2)).apply(this, arguments)); } __name(CustomAudienceStatus2, "CustomAudienceStatus"); createClass(CustomAudienceStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ code: "code", description: "description" }); }, "get") }]); return CustomAudienceStatus2; }(AbstractCrudObject); var DayPart = function(_AbstractCrudObject) { inherits(DayPart2, _AbstractCrudObject); function DayPart2() { classCallCheck(this, DayPart2); return possibleConstructorReturn(this, (DayPart2.__proto__ || Object.getPrototypeOf(DayPart2)).apply(this, arguments)); } __name(DayPart2, "DayPart"); createClass(DayPart2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ days: "days", end_minute: "end_minute", start_minute: "start_minute", timezone_type: "timezone_type" }); }, "get") }]); return DayPart2; }(AbstractCrudObject); var DeliveryCheck = function(_AbstractCrudObject) { inherits(DeliveryCheck2, _AbstractCrudObject); function DeliveryCheck2() { classCallCheck(this, DeliveryCheck2); return possibleConstructorReturn(this, (DeliveryCheck2.__proto__ || Object.getPrototypeOf(DeliveryCheck2)).apply(this, arguments)); } __name(DeliveryCheck2, "DeliveryCheck"); createClass(DeliveryCheck2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ check_name: "check_name", description: "description", extra_info: "extra_info", summary: "summary" }); }, "get") }]); return DeliveryCheck2; }(AbstractCrudObject); var DeliveryCheckExtraInfo = function(_AbstractCrudObject) { inherits(DeliveryCheckExtraInfo2, _AbstractCrudObject); function DeliveryCheckExtraInfo2() { classCallCheck(this, DeliveryCheckExtraInfo2); return possibleConstructorReturn(this, (DeliveryCheckExtraInfo2.__proto__ || Object.getPrototypeOf(DeliveryCheckExtraInfo2)).apply(this, arguments)); } __name(DeliveryCheckExtraInfo2, "DeliveryCheckExtraInfo"); createClass(DeliveryCheckExtraInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adgroup_ids: "adgroup_ids", campaign_ids: "campaign_ids", countries: "countries" }); }, "get") }]); return DeliveryCheckExtraInfo2; }(AbstractCrudObject); var DeliveryWindow = function(_AbstractCrudObject) { inherits(DeliveryWindow2, _AbstractCrudObject); function DeliveryWindow2() { classCallCheck(this, DeliveryWindow2); return possibleConstructorReturn(this, (DeliveryWindow2.__proto__ || Object.getPrototypeOf(DeliveryWindow2)).apply(this, arguments)); } __name(DeliveryWindow2, "DeliveryWindow"); createClass(DeliveryWindow2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad: "ad", ae: "ae", af: "af", ag: "ag", ai: "ai", al: "al", all: "all", am: "am", an: "an", ao: "ao", aq: "aq", ar: "ar", as: "as", at: "at", au: "au", aw: "aw", ax: "ax", az: "az", ba: "ba", bb: "bb", bd: "bd", be: "be", bf: "bf", bg: "bg", bh: "bh", bi: "bi", bj: "bj", bl: "bl", bm: "bm", bn: "bn", bo: "bo", bq: "bq", br: "br", bs: "bs", bt: "bt", bv: "bv", bw: "bw", by: "by", bz: "bz", ca: "ca", cc: "cc", cd: "cd", cf: "cf", cg: "cg", ch: "ch", ci: "ci", ck: "ck", cl: "cl", cm: "cm", cn: "cn", co: "co", cr: "cr", cu: "cu", cv: "cv", cw: "cw", cx: "cx", cy: "cy", cz: "cz", de: "de", dj: "dj", dk: "dk", dm: "dm", do: "do", dz: "dz", ec: "ec", ee: "ee", eg: "eg", eh: "eh", er: "er", es: "es", et: "et", fi: "fi", fj: "fj", fk: "fk", fm: "fm", fo: "fo", fr: "fr", ga: "ga", gb: "gb", gd: "gd", ge: "ge", gf: "gf", gg: "gg", gh: "gh", gi: "gi", gl: "gl", gm: "gm", gn: "gn", gp: "gp", gq: "gq", gr: "gr", gs: "gs", gt: "gt", gu: "gu", gw: "gw", gy: "gy", hk: "hk", hm: "hm", hn: "hn", hr: "hr", ht: "ht", hu: "hu", id: "id", ie: "ie", il: "il", im: "im", in: "in", io: "io", iq: "iq", ir: "ir", is: "is", it: "it", je: "je", jm: "jm", jo: "jo", jp: "jp", ke: "ke", kg: "kg", kh: "kh", ki: "ki", km: "km", kn: "kn", kp: "kp", kr: "kr", kw: "kw", ky: "ky", kz: "kz", la: "la", lb: "lb", lc: "lc", li: "li", lk: "lk", lr: "lr", ls: "ls", lt: "lt", lu: "lu", lv: "lv", ly: "ly", ma: "ma", mc: "mc", md: "md", me: "me", mf: "mf", mg: "mg", mh: "mh", mk: "mk", ml: "ml", mm: "mm", mn: "mn", mo: "mo", mp: "mp", mq: "mq", mr: "mr", ms: "ms", mt: "mt", mu: "mu", mv: "mv", mw: "mw", mx: "mx", my: "my", mz: "mz", na: "na", nc: "nc", ne: "ne", nf: "nf", ng: "ng", ni: "ni", nl: "nl", no: "no", np: "np", nr: "nr", nu: "nu", nz: "nz", om: "om", pa: "pa", pe: "pe", pf: "pf", pg: "pg", ph: "ph", pk: "pk", pl: "pl", pm: "pm", pn: "pn", pr: "pr", ps: "ps", pt: "pt", pw: "pw", py: "py", qa: "qa", re: "re", ro: "ro", rs: "rs", ru: "ru", rw: "rw", sa: "sa", sb: "sb", sc: "sc", sd: "sd", se: "se", sg: "sg", sh: "sh", si: "si", sj: "sj", sk: "sk", sl: "sl", sm: "sm", sn: "sn", so: "so", sr: "sr", ss: "ss", st: "st", sv: "sv", sx: "sx", sy: "sy", sz: "sz", tc: "tc", td: "td", tf: "tf", tg: "tg", th: "th", tj: "tj", tk: "tk", tl: "tl", tm: "tm", tn: "tn", to: "to", tr: "tr", tt: "tt", tv: "tv", tw: "tw", tz: "tz", ua: "ua", ug: "ug", um: "um", us: "us", uy: "uy", uz: "uz", va: "va", vc: "vc", ve: "ve", vg: "vg", vi: "vi", vn: "vn", vu: "vu", wf: "wf", ws: "ws", xk: "xk", ye: "ye", yt: "yt", za: "za", zm: "zm", zw: "zw" }); }, "get") }]); return DeliveryWindow2; }(AbstractCrudObject); var DynamicPostChildAttachment = function(_AbstractCrudObject) { inherits(DynamicPostChildAttachment2, _AbstractCrudObject); function DynamicPostChildAttachment2() { classCallCheck(this, DynamicPostChildAttachment2); return possibleConstructorReturn(this, (DynamicPostChildAttachment2.__proto__ || Object.getPrototypeOf(DynamicPostChildAttachment2)).apply(this, arguments)); } __name(DynamicPostChildAttachment2, "DynamicPostChildAttachment"); createClass(DynamicPostChildAttachment2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ description: "description", image_url: "image_url", link: "link", place_id: "place_id", product_id: "product_id", title: "title" }); }, "get") }]); return DynamicPostChildAttachment2; }(AbstractCrudObject); var Engagement = function(_AbstractCrudObject) { inherits(Engagement2, _AbstractCrudObject); function Engagement2() { classCallCheck(this, Engagement2); return possibleConstructorReturn(this, (Engagement2.__proto__ || Object.getPrototypeOf(Engagement2)).apply(this, arguments)); } __name(Engagement2, "Engagement"); createClass(Engagement2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ count: "count", count_string: "count_string", count_string_with_like: "count_string_with_like", count_string_without_like: "count_string_without_like", social_sentence: "social_sentence", social_sentence_with_like: "social_sentence_with_like", social_sentence_without_like: "social_sentence_without_like" }); }, "get") }]); return Engagement2; }(AbstractCrudObject); var EntityAtTextRange = function(_AbstractCrudObject) { inherits(EntityAtTextRange2, _AbstractCrudObject); function EntityAtTextRange2() { classCallCheck(this, EntityAtTextRange2); return possibleConstructorReturn(this, (EntityAtTextRange2.__proto__ || Object.getPrototypeOf(EntityAtTextRange2)).apply(this, arguments)); } __name(EntityAtTextRange2, "EntityAtTextRange"); createClass(EntityAtTextRange2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", length: "length", name: "name", object: "object", offset: "offset", type: "type" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ application: "application", event: "event", group: "group", page: "page", user: "user" }); }, "get") }]); return EntityAtTextRange2; }(AbstractCrudObject); var Experience = function(_AbstractCrudObject) { inherits(Experience2, _AbstractCrudObject); function Experience2() { classCallCheck(this, Experience2); return possibleConstructorReturn(this, (Experience2.__proto__ || Object.getPrototypeOf(Experience2)).apply(this, arguments)); } __name(Experience2, "Experience"); createClass(Experience2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ description: "description", from: "from", id: "id", name: "name", with: "with" }); }, "get") }]); return Experience2; }(AbstractCrudObject); var FAMEExportConfig = function(_AbstractCrudObject) { inherits(FAMEExportConfig2, _AbstractCrudObject); function FAMEExportConfig2() { classCallCheck(this, FAMEExportConfig2); return possibleConstructorReturn(this, (FAMEExportConfig2.__proto__ || Object.getPrototypeOf(FAMEExportConfig2)).apply(this, arguments)); } __name(FAMEExportConfig2, "FAMEExportConfig"); createClass(FAMEExportConfig2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ can_edit: "can_edit", column_id: "column_id", display_name: "display_name", format: "format" }); }, "get") }]); return FAMEExportConfig2; }(AbstractCrudObject); var FlexibleTargeting = function(_AbstractCrudObject) { inherits(FlexibleTargeting2, _AbstractCrudObject); function FlexibleTargeting2() { classCallCheck(this, FlexibleTargeting2); return possibleConstructorReturn(this, (FlexibleTargeting2.__proto__ || Object.getPrototypeOf(FlexibleTargeting2)).apply(this, arguments)); } __name(FlexibleTargeting2, "FlexibleTargeting"); createClass(FlexibleTargeting2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ behaviors: "behaviors", college_years: "college_years", connections: "connections", custom_audiences: "custom_audiences", education_majors: "education_majors", education_schools: "education_schools", education_statuses: "education_statuses", ethnic_affinity: "ethnic_affinity", family_statuses: "family_statuses", friends_of_connections: "friends_of_connections", generation: "generation", home_ownership: "home_ownership", home_type: "home_type", home_value: "home_value", household_composition: "household_composition", income: "income", industries: "industries", interested_in: "interested_in", interests: "interests", life_events: "life_events", moms: "moms", net_worth: "net_worth", office_type: "office_type", politics: "politics", relationship_statuses: "relationship_statuses", user_adclusters: "user_adclusters", work_employers: "work_employers", work_positions: "work_positions" }); }, "get") }]); return FlexibleTargeting2; }(AbstractCrudObject); var FundingSourceDetails = function(_AbstractCrudObject) { inherits(FundingSourceDetails2, _AbstractCrudObject); function FundingSourceDetails2() { classCallCheck(this, FundingSourceDetails2); return possibleConstructorReturn(this, (FundingSourceDetails2.__proto__ || Object.getPrototypeOf(FundingSourceDetails2)).apply(this, arguments)); } __name(FundingSourceDetails2, "FundingSourceDetails"); createClass(FundingSourceDetails2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ coupon: "coupon", coupons: "coupons", display_string: "display_string", id: "id", type: "type" }); }, "get") }]); return FundingSourceDetails2; }(AbstractCrudObject); var FundingSourceDetailsCoupon = function(_AbstractCrudObject) { inherits(FundingSourceDetailsCoupon2, _AbstractCrudObject); function FundingSourceDetailsCoupon2() { classCallCheck(this, FundingSourceDetailsCoupon2); return possibleConstructorReturn(this, (FundingSourceDetailsCoupon2.__proto__ || Object.getPrototypeOf(FundingSourceDetailsCoupon2)).apply(this, arguments)); } __name(FundingSourceDetailsCoupon2, "FundingSourceDetailsCoupon"); createClass(FundingSourceDetailsCoupon2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amount: "amount", campaign_ids: "campaign_ids", currency: "currency", display_amount: "display_amount", expiration: "expiration" }); }, "get") }]); return FundingSourceDetailsCoupon2; }(AbstractCrudObject); var HasLeadAccess = function(_AbstractCrudObject) { inherits(HasLeadAccess2, _AbstractCrudObject); function HasLeadAccess2() { classCallCheck(this, HasLeadAccess2); return possibleConstructorReturn(this, (HasLeadAccess2.__proto__ || Object.getPrototypeOf(HasLeadAccess2)).apply(this, arguments)); } __name(HasLeadAccess2, "HasLeadAccess"); createClass(HasLeadAccess2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_has_leads_permission: "app_has_leads_permission", can_access_lead: "can_access_lead", enabled_lead_access_manager: "enabled_lead_access_manager", failure_reason: "failure_reason", failure_resolution: "failure_resolution", is_page_admin: "is_page_admin", page_id: "page_id", user_has_leads_permission: "user_has_leads_permission", user_id: "user_id" }); }, "get") }]); return HasLeadAccess2; }(AbstractCrudObject); var HighDemandPeriodTimeSuggestionWeeklySegment = function(_AbstractCrudObject) { inherits(HighDemandPeriodTimeSuggestionWeeklySegment2, _AbstractCrudObject); function HighDemandPeriodTimeSuggestionWeeklySegment2() { classCallCheck(this, HighDemandPeriodTimeSuggestionWeeklySegment2); return possibleConstructorReturn(this, (HighDemandPeriodTimeSuggestionWeeklySegment2.__proto__ || Object.getPrototypeOf(HighDemandPeriodTimeSuggestionWeeklySegment2)).apply(this, arguments)); } __name(HighDemandPeriodTimeSuggestionWeeklySegment2, "HighDemandPeriodTimeSuggestionWeeklySegment"); createClass(HighDemandPeriodTimeSuggestionWeeklySegment2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ days: "days", end_minute: "end_minute", start_minute: "start_minute", timezone_type: "timezone_type" }); }, "get") }]); return HighDemandPeriodTimeSuggestionWeeklySegment2; }(AbstractCrudObject); var IDName = function(_AbstractCrudObject) { inherits(IDName2, _AbstractCrudObject); function IDName2() { classCallCheck(this, IDName2); return possibleConstructorReturn(this, (IDName2.__proto__ || Object.getPrototypeOf(IDName2)).apply(this, arguments)); } __name(IDName2, "IDName"); createClass(IDName2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name" }); }, "get") }]); return IDName2; }(AbstractCrudObject); var IGCommentFromUser = function(_AbstractCrudObject) { inherits(IGCommentFromUser2, _AbstractCrudObject); function IGCommentFromUser2() { classCallCheck(this, IGCommentFromUser2); return possibleConstructorReturn(this, (IGCommentFromUser2.__proto__ || Object.getPrototypeOf(IGCommentFromUser2)).apply(this, arguments)); } __name(IGCommentFromUser2, "IGCommentFromUser"); createClass(IGCommentFromUser2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", username: "username" }); }, "get") }]); return IGCommentFromUser2; }(AbstractCrudObject); var IGShoppingReviewStatus = function(_AbstractCrudObject) { inherits(IGShoppingReviewStatus2, _AbstractCrudObject); function IGShoppingReviewStatus2() { classCallCheck(this, IGShoppingReviewStatus2); return possibleConstructorReturn(this, (IGShoppingReviewStatus2.__proto__ || Object.getPrototypeOf(IGShoppingReviewStatus2)).apply(this, arguments)); } __name(IGShoppingReviewStatus2, "IGShoppingReviewStatus"); createClass(IGShoppingReviewStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ onsite_eligibility: "onsite_eligibility", reasons: "reasons", status: "status" }); }, "get") }]); return IGShoppingReviewStatus2; }(AbstractCrudObject); var IGShoppingReviewStatusOnsiteEligibility = function(_AbstractCrudObject) { inherits(IGShoppingReviewStatusOnsiteEligibility2, _AbstractCrudObject); function IGShoppingReviewStatusOnsiteEligibility2() { classCallCheck(this, IGShoppingReviewStatusOnsiteEligibility2); return possibleConstructorReturn(this, (IGShoppingReviewStatusOnsiteEligibility2.__proto__ || Object.getPrototypeOf(IGShoppingReviewStatusOnsiteEligibility2)).apply(this, arguments)); } __name(IGShoppingReviewStatusOnsiteEligibility2, "IGShoppingReviewStatusOnsiteEligibility"); createClass(IGShoppingReviewStatusOnsiteEligibility2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ is_eligible: "is_eligible", reasons: "reasons" }); }, "get") }]); return IGShoppingReviewStatusOnsiteEligibility2; }(AbstractCrudObject); var IGShoppingReviewStatusReasonWithHelpMessage = function(_AbstractCrudObject) { inherits(IGShoppingReviewStatusReasonWithHelpMessage2, _AbstractCrudObject); function IGShoppingReviewStatusReasonWithHelpMessage2() { classCallCheck(this, IGShoppingReviewStatusReasonWithHelpMessage2); return possibleConstructorReturn(this, (IGShoppingReviewStatusReasonWithHelpMessage2.__proto__ || Object.getPrototypeOf(IGShoppingReviewStatusReasonWithHelpMessage2)).apply(this, arguments)); } __name(IGShoppingReviewStatusReasonWithHelpMessage2, "IGShoppingReviewStatusReasonWithHelpMessage"); createClass(IGShoppingReviewStatusReasonWithHelpMessage2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ code: "code", help_url: "help_url", message: "message" }); }, "get") }]); return IGShoppingReviewStatusReasonWithHelpMessage2; }(AbstractCrudObject); var IGVideoCopyrightCheckMatchesInformation = function(_AbstractCrudObject) { inherits(IGVideoCopyrightCheckMatchesInformation2, _AbstractCrudObject); function IGVideoCopyrightCheckMatchesInformation2() { classCallCheck(this, IGVideoCopyrightCheckMatchesInformation2); return possibleConstructorReturn(this, (IGVideoCopyrightCheckMatchesInformation2.__proto__ || Object.getPrototypeOf(IGVideoCopyrightCheckMatchesInformation2)).apply(this, arguments)); } __name(IGVideoCopyrightCheckMatchesInformation2, "IGVideoCopyrightCheckMatchesInformation"); createClass(IGVideoCopyrightCheckMatchesInformation2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ copyright_matches: "copyright_matches", status: "status" }); }, "get") }]); return IGVideoCopyrightCheckMatchesInformation2; }(AbstractCrudObject); var IGVideoCopyrightCheckStatus = function(_AbstractCrudObject) { inherits(IGVideoCopyrightCheckStatus2, _AbstractCrudObject); function IGVideoCopyrightCheckStatus2() { classCallCheck(this, IGVideoCopyrightCheckStatus2); return possibleConstructorReturn(this, (IGVideoCopyrightCheckStatus2.__proto__ || Object.getPrototypeOf(IGVideoCopyrightCheckStatus2)).apply(this, arguments)); } __name(IGVideoCopyrightCheckStatus2, "IGVideoCopyrightCheckStatus"); createClass(IGVideoCopyrightCheckStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ matches_found: "matches_found", status: "status" }); }, "get") }]); return IGVideoCopyrightCheckStatus2; }(AbstractCrudObject); var InsightsValue = function(_AbstractCrudObject) { inherits(InsightsValue2, _AbstractCrudObject); function InsightsValue2() { classCallCheck(this, InsightsValue2); return possibleConstructorReturn(this, (InsightsValue2.__proto__ || Object.getPrototypeOf(InsightsValue2)).apply(this, arguments)); } __name(InsightsValue2, "InsightsValue"); createClass(InsightsValue2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ campaign_id: "campaign_id", end_time: "end_time", engagement_source: "engagement_source", message_type: "message_type", messaging_channel: "messaging_channel", recurring_notifications_entry_point: "recurring_notifications_entry_point", recurring_notifications_frequency: "recurring_notifications_frequency", recurring_notifications_topic: "recurring_notifications_topic", start_time: "start_time", value: "value" }); }, "get") }]); return InsightsValue2; }(AbstractCrudObject); var InstagramComment = function(_AbstractCrudObject) { inherits(InstagramComment2, _AbstractCrudObject); function InstagramComment2() { classCallCheck(this, InstagramComment2); return possibleConstructorReturn(this, (InstagramComment2.__proto__ || Object.getPrototypeOf(InstagramComment2)).apply(this, arguments)); } __name(InstagramComment2, "InstagramComment"); createClass(InstagramComment2, [{ key: "getReplies", value: /* @__PURE__ */ __name(function getReplies(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramComment2, fields, params, fetchFirstPage, "/replies"); }, "getReplies") }, { key: "createReply", value: /* @__PURE__ */ __name(function createReply(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/replies", fields, params, InstagramComment2, pathOverride); }, "createReply") // $FlowFixMe : Support Generic Types }, { key: "delete", value: /* @__PURE__ */ __name(function _delete(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(InstagramComment2.prototype.__proto__ || Object.getPrototypeOf(InstagramComment2.prototype), "delete", this).call(this, params); }, "_delete") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(InstagramComment2.prototype.__proto__ || Object.getPrototypeOf(InstagramComment2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ comment_type: "comment_type", created_at: "created_at", id: "id", instagram_comment_id: "instagram_comment_id", instagram_user: "instagram_user", mentioned_instagram_users: "mentioned_instagram_users", message: "message", username: "username" }); }, "get") }]); return InstagramComment2; }(AbstractCrudObject); var InstagramCarousel = function(_AbstractCrudObject) { inherits(InstagramCarousel2, _AbstractCrudObject); function InstagramCarousel2() { classCallCheck(this, InstagramCarousel2); return possibleConstructorReturn(this, (InstagramCarousel2.__proto__ || Object.getPrototypeOf(InstagramCarousel2)).apply(this, arguments)); } __name(InstagramCarousel2, "InstagramCarousel"); createClass(InstagramCarousel2, [{ key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramComment, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "createComment", value: /* @__PURE__ */ __name(function createComment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/comments", fields, params, InstagramComment, pathOverride); }, "createComment") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ caption_text: "caption_text", comment_count: "comment_count", content_type: "content_type", display_url: "display_url", id: "id", like_count: "like_count", owner_instagram_user: "owner_instagram_user", permalink: "permalink", taken_at: "taken_at", video_url: "video_url" }); }, "get") }]); return InstagramCarousel2; }(AbstractCrudObject); var InstagramInsightsValue = function(_AbstractCrudObject) { inherits(InstagramInsightsValue2, _AbstractCrudObject); function InstagramInsightsValue2() { classCallCheck(this, InstagramInsightsValue2); return possibleConstructorReturn(this, (InstagramInsightsValue2.__proto__ || Object.getPrototypeOf(InstagramInsightsValue2)).apply(this, arguments)); } __name(InstagramInsightsValue2, "InstagramInsightsValue"); createClass(InstagramInsightsValue2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ end_time: "end_time", value: "value" }); }, "get") }]); return InstagramInsightsValue2; }(AbstractCrudObject); var InstagramMedia = function(_AbstractCrudObject) { inherits(InstagramMedia2, _AbstractCrudObject); function InstagramMedia2() { classCallCheck(this, InstagramMedia2); return possibleConstructorReturn(this, (InstagramMedia2.__proto__ || Object.getPrototypeOf(InstagramMedia2)).apply(this, arguments)); } __name(InstagramMedia2, "InstagramMedia"); createClass(InstagramMedia2, [{ key: "getComments", value: /* @__PURE__ */ __name(function getComments(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(InstagramComment, fields, params, fetchFirstPage, "/comments"); }, "getComments") }, { key: "createComment", value: /* @__PURE__ */ __name(function createComment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/comments", fields, params, InstagramComment, pathOverride); }, "createComment") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ caption_text: "caption_text", comment_count: "comment_count", content_type: "content_type", display_url: "display_url", filter_name: "filter_name", id: "id", latitude: "latitude", like_count: "like_count", location: "location", location_name: "location_name", longitude: "longitude", owner_instagram_user: "owner_instagram_user", permalink: "permalink", taken_at: "taken_at", video_url: "video_url" }); }, "get") }]); return InstagramMedia2; }(AbstractCrudObject); var InstagramShoppingMerchantReviewMessage = function(_AbstractCrudObject) { inherits(InstagramShoppingMerchantReviewMessage2, _AbstractCrudObject); function InstagramShoppingMerchantReviewMessage2() { classCallCheck(this, InstagramShoppingMerchantReviewMessage2); return possibleConstructorReturn(this, (InstagramShoppingMerchantReviewMessage2.__proto__ || Object.getPrototypeOf(InstagramShoppingMerchantReviewMessage2)).apply(this, arguments)); } __name(InstagramShoppingMerchantReviewMessage2, "InstagramShoppingMerchantReviewMessage"); createClass(InstagramShoppingMerchantReviewMessage2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ help_url: "help_url", message: "message" }); }, "get") }]); return InstagramShoppingMerchantReviewMessage2; }(AbstractCrudObject); var InstagramVideoMetadata = function(_AbstractCrudObject) { inherits(InstagramVideoMetadata2, _AbstractCrudObject); function InstagramVideoMetadata2() { classCallCheck(this, InstagramVideoMetadata2); return possibleConstructorReturn(this, (InstagramVideoMetadata2.__proto__ || Object.getPrototypeOf(InstagramVideoMetadata2)).apply(this, arguments)); } __name(InstagramVideoMetadata2, "InstagramVideoMetadata"); createClass(InstagramVideoMetadata2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ duration: "duration", height: "height", width: "width" }); }, "get") }]); return InstagramVideoMetadata2; }(AbstractCrudObject); var IosAppLink = function(_AbstractCrudObject) { inherits(IosAppLink2, _AbstractCrudObject); function IosAppLink2() { classCallCheck(this, IosAppLink2); return possibleConstructorReturn(this, (IosAppLink2.__proto__ || Object.getPrototypeOf(IosAppLink2)).apply(this, arguments)); } __name(IosAppLink2, "IosAppLink"); createClass(IosAppLink2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_name: "app_name", app_store_id: "app_store_id", url: "url" }); }, "get") }]); return IosAppLink2; }(AbstractCrudObject); var JobOpening = function(_AbstractCrudObject) { inherits(JobOpening2, _AbstractCrudObject); function JobOpening2() { classCallCheck(this, JobOpening2); return possibleConstructorReturn(this, (JobOpening2.__proto__ || Object.getPrototypeOf(JobOpening2)).apply(this, arguments)); } __name(JobOpening2, "JobOpening"); createClass(JobOpening2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ address: "address", application_callback_url: "application_callback_url", created_time: "created_time", description: "description", errors: "errors", external_company_facebook_url: "external_company_facebook_url", external_company_full_address: "external_company_full_address", external_company_id: "external_company_id", external_company_name: "external_company_name", external_id: "external_id", id: "id", job_status: "job_status", latitude: "latitude", longitude: "longitude", offsite_application_url: "offsite_application_url", page: "page", photo: "photo", platform_review_status: "platform_review_status", post: "post", remote_type: "remote_type", review_rejection_reasons: "review_rejection_reasons", title: "title", type: "type" }); }, "get") }, { key: "JobStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ closed: "CLOSED", draft: "DRAFT", open: "OPEN", provisional: "PROVISIONAL" }); }, "get") }, { key: "PlatformReviewStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ approved: "APPROVED", pending: "PENDING", rejected: "REJECTED" }); }, "get") }, { key: "ReviewRejectionReasons", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adult_content: "ADULT_CONTENT", discrimination: "DISCRIMINATION", drugs: "DRUGS", generic_default: "GENERIC_DEFAULT", illegal: "ILLEGAL", impersonation: "IMPERSONATION", misleading: "MISLEADING", multilevel_marketing: "MULTILEVEL_MARKETING", personal_info: "PERSONAL_INFO", sexual: "SEXUAL" }); }, "get") }, { key: "Type", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ contract: "CONTRACT", full_time: "FULL_TIME", internship: "INTERNSHIP", part_time: "PART_TIME", volunteer: "VOLUNTEER" }); }, "get") }]); return JobOpening2; }(AbstractCrudObject); var KeyValue = function(_AbstractCrudObject) { inherits(KeyValue2, _AbstractCrudObject); function KeyValue2() { classCallCheck(this, KeyValue2); return possibleConstructorReturn(this, (KeyValue2.__proto__ || Object.getPrototypeOf(KeyValue2)).apply(this, arguments)); } __name(KeyValue2, "KeyValue"); createClass(KeyValue2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ key: "key", value: "value" }); }, "get") }]); return KeyValue2; }(AbstractCrudObject); var LeadGenAppointmentBookingInfo = function(_AbstractCrudObject) { inherits(LeadGenAppointmentBookingInfo2, _AbstractCrudObject); function LeadGenAppointmentBookingInfo2() { classCallCheck(this, LeadGenAppointmentBookingInfo2); return possibleConstructorReturn(this, (LeadGenAppointmentBookingInfo2.__proto__ || Object.getPrototypeOf(LeadGenAppointmentBookingInfo2)).apply(this, arguments)); } __name(LeadGenAppointmentBookingInfo2, "LeadGenAppointmentBookingInfo"); createClass(LeadGenAppointmentBookingInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advertiser_timezone_offset: "advertiser_timezone_offset", appointment_durations: "appointment_durations", appointment_slots_by_day: "appointment_slots_by_day" }); }, "get") }]); return LeadGenAppointmentBookingInfo2; }(AbstractCrudObject); var LeadGenAppointmentSlotsByDay = function(_AbstractCrudObject) { inherits(LeadGenAppointmentSlotsByDay2, _AbstractCrudObject); function LeadGenAppointmentSlotsByDay2() { classCallCheck(this, LeadGenAppointmentSlotsByDay2); return possibleConstructorReturn(this, (LeadGenAppointmentSlotsByDay2.__proto__ || Object.getPrototypeOf(LeadGenAppointmentSlotsByDay2)).apply(this, arguments)); } __name(LeadGenAppointmentSlotsByDay2, "LeadGenAppointmentSlotsByDay"); createClass(LeadGenAppointmentSlotsByDay2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ appointment_slots: "appointment_slots", day: "day" }); }, "get") }]); return LeadGenAppointmentSlotsByDay2; }(AbstractCrudObject); var LeadGenAppointmentTimeSlot = function(_AbstractCrudObject) { inherits(LeadGenAppointmentTimeSlot2, _AbstractCrudObject); function LeadGenAppointmentTimeSlot2() { classCallCheck(this, LeadGenAppointmentTimeSlot2); return possibleConstructorReturn(this, (LeadGenAppointmentTimeSlot2.__proto__ || Object.getPrototypeOf(LeadGenAppointmentTimeSlot2)).apply(this, arguments)); } __name(LeadGenAppointmentTimeSlot2, "LeadGenAppointmentTimeSlot"); createClass(LeadGenAppointmentTimeSlot2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ end_time: "end_time", start_time: "start_time" }); }, "get") }]); return LeadGenAppointmentTimeSlot2; }(AbstractCrudObject); var LeadGenConditionalQuestionsGroupChoices = function(_AbstractCrudObject) { inherits(LeadGenConditionalQuestionsGroupChoices2, _AbstractCrudObject); function LeadGenConditionalQuestionsGroupChoices2() { classCallCheck(this, LeadGenConditionalQuestionsGroupChoices2); return possibleConstructorReturn(this, (LeadGenConditionalQuestionsGroupChoices2.__proto__ || Object.getPrototypeOf(LeadGenConditionalQuestionsGroupChoices2)).apply(this, arguments)); } __name(LeadGenConditionalQuestionsGroupChoices2, "LeadGenConditionalQuestionsGroupChoices"); createClass(LeadGenConditionalQuestionsGroupChoices2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ customized_token: "customized_token", next_question_choices: "next_question_choices", value: "value" }); }, "get") }]); return LeadGenConditionalQuestionsGroupChoices2; }(AbstractCrudObject); var LeadGenConditionalQuestionsGroupQuestions = function(_AbstractCrudObject) { inherits(LeadGenConditionalQuestionsGroupQuestions2, _AbstractCrudObject); function LeadGenConditionalQuestionsGroupQuestions2() { classCallCheck(this, LeadGenConditionalQuestionsGroupQuestions2); return possibleConstructorReturn(this, (LeadGenConditionalQuestionsGroupQuestions2.__proto__ || Object.getPrototypeOf(LeadGenConditionalQuestionsGroupQuestions2)).apply(this, arguments)); } __name(LeadGenConditionalQuestionsGroupQuestions2, "LeadGenConditionalQuestionsGroupQuestions"); createClass(LeadGenConditionalQuestionsGroupQuestions2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ field_key: "field_key", input_type: "input_type", name: "name" }); }, "get") }]); return LeadGenConditionalQuestionsGroupQuestions2; }(AbstractCrudObject); var LeadGenContextCard = function(_AbstractCrudObject) { inherits(LeadGenContextCard2, _AbstractCrudObject); function LeadGenContextCard2() { classCallCheck(this, LeadGenContextCard2); return possibleConstructorReturn(this, (LeadGenContextCard2.__proto__ || Object.getPrototypeOf(LeadGenContextCard2)).apply(this, arguments)); } __name(LeadGenContextCard2, "LeadGenContextCard"); createClass(LeadGenContextCard2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ button_text: "button_text", content: "content", cover_photo: "cover_photo", id: "id", style: "style", title: "title" }); }, "get") }]); return LeadGenContextCard2; }(AbstractCrudObject); var LeadGenCustomDisclaimer = function(_AbstractCrudObject) { inherits(LeadGenCustomDisclaimer2, _AbstractCrudObject); function LeadGenCustomDisclaimer2() { classCallCheck(this, LeadGenCustomDisclaimer2); return possibleConstructorReturn(this, (LeadGenCustomDisclaimer2.__proto__ || Object.getPrototypeOf(LeadGenCustomDisclaimer2)).apply(this, arguments)); } __name(LeadGenCustomDisclaimer2, "LeadGenCustomDisclaimer"); createClass(LeadGenCustomDisclaimer2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ body: "body", checkboxes: "checkboxes", title: "title" }); }, "get") }]); return LeadGenCustomDisclaimer2; }(AbstractCrudObject); var LeadGenCustomDisclaimerBody = function(_AbstractCrudObject) { inherits(LeadGenCustomDisclaimerBody2, _AbstractCrudObject); function LeadGenCustomDisclaimerBody2() { classCallCheck(this, LeadGenCustomDisclaimerBody2); return possibleConstructorReturn(this, (LeadGenCustomDisclaimerBody2.__proto__ || Object.getPrototypeOf(LeadGenCustomDisclaimerBody2)).apply(this, arguments)); } __name(LeadGenCustomDisclaimerBody2, "LeadGenCustomDisclaimerBody"); createClass(LeadGenCustomDisclaimerBody2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ text: "text", url_entities: "url_entities" }); }, "get") }]); return LeadGenCustomDisclaimerBody2; }(AbstractCrudObject); var LeadGenDraftQuestion = function(_AbstractCrudObject) { inherits(LeadGenDraftQuestion2, _AbstractCrudObject); function LeadGenDraftQuestion2() { classCallCheck(this, LeadGenDraftQuestion2); return possibleConstructorReturn(this, (LeadGenDraftQuestion2.__proto__ || Object.getPrototypeOf(LeadGenDraftQuestion2)).apply(this, arguments)); } __name(LeadGenDraftQuestion2, "LeadGenDraftQuestion"); createClass(LeadGenDraftQuestion2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ conditional_questions_choices: "conditional_questions_choices", conditional_questions_group_id: "conditional_questions_group_id", dependent_conditional_questions: "dependent_conditional_questions", inline_context: "inline_context", key: "key", label: "label", options: "options", type: "type" }); }, "get") }]); return LeadGenDraftQuestion2; }(AbstractCrudObject); var LeadGenLegalContent = function(_AbstractCrudObject) { inherits(LeadGenLegalContent2, _AbstractCrudObject); function LeadGenLegalContent2() { classCallCheck(this, LeadGenLegalContent2); return possibleConstructorReturn(this, (LeadGenLegalContent2.__proto__ || Object.getPrototypeOf(LeadGenLegalContent2)).apply(this, arguments)); } __name(LeadGenLegalContent2, "LeadGenLegalContent"); createClass(LeadGenLegalContent2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ custom_disclaimer: "custom_disclaimer", id: "id", privacy_policy: "privacy_policy" }); }, "get") }]); return LeadGenLegalContent2; }(AbstractCrudObject); var LeadGenLegalContentCheckbox = function(_AbstractCrudObject) { inherits(LeadGenLegalContentCheckbox2, _AbstractCrudObject); function LeadGenLegalContentCheckbox2() { classCallCheck(this, LeadGenLegalContentCheckbox2); return possibleConstructorReturn(this, (LeadGenLegalContentCheckbox2.__proto__ || Object.getPrototypeOf(LeadGenLegalContentCheckbox2)).apply(this, arguments)); } __name(LeadGenLegalContentCheckbox2, "LeadGenLegalContentCheckbox"); createClass(LeadGenLegalContentCheckbox2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", is_checked_by_default: "is_checked_by_default", is_required: "is_required", key: "key", text: "text" }); }, "get") }]); return LeadGenLegalContentCheckbox2; }(AbstractCrudObject); var LeadGenPostSubmissionCheckResult = function(_AbstractCrudObject) { inherits(LeadGenPostSubmissionCheckResult2, _AbstractCrudObject); function LeadGenPostSubmissionCheckResult2() { classCallCheck(this, LeadGenPostSubmissionCheckResult2); return possibleConstructorReturn(this, (LeadGenPostSubmissionCheckResult2.__proto__ || Object.getPrototypeOf(LeadGenPostSubmissionCheckResult2)).apply(this, arguments)); } __name(LeadGenPostSubmissionCheckResult2, "LeadGenPostSubmissionCheckResult"); createClass(LeadGenPostSubmissionCheckResult2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ api_call_result: "api_call_result", api_error_message: "api_error_message", shown_thank_you_page: "shown_thank_you_page" }); }, "get") }]); return LeadGenPostSubmissionCheckResult2; }(AbstractCrudObject); var LeadGenPrivacyPolicy = function(_AbstractCrudObject) { inherits(LeadGenPrivacyPolicy2, _AbstractCrudObject); function LeadGenPrivacyPolicy2() { classCallCheck(this, LeadGenPrivacyPolicy2); return possibleConstructorReturn(this, (LeadGenPrivacyPolicy2.__proto__ || Object.getPrototypeOf(LeadGenPrivacyPolicy2)).apply(this, arguments)); } __name(LeadGenPrivacyPolicy2, "LeadGenPrivacyPolicy"); createClass(LeadGenPrivacyPolicy2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ link_text: "link_text", url: "url" }); }, "get") }]); return LeadGenPrivacyPolicy2; }(AbstractCrudObject); var LeadGenQuestion = function(_AbstractCrudObject) { inherits(LeadGenQuestion2, _AbstractCrudObject); function LeadGenQuestion2() { classCallCheck(this, LeadGenQuestion2); return possibleConstructorReturn(this, (LeadGenQuestion2.__proto__ || Object.getPrototypeOf(LeadGenQuestion2)).apply(this, arguments)); } __name(LeadGenQuestion2, "LeadGenQuestion"); createClass(LeadGenQuestion2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ conditional_questions_choices: "conditional_questions_choices", conditional_questions_group_id: "conditional_questions_group_id", dependent_conditional_questions: "dependent_conditional_questions", id: "id", inline_context: "inline_context", key: "key", label: "label", options: "options", type: "type" }); }, "get") }]); return LeadGenQuestion2; }(AbstractCrudObject); var LeadGenQuestionOption = function(_AbstractCrudObject) { inherits(LeadGenQuestionOption2, _AbstractCrudObject); function LeadGenQuestionOption2() { classCallCheck(this, LeadGenQuestionOption2); return possibleConstructorReturn(this, (LeadGenQuestionOption2.__proto__ || Object.getPrototypeOf(LeadGenQuestionOption2)).apply(this, arguments)); } __name(LeadGenQuestionOption2, "LeadGenQuestionOption"); createClass(LeadGenQuestionOption2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ key: "key", value: "value" }); }, "get") }]); return LeadGenQuestionOption2; }(AbstractCrudObject); var LeadGenThankYouPage = function(_AbstractCrudObject) { inherits(LeadGenThankYouPage2, _AbstractCrudObject); function LeadGenThankYouPage2() { classCallCheck(this, LeadGenThankYouPage2); return possibleConstructorReturn(this, (LeadGenThankYouPage2.__proto__ || Object.getPrototypeOf(LeadGenThankYouPage2)).apply(this, arguments)); } __name(LeadGenThankYouPage2, "LeadGenThankYouPage"); createClass(LeadGenThankYouPage2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ body: "body", business_phone_number: "business_phone_number", button_text: "button_text", button_type: "button_type", country_code: "country_code", enable_messenger: "enable_messenger", id: "id", lead_gen_use_case: "lead_gen_use_case", status: "status", title: "title", website_url: "website_url" }); }, "get") }]); return LeadGenThankYouPage2; }(AbstractCrudObject); var LeadGenURLEntityAtRanges = function(_AbstractCrudObject) { inherits(LeadGenURLEntityAtRanges2, _AbstractCrudObject); function LeadGenURLEntityAtRanges2() { classCallCheck(this, LeadGenURLEntityAtRanges2); return possibleConstructorReturn(this, (LeadGenURLEntityAtRanges2.__proto__ || Object.getPrototypeOf(LeadGenURLEntityAtRanges2)).apply(this, arguments)); } __name(LeadGenURLEntityAtRanges2, "LeadGenURLEntityAtRanges"); createClass(LeadGenURLEntityAtRanges2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ length: "length", offset: "offset", url: "url" }); }, "get") }]); return LeadGenURLEntityAtRanges2; }(AbstractCrudObject); var LifeEvent = function(_AbstractCrudObject) { inherits(LifeEvent2, _AbstractCrudObject); function LifeEvent2() { classCallCheck(this, LifeEvent2); return possibleConstructorReturn(this, (LifeEvent2.__proto__ || Object.getPrototypeOf(LifeEvent2)).apply(this, arguments)); } __name(LifeEvent2, "LifeEvent"); createClass(LifeEvent2, [{ key: "getLikes", value: /* @__PURE__ */ __name(function getLikes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/likes"); }, "getLikes") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ description: "description", end_time: "end_time", from: "from", id: "id", is_hidden: "is_hidden", start_time: "start_time", title: "title", updated_time: "updated_time" }); }, "get") }]); return LifeEvent2; }(AbstractCrudObject); var Link = function(_AbstractCrudObject) { inherits(Link2, _AbstractCrudObject); function Link2() { classCallCheck(this, Link2); return possibleConstructorReturn(this, (Link2.__proto__ || Object.getPrototypeOf(Link2)).apply(this, arguments)); } __name(Link2, "Link"); createClass(Link2, [{ key: "createComment", value: /* @__PURE__ */ __name(function createComment(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var pathOverride = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null; return this.createEdge("/comments", fields, params, Comment, pathOverride); }, "createComment") }, { key: "getLikes", value: /* @__PURE__ */ __name(function getLikes(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(Profile, fields, params, fetchFirstPage, "/likes"); }, "getLikes") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ caption: "caption", created_time: "created_time", description: "description", from: "from", icon: "icon", id: "id", link: "link", message: "message", multi_share_optimized: "multi_share_optimized", name: "name", privacy: "privacy", via: "via" }); }, "get") }]); return Link2; }(AbstractCrudObject); var LiveVideoAdBreakConfig = function(_AbstractCrudObject) { inherits(LiveVideoAdBreakConfig2, _AbstractCrudObject); function LiveVideoAdBreakConfig2() { classCallCheck(this, LiveVideoAdBreakConfig2); return possibleConstructorReturn(this, (LiveVideoAdBreakConfig2.__proto__ || Object.getPrototypeOf(LiveVideoAdBreakConfig2)).apply(this, arguments)); } __name(LiveVideoAdBreakConfig2, "LiveVideoAdBreakConfig"); createClass(LiveVideoAdBreakConfig2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ default_ad_break_duration: "default_ad_break_duration", failure_reason_polling_interval: "failure_reason_polling_interval", first_break_eligible_secs: "first_break_eligible_secs", guide_url: "guide_url", is_eligible_to_onboard: "is_eligible_to_onboard", is_enabled: "is_enabled", onboarding_url: "onboarding_url", preparing_duration: "preparing_duration", time_between_ad_breaks_secs: "time_between_ad_breaks_secs", viewer_count_threshold: "viewer_count_threshold" }); }, "get") }]); return LiveVideoAdBreakConfig2; }(AbstractCrudObject); var LiveVideoRecommendedEncoderSettings = function(_AbstractCrudObject) { inherits(LiveVideoRecommendedEncoderSettings2, _AbstractCrudObject); function LiveVideoRecommendedEncoderSettings2() { classCallCheck(this, LiveVideoRecommendedEncoderSettings2); return possibleConstructorReturn(this, (LiveVideoRecommendedEncoderSettings2.__proto__ || Object.getPrototypeOf(LiveVideoRecommendedEncoderSettings2)).apply(this, arguments)); } __name(LiveVideoRecommendedEncoderSettings2, "LiveVideoRecommendedEncoderSettings"); createClass(LiveVideoRecommendedEncoderSettings2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ audio_codec_settings: "audio_codec_settings", streaming_protocol: "streaming_protocol", video_codec_settings: "video_codec_settings" }); }, "get") }]); return LiveVideoRecommendedEncoderSettings2; }(AbstractCrudObject); var LiveVideoTargeting = function(_AbstractCrudObject) { inherits(LiveVideoTargeting2, _AbstractCrudObject); function LiveVideoTargeting2() { classCallCheck(this, LiveVideoTargeting2); return possibleConstructorReturn(this, (LiveVideoTargeting2.__proto__ || Object.getPrototypeOf(LiveVideoTargeting2)).apply(this, arguments)); } __name(LiveVideoTargeting2, "LiveVideoTargeting"); createClass(LiveVideoTargeting2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ age_max: "age_max", age_min: "age_min", excluded_countries: "excluded_countries", geo_locations: "geo_locations" }); }, "get") }]); return LiveVideoTargeting2; }(AbstractCrudObject); var LocalServiceBusiness = function(_AbstractCrudObject) { inherits(LocalServiceBusiness2, _AbstractCrudObject); function LocalServiceBusiness2() { classCallCheck(this, LocalServiceBusiness2); return possibleConstructorReturn(this, (LocalServiceBusiness2.__proto__ || Object.getPrototypeOf(LocalServiceBusiness2)).apply(this, arguments)); } __name(LocalServiceBusiness2, "LocalServiceBusiness"); createClass(LocalServiceBusiness2, [{ key: "getChannelsToIntegrityStatus", value: /* @__PURE__ */ __name(function getChannelsToIntegrityStatus(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fetchFirstPage = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return this.getEdge(CatalogItemChannelsToIntegrityStatus, fields, params, fetchFirstPage, "/channels_to_integrity_status"); }, "getChannelsToIntegrityStatus") }, { key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ address: "address", applinks: "applinks", availability: "availability", brand: "brand", category: "category", category_specific_fields: "category_specific_fields", condition: "condition", cuisine_type: "cuisine_type", currency: "currency", custom_label_0: "custom_label_0", custom_label_1: "custom_label_1", custom_label_2: "custom_label_2", custom_label_3: "custom_label_3", custom_label_4: "custom_label_4", custom_number_0: "custom_number_0", custom_number_1: "custom_number_1", custom_number_2: "custom_number_2", custom_number_3: "custom_number_3", custom_number_4: "custom_number_4", description: "description", expiration_date: "expiration_date", gtin: "gtin", id: "id", image_fetch_status: "image_fetch_status", images: "images", local_info: "local_info", local_service_business_id: "local_service_business_id", main_local_info: "main_local_info", phone: "phone", price: "price", price_range: "price_range", retailer_category: "retailer_category", sanitized_images: "sanitized_images", size: "size", tags: "tags", title: "title", unit_price: "unit_price", url: "url", vendor_id: "vendor_id", visibility: "visibility" }); }, "get") }, { key: "Availability", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ available_for_order: "AVAILABLE_FOR_ORDER", discontinued: "DISCONTINUED", in_stock: "IN_STOCK", mark_as_sold: "MARK_AS_SOLD", out_of_stock: "OUT_OF_STOCK", pending: "PENDING", preorder: "PREORDER" }); }, "get") }, { key: "Condition", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ pc_cpo: "PC_CPO", pc_new: "PC_NEW", pc_open_box_new: "PC_OPEN_BOX_NEW", pc_refurbished: "PC_REFURBISHED", pc_used: "PC_USED", pc_used_fair: "PC_USED_FAIR", pc_used_good: "PC_USED_GOOD", pc_used_like_new: "PC_USED_LIKE_NEW" }); }, "get") }, { key: "ImageFetchStatus", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ direct_upload: "DIRECT_UPLOAD", fetched: "FETCHED", fetch_failed: "FETCH_FAILED", no_status: "NO_STATUS", outdated: "OUTDATED", partial_fetch: "PARTIAL_FETCH" }); }, "get") }, { key: "Visibility", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ published: "PUBLISHED", staging: "STAGING" }); }, "get") }]); return LocalServiceBusiness2; }(AbstractCrudObject); var Location = function(_AbstractCrudObject) { inherits(Location2, _AbstractCrudObject); function Location2() { classCallCheck(this, Location2); return possibleConstructorReturn(this, (Location2.__proto__ || Object.getPrototypeOf(Location2)).apply(this, arguments)); } __name(Location2, "Location"); createClass(Location2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ city: "city", city_id: "city_id", country: "country", country_code: "country_code", latitude: "latitude", located_in: "located_in", longitude: "longitude", name: "name", region: "region", region_id: "region_id", state: "state", street: "street", zip: "zip" }); }, "get") }]); return Location2; }(AbstractCrudObject); var LookalikeSpec = function(_AbstractCrudObject) { inherits(LookalikeSpec2, _AbstractCrudObject); function LookalikeSpec2() { classCallCheck(this, LookalikeSpec2); return possibleConstructorReturn(this, (LookalikeSpec2.__proto__ || Object.getPrototypeOf(LookalikeSpec2)).apply(this, arguments)); } __name(LookalikeSpec2, "LookalikeSpec"); createClass(LookalikeSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", is_financial_service: "is_financial_service", origin: "origin", origin_event_name: "origin_event_name", origin_event_source_name: "origin_event_source_name", origin_event_source_type: "origin_event_source_type", product_set_name: "product_set_name", ratio: "ratio", starting_ratio: "starting_ratio", target_countries: "target_countries", target_country_names: "target_country_names", type: "type" }); }, "get") }]); return LookalikeSpec2; }(AbstractCrudObject); var MailingAddress = function(_AbstractCrudObject) { inherits(MailingAddress2, _AbstractCrudObject); function MailingAddress2() { classCallCheck(this, MailingAddress2); return possibleConstructorReturn(this, (MailingAddress2.__proto__ || Object.getPrototypeOf(MailingAddress2)).apply(this, arguments)); } __name(MailingAddress2, "MailingAddress"); createClass(MailingAddress2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ city: "city", city_page: "city_page", country: "country", id: "id", postal_code: "postal_code", region: "region", street1: "street1", street2: "street2" }); }, "get") }]); return MailingAddress2; }(AbstractCrudObject); var ManagedPartnerBusiness = function(_AbstractCrudObject) { inherits(ManagedPartnerBusiness2, _AbstractCrudObject); function ManagedPartnerBusiness2() { classCallCheck(this, ManagedPartnerBusiness2); return possibleConstructorReturn(this, (ManagedPartnerBusiness2.__proto__ || Object.getPrototypeOf(ManagedPartnerBusiness2)).apply(this, arguments)); } __name(ManagedPartnerBusiness2, "ManagedPartnerBusiness"); createClass(ManagedPartnerBusiness2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_account: "ad_account", catalog_segment: "catalog_segment", extended_credit: "extended_credit", page: "page", seller_business_info: "seller_business_info", seller_business_status: "seller_business_status", template: "template" }); }, "get") }]); return ManagedPartnerBusiness2; }(AbstractCrudObject); var ManagedPartnerExtendedCredit = function(_AbstractCrudObject) { inherits(ManagedPartnerExtendedCredit2, _AbstractCrudObject); function ManagedPartnerExtendedCredit2() { classCallCheck(this, ManagedPartnerExtendedCredit2); return possibleConstructorReturn(this, (ManagedPartnerExtendedCredit2.__proto__ || Object.getPrototypeOf(ManagedPartnerExtendedCredit2)).apply(this, arguments)); } __name(ManagedPartnerExtendedCredit2, "ManagedPartnerExtendedCredit"); createClass(ManagedPartnerExtendedCredit2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", max_balance: "max_balance", receiving_credit_allocation_config: "receiving_credit_allocation_config" }); }, "get") }]); return ManagedPartnerExtendedCredit2; }(AbstractCrudObject); var MessagingFeatureStatus = function(_AbstractCrudObject) { inherits(MessagingFeatureStatus2, _AbstractCrudObject); function MessagingFeatureStatus2() { classCallCheck(this, MessagingFeatureStatus2); return possibleConstructorReturn(this, (MessagingFeatureStatus2.__proto__ || Object.getPrototypeOf(MessagingFeatureStatus2)).apply(this, arguments)); } __name(MessagingFeatureStatus2, "MessagingFeatureStatus"); createClass(MessagingFeatureStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ hop_v2: "hop_v2", ig_multi_app: "ig_multi_app", msgr_multi_app: "msgr_multi_app" }); }, "get") }]); return MessagingFeatureStatus2; }(AbstractCrudObject); var MusicVideoCopyright = function(_AbstractCrudObject) { inherits(MusicVideoCopyright2, _AbstractCrudObject); function MusicVideoCopyright2() { classCallCheck(this, MusicVideoCopyright2); return possibleConstructorReturn(this, (MusicVideoCopyright2.__proto__ || Object.getPrototypeOf(MusicVideoCopyright2)).apply(this, arguments)); } __name(MusicVideoCopyright2, "MusicVideoCopyright"); createClass(MusicVideoCopyright2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ creation_time: "creation_time", displayed_matches_count: "displayed_matches_count", id: "id", in_conflict: "in_conflict", isrc: "isrc", match_rule: "match_rule", ownership_countries: "ownership_countries", reference_file_status: "reference_file_status", ridge_monitoring_status: "ridge_monitoring_status", tags: "tags", update_time: "update_time", video_asset: "video_asset", whitelisted_fb_users: "whitelisted_fb_users", whitelisted_ig_users: "whitelisted_ig_users" }); }, "get") }]); return MusicVideoCopyright2; }(AbstractCrudObject); var OfflineConversionDataSetPermissions = function(_AbstractCrudObject) { inherits(OfflineConversionDataSetPermissions2, _AbstractCrudObject); function OfflineConversionDataSetPermissions2() { classCallCheck(this, OfflineConversionDataSetPermissions2); return possibleConstructorReturn(this, (OfflineConversionDataSetPermissions2.__proto__ || Object.getPrototypeOf(OfflineConversionDataSetPermissions2)).apply(this, arguments)); } __name(OfflineConversionDataSetPermissions2, "OfflineConversionDataSetPermissions"); createClass(OfflineConversionDataSetPermissions2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ can_edit: "can_edit", can_edit_or_upload: "can_edit_or_upload", can_upload: "can_upload", should_block_vanilla_business_employee_access: "should_block_vanilla_business_employee_access" }); }, "get") }]); return OfflineConversionDataSetPermissions2; }(AbstractCrudObject); var OfflineConversionDataSetUsage = function(_AbstractCrudObject) { inherits(OfflineConversionDataSetUsage2, _AbstractCrudObject); function OfflineConversionDataSetUsage2() { classCallCheck(this, OfflineConversionDataSetUsage2); return possibleConstructorReturn(this, (OfflineConversionDataSetUsage2.__proto__ || Object.getPrototypeOf(OfflineConversionDataSetUsage2)).apply(this, arguments)); } __name(OfflineConversionDataSetUsage2, "OfflineConversionDataSetUsage"); createClass(OfflineConversionDataSetUsage2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ num_lift_studies: "num_lift_studies" }); }, "get") }]); return OfflineConversionDataSetUsage2; }(AbstractCrudObject); var OffsitePixel = function(_AbstractCrudObject) { inherits(OffsitePixel2, _AbstractCrudObject); function OffsitePixel2() { classCallCheck(this, OffsitePixel2); return possibleConstructorReturn(this, (OffsitePixel2.__proto__ || Object.getPrototypeOf(OffsitePixel2)).apply(this, arguments)); } __name(OffsitePixel2, "OffsitePixel"); createClass(OffsitePixel2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ creator: "creator", id: "id", js_pixel: "js_pixel", last_firing_time: "last_firing_time", name: "name", tag: "tag" }); }, "get") }]); return OffsitePixel2; }(AbstractCrudObject); var OpenGraphContext = function(_AbstractCrudObject) { inherits(OpenGraphContext2, _AbstractCrudObject); function OpenGraphContext2() { classCallCheck(this, OpenGraphContext2); return possibleConstructorReturn(this, (OpenGraphContext2.__proto__ || Object.getPrototypeOf(OpenGraphContext2)).apply(this, arguments)); } __name(OpenGraphContext2, "OpenGraphContext"); createClass(OpenGraphContext2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id" }); }, "get") }]); return OpenGraphContext2; }(AbstractCrudObject); var OutcomePredictionPoint = function(_AbstractCrudObject) { inherits(OutcomePredictionPoint2, _AbstractCrudObject); function OutcomePredictionPoint2() { classCallCheck(this, OutcomePredictionPoint2); return possibleConstructorReturn(this, (OutcomePredictionPoint2.__proto__ || Object.getPrototypeOf(OutcomePredictionPoint2)).apply(this, arguments)); } __name(OutcomePredictionPoint2, "OutcomePredictionPoint"); createClass(OutcomePredictionPoint2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ actions: "actions", impressions: "impressions", reach: "reach", spend: "spend" }); }, "get") }]); return OutcomePredictionPoint2; }(AbstractCrudObject); var PageAboutStoryComposedBlock = function(_AbstractCrudObject) { inherits(PageAboutStoryComposedBlock2, _AbstractCrudObject); function PageAboutStoryComposedBlock2() { classCallCheck(this, PageAboutStoryComposedBlock2); return possibleConstructorReturn(this, (PageAboutStoryComposedBlock2.__proto__ || Object.getPrototypeOf(PageAboutStoryComposedBlock2)).apply(this, arguments)); } __name(PageAboutStoryComposedBlock2, "PageAboutStoryComposedBlock"); createClass(PageAboutStoryComposedBlock2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ depth: "depth", entity_ranges: "entity_ranges", inline_style_ranges: "inline_style_ranges", text: "text", type: "type" }); }, "get") }]); return PageAboutStoryComposedBlock2; }(AbstractCrudObject); var PageAboutStoryComposedBlockEntityRanges = function(_AbstractCrudObject) { inherits(PageAboutStoryComposedBlockEntityRanges2, _AbstractCrudObject); function PageAboutStoryComposedBlockEntityRanges2() { classCallCheck(this, PageAboutStoryComposedBlockEntityRanges2); return possibleConstructorReturn(this, (PageAboutStoryComposedBlockEntityRanges2.__proto__ || Object.getPrototypeOf(PageAboutStoryComposedBlockEntityRanges2)).apply(this, arguments)); } __name(PageAboutStoryComposedBlockEntityRanges2, "PageAboutStoryComposedBlockEntityRanges"); createClass(PageAboutStoryComposedBlockEntityRanges2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ key: "key", length: "length", offset: "offset" }); }, "get") }]); return PageAboutStoryComposedBlockEntityRanges2; }(AbstractCrudObject); var PageAboutStoryComposedBlockInlineStyle = function(_AbstractCrudObject) { inherits(PageAboutStoryComposedBlockInlineStyle2, _AbstractCrudObject); function PageAboutStoryComposedBlockInlineStyle2() { classCallCheck(this, PageAboutStoryComposedBlockInlineStyle2); return possibleConstructorReturn(this, (PageAboutStoryComposedBlockInlineStyle2.__proto__ || Object.getPrototypeOf(PageAboutStoryComposedBlockInlineStyle2)).apply(this, arguments)); } __name(PageAboutStoryComposedBlockInlineStyle2, "PageAboutStoryComposedBlockInlineStyle"); createClass(PageAboutStoryComposedBlockInlineStyle2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ length: "length", offset: "offset", style: "style" }); }, "get") }]); return PageAboutStoryComposedBlockInlineStyle2; }(AbstractCrudObject); var PageCategory = function(_AbstractCrudObject) { inherits(PageCategory2, _AbstractCrudObject); function PageCategory2() { classCallCheck(this, PageCategory2); return possibleConstructorReturn(this, (PageCategory2.__proto__ || Object.getPrototypeOf(PageCategory2)).apply(this, arguments)); } __name(PageCategory2, "PageCategory"); createClass(PageCategory2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ api_enum: "api_enum", fb_page_categories: "fb_page_categories", id: "id", name: "name" }); }, "get") }]); return PageCategory2; }(AbstractCrudObject); var PageChangeProposal = function(_AbstractCrudObject) { inherits(PageChangeProposal2, _AbstractCrudObject); function PageChangeProposal2() { classCallCheck(this, PageChangeProposal2); return possibleConstructorReturn(this, (PageChangeProposal2.__proto__ || Object.getPrototypeOf(PageChangeProposal2)).apply(this, arguments)); } __name(PageChangeProposal2, "PageChangeProposal"); createClass(PageChangeProposal2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ acceptance_status: "acceptance_status", category: "category", current_value: "current_value", id: "id", proposed_value: "proposed_value", upcoming_change_info: "upcoming_change_info" }); }, "get") }]); return PageChangeProposal2; }(AbstractCrudObject); var PageParking = function(_AbstractCrudObject) { inherits(PageParking2, _AbstractCrudObject); function PageParking2() { classCallCheck(this, PageParking2); return possibleConstructorReturn(this, (PageParking2.__proto__ || Object.getPrototypeOf(PageParking2)).apply(this, arguments)); } __name(PageParking2, "PageParking"); createClass(PageParking2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ lot: "lot", street: "street", valet: "valet" }); }, "get") }]); return PageParking2; }(AbstractCrudObject); var PagePaymentOptions = function(_AbstractCrudObject) { inherits(PagePaymentOptions2, _AbstractCrudObject); function PagePaymentOptions2() { classCallCheck(this, PagePaymentOptions2); return possibleConstructorReturn(this, (PagePaymentOptions2.__proto__ || Object.getPrototypeOf(PagePaymentOptions2)).apply(this, arguments)); } __name(PagePaymentOptions2, "PagePaymentOptions"); createClass(PagePaymentOptions2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amex: "amex", cash_only: "cash_only", discover: "discover", mastercard: "mastercard", visa: "visa" }); }, "get") }]); return PagePaymentOptions2; }(AbstractCrudObject); var PageRestaurantServices = function(_AbstractCrudObject) { inherits(PageRestaurantServices2, _AbstractCrudObject); function PageRestaurantServices2() { classCallCheck(this, PageRestaurantServices2); return possibleConstructorReturn(this, (PageRestaurantServices2.__proto__ || Object.getPrototypeOf(PageRestaurantServices2)).apply(this, arguments)); } __name(PageRestaurantServices2, "PageRestaurantServices"); createClass(PageRestaurantServices2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ catering: "catering", delivery: "delivery", groups: "groups", kids: "kids", outdoor: "outdoor", pickup: "pickup", reserve: "reserve", takeout: "takeout", waiter: "waiter", walkins: "walkins" }); }, "get") }]); return PageRestaurantServices2; }(AbstractCrudObject); var PageRestaurantSpecialties = function(_AbstractCrudObject) { inherits(PageRestaurantSpecialties2, _AbstractCrudObject); function PageRestaurantSpecialties2() { classCallCheck(this, PageRestaurantSpecialties2); return possibleConstructorReturn(this, (PageRestaurantSpecialties2.__proto__ || Object.getPrototypeOf(PageRestaurantSpecialties2)).apply(this, arguments)); } __name(PageRestaurantSpecialties2, "PageRestaurantSpecialties"); createClass(PageRestaurantSpecialties2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ breakfast: "breakfast", coffee: "coffee", dinner: "dinner", drinks: "drinks", lunch: "lunch" }); }, "get") }]); return PageRestaurantSpecialties2; }(AbstractCrudObject); var PageSavedFilter = function(_AbstractCrudObject) { inherits(PageSavedFilter2, _AbstractCrudObject); function PageSavedFilter2() { classCallCheck(this, PageSavedFilter2); return possibleConstructorReturn(this, (PageSavedFilter2.__proto__ || Object.getPrototypeOf(PageSavedFilter2)).apply(this, arguments)); } __name(PageSavedFilter2, "PageSavedFilter"); createClass(PageSavedFilter2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ display_name: "display_name", filters: "filters", id: "id", page_id: "page_id", section: "section", time_created: "time_created", time_updated: "time_updated" }); }, "get") }]); return PageSavedFilter2; }(AbstractCrudObject); var PageStartInfo = function(_AbstractCrudObject) { inherits(PageStartInfo2, _AbstractCrudObject); function PageStartInfo2() { classCallCheck(this, PageStartInfo2); return possibleConstructorReturn(this, (PageStartInfo2.__proto__ || Object.getPrototypeOf(PageStartInfo2)).apply(this, arguments)); } __name(PageStartInfo2, "PageStartInfo"); createClass(PageStartInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ date: "date", type: "type" }); }, "get") }]); return PageStartInfo2; }(AbstractCrudObject); var PageUpcomingChange = function(_AbstractCrudObject) { inherits(PageUpcomingChange2, _AbstractCrudObject); function PageUpcomingChange2() { classCallCheck(this, PageUpcomingChange2); return possibleConstructorReturn(this, (PageUpcomingChange2.__proto__ || Object.getPrototypeOf(PageUpcomingChange2)).apply(this, arguments)); } __name(PageUpcomingChange2, "PageUpcomingChange"); createClass(PageUpcomingChange2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ change_type: "change_type", effective_time: "effective_time", id: "id", page: "page", proposal: "proposal", timer_status: "timer_status" }); }, "get") }]); return PageUpcomingChange2; }(AbstractCrudObject); var PaymentPricepoints = function(_AbstractCrudObject) { inherits(PaymentPricepoints2, _AbstractCrudObject); function PaymentPricepoints2() { classCallCheck(this, PaymentPricepoints2); return possibleConstructorReturn(this, (PaymentPricepoints2.__proto__ || Object.getPrototypeOf(PaymentPricepoints2)).apply(this, arguments)); } __name(PaymentPricepoints2, "PaymentPricepoints"); createClass(PaymentPricepoints2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ mobile: "mobile" }); }, "get") }]); return PaymentPricepoints2; }(AbstractCrudObject); var PaymentSubscription = function(_AbstractCrudObject) { inherits(PaymentSubscription2, _AbstractCrudObject); function PaymentSubscription2() { classCallCheck(this, PaymentSubscription2); return possibleConstructorReturn(this, (PaymentSubscription2.__proto__ || Object.getPrototypeOf(PaymentSubscription2)).apply(this, arguments)); } __name(PaymentSubscription2, "PaymentSubscription"); createClass(PaymentSubscription2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ amount: "amount", app_param_data: "app_param_data", application: "application", billing_period: "billing_period", canceled_reason: "canceled_reason", created_time: "created_time", currency: "currency", id: "id", last_payment: "last_payment", next_bill_time: "next_bill_time", next_period_amount: "next_period_amount", next_period_currency: "next_period_currency", next_period_product: "next_period_product", payment_status: "payment_status", pending_cancel: "pending_cancel", period_start_time: "period_start_time", product: "product", status: "status", test: "test", trial_amount: "trial_amount", trial_currency: "trial_currency", trial_expiry_time: "trial_expiry_time", updated_time: "updated_time", user: "user" }); }, "get") }]); return PaymentSubscription2; }(AbstractCrudObject); var Place = function(_AbstractCrudObject) { inherits(Place2, _AbstractCrudObject); function Place2() { classCallCheck(this, Place2); return possibleConstructorReturn(this, (Place2.__proto__ || Object.getPrototypeOf(Place2)).apply(this, arguments)); } __name(Place2, "Place"); createClass(Place2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", location: "location", name: "name", overall_rating: "overall_rating" }); }, "get") }]); return Place2; }(AbstractCrudObject); var PlaceTopic = function(_AbstractCrudObject) { inherits(PlaceTopic2, _AbstractCrudObject); function PlaceTopic2() { classCallCheck(this, PlaceTopic2); return possibleConstructorReturn(this, (PlaceTopic2.__proto__ || Object.getPrototypeOf(PlaceTopic2)).apply(this, arguments)); } __name(PlaceTopic2, "PlaceTopic"); createClass(PlaceTopic2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ count: "count", has_children: "has_children", icon_url: "icon_url", id: "id", name: "name", parent_ids: "parent_ids", plural_name: "plural_name", top_subtopic_names: "top_subtopic_names" }); }, "get") }]); return PlaceTopic2; }(AbstractCrudObject); var PlatformImageSource = function(_AbstractCrudObject) { inherits(PlatformImageSource2, _AbstractCrudObject); function PlatformImageSource2() { classCallCheck(this, PlatformImageSource2); return possibleConstructorReturn(this, (PlatformImageSource2.__proto__ || Object.getPrototypeOf(PlatformImageSource2)).apply(this, arguments)); } __name(PlatformImageSource2, "PlatformImageSource"); createClass(PlatformImageSource2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ height: "height", source: "source", width: "width" }); }, "get") }]); return PlatformImageSource2; }(AbstractCrudObject); var Privacy = function(_AbstractCrudObject) { inherits(Privacy2, _AbstractCrudObject); function Privacy2() { classCallCheck(this, Privacy2); return possibleConstructorReturn(this, (Privacy2.__proto__ || Object.getPrototypeOf(Privacy2)).apply(this, arguments)); } __name(Privacy2, "Privacy"); createClass(Privacy2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ allow: "allow", deny: "deny", description: "description", friends: "friends", networks: "networks", value: "value" }); }, "get") }]); return Privacy2; }(AbstractCrudObject); var ProductCatalogImageSettings = function(_AbstractCrudObject) { inherits(ProductCatalogImageSettings2, _AbstractCrudObject); function ProductCatalogImageSettings2() { classCallCheck(this, ProductCatalogImageSettings2); return possibleConstructorReturn(this, (ProductCatalogImageSettings2.__proto__ || Object.getPrototypeOf(ProductCatalogImageSettings2)).apply(this, arguments)); } __name(ProductCatalogImageSettings2, "ProductCatalogImageSettings"); createClass(ProductCatalogImageSettings2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ carousel_ad: "carousel_ad", single_ad: "single_ad" }); }, "get") }]); return ProductCatalogImageSettings2; }(AbstractCrudObject); var ProductCatalogImageSettingsOperation = function(_AbstractCrudObject) { inherits(ProductCatalogImageSettingsOperation2, _AbstractCrudObject); function ProductCatalogImageSettingsOperation2() { classCallCheck(this, ProductCatalogImageSettingsOperation2); return possibleConstructorReturn(this, (ProductCatalogImageSettingsOperation2.__proto__ || Object.getPrototypeOf(ProductCatalogImageSettingsOperation2)).apply(this, arguments)); } __name(ProductCatalogImageSettingsOperation2, "ProductCatalogImageSettingsOperation"); createClass(ProductCatalogImageSettingsOperation2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ transformation_type: "transformation_type" }); }, "get") }]); return ProductCatalogImageSettingsOperation2; }(AbstractCrudObject); var ProductFeedMissingFeedItemReplacement = function(_AbstractCrudObject) { inherits(ProductFeedMissingFeedItemReplacement2, _AbstractCrudObject); function ProductFeedMissingFeedItemReplacement2() { classCallCheck(this, ProductFeedMissingFeedItemReplacement2); return possibleConstructorReturn(this, (ProductFeedMissingFeedItemReplacement2.__proto__ || Object.getPrototypeOf(ProductFeedMissingFeedItemReplacement2)).apply(this, arguments)); } __name(ProductFeedMissingFeedItemReplacement2, "ProductFeedMissingFeedItemReplacement"); createClass(ProductFeedMissingFeedItemReplacement2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ home_listing: "home_listing", product_item: "product_item", vehicle: "vehicle" }); }, "get") }]); return ProductFeedMissingFeedItemReplacement2; }(AbstractCrudObject); var ProductFeedUploadErrorReport = function(_AbstractCrudObject) { inherits(ProductFeedUploadErrorReport2, _AbstractCrudObject); function ProductFeedUploadErrorReport2() { classCallCheck(this, ProductFeedUploadErrorReport2); return possibleConstructorReturn(this, (ProductFeedUploadErrorReport2.__proto__ || Object.getPrototypeOf(ProductFeedUploadErrorReport2)).apply(this, arguments)); } __name(ProductFeedUploadErrorReport2, "ProductFeedUploadErrorReport"); createClass(ProductFeedUploadErrorReport2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ file_handle: "file_handle", report_status: "report_status" }); }, "get") }]); return ProductFeedUploadErrorReport2; }(AbstractCrudObject); var ProductImage = function(_AbstractCrudObject) { inherits(ProductImage2, _AbstractCrudObject); function ProductImage2() { classCallCheck(this, ProductImage2); return possibleConstructorReturn(this, (ProductImage2.__proto__ || Object.getPrototypeOf(ProductImage2)).apply(this, arguments)); } __name(ProductImage2, "ProductImage"); createClass(ProductImage2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ height: "height", id: "id", image_url: "image_url", width: "width" }); }, "get") }]); return ProductImage2; }(AbstractCrudObject); var ProductItemCommerceInsights = function(_AbstractCrudObject) { inherits(ProductItemCommerceInsights2, _AbstractCrudObject); function ProductItemCommerceInsights2() { classCallCheck(this, ProductItemCommerceInsights2); return possibleConstructorReturn(this, (ProductItemCommerceInsights2.__proto__ || Object.getPrototypeOf(ProductItemCommerceInsights2)).apply(this, arguments)); } __name(ProductItemCommerceInsights2, "ProductItemCommerceInsights"); createClass(ProductItemCommerceInsights2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ message_sends: "message_sends", organic_impressions: "organic_impressions", paid_impressions: "paid_impressions" }); }, "get") }]); return ProductItemCommerceInsights2; }(AbstractCrudObject); var ProductItemError = function(_AbstractCrudObject) { inherits(ProductItemError2, _AbstractCrudObject); function ProductItemError2() { classCallCheck(this, ProductItemError2); return possibleConstructorReturn(this, (ProductItemError2.__proto__ || Object.getPrototypeOf(ProductItemError2)).apply(this, arguments)); } __name(ProductItemError2, "ProductItemError"); createClass(ProductItemError2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ description: "description", error_priority: "error_priority", error_type: "error_type", title: "title" }); }, "get") }]); return ProductItemError2; }(AbstractCrudObject); var ProductItemImporterAddress = function(_AbstractCrudObject) { inherits(ProductItemImporterAddress2, _AbstractCrudObject); function ProductItemImporterAddress2() { classCallCheck(this, ProductItemImporterAddress2); return possibleConstructorReturn(this, (ProductItemImporterAddress2.__proto__ || Object.getPrototypeOf(ProductItemImporterAddress2)).apply(this, arguments)); } __name(ProductItemImporterAddress2, "ProductItemImporterAddress"); createClass(ProductItemImporterAddress2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ city: "city", country: "country", postal_code: "postal_code", region: "region", street1: "street1", street2: "street2" }); }, "get") }]); return ProductItemImporterAddress2; }(AbstractCrudObject); var ProductItemLocalInfo = function(_AbstractCrudObject) { inherits(ProductItemLocalInfo2, _AbstractCrudObject); function ProductItemLocalInfo2() { classCallCheck(this, ProductItemLocalInfo2); return possibleConstructorReturn(this, (ProductItemLocalInfo2.__proto__ || Object.getPrototypeOf(ProductItemLocalInfo2)).apply(this, arguments)); } __name(ProductItemLocalInfo2, "ProductItemLocalInfo"); createClass(ProductItemLocalInfo2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ availability_circle_origin: "availability_circle_origin", availability_circle_radius: "availability_circle_radius", availability_circle_radius_unit: "availability_circle_radius_unit", availability_polygon_coordinates: "availability_polygon_coordinates", availability_postal_codes: "availability_postal_codes", availability_source: "availability_source", id: "id", inferred_circle_origin: "inferred_circle_origin", inferred_circle_radius: "inferred_circle_radius" }); }, "get") }]); return ProductItemLocalInfo2; }(AbstractCrudObject); var ProductItemLocalInfoLatLongShape = function(_AbstractCrudObject) { inherits(ProductItemLocalInfoLatLongShape2, _AbstractCrudObject); function ProductItemLocalInfoLatLongShape2() { classCallCheck(this, ProductItemLocalInfoLatLongShape2); return possibleConstructorReturn(this, (ProductItemLocalInfoLatLongShape2.__proto__ || Object.getPrototypeOf(ProductItemLocalInfoLatLongShape2)).apply(this, arguments)); } __name(ProductItemLocalInfoLatLongShape2, "ProductItemLocalInfoLatLongShape"); createClass(ProductItemLocalInfoLatLongShape2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ latitude: "latitude", longitude: "longitude" }); }, "get") }]); return ProductItemLocalInfoLatLongShape2; }(AbstractCrudObject); var ProductSetMetadata = function(_AbstractCrudObject) { inherits(ProductSetMetadata2, _AbstractCrudObject); function ProductSetMetadata2() { classCallCheck(this, ProductSetMetadata2); return possibleConstructorReturn(this, (ProductSetMetadata2.__proto__ || Object.getPrototypeOf(ProductSetMetadata2)).apply(this, arguments)); } __name(ProductSetMetadata2, "ProductSetMetadata"); createClass(ProductSetMetadata2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ cover_image_url: "cover_image_url", description: "description", external_url: "external_url", integrity_review_status: "integrity_review_status" }); }, "get") }]); return ProductSetMetadata2; }(AbstractCrudObject); var ProductVariant = function(_AbstractCrudObject) { inherits(ProductVariant2, _AbstractCrudObject); function ProductVariant2() { classCallCheck(this, ProductVariant2); return possibleConstructorReturn(this, (ProductVariant2.__proto__ || Object.getPrototypeOf(ProductVariant2)).apply(this, arguments)); } __name(ProductVariant2, "ProductVariant"); createClass(ProductVariant2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ label: "label", options: "options", product_field: "product_field" }); }, "get") }]); return ProductVariant2; }(AbstractCrudObject); var RawCustomAudience = function(_AbstractCrudObject) { inherits(RawCustomAudience2, _AbstractCrudObject); function RawCustomAudience2() { classCallCheck(this, RawCustomAudience2); return possibleConstructorReturn(this, (RawCustomAudience2.__proto__ || Object.getPrototypeOf(RawCustomAudience2)).apply(this, arguments)); } __name(RawCustomAudience2, "RawCustomAudience"); createClass(RawCustomAudience2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name: "name" }); }, "get") }]); return RawCustomAudience2; }(AbstractCrudObject); var ReachFrequencyActivity = function(_AbstractCrudObject) { inherits(ReachFrequencyActivity2, _AbstractCrudObject); function ReachFrequencyActivity2() { classCallCheck(this, ReachFrequencyActivity2); return possibleConstructorReturn(this, (ReachFrequencyActivity2.__proto__ || Object.getPrototypeOf(ReachFrequencyActivity2)).apply(this, arguments)); } __name(ReachFrequencyActivity2, "ReachFrequencyActivity"); createClass(ReachFrequencyActivity2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ account_id: "account_id", campaign_active: "campaign_active", campaign_started: "campaign_started", creative_uploaded: "creative_uploaded", io_approved: "io_approved", sf_link: "sf_link" }); }, "get") }]); return ReachFrequencyActivity2; }(AbstractCrudObject); var ReachFrequencyAdFormat = function(_AbstractCrudObject) { inherits(ReachFrequencyAdFormat2, _AbstractCrudObject); function ReachFrequencyAdFormat2() { classCallCheck(this, ReachFrequencyAdFormat2); return possibleConstructorReturn(this, (ReachFrequencyAdFormat2.__proto__ || Object.getPrototypeOf(ReachFrequencyAdFormat2)).apply(this, arguments)); } __name(ReachFrequencyAdFormat2, "ReachFrequencyAdFormat"); createClass(ReachFrequencyAdFormat2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ details: "details", type: "type" }); }, "get") }]); return ReachFrequencyAdFormat2; }(AbstractCrudObject); var ReachFrequencyCurveLowerConfidenceRange = function(_AbstractCrudObject) { inherits(ReachFrequencyCurveLowerConfidenceRange2, _AbstractCrudObject); function ReachFrequencyCurveLowerConfidenceRange2() { classCallCheck(this, ReachFrequencyCurveLowerConfidenceRange2); return possibleConstructorReturn(this, (ReachFrequencyCurveLowerConfidenceRange2.__proto__ || Object.getPrototypeOf(ReachFrequencyCurveLowerConfidenceRange2)).apply(this, arguments)); } __name(ReachFrequencyCurveLowerConfidenceRange2, "ReachFrequencyCurveLowerConfidenceRange"); createClass(ReachFrequencyCurveLowerConfidenceRange2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ impression_lower: "impression_lower", num_points: "num_points", reach: "reach", reach_lower: "reach_lower", uniq_video_views_2s_lower: "uniq_video_views_2s_lower", video_views_2s_lower: "video_views_2s_lower" }); }, "get") }]); return ReachFrequencyCurveLowerConfidenceRange2; }(AbstractCrudObject); var ReachFrequencyCurveUpperConfidenceRange = function(_AbstractCrudObject) { inherits(ReachFrequencyCurveUpperConfidenceRange2, _AbstractCrudObject); function ReachFrequencyCurveUpperConfidenceRange2() { classCallCheck(this, ReachFrequencyCurveUpperConfidenceRange2); return possibleConstructorReturn(this, (ReachFrequencyCurveUpperConfidenceRange2.__proto__ || Object.getPrototypeOf(ReachFrequencyCurveUpperConfidenceRange2)).apply(this, arguments)); } __name(ReachFrequencyCurveUpperConfidenceRange2, "ReachFrequencyCurveUpperConfidenceRange"); createClass(ReachFrequencyCurveUpperConfidenceRange2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ impression_upper: "impression_upper", num_points: "num_points", reach: "reach", reach_upper: "reach_upper", uniq_video_views_2s_upper: "uniq_video_views_2s_upper", video_views_2s_upper: "video_views_2s_upper" }); }, "get") }]); return ReachFrequencyCurveUpperConfidenceRange2; }(AbstractCrudObject); var ReachFrequencyDayPart = function(_AbstractCrudObject) { inherits(ReachFrequencyDayPart2, _AbstractCrudObject); function ReachFrequencyDayPart2() { classCallCheck(this, ReachFrequencyDayPart2); return possibleConstructorReturn(this, (ReachFrequencyDayPart2.__proto__ || Object.getPrototypeOf(ReachFrequencyDayPart2)).apply(this, arguments)); } __name(ReachFrequencyDayPart2, "ReachFrequencyDayPart"); createClass(ReachFrequencyDayPart2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ days: "days", end_minute: "end_minute", start_minute: "start_minute" }); }, "get") }]); return ReachFrequencyDayPart2; }(AbstractCrudObject); var ReachFrequencyEstimatesCurve = function(_AbstractCrudObject) { inherits(ReachFrequencyEstimatesCurve2, _AbstractCrudObject); function ReachFrequencyEstimatesCurve2() { classCallCheck(this, ReachFrequencyEstimatesCurve2); return possibleConstructorReturn(this, (ReachFrequencyEstimatesCurve2.__proto__ || Object.getPrototypeOf(ReachFrequencyEstimatesCurve2)).apply(this, arguments)); } __name(ReachFrequencyEstimatesCurve2, "ReachFrequencyEstimatesCurve"); createClass(ReachFrequencyEstimatesCurve2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ budget: "budget", conversion: "conversion", impression: "impression", interpolated_reach: "interpolated_reach", num_points: "num_points", raw_impression: "raw_impression", raw_reach: "raw_reach", reach: "reach" }); }, "get") }]); return ReachFrequencyEstimatesCurve2; }(AbstractCrudObject); var ReachFrequencyEstimatesPlacementBreakdown = function(_AbstractCrudObject) { inherits(ReachFrequencyEstimatesPlacementBreakdown2, _AbstractCrudObject); function ReachFrequencyEstimatesPlacementBreakdown2() { classCallCheck(this, ReachFrequencyEstimatesPlacementBreakdown2); return possibleConstructorReturn(this, (ReachFrequencyEstimatesPlacementBreakdown2.__proto__ || Object.getPrototypeOf(ReachFrequencyEstimatesPlacementBreakdown2)).apply(this, arguments)); } __name(ReachFrequencyEstimatesPlacementBreakdown2, "ReachFrequencyEstimatesPlacementBreakdown"); createClass(ReachFrequencyEstimatesPlacementBreakdown2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ android: "android", audience_network: "audience_network", desktop: "desktop", facebook_search: "facebook_search", fb_reels: "fb_reels", fb_reels_overlay: "fb_reels_overlay", ig_android: "ig_android", ig_ios: "ig_ios", ig_other: "ig_other", ig_reels: "ig_reels", ig_story: "ig_story", instant_articles: "instant_articles", instream_videos: "instream_videos", ios: "ios", msite: "msite", suggested_videos: "suggested_videos" }); }, "get") }]); return ReachFrequencyEstimatesPlacementBreakdown2; }(AbstractCrudObject); var ReachFrequencySpec = function(_AbstractCrudObject) { inherits(ReachFrequencySpec2, _AbstractCrudObject); function ReachFrequencySpec2() { classCallCheck(this, ReachFrequencySpec2); return possibleConstructorReturn(this, (ReachFrequencySpec2.__proto__ || Object.getPrototypeOf(ReachFrequencySpec2)).apply(this, arguments)); } __name(ReachFrequencySpec2, "ReachFrequencySpec"); createClass(ReachFrequencySpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ countries: "countries", default_creation_data: "default_creation_data", global_io_max_campaign_duration: "global_io_max_campaign_duration", max_campaign_duration: "max_campaign_duration", max_days_to_finish: "max_days_to_finish", max_pause_without_prediction_rerun: "max_pause_without_prediction_rerun", min_campaign_duration: "min_campaign_duration", min_reach_limits: "min_reach_limits" }); }, "get") }]); return ReachFrequencySpec2; }(AbstractCrudObject); var RevSharePolicy = function(_AbstractCrudObject) { inherits(RevSharePolicy2, _AbstractCrudObject); function RevSharePolicy2() { classCallCheck(this, RevSharePolicy2); return possibleConstructorReturn(this, (RevSharePolicy2.__proto__ || Object.getPrototypeOf(RevSharePolicy2)).apply(this, arguments)); } __name(RevSharePolicy2, "RevSharePolicy"); createClass(RevSharePolicy2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ policy_id: "policy_id", policy_name: "policy_name" }); }, "get") }]); return RevSharePolicy2; }(AbstractCrudObject); var RichMediaElement = function(_AbstractCrudObject) { inherits(RichMediaElement2, _AbstractCrudObject); function RichMediaElement2() { classCallCheck(this, RichMediaElement2); return possibleConstructorReturn(this, (RichMediaElement2.__proto__ || Object.getPrototypeOf(RichMediaElement2)).apply(this, arguments)); } __name(RichMediaElement2, "RichMediaElement"); createClass(RichMediaElement2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ element: "element", element_type: "element_type", name: "name" }); }, "get") }]); return RichMediaElement2; }(AbstractCrudObject); var SavedMessageResponse = function(_AbstractCrudObject) { inherits(SavedMessageResponse2, _AbstractCrudObject); function SavedMessageResponse2() { classCallCheck(this, SavedMessageResponse2); return possibleConstructorReturn(this, (SavedMessageResponse2.__proto__ || Object.getPrototypeOf(SavedMessageResponse2)).apply(this, arguments)); } __name(SavedMessageResponse2, "SavedMessageResponse"); createClass(SavedMessageResponse2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ category: "category", id: "id", image: "image", is_enabled: "is_enabled", message: "message", title: "title" }); }, "get") }]); return SavedMessageResponse2; }(AbstractCrudObject); var SecuritySettings = function(_AbstractCrudObject) { inherits(SecuritySettings2, _AbstractCrudObject); function SecuritySettings2() { classCallCheck(this, SecuritySettings2); return possibleConstructorReturn(this, (SecuritySettings2.__proto__ || Object.getPrototypeOf(SecuritySettings2)).apply(this, arguments)); } __name(SecuritySettings2, "SecuritySettings"); createClass(SecuritySettings2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({}); }, "get") }]); return SecuritySettings2; }(AbstractCrudObject); var ShadowIGMediaBuilder = function(_AbstractCrudObject) { inherits(ShadowIGMediaBuilder2, _AbstractCrudObject); function ShadowIGMediaBuilder2() { classCallCheck(this, ShadowIGMediaBuilder2); return possibleConstructorReturn(this, (ShadowIGMediaBuilder2.__proto__ || Object.getPrototypeOf(ShadowIGMediaBuilder2)).apply(this, arguments)); } __name(ShadowIGMediaBuilder2, "ShadowIGMediaBuilder"); createClass(ShadowIGMediaBuilder2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ copyright_check_status: "copyright_check_status", id: "id", status: "status", status_code: "status_code" }); }, "get") }]); return ShadowIGMediaBuilder2; }(AbstractCrudObject); var ShadowIGUserCatalogProductVariant = function(_AbstractCrudObject) { inherits(ShadowIGUserCatalogProductVariant2, _AbstractCrudObject); function ShadowIGUserCatalogProductVariant2() { classCallCheck(this, ShadowIGUserCatalogProductVariant2); return possibleConstructorReturn(this, (ShadowIGUserCatalogProductVariant2.__proto__ || Object.getPrototypeOf(ShadowIGUserCatalogProductVariant2)).apply(this, arguments)); } __name(ShadowIGUserCatalogProductVariant2, "ShadowIGUserCatalogProductVariant"); createClass(ShadowIGUserCatalogProductVariant2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ product_id: "product_id", variant_name: "variant_name" }); }, "get") }]); return ShadowIGUserCatalogProductVariant2; }(AbstractCrudObject); var SplitTestWinner = function(_AbstractCrudObject) { inherits(SplitTestWinner2, _AbstractCrudObject); function SplitTestWinner2() { classCallCheck(this, SplitTestWinner2); return possibleConstructorReturn(this, (SplitTestWinner2.__proto__ || Object.getPrototypeOf(SplitTestWinner2)).apply(this, arguments)); } __name(SplitTestWinner2, "SplitTestWinner"); createClass(SplitTestWinner2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ ad_object_level: "ad_object_level", confidences: "confidences", winner_ad_object_id: "winner_ad_object_id" }); }, "get") }]); return SplitTestWinner2; }(AbstractCrudObject); var Targeting = function(_AbstractCrudObject) { inherits(Targeting2, _AbstractCrudObject); function Targeting2() { classCallCheck(this, Targeting2); return possibleConstructorReturn(this, (Targeting2.__proto__ || Object.getPrototypeOf(Targeting2)).apply(this, arguments)); } __name(Targeting2, "Targeting"); createClass(Targeting2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ adgroup_id: "adgroup_id", age_max: "age_max", age_min: "age_min", age_range: "age_range", alternate_auto_targeting_option: "alternate_auto_targeting_option", app_install_state: "app_install_state", audience_network_positions: "audience_network_positions", behaviors: "behaviors", brand_safety_content_filter_levels: "brand_safety_content_filter_levels", catalog_based_targeting: "catalog_based_targeting", cities: "cities", college_years: "college_years", connections: "connections", contextual_targeting_categories: "contextual_targeting_categories", countries: "countries", country: "country", country_groups: "country_groups", custom_audiences: "custom_audiences", device_platforms: "device_platforms", direct_install_devices: "direct_install_devices", dynamic_audience_ids: "dynamic_audience_ids", education_majors: "education_majors", education_schools: "education_schools", education_statuses: "education_statuses", effective_audience_network_positions: "effective_audience_network_positions", effective_device_platforms: "effective_device_platforms", effective_facebook_positions: "effective_facebook_positions", effective_instagram_positions: "effective_instagram_positions", effective_messenger_positions: "effective_messenger_positions", effective_publisher_platforms: "effective_publisher_platforms", engagement_specs: "engagement_specs", ethnic_affinity: "ethnic_affinity", exclude_reached_since: "exclude_reached_since", excluded_brand_safety_content_types: "excluded_brand_safety_content_types", excluded_connections: "excluded_connections", excluded_custom_audiences: "excluded_custom_audiences", excluded_dynamic_audience_ids: "excluded_dynamic_audience_ids", excluded_engagement_specs: "excluded_engagement_specs", excluded_geo_locations: "excluded_geo_locations", excluded_mobile_device_model: "excluded_mobile_device_model", excluded_product_audience_specs: "excluded_product_audience_specs", excluded_publisher_categories: "excluded_publisher_categories", excluded_publisher_list_ids: "excluded_publisher_list_ids", excluded_user_device: "excluded_user_device", exclusions: "exclusions", facebook_positions: "facebook_positions", family_statuses: "family_statuses", fb_deal_id: "fb_deal_id", flexible_spec: "flexible_spec", friends_of_connections: "friends_of_connections", genders: "genders", generation: "generation", geo_locations: "geo_locations", home_ownership: "home_ownership", home_type: "home_type", home_value: "home_value", household_composition: "household_composition", income: "income", industries: "industries", instagram_positions: "instagram_positions", instream_video_skippable_excluded: "instream_video_skippable_excluded", interested_in: "interested_in", interests: "interests", is_whatsapp_destination_ad: "is_whatsapp_destination_ad", keywords: "keywords", life_events: "life_events", locales: "locales", messenger_positions: "messenger_positions", moms: "moms", net_worth: "net_worth", office_type: "office_type", place_page_set_ids: "place_page_set_ids", political_views: "political_views", politics: "politics", product_audience_specs: "product_audience_specs", prospecting_audience: "prospecting_audience", publisher_platforms: "publisher_platforms", radius: "radius", regions: "regions", relationship_statuses: "relationship_statuses", site_category: "site_category", targeting_automation: "targeting_automation", targeting_optimization: "targeting_optimization", targeting_relaxation_types: "targeting_relaxation_types", user_adclusters: "user_adclusters", user_device: "user_device", user_event: "user_event", user_os: "user_os", wireless_carrier: "wireless_carrier", work_employers: "work_employers", work_positions: "work_positions", zips: "zips" }); }, "get") }, { key: "DevicePlatforms", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ desktop: "desktop", mobile: "mobile" }); }, "get") }, { key: "EffectiveDevicePlatforms", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ desktop: "desktop", mobile: "mobile" }); }, "get") }]); return Targeting2; }(AbstractCrudObject); var TargetingAutomation = function(_AbstractCrudObject) { inherits(TargetingAutomation2, _AbstractCrudObject); function TargetingAutomation2() { classCallCheck(this, TargetingAutomation2); return possibleConstructorReturn(this, (TargetingAutomation2.__proto__ || Object.getPrototypeOf(TargetingAutomation2)).apply(this, arguments)); } __name(TargetingAutomation2, "TargetingAutomation"); createClass(TargetingAutomation2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ advantage_audience: "advantage_audience", shared_audiences: "shared_audiences", value_expression: "value_expression" }); }, "get") }]); return TargetingAutomation2; }(AbstractCrudObject); var TargetingDynamicRule = function(_AbstractCrudObject) { inherits(TargetingDynamicRule2, _AbstractCrudObject); function TargetingDynamicRule2() { classCallCheck(this, TargetingDynamicRule2); return possibleConstructorReturn(this, (TargetingDynamicRule2.__proto__ || Object.getPrototypeOf(TargetingDynamicRule2)).apply(this, arguments)); } __name(TargetingDynamicRule2, "TargetingDynamicRule"); createClass(TargetingDynamicRule2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ action_type: "action.type", ad_group_id: "ad_group_id", campaign_group_id: "campaign_group_id", campaign_id: "campaign_id", impression_count: "impression_count", page_id: "page_id", post: "post", retention_seconds: "retention_seconds" }); }, "get") }]); return TargetingDynamicRule2; }(AbstractCrudObject); var TargetingGeoLocation = function(_AbstractCrudObject) { inherits(TargetingGeoLocation2, _AbstractCrudObject); function TargetingGeoLocation2() { classCallCheck(this, TargetingGeoLocation2); return possibleConstructorReturn(this, (TargetingGeoLocation2.__proto__ || Object.getPrototypeOf(TargetingGeoLocation2)).apply(this, arguments)); } __name(TargetingGeoLocation2, "TargetingGeoLocation"); createClass(TargetingGeoLocation2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ cities: "cities", countries: "countries", country_groups: "country_groups", custom_locations: "custom_locations", electoral_districts: "electoral_districts", geo_markets: "geo_markets", large_geo_areas: "large_geo_areas", location_cluster_ids: "location_cluster_ids", location_types: "location_types", medium_geo_areas: "medium_geo_areas", metro_areas: "metro_areas", neighborhoods: "neighborhoods", places: "places", political_districts: "political_districts", regions: "regions", small_geo_areas: "small_geo_areas", subcities: "subcities", subneighborhoods: "subneighborhoods", zips: "zips" }); }, "get") }]); return TargetingGeoLocation2; }(AbstractCrudObject); var TargetingGeoLocationCity = function(_AbstractCrudObject) { inherits(TargetingGeoLocationCity2, _AbstractCrudObject); function TargetingGeoLocationCity2() { classCallCheck(this, TargetingGeoLocationCity2); return possibleConstructorReturn(this, (TargetingGeoLocationCity2.__proto__ || Object.getPrototypeOf(TargetingGeoLocationCity2)).apply(this, arguments)); } __name(TargetingGeoLocationCity2, "TargetingGeoLocationCity"); createClass(TargetingGeoLocationCity2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", distance_unit: "distance_unit", key: "key", name: "name", radius: "radius", region: "region", region_id: "region_id" }); }, "get") }]); return TargetingGeoLocationCity2; }(AbstractCrudObject); var TargetingGeoLocationCustomLocation = function(_AbstractCrudObject) { inherits(TargetingGeoLocationCustomLocation2, _AbstractCrudObject); function TargetingGeoLocationCustomLocation2() { classCallCheck(this, TargetingGeoLocationCustomLocation2); return possibleConstructorReturn(this, (TargetingGeoLocationCustomLocation2.__proto__ || Object.getPrototypeOf(TargetingGeoLocationCustomLocation2)).apply(this, arguments)); } __name(TargetingGeoLocationCustomLocation2, "TargetingGeoLocationCustomLocation"); createClass(TargetingGeoLocationCustomLocation2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ address_string: "address_string", country: "country", country_group: "country_group", custom_type: "custom_type", distance_unit: "distance_unit", key: "key", latitude: "latitude", longitude: "longitude", max_population: "max_population", min_population: "min_population", name: "name", primary_city_id: "primary_city_id", radius: "radius", region_id: "region_id" }); }, "get") }]); return TargetingGeoLocationCustomLocation2; }(AbstractCrudObject); var TargetingGeoLocationElectoralDistrict = function(_AbstractCrudObject) { inherits(TargetingGeoLocationElectoralDistrict2, _AbstractCrudObject); function TargetingGeoLocationElectoralDistrict2() { classCallCheck(this, TargetingGeoLocationElectoralDistrict2); return possibleConstructorReturn(this, (TargetingGeoLocationElectoralDistrict2.__proto__ || Object.getPrototypeOf(TargetingGeoLocationElectoralDistrict2)).apply(this, arguments)); } __name(TargetingGeoLocationElectoralDistrict2, "TargetingGeoLocationElectoralDistrict"); createClass(TargetingGeoLocationElectoralDistrict2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", deprecation_code: "deprecation_code", electoral_district: "electoral_district", key: "key", name: "name" }); }, "get") }]); return TargetingGeoLocationElectoralDistrict2; }(AbstractCrudObject); var TargetingGeoLocationGeoEntities = function(_AbstractCrudObject) { inherits(TargetingGeoLocationGeoEntities2, _AbstractCrudObject); function TargetingGeoLocationGeoEntities2() { classCallCheck(this, TargetingGeoLocationGeoEntities2); return possibleConstructorReturn(this, (TargetingGeoLocationGeoEntities2.__proto__ || Object.getPrototypeOf(TargetingGeoLocationGeoEntities2)).apply(this, arguments)); } __name(TargetingGeoLocationGeoEntities2, "TargetingGeoLocationGeoEntities"); createClass(TargetingGeoLocationGeoEntities2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", key: "key", name: "name", region: "region", region_id: "region_id" }); }, "get") }]); return TargetingGeoLocationGeoEntities2; }(AbstractCrudObject); var TargetingGeoLocationLocationCluster = function(_AbstractCrudObject) { inherits(TargetingGeoLocationLocationCluster2, _AbstractCrudObject); function TargetingGeoLocationLocationCluster2() { classCallCheck(this, TargetingGeoLocationLocationCluster2); return possibleConstructorReturn(this, (TargetingGeoLocationLocationCluster2.__proto__ || Object.getPrototypeOf(TargetingGeoLocationLocationCluster2)).apply(this, arguments)); } __name(TargetingGeoLocationLocationCluster2, "TargetingGeoLocationLocationCluster"); createClass(TargetingGeoLocationLocationCluster2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ key: "key" }); }, "get") }]); return TargetingGeoLocationLocationCluster2; }(AbstractCrudObject); var TargetingGeoLocationMarket = function(_AbstractCrudObject) { inherits(TargetingGeoLocationMarket2, _AbstractCrudObject); function TargetingGeoLocationMarket2() { classCallCheck(this, TargetingGeoLocationMarket2); return possibleConstructorReturn(this, (TargetingGeoLocationMarket2.__proto__ || Object.getPrototypeOf(TargetingGeoLocationMarket2)).apply(this, arguments)); } __name(TargetingGeoLocationMarket2, "TargetingGeoLocationMarket"); createClass(TargetingGeoLocationMarket2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", key: "key", market_type: "market_type", name: "name" }); }, "get") }]); return TargetingGeoLocationMarket2; }(AbstractCrudObject); var TargetingGeoLocationPlace = function(_AbstractCrudObject) { inherits(TargetingGeoLocationPlace2, _AbstractCrudObject); function TargetingGeoLocationPlace2() { classCallCheck(this, TargetingGeoLocationPlace2); return possibleConstructorReturn(this, (TargetingGeoLocationPlace2.__proto__ || Object.getPrototypeOf(TargetingGeoLocationPlace2)).apply(this, arguments)); } __name(TargetingGeoLocationPlace2, "TargetingGeoLocationPlace"); createClass(TargetingGeoLocationPlace2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", distance_unit: "distance_unit", key: "key", latitude: "latitude", longitude: "longitude", name: "name", primary_city_id: "primary_city_id", radius: "radius", region_id: "region_id" }); }, "get") }]); return TargetingGeoLocationPlace2; }(AbstractCrudObject); var TargetingGeoLocationPoliticalDistrict = function(_AbstractCrudObject) { inherits(TargetingGeoLocationPoliticalDistrict2, _AbstractCrudObject); function TargetingGeoLocationPoliticalDistrict2() { classCallCheck(this, TargetingGeoLocationPoliticalDistrict2); return possibleConstructorReturn(this, (TargetingGeoLocationPoliticalDistrict2.__proto__ || Object.getPrototypeOf(TargetingGeoLocationPoliticalDistrict2)).apply(this, arguments)); } __name(TargetingGeoLocationPoliticalDistrict2, "TargetingGeoLocationPoliticalDistrict"); createClass(TargetingGeoLocationPoliticalDistrict2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", key: "key", name: "name", political_district: "political_district" }); }, "get") }]); return TargetingGeoLocationPoliticalDistrict2; }(AbstractCrudObject); var TargetingGeoLocationRegion = function(_AbstractCrudObject) { inherits(TargetingGeoLocationRegion2, _AbstractCrudObject); function TargetingGeoLocationRegion2() { classCallCheck(this, TargetingGeoLocationRegion2); return possibleConstructorReturn(this, (TargetingGeoLocationRegion2.__proto__ || Object.getPrototypeOf(TargetingGeoLocationRegion2)).apply(this, arguments)); } __name(TargetingGeoLocationRegion2, "TargetingGeoLocationRegion"); createClass(TargetingGeoLocationRegion2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", key: "key", name: "name" }); }, "get") }]); return TargetingGeoLocationRegion2; }(AbstractCrudObject); var TargetingGeoLocationZip = function(_AbstractCrudObject) { inherits(TargetingGeoLocationZip2, _AbstractCrudObject); function TargetingGeoLocationZip2() { classCallCheck(this, TargetingGeoLocationZip2); return possibleConstructorReturn(this, (TargetingGeoLocationZip2.__proto__ || Object.getPrototypeOf(TargetingGeoLocationZip2)).apply(this, arguments)); } __name(TargetingGeoLocationZip2, "TargetingGeoLocationZip"); createClass(TargetingGeoLocationZip2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ country: "country", key: "key", name: "name", primary_city_id: "primary_city_id", region_id: "region_id" }); }, "get") }]); return TargetingGeoLocationZip2; }(AbstractCrudObject); var TargetingProductAudienceSpec = function(_AbstractCrudObject) { inherits(TargetingProductAudienceSpec2, _AbstractCrudObject); function TargetingProductAudienceSpec2() { classCallCheck(this, TargetingProductAudienceSpec2); return possibleConstructorReturn(this, (TargetingProductAudienceSpec2.__proto__ || Object.getPrototypeOf(TargetingProductAudienceSpec2)).apply(this, arguments)); } __name(TargetingProductAudienceSpec2, "TargetingProductAudienceSpec"); createClass(TargetingProductAudienceSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ exclusions: "exclusions", inclusions: "inclusions", product_set_id: "product_set_id" }); }, "get") }]); return TargetingProductAudienceSpec2; }(AbstractCrudObject); var TargetingProductAudienceSubSpec = function(_AbstractCrudObject) { inherits(TargetingProductAudienceSubSpec2, _AbstractCrudObject); function TargetingProductAudienceSubSpec2() { classCallCheck(this, TargetingProductAudienceSubSpec2); return possibleConstructorReturn(this, (TargetingProductAudienceSubSpec2.__proto__ || Object.getPrototypeOf(TargetingProductAudienceSubSpec2)).apply(this, arguments)); } __name(TargetingProductAudienceSubSpec2, "TargetingProductAudienceSubSpec"); createClass(TargetingProductAudienceSubSpec2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ retention_seconds: "retention_seconds", rule: "rule" }); }, "get") }]); return TargetingProductAudienceSubSpec2; }(AbstractCrudObject); var TargetingProspectingAudience = function(_AbstractCrudObject) { inherits(TargetingProspectingAudience2, _AbstractCrudObject); function TargetingProspectingAudience2() { classCallCheck(this, TargetingProspectingAudience2); return possibleConstructorReturn(this, (TargetingProspectingAudience2.__proto__ || Object.getPrototypeOf(TargetingProspectingAudience2)).apply(this, arguments)); } __name(TargetingProspectingAudience2, "TargetingProspectingAudience"); createClass(TargetingProspectingAudience2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ sources: "sources" }); }, "get") }]); return TargetingProspectingAudience2; }(AbstractCrudObject); var TargetingRelaxation = function(_AbstractCrudObject) { inherits(TargetingRelaxation2, _AbstractCrudObject); function TargetingRelaxation2() { classCallCheck(this, TargetingRelaxation2); return possibleConstructorReturn(this, (TargetingRelaxation2.__proto__ || Object.getPrototypeOf(TargetingRelaxation2)).apply(this, arguments)); } __name(TargetingRelaxation2, "TargetingRelaxation"); createClass(TargetingRelaxation2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ custom_audience: "custom_audience", lookalike: "lookalike" }); }, "get") }]); return TargetingRelaxation2; }(AbstractCrudObject); var TrackingAndConversionWithDefaults = function(_AbstractCrudObject) { inherits(TrackingAndConversionWithDefaults2, _AbstractCrudObject); function TrackingAndConversionWithDefaults2() { classCallCheck(this, TrackingAndConversionWithDefaults2); return possibleConstructorReturn(this, (TrackingAndConversionWithDefaults2.__proto__ || Object.getPrototypeOf(TrackingAndConversionWithDefaults2)).apply(this, arguments)); } __name(TrackingAndConversionWithDefaults2, "TrackingAndConversionWithDefaults"); createClass(TrackingAndConversionWithDefaults2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ custom_conversion: "custom_conversion", custom_tracking: "custom_tracking", default_conversion: "default_conversion", default_tracking: "default_tracking" }); }, "get") }]); return TrackingAndConversionWithDefaults2; }(AbstractCrudObject); var URL2 = function(_AbstractCrudObject) { inherits(URL3, _AbstractCrudObject); function URL3() { classCallCheck(this, URL3); return possibleConstructorReturn(this, (URL3.__proto__ || Object.getPrototypeOf(URL3)).apply(this, arguments)); } __name(URL3, "URL"); createClass(URL3, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(URL3.prototype.__proto__ || Object.getPrototypeOf(URL3.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ engagement: "engagement", id: "id", og_object: "og_object", ownership_permissions: "ownership_permissions", scopes: "scopes" }); }, "get") }, { key: "Scopes", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ news_tab: "NEWS_TAB", news_tab_dev_env: "NEWS_TAB_DEV_ENV" }); }, "get") }]); return URL3; }(AbstractCrudObject); var UserCoverPhoto = function(_AbstractCrudObject) { inherits(UserCoverPhoto2, _AbstractCrudObject); function UserCoverPhoto2() { classCallCheck(this, UserCoverPhoto2); return possibleConstructorReturn(this, (UserCoverPhoto2.__proto__ || Object.getPrototypeOf(UserCoverPhoto2)).apply(this, arguments)); } __name(UserCoverPhoto2, "UserCoverPhoto"); createClass(UserCoverPhoto2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ offset_x: "offset_x", offset_y: "offset_y", source: "source" }); }, "get") }]); return UserCoverPhoto2; }(AbstractCrudObject); var UserDevice = function(_AbstractCrudObject) { inherits(UserDevice2, _AbstractCrudObject); function UserDevice2() { classCallCheck(this, UserDevice2); return possibleConstructorReturn(this, (UserDevice2.__proto__ || Object.getPrototypeOf(UserDevice2)).apply(this, arguments)); } __name(UserDevice2, "UserDevice"); createClass(UserDevice2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ hardware: "hardware", os: "os" }); }, "get") }]); return UserDevice2; }(AbstractCrudObject); var UserLeadGenDisclaimerResponse = function(_AbstractCrudObject) { inherits(UserLeadGenDisclaimerResponse2, _AbstractCrudObject); function UserLeadGenDisclaimerResponse2() { classCallCheck(this, UserLeadGenDisclaimerResponse2); return possibleConstructorReturn(this, (UserLeadGenDisclaimerResponse2.__proto__ || Object.getPrototypeOf(UserLeadGenDisclaimerResponse2)).apply(this, arguments)); } __name(UserLeadGenDisclaimerResponse2, "UserLeadGenDisclaimerResponse"); createClass(UserLeadGenDisclaimerResponse2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ checkbox_key: "checkbox_key", is_checked: "is_checked" }); }, "get") }]); return UserLeadGenDisclaimerResponse2; }(AbstractCrudObject); var UserLeadGenFieldData = function(_AbstractCrudObject) { inherits(UserLeadGenFieldData2, _AbstractCrudObject); function UserLeadGenFieldData2() { classCallCheck(this, UserLeadGenFieldData2); return possibleConstructorReturn(this, (UserLeadGenFieldData2.__proto__ || Object.getPrototypeOf(UserLeadGenFieldData2)).apply(this, arguments)); } __name(UserLeadGenFieldData2, "UserLeadGenFieldData"); createClass(UserLeadGenFieldData2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ name: "name", values: "values" }); }, "get") }]); return UserLeadGenFieldData2; }(AbstractCrudObject); var UserPaymentMobilePricepoints = function(_AbstractCrudObject) { inherits(UserPaymentMobilePricepoints2, _AbstractCrudObject); function UserPaymentMobilePricepoints2() { classCallCheck(this, UserPaymentMobilePricepoints2); return possibleConstructorReturn(this, (UserPaymentMobilePricepoints2.__proto__ || Object.getPrototypeOf(UserPaymentMobilePricepoints2)).apply(this, arguments)); } __name(UserPaymentMobilePricepoints2, "UserPaymentMobilePricepoints"); createClass(UserPaymentMobilePricepoints2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ mobile_country: "mobile_country", phone_number_last4: "phone_number_last4", pricepoints: "pricepoints", user_currency: "user_currency" }); }, "get") }]); return UserPaymentMobilePricepoints2; }(AbstractCrudObject); var ValueBasedEligibleSource = function(_AbstractCrudObject) { inherits(ValueBasedEligibleSource2, _AbstractCrudObject); function ValueBasedEligibleSource2() { classCallCheck(this, ValueBasedEligibleSource2); return possibleConstructorReturn(this, (ValueBasedEligibleSource2.__proto__ || Object.getPrototypeOf(ValueBasedEligibleSource2)).apply(this, arguments)); } __name(ValueBasedEligibleSource2, "ValueBasedEligibleSource"); createClass(ValueBasedEligibleSource2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", title: "title", type: "type" }); }, "get") }]); return ValueBasedEligibleSource2; }(AbstractCrudObject); var VideoCopyrightCheckStatus = function(_AbstractCrudObject) { inherits(VideoCopyrightCheckStatus2, _AbstractCrudObject); function VideoCopyrightCheckStatus2() { classCallCheck(this, VideoCopyrightCheckStatus2); return possibleConstructorReturn(this, (VideoCopyrightCheckStatus2.__proto__ || Object.getPrototypeOf(VideoCopyrightCheckStatus2)).apply(this, arguments)); } __name(VideoCopyrightCheckStatus2, "VideoCopyrightCheckStatus"); createClass(VideoCopyrightCheckStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ matches_found: "matches_found", status: "status" }); }, "get") }]); return VideoCopyrightCheckStatus2; }(AbstractCrudObject); var VideoCopyrightConditionGroup = function(_AbstractCrudObject) { inherits(VideoCopyrightConditionGroup2, _AbstractCrudObject); function VideoCopyrightConditionGroup2() { classCallCheck(this, VideoCopyrightConditionGroup2); return possibleConstructorReturn(this, (VideoCopyrightConditionGroup2.__proto__ || Object.getPrototypeOf(VideoCopyrightConditionGroup2)).apply(this, arguments)); } __name(VideoCopyrightConditionGroup2, "VideoCopyrightConditionGroup"); createClass(VideoCopyrightConditionGroup2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ action: "action", conditions: "conditions", validity_status: "validity_status" }); }, "get") }]); return VideoCopyrightConditionGroup2; }(AbstractCrudObject); var VideoCopyrightGeoGate = function(_AbstractCrudObject) { inherits(VideoCopyrightGeoGate2, _AbstractCrudObject); function VideoCopyrightGeoGate2() { classCallCheck(this, VideoCopyrightGeoGate2); return possibleConstructorReturn(this, (VideoCopyrightGeoGate2.__proto__ || Object.getPrototypeOf(VideoCopyrightGeoGate2)).apply(this, arguments)); } __name(VideoCopyrightGeoGate2, "VideoCopyrightGeoGate"); createClass(VideoCopyrightGeoGate2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ excluded_countries: "excluded_countries", included_countries: "included_countries" }); }, "get") }]); return VideoCopyrightGeoGate2; }(AbstractCrudObject); var VideoCopyrightSegment = function(_AbstractCrudObject) { inherits(VideoCopyrightSegment2, _AbstractCrudObject); function VideoCopyrightSegment2() { classCallCheck(this, VideoCopyrightSegment2); return possibleConstructorReturn(this, (VideoCopyrightSegment2.__proto__ || Object.getPrototypeOf(VideoCopyrightSegment2)).apply(this, arguments)); } __name(VideoCopyrightSegment2, "VideoCopyrightSegment"); createClass(VideoCopyrightSegment2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ duration_in_sec: "duration_in_sec", media_type: "media_type", start_time_in_sec: "start_time_in_sec" }); }, "get") }]); return VideoCopyrightSegment2; }(AbstractCrudObject); var VideoStatus = function(_AbstractCrudObject) { inherits(VideoStatus2, _AbstractCrudObject); function VideoStatus2() { classCallCheck(this, VideoStatus2); return possibleConstructorReturn(this, (VideoStatus2.__proto__ || Object.getPrototypeOf(VideoStatus2)).apply(this, arguments)); } __name(VideoStatus2, "VideoStatus"); createClass(VideoStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ copyright_check_status: "copyright_check_status", processing_phase: "processing_phase", processing_progress: "processing_progress", publishing_phase: "publishing_phase", uploading_phase: "uploading_phase", video_status: "video_status" }); }, "get") }]); return VideoStatus2; }(AbstractCrudObject); var VideoStatusError = function(_AbstractCrudObject) { inherits(VideoStatusError2, _AbstractCrudObject); function VideoStatusError2() { classCallCheck(this, VideoStatusError2); return possibleConstructorReturn(this, (VideoStatusError2.__proto__ || Object.getPrototypeOf(VideoStatusError2)).apply(this, arguments)); } __name(VideoStatusError2, "VideoStatusError"); createClass(VideoStatusError2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ code: "code", message: "message" }); }, "get") }]); return VideoStatusError2; }(AbstractCrudObject); var VideoStatusProcessingPhase = function(_AbstractCrudObject) { inherits(VideoStatusProcessingPhase2, _AbstractCrudObject); function VideoStatusProcessingPhase2() { classCallCheck(this, VideoStatusProcessingPhase2); return possibleConstructorReturn(this, (VideoStatusProcessingPhase2.__proto__ || Object.getPrototypeOf(VideoStatusProcessingPhase2)).apply(this, arguments)); } __name(VideoStatusProcessingPhase2, "VideoStatusProcessingPhase"); createClass(VideoStatusProcessingPhase2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ errors: "errors", status: "status" }); }, "get") }]); return VideoStatusProcessingPhase2; }(AbstractCrudObject); var VideoStatusPublishingPhase = function(_AbstractCrudObject) { inherits(VideoStatusPublishingPhase2, _AbstractCrudObject); function VideoStatusPublishingPhase2() { classCallCheck(this, VideoStatusPublishingPhase2); return possibleConstructorReturn(this, (VideoStatusPublishingPhase2.__proto__ || Object.getPrototypeOf(VideoStatusPublishingPhase2)).apply(this, arguments)); } __name(VideoStatusPublishingPhase2, "VideoStatusPublishingPhase"); createClass(VideoStatusPublishingPhase2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ errors: "errors", publish_status: "publish_status", publish_time: "publish_time", status: "status" }); }, "get") }]); return VideoStatusPublishingPhase2; }(AbstractCrudObject); var VideoStatusUploadingPhase = function(_AbstractCrudObject) { inherits(VideoStatusUploadingPhase2, _AbstractCrudObject); function VideoStatusUploadingPhase2() { classCallCheck(this, VideoStatusUploadingPhase2); return possibleConstructorReturn(this, (VideoStatusUploadingPhase2.__proto__ || Object.getPrototypeOf(VideoStatusUploadingPhase2)).apply(this, arguments)); } __name(VideoStatusUploadingPhase2, "VideoStatusUploadingPhase"); createClass(VideoStatusUploadingPhase2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ bytes_transferred: "bytes_transferred", errors: "errors", source_file_size: "source_file_size", status: "status" }); }, "get") }]); return VideoStatusUploadingPhase2; }(AbstractCrudObject); var VideoUploadLimits = function(_AbstractCrudObject) { inherits(VideoUploadLimits2, _AbstractCrudObject); function VideoUploadLimits2() { classCallCheck(this, VideoUploadLimits2); return possibleConstructorReturn(this, (VideoUploadLimits2.__proto__ || Object.getPrototypeOf(VideoUploadLimits2)).apply(this, arguments)); } __name(VideoUploadLimits2, "VideoUploadLimits"); createClass(VideoUploadLimits2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ length: "length", size: "size" }); }, "get") }]); return VideoUploadLimits2; }(AbstractCrudObject); var VoipInfo = function(_AbstractCrudObject) { inherits(VoipInfo2, _AbstractCrudObject); function VoipInfo2() { classCallCheck(this, VoipInfo2); return possibleConstructorReturn(this, (VoipInfo2.__proto__ || Object.getPrototypeOf(VoipInfo2)).apply(this, arguments)); } __name(VoipInfo2, "VoipInfo"); createClass(VoipInfo2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ has_mobile_app: "has_mobile_app", has_permission: "has_permission", is_callable: "is_callable", is_callable_webrtc: "is_callable_webrtc", is_pushable: "is_pushable", reason_code: "reason_code", reason_description: "reason_description" }); }, "get") }]); return VoipInfo2; }(AbstractCrudObject); var WebAppLink = function(_AbstractCrudObject) { inherits(WebAppLink2, _AbstractCrudObject); function WebAppLink2() { classCallCheck(this, WebAppLink2); return possibleConstructorReturn(this, (WebAppLink2.__proto__ || Object.getPrototypeOf(WebAppLink2)).apply(this, arguments)); } __name(WebAppLink2, "WebAppLink"); createClass(WebAppLink2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ should_fallback: "should_fallback", url: "url" }); }, "get") }]); return WebAppLink2; }(AbstractCrudObject); var WhatsAppBusinessHealthStatus = function(_AbstractCrudObject) { inherits(WhatsAppBusinessHealthStatus2, _AbstractCrudObject); function WhatsAppBusinessHealthStatus2() { classCallCheck(this, WhatsAppBusinessHealthStatus2); return possibleConstructorReturn(this, (WhatsAppBusinessHealthStatus2.__proto__ || Object.getPrototypeOf(WhatsAppBusinessHealthStatus2)).apply(this, arguments)); } __name(WhatsAppBusinessHealthStatus2, "WhatsAppBusinessHealthStatus"); createClass(WhatsAppBusinessHealthStatus2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ additional_info: "additional_info", can_send_message: "can_send_message", entity_type: "entity_type", errors: "errors", id: "id" }); }, "get") }]); return WhatsAppBusinessHealthStatus2; }(AbstractCrudObject); var WhatsAppBusinessHealthStatusForMessageSend = function(_AbstractCrudObject) { inherits(WhatsAppBusinessHealthStatusForMessageSend2, _AbstractCrudObject); function WhatsAppBusinessHealthStatusForMessageSend2() { classCallCheck(this, WhatsAppBusinessHealthStatusForMessageSend2); return possibleConstructorReturn(this, (WhatsAppBusinessHealthStatusForMessageSend2.__proto__ || Object.getPrototypeOf(WhatsAppBusinessHealthStatusForMessageSend2)).apply(this, arguments)); } __name(WhatsAppBusinessHealthStatusForMessageSend2, "WhatsAppBusinessHealthStatusForMessageSend"); createClass(WhatsAppBusinessHealthStatusForMessageSend2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ can_send_message: "can_send_message", entities: "entities" }); }, "get") }]); return WhatsAppBusinessHealthStatusForMessageSend2; }(AbstractCrudObject); var WhatsAppBusinessProfile = function(_AbstractCrudObject) { inherits(WhatsAppBusinessProfile2, _AbstractCrudObject); function WhatsAppBusinessProfile2() { classCallCheck(this, WhatsAppBusinessProfile2); return possibleConstructorReturn(this, (WhatsAppBusinessProfile2.__proto__ || Object.getPrototypeOf(WhatsAppBusinessProfile2)).apply(this, arguments)); } __name(WhatsAppBusinessProfile2, "WhatsAppBusinessProfile"); createClass(WhatsAppBusinessProfile2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") // $FlowFixMe : Support Generic Types }, { key: "update", value: /* @__PURE__ */ __name(function update(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return get$1(WhatsAppBusinessProfile2.prototype.__proto__ || Object.getPrototypeOf(WhatsAppBusinessProfile2.prototype), "update", this).call(this, params); }, "update") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", name_verification: "name_verification", whatsapp_business_api_data: "whatsapp_business_api_data" }); }, "get") }]); return WhatsAppBusinessProfile2; }(AbstractCrudObject); var WindowsAppLink = function(_AbstractCrudObject) { inherits(WindowsAppLink2, _AbstractCrudObject); function WindowsAppLink2() { classCallCheck(this, WindowsAppLink2); return possibleConstructorReturn(this, (WindowsAppLink2.__proto__ || Object.getPrototypeOf(WindowsAppLink2)).apply(this, arguments)); } __name(WindowsAppLink2, "WindowsAppLink"); createClass(WindowsAppLink2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_id: "app_id", app_name: "app_name", package_family_name: "package_family_name", url: "url" }); }, "get") }]); return WindowsAppLink2; }(AbstractCrudObject); var WindowsPhoneAppLink = function(_AbstractCrudObject) { inherits(WindowsPhoneAppLink2, _AbstractCrudObject); function WindowsPhoneAppLink2() { classCallCheck(this, WindowsPhoneAppLink2); return possibleConstructorReturn(this, (WindowsPhoneAppLink2.__proto__ || Object.getPrototypeOf(WindowsPhoneAppLink2)).apply(this, arguments)); } __name(WindowsPhoneAppLink2, "WindowsPhoneAppLink"); createClass(WindowsPhoneAppLink2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ app_id: "app_id", app_name: "app_name", url: "url" }); }, "get") }]); return WindowsPhoneAppLink2; }(AbstractCrudObject); var WoodhengePurchasedPAYGReceipt = function(_AbstractCrudObject) { inherits(WoodhengePurchasedPAYGReceipt2, _AbstractCrudObject); function WoodhengePurchasedPAYGReceipt2() { classCallCheck(this, WoodhengePurchasedPAYGReceipt2); return possibleConstructorReturn(this, (WoodhengePurchasedPAYGReceipt2.__proto__ || Object.getPrototypeOf(WoodhengePurchasedPAYGReceipt2)).apply(this, arguments)); } __name(WoodhengePurchasedPAYGReceipt2, "WoodhengePurchasedPAYGReceipt"); createClass(WoodhengePurchasedPAYGReceipt2, [{ key: "get", value: /* @__PURE__ */ __name(function get(fields) { var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return this.read(fields, params); }, "get") }], [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ id: "id", number_of_subscriptions_purchased: "number_of_subscriptions_purchased", purchase_time: "purchase_time", user: "user" }); }, "get") }]); return WoodhengePurchasedPAYGReceipt2; }(AbstractCrudObject); var WorkUserFrontline = function(_AbstractCrudObject) { inherits(WorkUserFrontline2, _AbstractCrudObject); function WorkUserFrontline2() { classCallCheck(this, WorkUserFrontline2); return possibleConstructorReturn(this, (WorkUserFrontline2.__proto__ || Object.getPrototypeOf(WorkUserFrontline2)).apply(this, arguments)); } __name(WorkUserFrontline2, "WorkUserFrontline"); createClass(WorkUserFrontline2, null, [{ key: "Fields", get: /* @__PURE__ */ __name(function get() { return Object.freeze({ has_access: "has_access", is_frontline: "is_frontline" }); }, "get") }]); return WorkUserFrontline2; }(AbstractCrudObject); exports2.FacebookAdsApi = FacebookAdsApi2; exports2.FacebookAdsApiBatch = FacebookAdsApiBatch; exports2.AbstractCrudObject = AbstractCrudObject; exports2.APIRequest = APIRequest; exports2.APIResponse = APIResponse; exports2.CrashReporter = CrashReporter; exports2.Content = Content; exports2.CustomData = CustomData; exports2.EventRequest = EventRequest; exports2.EventResponse = EventResponse; exports2.ServerEvent = ServerEvent; exports2.UserData = UserData; exports2.ExtendedDeviceInfo = ExtendedDeviceInfo; exports2.AppData = AppData; exports2.DeliveryCategory = DeliveryCategory; exports2.HttpMethod = HttpMethod; exports2.HttpServiceClientConfig = HttpServiceClientConfig; exports2.HttpServiceInterface = HttpServiceInterface; exports2.BatchProcessor = BatchProcessor; exports2.ServerSideUtils = ServerSideUtils; exports2.SignalUserData = UserData$1; exports2.SignalContent = Content$1; exports2.SignalCustomData = CustomData$1; exports2.SignalEvent = Event$2; exports2.SignalEventRequest = EventRequest$1; exports2.Ad = Ad2; exports2.AdAccount = AdAccount2; exports2.AdAccountAdRulesHistory = AdAccountAdRulesHistory; exports2.AdAccountAdVolume = AdAccountAdVolume; exports2.AdAccountBusinessConstraints = AdAccountBusinessConstraints; exports2.AdAccountDefaultDestination = AdAccountDefaultDestination; exports2.AdAccountDefaultObjective = AdAccountDefaultObjective; exports2.AdAccountDeliveryEstimate = AdAccountDeliveryEstimate; exports2.AdAccountDsaRecommendations = AdAccountDsaRecommendations; exports2.AdAccountIosFourteenCampaignLimits = AdAccountIosFourteenCampaignLimits; exports2.AdAccountMatchedSearchApplicationsEdgeData = AdAccountMatchedSearchApplicationsEdgeData; exports2.AdAccountMaxBid = AdAccountMaxBid; exports2.AdAccountPromotableObjects = AdAccountPromotableObjects; exports2.AdAccountReachEstimate = AdAccountReachEstimate; exports2.AdAccountRecommendedCamapaignBudget = AdAccountRecommendedCamapaignBudget; exports2.AdAccountSubscribedApps = AdAccountSubscribedApps; exports2.AdAccountTargetingUnified = AdAccountTargetingUnified; exports2.AdAccountTrackingData = AdAccountTrackingData; exports2.AdAccountUser = AdAccountUser; exports2.AdActivity = AdActivity; exports2.AdAssetBody = AdAssetBody; exports2.AdAssetCallToActionType = AdAssetCallToActionType; exports2.AdAssetCustomizationRuleCustomizationSpec = AdAssetCustomizationRuleCustomizationSpec; exports2.AdAssetDescription = AdAssetDescription; exports2.AdAssetFeedAdditionalData = AdAssetFeedAdditionalData; exports2.AdAssetFeedSpec = AdAssetFeedSpec; exports2.AdAssetFeedSpecAssetCustomizationRule = AdAssetFeedSpecAssetCustomizationRule; exports2.AdAssetFeedSpecAssetLabel = AdAssetFeedSpecAssetLabel; exports2.AdAssetFeedSpecBody = AdAssetFeedSpecBody; exports2.AdAssetFeedSpecCallToAction = AdAssetFeedSpecCallToAction; exports2.AdAssetFeedSpecCaption = AdAssetFeedSpecCaption; exports2.AdAssetFeedSpecCarousel = AdAssetFeedSpecCarousel; exports2.AdAssetFeedSpecCarouselChildAttachment = AdAssetFeedSpecCarouselChildAttachment; exports2.AdAssetFeedSpecDescription = AdAssetFeedSpecDescription; exports2.AdAssetFeedSpecEvents = AdAssetFeedSpecEvents; exports2.AdAssetFeedSpecGroupRule = AdAssetFeedSpecGroupRule; exports2.AdAssetFeedSpecImage = AdAssetFeedSpecImage; exports2.AdAssetFeedSpecLinkURL = AdAssetFeedSpecLinkURL; exports2.AdAssetFeedSpecTitle = AdAssetFeedSpecTitle; exports2.AdAssetFeedSpecVideo = AdAssetFeedSpecVideo; exports2.AdAssetImage = AdAssetImage; exports2.AdAssetLinkURL = AdAssetLinkURL; exports2.AdAssetMessageExtensions = AdAssetMessageExtensions; exports2.AdAssetOnsiteDestinations = AdAssetOnsiteDestinations; exports2.AdAssetTargetRuleTargeting = AdAssetTargetRuleTargeting; exports2.AdAssetTitle = AdAssetTitle; exports2.AdAssetVideo = AdAssetVideo; exports2.AdAsyncRequest = AdAsyncRequest; exports2.AdAsyncRequestSet = AdAsyncRequestSet; exports2.AdAsyncRequestSetNotificationResult = AdAsyncRequestSetNotificationResult; exports2.AdBidAdjustments = AdBidAdjustments; exports2.AdCampaignBidConstraint = AdCampaignBidConstraint; exports2.AdCampaignDeliveryEstimate = AdCampaignDeliveryEstimate; exports2.AdCampaignDeliveryStatsUnsupportedReasons = AdCampaignDeliveryStatsUnsupportedReasons; exports2.AdCampaignFrequencyControlSpecs = AdCampaignFrequencyControlSpecs; exports2.AdCampaignIssuesInfo = AdCampaignIssuesInfo; exports2.AdCampaignLearningStageInfo = AdCampaignLearningStageInfo; exports2.AdCampaignOptimizationEvent = AdCampaignOptimizationEvent; exports2.AdCampaignPacedBidInfo = AdCampaignPacedBidInfo; exports2.AdCreative = AdCreative; exports2.AdCreativeAdDisclaimer = AdCreativeAdDisclaimer; exports2.AdCreativeBrandedContentAds = AdCreativeBrandedContentAds; exports2.AdCreativeBrandedContentAdsPartners = AdCreativeBrandedContentAdsPartners; exports2.AdCreativeCollectionThumbnailInfo = AdCreativeCollectionThumbnailInfo; exports2.AdCreativeDegreesOfFreedomSpec = AdCreativeDegreesOfFreedomSpec; exports2.AdCreativeFacebookBrandedContent = AdCreativeFacebookBrandedContent; exports2.AdCreativeFeatureDetails = AdCreativeFeatureDetails; exports2.AdCreativeFeaturesSpec = AdCreativeFeaturesSpec; exports2.AdCreativeInsights = AdCreativeInsights; exports2.AdCreativeInstagramBrandedContent = AdCreativeInstagramBrandedContent; exports2.AdCreativeInteractiveComponentsSpec = AdCreativeInteractiveComponentsSpec; exports2.AdCreativeLinkData = AdCreativeLinkData; exports2.AdCreativeLinkDataAppLinkSpec = AdCreativeLinkDataAppLinkSpec; exports2.AdCreativeLinkDataCallToAction = AdCreativeLinkDataCallToAction; exports2.AdCreativeLinkDataCallToActionValue = AdCreativeLinkDataCallToActionValue; exports2.AdCreativeLinkDataChildAttachment = AdCreativeLinkDataChildAttachment; exports2.AdCreativeLinkDataImageLayerSpec = AdCreativeLinkDataImageLayerSpec; exports2.AdCreativeLinkDataImageOverlaySpec = AdCreativeLinkDataImageOverlaySpec; exports2.AdCreativeLinkDataSponsorshipInfoSpec = AdCreativeLinkDataSponsorshipInfoSpec; exports2.AdCreativeLinkDataTemplateVideoSpec = AdCreativeLinkDataTemplateVideoSpec; exports2.AdCreativeObjectStorySpec = AdCreativeObjectStorySpec; exports2.AdCreativeOmnichannelLinkSpec = AdCreativeOmnichannelLinkSpec; exports2.AdCreativePhotoData = AdCreativePhotoData; exports2.AdCreativePhotoDataMediaElements = AdCreativePhotoDataMediaElements; exports2.AdCreativePlaceData = AdCreativePlaceData; exports2.AdCreativePlatformCustomization = AdCreativePlatformCustomization; exports2.AdCreativePortraitCustomizations = AdCreativePortraitCustomizations; exports2.AdCreativePostClickConfiguration = AdCreativePostClickConfiguration; exports2.AdCreativePromotionMetadataSpec = AdCreativePromotionMetadataSpec; exports2.AdCreativeRecommenderSettings = AdCreativeRecommenderSettings; exports2.AdCreativeSiteLinksSpec = AdCreativeSiteLinksSpec; exports2.AdCreativeSourcingSpec = AdCreativeSourcingSpec; exports2.AdCreativeStaticFallbackSpec = AdCreativeStaticFallbackSpec; exports2.AdCreativeTemplateURLSpec = AdCreativeTemplateURLSpec; exports2.AdCreativeTextData = AdCreativeTextData; exports2.AdCreativeVideoData = AdCreativeVideoData; exports2.AdCustomizationRuleSpec = AdCustomizationRuleSpec; exports2.AdDynamicCreative = AdDynamicCreative; exports2.AdEntityTargetSpend = AdEntityTargetSpend; exports2.AdImage = AdImage; exports2.AdKeywords = AdKeywords; exports2.AdLabel = AdLabel; exports2.AdMonetizationProperty = AdMonetizationProperty; exports2.AdNetworkAnalyticsAsyncQueryResult = AdNetworkAnalyticsAsyncQueryResult; exports2.AdNetworkAnalyticsSyncQueryResult = AdNetworkAnalyticsSyncQueryResult; exports2.AdPlacePageSet = AdPlacePageSet; exports2.AdPlacePageSetMetadata = AdPlacePageSetMetadata; exports2.AdPlacement = AdPlacement; exports2.AdPreview = AdPreview; exports2.AdPromotedObject = AdPromotedObject; exports2.AdRecommendation = AdRecommendation; exports2.AdRecommendationData = AdRecommendationData; exports2.AdReportRun = AdReportRun; exports2.AdRule = AdRule; exports2.AdRuleEvaluationSpec = AdRuleEvaluationSpec; exports2.AdRuleExecutionOptions = AdRuleExecutionOptions; exports2.AdRuleExecutionSpec = AdRuleExecutionSpec; exports2.AdRuleFilters = AdRuleFilters; exports2.AdRuleHistory = AdRuleHistory; exports2.AdRuleHistoryResult = AdRuleHistoryResult; exports2.AdRuleHistoryResultAction = AdRuleHistoryResultAction; exports2.AdRuleSchedule = AdRuleSchedule; exports2.AdRuleScheduleSpec = AdRuleScheduleSpec; exports2.AdRuleTrigger = AdRuleTrigger; exports2.AdSet = AdSet2; exports2.AdStudy = AdStudy; exports2.AdStudyCell = AdStudyCell; exports2.AdStudyObjective = AdStudyObjective; exports2.AdStudyObjectiveID = AdStudyObjectiveID; exports2.AdStudyObjectiveOffsiteDatasets = AdStudyObjectiveOffsiteDatasets; exports2.AdVideo = AdVideo; exports2.AdgroupIssuesInfo = AdgroupIssuesInfo; exports2.AdgroupMetadata = AdgroupMetadata; exports2.AdgroupPlacementSpecificReviewFeedback = AdgroupPlacementSpecificReviewFeedback; exports2.AdgroupReviewFeedback = AdgroupReviewFeedback; exports2.AdsActionStats = AdsActionStats; exports2.AdsHistogramStats = AdsHistogramStats; exports2.AdsImageCrops = AdsImageCrops; exports2.AdsInsights = AdsInsights; exports2.AdsOptimalDeliveryGrowthOpportunity = AdsOptimalDeliveryGrowthOpportunity; exports2.AdsPixel = AdsPixel; exports2.AdsPixelStats = AdsPixelStats; exports2.AdsPixelStatsResult = AdsPixelStatsResult; exports2.AgeRange = AgeRange; exports2.AgencyClientDeclaration = AgencyClientDeclaration; exports2.Album = Album; exports2.AnalyticsSegment = AnalyticsSegment; exports2.AndroidAppLink = AndroidAppLink; exports2.AppRequest = AppRequest; exports2.AppRequestFormerRecipient = AppRequestFormerRecipient; exports2.Application = Application; exports2.AssignedUser = AssignedUser; exports2.AsyncRequest = AsyncRequest; exports2.AsyncSession = AsyncSession; exports2.AttributionSpec = AttributionSpec; exports2.AudiencePermissionForActions = AudiencePermissionForActions; exports2.AudioCopyright = AudioCopyright; exports2.AutomotiveModel = AutomotiveModel; exports2.Avatar = Avatar; exports2.AvatarProfilePicture = AvatarProfilePicture; exports2.BrandRequest = BrandRequest; exports2.BrandSafetyBlockListUsage = BrandSafetyBlockListUsage; exports2.BrandedContentShadowIGMediaID = BrandedContentShadowIGMediaID; exports2.BrandedContentShadowIGUserID = BrandedContentShadowIGUserID; exports2.BroadTargetingCategories = BroadTargetingCategories; exports2.Business = Business; exports2.BusinessAdAccountRequest = BusinessAdAccountRequest; exports2.BusinessApplicationRequest = BusinessApplicationRequest; exports2.BusinessAssetGroup = BusinessAssetGroup; exports2.BusinessAssetSharingAgreement = BusinessAssetSharingAgreement; exports2.BusinessCreativeFolder = BusinessCreativeFolder; exports2.BusinessImage = BusinessImage; exports2.BusinessManagedPartnerEligibility = BusinessManagedPartnerEligibility; exports2.BusinessOwnedObjectOnBehalfOfRequest = BusinessOwnedObjectOnBehalfOfRequest; exports2.BusinessPageRequest = BusinessPageRequest; exports2.BusinessPartnerPremiumOptions = BusinessPartnerPremiumOptions; exports2.BusinessRoleRequest = BusinessRoleRequest; exports2.BusinessUser = BusinessUser; exports2.BusinessVideo = BusinessVideo; exports2.CPASAdvertiserPartnershipRecommendation = CPASAdvertiserPartnershipRecommendation; exports2.CPASBusinessSetupConfig = CPASBusinessSetupConfig; exports2.CPASCollaborationRequest = CPASCollaborationRequest; exports2.CPASMerchantConfig = CPASMerchantConfig; exports2.CRMAddress = CRMAddress; exports2.CTXPartnerAppWelcomeMessageFlow = CTXPartnerAppWelcomeMessageFlow; exports2.Campaign = Campaign2; exports2.CampaignGroupBrandConfiguration = CampaignGroupBrandConfiguration; exports2.CampaignGroupCollaborativeAdsPartnerInfo = CampaignGroupCollaborativeAdsPartnerInfo; exports2.Canvas = Canvas; exports2.CanvasAdSettings = CanvasAdSettings; exports2.CanvasBodyElement = CanvasBodyElement; exports2.CanvasCollectionThumbnail = CanvasCollectionThumbnail; exports2.CanvasDynamicSetting = CanvasDynamicSetting; exports2.CanvasPreview = CanvasPreview; exports2.CatalogBasedTargeting = CatalogBasedTargeting; exports2.CatalogItemAppLinks = CatalogItemAppLinks; exports2.CatalogItemAppealStatus = CatalogItemAppealStatus; exports2.CatalogItemChannelsToIntegrityStatus = CatalogItemChannelsToIntegrityStatus; exports2.CatalogSegmentAllMatchCountLaser = CatalogSegmentAllMatchCountLaser; exports2.CatalogSubVerticalList = CatalogSubVerticalList; exports2.ChatPlugin = ChatPlugin; exports2.CheckBatchRequestStatus = CheckBatchRequestStatus; exports2.ChildEvent = ChildEvent; exports2.CloudGame = CloudGame; exports2.CollaborativeAdsPartnerInfoListItem = CollaborativeAdsPartnerInfoListItem; exports2.CollaborativeAdsShareSettings = CollaborativeAdsShareSettings; exports2.Comment = Comment; exports2.CommerceMerchantSettings = CommerceMerchantSettings; exports2.CommerceMerchantSettingsSetupStatus = CommerceMerchantSettingsSetupStatus; exports2.CommerceOrder = CommerceOrder; exports2.CommerceOrderTransactionDetail = CommerceOrderTransactionDetail; exports2.CommercePayout = CommercePayout; exports2.CommerceSettings = CommerceSettings; exports2.ConnectionsTargeting = ConnectionsTargeting; exports2.ContentPublishingLimitResponse = ContentPublishingLimitResponse; exports2.ContextualBundlingSpec = ContextualBundlingSpec; exports2.ConversionActionQuery = ConversionActionQuery; exports2.CopyrightReferenceContainer = CopyrightReferenceContainer; exports2.CoverPhoto = CoverPhoto; exports2.CreativeHistory = CreativeHistory; exports2.CreditCard = CreditCard; exports2.CreditPartitionActionOptions = CreditPartitionActionOptions; exports2.Currency = Currency; exports2.CurrencyAmount = CurrencyAmount; exports2.CustomAudience = CustomAudience; exports2.CustomAudienceAdAccount = CustomAudienceAdAccount; exports2.CustomAudienceDataSource = CustomAudienceDataSource; exports2.CustomAudienceGroup = CustomAudienceGroup; exports2.CustomAudienceSalts = CustomAudienceSalts; exports2.CustomAudienceSession = CustomAudienceSession; exports2.CustomAudienceSharingStatus = CustomAudienceSharingStatus; exports2.CustomAudienceStatus = CustomAudienceStatus; exports2.CustomAudiencesTOS = CustomAudiencesTOS; exports2.CustomAudiencesharedAccountInfo = CustomAudiencesharedAccountInfo; exports2.CustomConversion = CustomConversion; exports2.CustomConversionStatsResult = CustomConversionStatsResult; exports2.CustomUserSettings = CustomUserSettings; exports2.DACheck = DACheck; exports2.Dataset = Dataset; exports2.DayPart = DayPart; exports2.DeliveryCheck = DeliveryCheck; exports2.DeliveryCheckExtraInfo = DeliveryCheckExtraInfo; exports2.DeliveryWindow = DeliveryWindow; exports2.Destination = Destination; exports2.DynamicPostChildAttachment = DynamicPostChildAttachment; exports2.DynamicPriceConfigByDate = DynamicPriceConfigByDate; exports2.DynamicVideoMetadata = DynamicVideoMetadata; exports2.Engagement = Engagement; exports2.EntityAtTextRange = EntityAtTextRange; exports2.Event = Event; exports2.EventSourceGroup = EventSourceGroup; exports2.Experience = Experience; exports2.ExtendedCredit = ExtendedCredit; exports2.ExtendedCreditAllocationConfig = ExtendedCreditAllocationConfig; exports2.ExtendedCreditInvoiceGroup = ExtendedCreditInvoiceGroup; exports2.ExternalEventSource = ExternalEventSource; exports2.FAMEExportConfig = FAMEExportConfig; exports2.FlexibleTargeting = FlexibleTargeting; exports2.Flight = Flight; exports2.FundingSourceDetails = FundingSourceDetails; exports2.FundingSourceDetailsCoupon = FundingSourceDetailsCoupon; exports2.FundraiserPersonToCharity = FundraiserPersonToCharity; exports2.Group = Group; exports2.HasLeadAccess = HasLeadAccess; exports2.HighDemandPeriod = HighDemandPeriod; exports2.HighDemandPeriodTimeSuggestionWeeklySegment = HighDemandPeriodTimeSuggestionWeeklySegment; exports2.HomeListing = HomeListing; exports2.Hotel = Hotel; exports2.HotelRoom = HotelRoom; exports2.IDName = IDName; exports2.IGBCAdsPermission = IGBCAdsPermission; exports2.IGComment = IGComment; exports2.IGCommentFromUser = IGCommentFromUser; exports2.IGMedia = IGMedia; exports2.IGShoppingProductAppeal = IGShoppingProductAppeal; exports2.IGShoppingReviewStatus = IGShoppingReviewStatus; exports2.IGShoppingReviewStatusOnsiteEligibility = IGShoppingReviewStatusOnsiteEligibility; exports2.IGShoppingReviewStatusReasonWithHelpMessage = IGShoppingReviewStatusReasonWithHelpMessage; exports2.IGUpcomingEvent = IGUpcomingEvent; exports2.IGUser = IGUser; exports2.IGVideoCopyrightCheckMatchesInformation = IGVideoCopyrightCheckMatchesInformation; exports2.IGVideoCopyrightCheckStatus = IGVideoCopyrightCheckStatus; exports2.ImageCopyright = ImageCopyright; exports2.InsightsResult = InsightsResult; exports2.InsightsValue = InsightsValue; exports2.InstagramCarousel = InstagramCarousel; exports2.InstagramComment = InstagramComment; exports2.InstagramInsightsResult = InstagramInsightsResult; exports2.InstagramInsightsValue = InstagramInsightsValue; exports2.InstagramMedia = InstagramMedia; exports2.InstagramShoppingMerchantReviewMessage = InstagramShoppingMerchantReviewMessage; exports2.InstagramUser = InstagramUser; exports2.InstagramVideoMetadata = InstagramVideoMetadata; exports2.IosAppLink = IosAppLink; exports2.JobOpening = JobOpening; exports2.KeyValue = KeyValue; exports2.Lead = Lead; exports2.LeadGenAppointmentBookingInfo = LeadGenAppointmentBookingInfo; exports2.LeadGenAppointmentSlotsByDay = LeadGenAppointmentSlotsByDay; exports2.LeadGenAppointmentTimeSlot = LeadGenAppointmentTimeSlot; exports2.LeadGenConditionalQuestionsGroupChoices = LeadGenConditionalQuestionsGroupChoices; exports2.LeadGenConditionalQuestionsGroupQuestions = LeadGenConditionalQuestionsGroupQuestions; exports2.LeadGenContextCard = LeadGenContextCard; exports2.LeadGenCustomDisclaimer = LeadGenCustomDisclaimer; exports2.LeadGenCustomDisclaimerBody = LeadGenCustomDisclaimerBody; exports2.LeadGenDraftQuestion = LeadGenDraftQuestion; exports2.LeadGenLegalContent = LeadGenLegalContent; exports2.LeadGenLegalContentCheckbox = LeadGenLegalContentCheckbox; exports2.LeadGenPostSubmissionCheckResult = LeadGenPostSubmissionCheckResult; exports2.LeadGenPrivacyPolicy = LeadGenPrivacyPolicy; exports2.LeadGenQuestion = LeadGenQuestion; exports2.LeadGenQuestionOption = LeadGenQuestionOption; exports2.LeadGenThankYouPage = LeadGenThankYouPage; exports2.LeadGenURLEntityAtRanges = LeadGenURLEntityAtRanges; exports2.LeadgenForm = LeadgenForm; exports2.LifeEvent = LifeEvent; exports2.Link = Link; exports2.LiveVideo = LiveVideo; exports2.LiveVideoAdBreakConfig = LiveVideoAdBreakConfig; exports2.LiveVideoError = LiveVideoError; exports2.LiveVideoInputStream = LiveVideoInputStream; exports2.LiveVideoRecommendedEncoderSettings = LiveVideoRecommendedEncoderSettings; exports2.LiveVideoTargeting = LiveVideoTargeting; exports2.LocalServiceBusiness = LocalServiceBusiness; exports2.Location = Location; exports2.LookalikeSpec = LookalikeSpec; exports2.MailingAddress = MailingAddress; exports2.ManagedPartnerBusiness = ManagedPartnerBusiness; exports2.ManagedPartnerExtendedCredit = ManagedPartnerExtendedCredit; exports2.MediaFingerprint = MediaFingerprint; exports2.MediaTitle = MediaTitle; exports2.MessagingFeatureReview = MessagingFeatureReview; exports2.MessagingFeatureStatus = MessagingFeatureStatus; exports2.MessengerAdsPartialAutomatedStepList = MessengerAdsPartialAutomatedStepList; exports2.MessengerProfile = MessengerProfile; exports2.MinimumBudget = MinimumBudget; exports2.MusicVideoCopyright = MusicVideoCopyright; exports2.NullNode = NullNode; exports2.OfflineConversionDataSet = OfflineConversionDataSet; exports2.OfflineConversionDataSetPermissions = OfflineConversionDataSetPermissions; exports2.OfflineConversionDataSetUpload = OfflineConversionDataSetUpload; exports2.OfflineConversionDataSetUsage = OfflineConversionDataSetUsage; exports2.OffsitePixel = OffsitePixel; exports2.OmegaCustomerTrx = OmegaCustomerTrx; exports2.OpenBridgeConfiguration = OpenBridgeConfiguration; exports2.OpenGraphContext = OpenGraphContext; exports2.OutcomePredictionPoint = OutcomePredictionPoint; exports2.Page = Page; exports2.PageAboutStoryComposedBlock = PageAboutStoryComposedBlock; exports2.PageAboutStoryComposedBlockEntityRanges = PageAboutStoryComposedBlockEntityRanges; exports2.PageAboutStoryComposedBlockInlineStyle = PageAboutStoryComposedBlockInlineStyle; exports2.PageCallToAction = PageCallToAction; exports2.PageCategory = PageCategory; exports2.PageChangeProposal = PageChangeProposal; exports2.PageParking = PageParking; exports2.PagePaymentOptions = PagePaymentOptions; exports2.PagePost = PagePost; exports2.PagePostExperiment = PagePostExperiment; exports2.PageRestaurantServices = PageRestaurantServices; exports2.PageRestaurantSpecialties = PageRestaurantSpecialties; exports2.PageSavedFilter = PageSavedFilter; exports2.PageSettings = PageSettings; exports2.PageStartInfo = PageStartInfo; exports2.PageThreadOwner = PageThreadOwner; exports2.PageUpcomingChange = PageUpcomingChange; exports2.PageUserMessageThreadLabel = PageUserMessageThreadLabel; exports2.PartnerStudy = PartnerStudy; exports2.PaymentEnginePayment = PaymentEnginePayment; exports2.PaymentPricepoints = PaymentPricepoints; exports2.PaymentSubscription = PaymentSubscription; exports2.Permission = Permission; exports2.Persona = Persona; exports2.Photo = Photo; exports2.Place = Place; exports2.PlaceTopic = PlaceTopic; exports2.PlatformImageSource = PlatformImageSource; exports2.PlayableContent = PlayableContent; exports2.Post = Post; exports2.Privacy = Privacy; exports2.PrivateLiftStudyInstance = PrivateLiftStudyInstance; exports2.ProductCatalog = ProductCatalog; exports2.ProductCatalogCategory = ProductCatalogCategory; exports2.ProductCatalogDataSource = ProductCatalogDataSource; exports2.ProductCatalogDiagnosticGroup = ProductCatalogDiagnosticGroup; exports2.ProductCatalogHotelRoomsBatch = ProductCatalogHotelRoomsBatch; exports2.ProductCatalogImageSettings = ProductCatalogImageSettings; exports2.ProductCatalogImageSettingsOperation = ProductCatalogImageSettingsOperation; exports2.ProductCatalogPricingVariablesBatch = ProductCatalogPricingVariablesBatch; exports2.ProductCatalogProductSetsBatch = ProductCatalogProductSetsBatch; exports2.ProductEventStat = ProductEventStat; exports2.ProductFeed = ProductFeed; exports2.ProductFeedMissingFeedItemReplacement = ProductFeedMissingFeedItemReplacement; exports2.ProductFeedRule = ProductFeedRule; exports2.ProductFeedRuleSuggestion = ProductFeedRuleSuggestion; exports2.ProductFeedSchedule = ProductFeedSchedule; exports2.ProductFeedUpload = ProductFeedUpload; exports2.ProductFeedUploadError = ProductFeedUploadError; exports2.ProductFeedUploadErrorReport = ProductFeedUploadErrorReport; exports2.ProductFeedUploadErrorSample = ProductFeedUploadErrorSample; exports2.ProductGroup = ProductGroup; exports2.ProductImage = ProductImage; exports2.ProductItem = ProductItem; exports2.ProductItemCommerceInsights = ProductItemCommerceInsights; exports2.ProductItemError = ProductItemError; exports2.ProductItemImporterAddress = ProductItemImporterAddress; exports2.ProductItemLocalInfo = ProductItemLocalInfo; exports2.ProductItemLocalInfoLatLongShape = ProductItemLocalInfoLatLongShape; exports2.ProductSet = ProductSet; exports2.ProductSetMetadata = ProductSetMetadata; exports2.ProductVariant = ProductVariant; exports2.Profile = Profile; exports2.ProfilePictureSource = ProfilePictureSource; exports2.PublisherBlockList = PublisherBlockList; exports2.RTBDynamicPost = RTBDynamicPost; exports2.RawCustomAudience = RawCustomAudience; exports2.ReachFrequencyActivity = ReachFrequencyActivity; exports2.ReachFrequencyAdFormat = ReachFrequencyAdFormat; exports2.ReachFrequencyCurveLowerConfidenceRange = ReachFrequencyCurveLowerConfidenceRange; exports2.ReachFrequencyCurveUpperConfidenceRange = ReachFrequencyCurveUpperConfidenceRange; exports2.ReachFrequencyDayPart = ReachFrequencyDayPart; exports2.ReachFrequencyEstimatesCurve = ReachFrequencyEstimatesCurve; exports2.ReachFrequencyEstimatesPlacementBreakdown = ReachFrequencyEstimatesPlacementBreakdown; exports2.ReachFrequencyPrediction = ReachFrequencyPrediction; exports2.ReachFrequencySpec = ReachFrequencySpec; exports2.Recommendation = Recommendation; exports2.RevSharePolicy = RevSharePolicy; exports2.RichMediaElement = RichMediaElement; exports2.SavedAudience = SavedAudience; exports2.SavedMessageResponse = SavedMessageResponse; exports2.SecuritySettings = SecuritySettings; exports2.ShadowIGHashtag = ShadowIGHashtag; exports2.ShadowIGMediaBuilder = ShadowIGMediaBuilder; exports2.ShadowIGMediaCollaborators = ShadowIGMediaCollaborators; exports2.ShadowIGMediaProductTags = ShadowIGMediaProductTags; exports2.ShadowIGUserCatalogProductSearch = ShadowIGUserCatalogProductSearch; exports2.ShadowIGUserCatalogProductVariant = ShadowIGUserCatalogProductVariant; exports2.Shop = Shop; exports2.SplitTestWinner = SplitTestWinner; exports2.StoreCatalogSettings = StoreCatalogSettings; exports2.Stories = Stories; exports2.SystemUser = SystemUser; exports2.Tab = Tab; exports2.Targeting = Targeting; exports2.TargetingAutomation = TargetingAutomation; exports2.TargetingDynamicRule = TargetingDynamicRule; exports2.TargetingGeoLocation = TargetingGeoLocation; exports2.TargetingGeoLocationCity = TargetingGeoLocationCity; exports2.TargetingGeoLocationCustomLocation = TargetingGeoLocationCustomLocation; exports2.TargetingGeoLocationElectoralDistrict = TargetingGeoLocationElectoralDistrict; exports2.TargetingGeoLocationGeoEntities = TargetingGeoLocationGeoEntities; exports2.TargetingGeoLocationLocationCluster = TargetingGeoLocationLocationCluster; exports2.TargetingGeoLocationMarket = TargetingGeoLocationMarket; exports2.TargetingGeoLocationPlace = TargetingGeoLocationPlace; exports2.TargetingGeoLocationPoliticalDistrict = TargetingGeoLocationPoliticalDistrict; exports2.TargetingGeoLocationRegion = TargetingGeoLocationRegion; exports2.TargetingGeoLocationZip = TargetingGeoLocationZip; exports2.TargetingProductAudienceSpec = TargetingProductAudienceSpec; exports2.TargetingProductAudienceSubSpec = TargetingProductAudienceSubSpec; exports2.TargetingProspectingAudience = TargetingProspectingAudience; exports2.TargetingRelaxation = TargetingRelaxation; exports2.TargetingSentenceLine = TargetingSentenceLine; exports2.TextWithEntities = TextWithEntities; exports2.TrackingAndConversionWithDefaults = TrackingAndConversionWithDefaults; exports2.URL = URL2; exports2.UnifiedThread = UnifiedThread; exports2.User = User2; exports2.UserAvailableCatalogs = UserAvailableCatalogs; exports2.UserCoverPhoto = UserCoverPhoto; exports2.UserDevice = UserDevice; exports2.UserIDForApp = UserIDForApp; exports2.UserIDForPage = UserIDForPage; exports2.UserLeadGenDisclaimerResponse = UserLeadGenDisclaimerResponse; exports2.UserLeadGenFieldData = UserLeadGenFieldData; exports2.UserPageOneTimeOptInTokenSettings = UserPageOneTimeOptInTokenSettings; exports2.UserPaymentMobilePricepoints = UserPaymentMobilePricepoints; exports2.ValueBasedEligibleSource = ValueBasedEligibleSource; exports2.Vehicle = Vehicle; exports2.VehicleOffer = VehicleOffer; exports2.VideoCopyright = VideoCopyright; exports2.VideoCopyrightCheckStatus = VideoCopyrightCheckStatus; exports2.VideoCopyrightConditionGroup = VideoCopyrightConditionGroup; exports2.VideoCopyrightGeoGate = VideoCopyrightGeoGate; exports2.VideoCopyrightRule = VideoCopyrightRule; exports2.VideoCopyrightSegment = VideoCopyrightSegment; exports2.VideoList = VideoList; exports2.VideoPoll = VideoPoll; exports2.VideoStatus = VideoStatus; exports2.VideoStatusError = VideoStatusError; exports2.VideoStatusProcessingPhase = VideoStatusProcessingPhase; exports2.VideoStatusPublishingPhase = VideoStatusPublishingPhase; exports2.VideoStatusUploadingPhase = VideoStatusUploadingPhase; exports2.VideoThumbnail = VideoThumbnail; exports2.VideoUploadLimits = VideoUploadLimits; exports2.VoipInfo = VoipInfo; exports2.WebAppLink = WebAppLink; exports2.WhatsAppBusinessAccount = WhatsAppBusinessAccount; exports2.WhatsAppBusinessHealthStatus = WhatsAppBusinessHealthStatus; exports2.WhatsAppBusinessHealthStatusForMessageSend = WhatsAppBusinessHealthStatusForMessageSend; exports2.WhatsAppBusinessPartnerClientVerificationSubmission = WhatsAppBusinessPartnerClientVerificationSubmission; exports2.WhatsAppBusinessPreVerifiedPhoneNumber = WhatsAppBusinessPreVerifiedPhoneNumber; exports2.WhatsAppBusinessProfile = WhatsAppBusinessProfile; exports2.WindowsAppLink = WindowsAppLink; exports2.WindowsPhoneAppLink = WindowsPhoneAppLink; exports2.WoodhengePurchasedPAYGReceipt = WoodhengePurchasedPAYGReceipt; exports2.WorkUserFrontline = WorkUserFrontline; } }); // .wrangler/tmp/bundle-vFWQ9Q/middleware-loader.entry.ts init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // .wrangler/tmp/bundle-vFWQ9Q/middleware-insertion-facade.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // src/index.ts init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/agents/dist/mcp/index.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/agents/dist/chunk-XG52S6YY.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/agents/dist/chunk-HMLY7DHA.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var __typeError = /* @__PURE__ */ __name((msg) => { throw TypeError(msg); }, "__typeError"); var __accessCheck = /* @__PURE__ */ __name((obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg), "__accessCheck"); var __privateGet = /* @__PURE__ */ __name((obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)), "__privateGet"); var __privateAdd = /* @__PURE__ */ __name((obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value), "__privateAdd"); var __privateSet = /* @__PURE__ */ __name((obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value), "__privateSet"); var __privateMethod = /* @__PURE__ */ __name((obj, member, method2) => (__accessCheck(obj, member, "access private method"), method2), "__privateMethod"); // node_modules/partyserver/dist/index.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); import { DurableObject } from "cloudflare:workers"; // node_modules/nanoid/index.browser.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/nanoid/url-alphabet/index.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"; // node_modules/nanoid/index.browser.js var nanoid = /* @__PURE__ */ __name((size = 21) => { let id = ""; let bytes = crypto.getRandomValues(new Uint8Array(size |= 0)); while (size--) { id += urlAlphabet[bytes[size] & 63]; } return id; }, "nanoid"); // node_modules/partyserver/dist/index.js if (!("OPEN" in WebSocket)) { const WebSocketStatus = { // @ts-expect-error CONNECTING: WebSocket.READY_STATE_CONNECTING, // @ts-expect-error OPEN: WebSocket.READY_STATE_OPEN, // @ts-expect-error CLOSING: WebSocket.READY_STATE_CLOSING, // @ts-expect-error CLOSED: WebSocket.READY_STATE_CLOSED }; Object.assign(WebSocket, WebSocketStatus); Object.assign(WebSocket.prototype, WebSocketStatus); } var AttachmentCache = class { static { __name(this, "AttachmentCache"); } #cache = /* @__PURE__ */ new WeakMap(); get(ws) { let attachment = this.#cache.get(ws); if (!attachment) { attachment = WebSocket.prototype.deserializeAttachment.call( ws ); if (attachment !== void 0) { this.#cache.set(ws, attachment); } else { throw new Error( "Missing websocket attachment. This is most likely an issue in PartyServer, please open an issue at https://github.com/threepointone/partyserver/issues" ); } } return attachment; } set(ws, attachment) { this.#cache.set(ws, attachment); WebSocket.prototype.serializeAttachment.call(ws, attachment); } }; var attachments = new AttachmentCache(); var connections = /* @__PURE__ */ new WeakSet(); var isWrapped = /* @__PURE__ */ __name((ws) => { return connections.has(ws); }, "isWrapped"); var createLazyConnection = /* @__PURE__ */ __name((ws) => { if (isWrapped(ws)) { return ws; } let initialState = void 0; if ("state" in ws) { initialState = ws.state; delete ws.state; } const connection = Object.defineProperties(ws, { id: { get() { return attachments.get(ws).__pk.id; } }, server: { get() { return attachments.get(ws).__pk.server; } }, socket: { get() { return ws; } }, state: { get() { return ws.deserializeAttachment(); } }, setState: { value: /* @__PURE__ */ __name(function setState(setState) { let state; if (setState instanceof Function) { state = setState(this.state); } else { state = setState; } ws.serializeAttachment(state); return state; }, "setState") }, deserializeAttachment: { value: /* @__PURE__ */ __name(function deserializeAttachment() { const attachment = attachments.get(ws); return attachment.__user ?? null; }, "deserializeAttachment") }, serializeAttachment: { value: /* @__PURE__ */ __name(function serializeAttachment(attachment) { const setting = { ...attachments.get(ws), __user: attachment ?? null }; attachments.set(ws, setting); }, "serializeAttachment") } }); if (initialState) { connection.setState(initialState); } connections.add(connection); return connection; }, "createLazyConnection"); var HibernatingConnectionIterator = class { static { __name(this, "HibernatingConnectionIterator"); } constructor(state, tag) { this.state = state; this.tag = tag; } index = 0; sockets; [Symbol.iterator]() { return this; } next() { const sockets = ( // biome-ignore lint/suspicious/noAssignInExpressions: <explanation> this.sockets ?? (this.sockets = this.state.getWebSockets(this.tag)) ); let socket; while (socket = sockets[this.index++]) { if (socket.readyState === WebSocket.READY_STATE_OPEN) { const value = createLazyConnection(socket); return { done: false, value }; } } return { done: true, value: void 0 }; } }; var InMemoryConnectionManager = class { static { __name(this, "InMemoryConnectionManager"); } #connections = /* @__PURE__ */ new Map(); tags = /* @__PURE__ */ new WeakMap(); getCount() { return this.#connections.size; } getConnection(id) { return this.#connections.get(id); } *getConnections(tag) { if (!tag) { yield* this.#connections.values().filter( (c) => c.readyState === WebSocket.READY_STATE_OPEN ); return; } for (const connection of this.#connections.values()) { const connectionTags = this.tags.get(connection) ?? []; if (connectionTags.includes(tag)) { yield connection; } } } accept(connection, options) { connection.accept(); this.#connections.set(connection.id, connection); this.tags.set(connection, [ // make sure we have id tag connection.id, ...options.tags.filter((t) => t !== connection.id) ]); const removeConnection = /* @__PURE__ */ __name(() => { this.#connections.delete(connection.id); connection.removeEventListener("close", removeConnection); connection.removeEventListener("error", removeConnection); }, "removeConnection"); connection.addEventListener("close", removeConnection); connection.addEventListener("error", removeConnection); return connection; } }; var HibernatingConnectionManager = class { static { __name(this, "HibernatingConnectionManager"); } constructor(controller) { this.controller = controller; } getCount() { return Number(this.controller.getWebSockets().length); } getConnection(id) { const sockets = this.controller.getWebSockets(id); if (sockets.length === 0) return void 0; if (sockets.length === 1) return createLazyConnection(sockets[0]); throw new Error( `More than one connection found for id ${id}. Did you mean to use getConnections(tag) instead?` ); } getConnections(tag) { return new HibernatingConnectionIterator(this.controller, tag); } accept(connection, options) { const tags = [ connection.id, ...options.tags.filter((t) => t !== connection.id) ]; if (tags.length > 10) { throw new Error( "A connection can only have 10 tags, including the default id tag." ); } for (const tag of tags) { if (typeof tag !== "string") { throw new Error(`A connection tag must be a string. Received: ${tag}`); } if (tag === "") { throw new Error("A connection tag must not be an empty string."); } if (tag.length > 256) { throw new Error("A connection tag must not exceed 256 characters"); } } this.controller.acceptWebSocket(connection, tags); connection.serializeAttachment({ __pk: { id: connection.id, server: options.server }, __user: null }); return createLazyConnection(connection); } }; var Server = class extends DurableObject { static { __name(this, "Server"); } static options = { hibernate: false }; #status = "zero"; #ParentClass = Object.getPrototypeOf(this).constructor; #connectionManager = this.#ParentClass.options.hibernate ? new HibernatingConnectionManager(this.ctx) : new InMemoryConnectionManager(); // biome-ignore lint/complexity/noUselessConstructor: <explanation> constructor(ctx, env2) { super(ctx, env2); } /** * Handle incoming requests to the server. */ async fetch(request) { if (!this.#_name) { const room = request.headers.get("x-partykit-room"); if ( // !namespace || !room ) { throw new Error(`Missing namespace or room headers when connecting to ${this.#ParentClass.name}. Did you try connecting directly to this Durable Object? Try using getServerByName(namespace, id) instead.`); } await this.setName(room); } try { const url = new URL(request.url); if (url.pathname === "/cdn-cgi/partyserver/set-name/") { return Response.json({ ok: true }); } if (request.headers.get("Upgrade")?.toLowerCase() !== "websocket") { return await this.onRequest(request); } else { const { 0: clientWebSocket, 1: serverWebSocket } = new WebSocketPair(); let connectionId = url.searchParams.get("_pk"); if (!connectionId) { connectionId = nanoid(); } let connection = Object.assign(serverWebSocket, { id: connectionId, server: this.name, state: null, setState(setState) { let state; if (setState instanceof Function) { state = setState(this.state); } else { state = setState; } this.state = state; return this.state; } }); const ctx = { request }; const tags = await this.getConnectionTags(connection, ctx); connection = this.#connectionManager.accept(connection, { tags, server: this.name }); if (!this.#ParentClass.options.hibernate) { this.#attachSocketEventHandlers(connection); } await this.onConnect(connection, ctx); return new Response(null, { status: 101, webSocket: clientWebSocket }); } } catch (err) { console.error( `Error in ${this.#ParentClass.name}:${this.name} fetch:`, err ); if (!(err instanceof Error)) throw err; if (request.headers.get("Upgrade") === "websocket") { const pair = new WebSocketPair(); pair[1].accept(); pair[1].send(JSON.stringify({ error: err.stack })); pair[1].close(1011, "Uncaught exception during session setup"); return new Response(null, { status: 101, webSocket: pair[0] }); } else { return new Response(err.stack, { status: 500 }); } } } async webSocketMessage(ws, message) { const connection = createLazyConnection(ws); await this.setName(connection.server); if (this.#status !== "started") { await this.#initialize(); } return this.onMessage(connection, message); } async webSocketClose(ws, code, reason, wasClean) { const connection = createLazyConnection(ws); await this.setName(connection.server); if (this.#status !== "started") { await this.#initialize(); } return this.onClose(connection, code, reason, wasClean); } async webSocketError(ws, error3) { const connection = createLazyConnection(ws); await this.setName(connection.server); if (this.#status !== "started") { await this.#initialize(); } return this.onError(connection, error3); } async #initialize() { await this.ctx.blockConcurrencyWhile(async () => { this.#status = "starting"; await this.onStart(); this.#status = "started"; }); } #attachSocketEventHandlers(connection) { const handleMessageFromClient = /* @__PURE__ */ __name((event) => { this.onMessage(connection, event.data)?.catch((e) => { console.error("onMessage error:", e); }); }, "handleMessageFromClient"); const handleCloseFromClient = /* @__PURE__ */ __name((event) => { connection.removeEventListener("message", handleMessageFromClient); connection.removeEventListener("close", handleCloseFromClient); this.onClose(connection, event.code, event.reason, event.wasClean)?.catch( (e) => { console.error("onClose error:", e); } ); }, "handleCloseFromClient"); const handleErrorFromClient = /* @__PURE__ */ __name((e) => { connection.removeEventListener("message", handleMessageFromClient); connection.removeEventListener("error", handleErrorFromClient); this.onError(connection, e.error)?.catch((e2) => { console.error("onError error:", e2); }); }, "handleErrorFromClient"); connection.addEventListener("close", handleCloseFromClient); connection.addEventListener("error", handleErrorFromClient); connection.addEventListener("message", handleMessageFromClient); } // Public API #_name; #_longErrorAboutNameThrown = false; /** * The name for this server. Write-once-only. */ get name() { if (!this.#_name) { if (!this.#_longErrorAboutNameThrown) { this.#_longErrorAboutNameThrown = true; throw new Error( `Attempting to read .name on ${this.#ParentClass.name} before it was set. The name can be set by explicitly calling .setName(name) on the stub, or by using routePartyKitRequest(). This is a known issue and will be fixed soon. Follow https://github.com/cloudflare/workerd/issues/2240 for more updates.` ); } else { throw new Error( `Attempting to read .name on ${this.#ParentClass.name} before it was set.` ); } } return this.#_name; } // We won't have an await inside this function // but it will be called remotely, // so we need to mark it as async async setName(name) { if (!name) { throw new Error("A name is required."); } if (this.#_name && this.#_name !== name) { throw new Error("This server already has a name."); } this.#_name = name; if (this.#status !== "started") { await this.ctx.blockConcurrencyWhile(async () => { await this.#initialize(); }); } } #sendMessageToConnection(connection, message) { try { connection.send(message); } catch (_e) { connection.close(1011, "Unexpected error"); } } /** Send a message to all connected clients, except connection ids listed in `without` */ broadcast(msg, without) { for (const connection of this.#connectionManager.getConnections()) { if (!without || !without.includes(connection.id)) { this.#sendMessageToConnection(connection, msg); } } } /** Get a connection by connection id */ getConnection(id) { return this.#connectionManager.getConnection(id); } /** * Get all connections. Optionally, you can provide a tag to filter returned connections. * Use `Server#getConnectionTags` to tag the connection on connect. */ getConnections(tag) { return this.#connectionManager.getConnections(tag); } /** * You can tag a connection to filter them in Server#getConnections. * Each connection supports up to 9 tags, each tag max length is 256 characters. */ getConnectionTags(connection, context2) { return []; } // Implemented by the user /** * Called when the server is started for the first time. */ onStart() { } /** * Called when a new connection is made to the server. */ onConnect(connection, ctx) { console.log( `Connection ${connection.id} connected to ${this.#ParentClass.name}:${this.name}` ); } /** * Called when a message is received from a connection. */ onMessage(connection, message) { console.log( `Received message on connection ${this.#ParentClass.name}:${connection.id}` ); console.info( `Implement onMessage on ${this.#ParentClass.name} to handle this message.` ); } /** * Called when a connection is closed. */ onClose(connection, code, reason, wasClean) { } /** * Called when an error occurs on a connection. */ onError(connection, error3) { console.error( `Error on connection ${connection.id} in ${this.#ParentClass.name}:${this.name}:`, error3 ); console.info( `Implement onError on ${this.#ParentClass.name} to handle this error.` ); } /** * Called when a request is made to the server. */ onRequest(request) { console.warn( `onRequest hasn't been implemented on ${this.#ParentClass.name}:${this.name} responding to ${request.url}` ); return new Response("Not implemented", { status: 404 }); } onAlarm() { console.log( `Implement onAlarm on ${this.#ParentClass.name} to handle alarms.` ); } async alarm() { if (this.#status !== "started") { await this.#initialize(); } await this.onAlarm(); } }; // node_modules/cron-schedule/dist/cron-parser.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/cron-schedule/dist/cron.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/cron-schedule/dist/utils.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function extractDateElements(date) { return { second: date.getSeconds(), minute: date.getMinutes(), hour: date.getHours(), day: date.getDate(), month: date.getMonth(), weekday: date.getDay(), year: date.getFullYear() }; } __name(extractDateElements, "extractDateElements"); function getDaysInMonth(year, month) { return new Date(year, month + 1, 0).getDate(); } __name(getDaysInMonth, "getDaysInMonth"); function getDaysBetweenWeekdays(weekday1, weekday2) { if (weekday1 <= weekday2) { return weekday2 - weekday1; } return 6 - weekday1 + weekday2 + 1; } __name(getDaysBetweenWeekdays, "getDaysBetweenWeekdays"); // node_modules/cron-schedule/dist/cron.js var Cron = class { static { __name(this, "Cron"); } constructor({ seconds, minutes, hours, days, months, weekdays }) { if (!seconds || seconds.size === 0) throw new Error("There must be at least one allowed second."); if (!minutes || minutes.size === 0) throw new Error("There must be at least one allowed minute."); if (!hours || hours.size === 0) throw new Error("There must be at least one allowed hour."); if (!months || months.size === 0) throw new Error("There must be at least one allowed month."); if ((!weekdays || weekdays.size === 0) && (!days || days.size === 0)) throw new Error("There must be at least one allowed day or weekday."); this.seconds = Array.from(seconds).sort((a, b) => a - b); this.minutes = Array.from(minutes).sort((a, b) => a - b); this.hours = Array.from(hours).sort((a, b) => a - b); this.days = Array.from(days).sort((a, b) => a - b); this.months = Array.from(months).sort((a, b) => a - b); this.weekdays = Array.from(weekdays).sort((a, b) => a - b); const validateData = /* @__PURE__ */ __name((name, data, constraint) => { if (data.some((x) => typeof x !== "number" || x % 1 !== 0 || x < constraint.min || x > constraint.max)) { throw new Error(`${name} must only consist of integers which are within the range of ${constraint.min} and ${constraint.max}`); } }, "validateData"); validateData("seconds", this.seconds, { min: 0, max: 59 }); validateData("minutes", this.minutes, { min: 0, max: 59 }); validateData("hours", this.hours, { min: 0, max: 23 }); validateData("days", this.days, { min: 1, max: 31 }); validateData("months", this.months, { min: 0, max: 11 }); validateData("weekdays", this.weekdays, { min: 0, max: 6 }); this.reversed = { seconds: this.seconds.map((x) => x).reverse(), minutes: this.minutes.map((x) => x).reverse(), hours: this.hours.map((x) => x).reverse(), days: this.days.map((x) => x).reverse(), months: this.months.map((x) => x).reverse(), weekdays: this.weekdays.map((x) => x).reverse() }; } /** * Find the next or previous hour, starting from the given start hour that matches the hour constraint. * startHour itself might also be allowed. */ findAllowedHour(dir3, startHour) { return dir3 === "next" ? this.hours.find((x) => x >= startHour) : this.reversed.hours.find((x) => x <= startHour); } /** * Find the next or previous minute, starting from the given start minute that matches the minute constraint. * startMinute itself might also be allowed. */ findAllowedMinute(dir3, startMinute) { return dir3 === "next" ? this.minutes.find((x) => x >= startMinute) : this.reversed.minutes.find((x) => x <= startMinute); } /** * Find the next or previous second, starting from the given start second that matches the second constraint. * startSecond itself IS NOT allowed. */ findAllowedSecond(dir3, startSecond) { return dir3 === "next" ? this.seconds.find((x) => x > startSecond) : this.reversed.seconds.find((x) => x < startSecond); } /** * Find the next or previous time, starting from the given start time that matches the hour, minute * and second constraints. startTime itself might also be allowed. */ findAllowedTime(dir3, startTime) { let hour = this.findAllowedHour(dir3, startTime.hour); if (hour !== void 0) { if (hour === startTime.hour) { let minute = this.findAllowedMinute(dir3, startTime.minute); if (minute !== void 0) { if (minute === startTime.minute) { const second = this.findAllowedSecond(dir3, startTime.second); if (second !== void 0) { return { hour, minute, second }; } minute = this.findAllowedMinute(dir3, dir3 === "next" ? startTime.minute + 1 : startTime.minute - 1); if (minute !== void 0) { return { hour, minute, second: dir3 === "next" ? this.seconds[0] : this.reversed.seconds[0] }; } } else { return { hour, minute, second: dir3 === "next" ? this.seconds[0] : this.reversed.seconds[0] }; } } hour = this.findAllowedHour(dir3, dir3 === "next" ? startTime.hour + 1 : startTime.hour - 1); if (hour !== void 0) { return { hour, minute: dir3 === "next" ? this.minutes[0] : this.reversed.minutes[0], second: dir3 === "next" ? this.seconds[0] : this.reversed.seconds[0] }; } } else { return { hour, minute: dir3 === "next" ? this.minutes[0] : this.reversed.minutes[0], second: dir3 === "next" ? this.seconds[0] : this.reversed.seconds[0] }; } } return void 0; } /** * Find the next or previous day in the given month, starting from the given startDay * that matches either the day or the weekday constraint. startDay itself might also be allowed. */ findAllowedDayInMonth(dir3, year, month, startDay) { var _a, _b; if (startDay < 1) throw new Error("startDay must not be smaller than 1."); const daysInMonth = getDaysInMonth(year, month); const daysRestricted = this.days.length !== 31; const weekdaysRestricted = this.weekdays.length !== 7; if (!daysRestricted && !weekdaysRestricted) { if (startDay > daysInMonth) { return dir3 === "next" ? void 0 : daysInMonth; } return startDay; } let allowedDayByDays; if (daysRestricted) { allowedDayByDays = dir3 === "next" ? this.days.find((x) => x >= startDay) : this.reversed.days.find((x) => x <= startDay); if (allowedDayByDays !== void 0 && allowedDayByDays > daysInMonth) { allowedDayByDays = void 0; } } let allowedDayByWeekdays; if (weekdaysRestricted) { const startWeekday = new Date(year, month, startDay).getDay(); const nearestAllowedWeekday = dir3 === "next" ? (_a = this.weekdays.find((x) => x >= startWeekday)) !== null && _a !== void 0 ? _a : this.weekdays[0] : (_b = this.reversed.weekdays.find((x) => x <= startWeekday)) !== null && _b !== void 0 ? _b : this.reversed.weekdays[0]; if (nearestAllowedWeekday !== void 0) { const daysBetweenWeekdays = dir3 === "next" ? getDaysBetweenWeekdays(startWeekday, nearestAllowedWeekday) : getDaysBetweenWeekdays(nearestAllowedWeekday, startWeekday); allowedDayByWeekdays = dir3 === "next" ? startDay + daysBetweenWeekdays : startDay - daysBetweenWeekdays; if (allowedDayByWeekdays > daysInMonth || allowedDayByWeekdays < 1) { allowedDayByWeekdays = void 0; } } } if (allowedDayByDays !== void 0 && allowedDayByWeekdays !== void 0) { return dir3 === "next" ? Math.min(allowedDayByDays, allowedDayByWeekdays) : Math.max(allowedDayByDays, allowedDayByWeekdays); } if (allowedDayByDays !== void 0) { return allowedDayByDays; } if (allowedDayByWeekdays !== void 0) { return allowedDayByWeekdays; } return void 0; } /** Gets the next date starting from the given start date or now. */ getNextDate(startDate = /* @__PURE__ */ new Date()) { const startDateElements = extractDateElements(startDate); let minYear = startDateElements.year; let startIndexMonth = this.months.findIndex((x) => x >= startDateElements.month); if (startIndexMonth === -1) { startIndexMonth = 0; minYear++; } const maxIterations = this.months.length * 5; for (let i = 0; i < maxIterations; i++) { const year = minYear + Math.floor((startIndexMonth + i) / this.months.length); const month = this.months[(startIndexMonth + i) % this.months.length]; const isStartMonth = year === startDateElements.year && month === startDateElements.month; let day = this.findAllowedDayInMonth("next", year, month, isStartMonth ? startDateElements.day : 1); let isStartDay = isStartMonth && day === startDateElements.day; if (day !== void 0 && isStartDay) { const nextTime = this.findAllowedTime("next", startDateElements); if (nextTime !== void 0) { return new Date(year, month, day, nextTime.hour, nextTime.minute, nextTime.second); } day = this.findAllowedDayInMonth("next", year, month, day + 1); isStartDay = false; } if (day !== void 0 && !isStartDay) { return new Date(year, month, day, this.hours[0], this.minutes[0], this.seconds[0]); } } throw new Error("No valid next date was found."); } /** Gets the specified amount of future dates starting from the given start date or now. */ getNextDates(amount, startDate) { const dates = []; let nextDate; for (let i = 0; i < amount; i++) { nextDate = this.getNextDate(nextDate !== null && nextDate !== void 0 ? nextDate : startDate); dates.push(nextDate); } return dates; } /** * Get an ES6 compatible iterator which iterates over the next dates starting from startDate or now. * The iterator runs until the optional endDate is reached or forever. */ *getNextDatesIterator(startDate, endDate) { let nextDate; while (true) { nextDate = this.getNextDate(nextDate !== null && nextDate !== void 0 ? nextDate : startDate); if (endDate && endDate.getTime() < nextDate.getTime()) { return; } yield nextDate; } } /** Gets the previous date starting from the given start date or now. */ getPrevDate(startDate = /* @__PURE__ */ new Date()) { const startDateElements = extractDateElements(startDate); let maxYear = startDateElements.year; let startIndexMonth = this.reversed.months.findIndex((x) => x <= startDateElements.month); if (startIndexMonth === -1) { startIndexMonth = 0; maxYear--; } const maxIterations = this.reversed.months.length * 5; for (let i = 0; i < maxIterations; i++) { const year = maxYear - Math.floor((startIndexMonth + i) / this.reversed.months.length); const month = this.reversed.months[(startIndexMonth + i) % this.reversed.months.length]; const isStartMonth = year === startDateElements.year && month === startDateElements.month; let day = this.findAllowedDayInMonth("prev", year, month, isStartMonth ? startDateElements.day : ( // Start searching from the last day of the month. getDaysInMonth(year, month) )); let isStartDay = isStartMonth && day === startDateElements.day; if (day !== void 0 && isStartDay) { const prevTime = this.findAllowedTime("prev", startDateElements); if (prevTime !== void 0) { return new Date(year, month, day, prevTime.hour, prevTime.minute, prevTime.second); } if (day > 1) { day = this.findAllowedDayInMonth("prev", year, month, day - 1); isStartDay = false; } } if (day !== void 0 && !isStartDay) { return new Date(year, month, day, this.reversed.hours[0], this.reversed.minutes[0], this.reversed.seconds[0]); } } throw new Error("No valid previous date was found."); } /** Gets the specified amount of previous dates starting from the given start date or now. */ getPrevDates(amount, startDate) { const dates = []; let prevDate; for (let i = 0; i < amount; i++) { prevDate = this.getPrevDate(prevDate !== null && prevDate !== void 0 ? prevDate : startDate); dates.push(prevDate); } return dates; } /** * Get an ES6 compatible iterator which iterates over the previous dates starting from startDate or now. * The iterator runs until the optional endDate is reached or forever. */ *getPrevDatesIterator(startDate, endDate) { let prevDate; while (true) { prevDate = this.getPrevDate(prevDate !== null && prevDate !== void 0 ? prevDate : startDate); if (endDate && endDate.getTime() > prevDate.getTime()) { return; } yield prevDate; } } /** Returns true when there is a cron date at the given date. */ matchDate(date) { const { second, minute, hour, day, month, weekday } = extractDateElements(date); if (this.seconds.indexOf(second) === -1 || this.minutes.indexOf(minute) === -1 || this.hours.indexOf(hour) === -1 || this.months.indexOf(month) === -1) { return false; } if (this.days.length !== 31 && this.weekdays.length !== 7) { return this.days.indexOf(day) !== -1 || this.weekdays.indexOf(weekday) !== -1; } return this.days.indexOf(day) !== -1 && this.weekdays.indexOf(weekday) !== -1; } }; // node_modules/cron-schedule/dist/cron-parser.js var secondConstraint = { min: 0, max: 59 }; var minuteConstraint = { min: 0, max: 59 }; var hourConstraint = { min: 0, max: 23 }; var dayConstraint = { min: 1, max: 31 }; var monthConstraint = { min: 1, max: 12, aliases: { jan: "1", feb: "2", mar: "3", apr: "4", may: "5", jun: "6", jul: "7", aug: "8", sep: "9", oct: "10", nov: "11", dec: "12" } }; var weekdayConstraint = { min: 0, max: 7, aliases: { mon: "1", tue: "2", wed: "3", thu: "4", fri: "5", sat: "6", sun: "7" } }; var timeNicknames = { "@yearly": "0 0 1 1 *", "@annually": "0 0 1 1 *", "@monthly": "0 0 1 * *", "@weekly": "0 0 * * 0", "@daily": "0 0 * * *", "@hourly": "0 * * * *", "@minutely": "* * * * *" }; function parseElement(element, constraint) { const result = /* @__PURE__ */ new Set(); if (element === "*") { for (let i = constraint.min; i <= constraint.max; i = i + 1) { result.add(i); } return result; } const listElements = element.split(","); if (listElements.length > 1) { for (const listElement of listElements) { const parsedListElement = parseElement(listElement, constraint); for (const x of parsedListElement) { result.add(x); } } return result; } const parseSingleElement = /* @__PURE__ */ __name((singleElement) => { var _a, _b; singleElement = (_b = (_a = constraint.aliases) === null || _a === void 0 ? void 0 : _a[singleElement.toLowerCase()]) !== null && _b !== void 0 ? _b : singleElement; const parsedElement = Number.parseInt(singleElement, 10); if (Number.isNaN(parsedElement)) { throw new Error(`Failed to parse ${element}: ${singleElement} is NaN.`); } if (parsedElement < constraint.min || parsedElement > constraint.max) { throw new Error(`Failed to parse ${element}: ${singleElement} is outside of constraint range of ${constraint.min} - ${constraint.max}.`); } return parsedElement; }, "parseSingleElement"); const rangeSegments = /^(([0-9a-zA-Z]+)-([0-9a-zA-Z]+)|\*)(\/([0-9]+))?$/.exec(element); if (rangeSegments === null) { result.add(parseSingleElement(element)); return result; } let parsedStart = rangeSegments[1] === "*" ? constraint.min : parseSingleElement(rangeSegments[2]); const parsedEnd = rangeSegments[1] === "*" ? constraint.max : parseSingleElement(rangeSegments[3]); if (constraint === weekdayConstraint && parsedStart === 7 && // this check ensures that sun-sun is not incorrectly parsed as [0,1,2,3,4,5,6] parsedEnd !== 7) { parsedStart = 0; } if (parsedStart > parsedEnd) { throw new Error(`Failed to parse ${element}: Invalid range (start: ${parsedStart}, end: ${parsedEnd}).`); } const step = rangeSegments[5]; let parsedStep = 1; if (step !== void 0) { parsedStep = Number.parseInt(step, 10); if (Number.isNaN(parsedStep)) { throw new Error(`Failed to parse step: ${step} is NaN.`); } if (parsedStep < 1) { throw new Error(`Failed to parse step: Expected ${step} to be greater than 0.`); } } for (let i = parsedStart; i <= parsedEnd; i = i + parsedStep) { result.add(i); } return result; } __name(parseElement, "parseElement"); function parseCronExpression(cronExpression) { var _a; if (typeof cronExpression !== "string") { throw new TypeError("Invalid cron expression: must be of type string."); } cronExpression = (_a = timeNicknames[cronExpression.toLowerCase()]) !== null && _a !== void 0 ? _a : cronExpression; const elements = cronExpression.split(" ").filter((elem) => elem.length > 0); if (elements.length < 5 || elements.length > 6) { throw new Error("Invalid cron expression: expected 5 or 6 elements."); } const rawSeconds = elements.length === 6 ? elements[0] : "0"; const rawMinutes = elements.length === 6 ? elements[1] : elements[0]; const rawHours = elements.length === 6 ? elements[2] : elements[1]; const rawDays = elements.length === 6 ? elements[3] : elements[2]; const rawMonths = elements.length === 6 ? elements[4] : elements[3]; const rawWeekdays = elements.length === 6 ? elements[5] : elements[4]; return new Cron({ seconds: parseElement(rawSeconds, secondConstraint), minutes: parseElement(rawMinutes, minuteConstraint), hours: parseElement(rawHours, hourConstraint), days: parseElement(rawDays, dayConstraint), // months in cron are indexed by 1, but Cron expects indexes by 0, so we need to reduce all set values by one. months: new Set(Array.from(parseElement(rawMonths, monthConstraint)).map((x) => x - 1)), weekdays: new Set(Array.from(parseElement(rawWeekdays, weekdayConstraint)).map((x) => x % 7)) }); } __name(parseCronExpression, "parseCronExpression"); // node_modules/@cloudflare/unenv-preset/dist/runtime/node/async_hooks.mjs init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var workerdAsyncHooks = process.getBuiltinModule("node:async_hooks"); var { AsyncLocalStorage, AsyncResource } = workerdAsyncHooks; // node_modules/agents/dist/chunk-XG52S6YY.js function isRPCRequest(msg) { return typeof msg === "object" && msg !== null && "type" in msg && msg.type === "rpc" && "id" in msg && typeof msg.id === "string" && "method" in msg && typeof msg.method === "string" && "args" in msg && Array.isArray(msg.args); } __name(isRPCRequest, "isRPCRequest"); function isStateUpdateMessage(msg) { return typeof msg === "object" && msg !== null && "type" in msg && msg.type === "cf_agent_state" && "state" in msg; } __name(isStateUpdateMessage, "isStateUpdateMessage"); var callableMetadata = /* @__PURE__ */ new Map(); function getNextCronTime(cron) { const interval = parseCronExpression(cron); return interval.getNextDate(); } __name(getNextCronTime, "getNextCronTime"); var STATE_ROW_ID = "cf_state_row_id"; var STATE_WAS_CHANGED = "cf_state_was_changed"; var DEFAULT_STATE = {}; var unstable_context = new AsyncLocalStorage(); var _state; var _Agent_instances; var setStateInternal_fn; var tryCatch_fn; var scheduleNextAlarm_fn; var isCallable_fn; var Agent = class extends Server { static { __name(this, "Agent"); } constructor(ctx, env2) { super(ctx, env2); __privateAdd(this, _Agent_instances); __privateAdd(this, _state, DEFAULT_STATE); this.initialState = DEFAULT_STATE; this.sql` CREATE TABLE IF NOT EXISTS cf_agents_state ( id TEXT PRIMARY KEY NOT NULL, state TEXT ) `; void this.ctx.blockConcurrencyWhile(async () => { return __privateMethod(this, _Agent_instances, tryCatch_fn).call(this, async () => { this.sql` CREATE TABLE IF NOT EXISTS cf_agents_schedules ( id TEXT PRIMARY KEY NOT NULL DEFAULT (randomblob(9)), callback TEXT, payload TEXT, type TEXT NOT NULL CHECK(type IN ('scheduled', 'delayed', 'cron')), time INTEGER, delayInSeconds INTEGER, cron TEXT, created_at INTEGER DEFAULT (unixepoch()) ) `; await this.alarm(); }); }); const _onMessage = this.onMessage.bind(this); this.onMessage = async (connection, message) => { return unstable_context.run( { agent: this, connection, request: void 0 }, async () => { if (typeof message !== "string") { return __privateMethod(this, _Agent_instances, tryCatch_fn).call(this, () => _onMessage(connection, message)); } let parsed; try { parsed = JSON.parse(message); } catch (e) { return __privateMethod(this, _Agent_instances, tryCatch_fn).call(this, () => _onMessage(connection, message)); } if (isStateUpdateMessage(parsed)) { __privateMethod(this, _Agent_instances, setStateInternal_fn).call(this, parsed.state, connection); return; } if (isRPCRequest(parsed)) { try { const { id, method: method2, args } = parsed; const methodFn = this[method2]; if (typeof methodFn !== "function") { throw new Error(`Method ${method2} does not exist`); } if (!__privateMethod(this, _Agent_instances, isCallable_fn).call(this, method2)) { throw new Error(`Method ${method2} is not callable`); } const metadata = callableMetadata.get(methodFn); if (metadata?.streaming) { const stream = new StreamingResponse(connection, id); await methodFn.apply(this, [stream, ...args]); return; } const result = await methodFn.apply(this, args); const response = { type: "rpc", id, success: true, result, done: true }; connection.send(JSON.stringify(response)); } catch (e) { const response = { type: "rpc", id: parsed.id, success: false, error: e instanceof Error ? e.message : "Unknown error occurred" }; connection.send(JSON.stringify(response)); console.error("RPC error:", e); } return; } return __privateMethod(this, _Agent_instances, tryCatch_fn).call(this, () => _onMessage(connection, message)); } ); }; const _onConnect = this.onConnect.bind(this); this.onConnect = (connection, ctx2) => { return unstable_context.run( { agent: this, connection, request: ctx2.request }, async () => { setTimeout(() => { if (this.state) { connection.send( JSON.stringify({ type: "cf_agent_state", state: this.state }) ); } return __privateMethod(this, _Agent_instances, tryCatch_fn).call(this, () => _onConnect(connection, ctx2)); }, 20); } ); }; } /** * Current state of the Agent */ get state() { if (__privateGet(this, _state) !== DEFAULT_STATE) { return __privateGet(this, _state); } const wasChanged = this.sql` SELECT state FROM cf_agents_state WHERE id = ${STATE_WAS_CHANGED} `; const result = this.sql` SELECT state FROM cf_agents_state WHERE id = ${STATE_ROW_ID} `; if (wasChanged[0]?.state === "true" || // we do this check for people who updated their code before we shipped wasChanged result[0]?.state) { const state = result[0]?.state; __privateSet(this, _state, JSON.parse(state)); return __privateGet(this, _state); } if (this.initialState === DEFAULT_STATE) { return void 0; } this.setState(this.initialState); return this.initialState; } /** * Execute SQL queries against the Agent's database * @template T Type of the returned rows * @param strings SQL query template strings * @param values Values to be inserted into the query * @returns Array of query results */ sql(strings, ...values) { let query = ""; try { query = strings.reduce( (acc, str, i) => acc + str + (i < values.length ? "?" : ""), "" ); return [...this.ctx.storage.sql.exec(query, ...values)]; } catch (e) { console.error(`failed to execute sql query: ${query}`, e); throw this.onError(e); } } /** * Update the Agent's state * @param state New state to set */ setState(state) { __privateMethod(this, _Agent_instances, setStateInternal_fn).call(this, state, "server"); } /** * Called when the Agent's state is updated * @param state Updated state * @param source Source of the state update ("server" or a client connection) */ onStateUpdate(state, source) { } /** * Called when the Agent receives an email * @param email Email message to process */ onEmail(email) { return unstable_context.run( { agent: this, connection: void 0, request: void 0 }, async () => { console.error("onEmail not implemented"); } ); } onError(connectionOrError, error3) { let theError; if (connectionOrError && error3) { theError = error3; console.error( "Error on websocket connection:", connectionOrError.id, theError ); console.error( "Override onError(connection, error) to handle websocket connection errors" ); } else { theError = connectionOrError; console.error("Error on server:", theError); console.error("Override onError(error) to handle server errors"); } throw theError; } /** * Render content (not implemented in base class) */ render() { throw new Error("Not implemented"); } /** * Schedule a task to be executed in the future * @template T Type of the payload data * @param when When to execute the task (Date, seconds delay, or cron expression) * @param callback Name of the method to call * @param payload Data to pass to the callback * @returns Schedule object representing the scheduled task */ async schedule(when, callback, payload) { const id = nanoid(9); if (typeof callback !== "string") { throw new Error("Callback must be a string"); } if (typeof this[callback] !== "function") { throw new Error(`this.${callback} is not a function`); } if (when instanceof Date) { const timestamp = Math.floor(when.getTime() / 1e3); this.sql` INSERT OR REPLACE INTO cf_agents_schedules (id, callback, payload, type, time) VALUES (${id}, ${callback}, ${JSON.stringify( payload )}, 'scheduled', ${timestamp}) `; await __privateMethod(this, _Agent_instances, scheduleNextAlarm_fn).call(this); return { id, callback, payload, time: timestamp, type: "scheduled" }; } if (typeof when === "number") { const time3 = new Date(Date.now() + when * 1e3); const timestamp = Math.floor(time3.getTime() / 1e3); this.sql` INSERT OR REPLACE INTO cf_agents_schedules (id, callback, payload, type, delayInSeconds, time) VALUES (${id}, ${callback}, ${JSON.stringify( payload )}, 'delayed', ${when}, ${timestamp}) `; await __privateMethod(this, _Agent_instances, scheduleNextAlarm_fn).call(this); return { id, callback, payload, delayInSeconds: when, time: timestamp, type: "delayed" }; } if (typeof when === "string") { const nextExecutionTime = getNextCronTime(when); const timestamp = Math.floor(nextExecutionTime.getTime() / 1e3); this.sql` INSERT OR REPLACE INTO cf_agents_schedules (id, callback, payload, type, cron, time) VALUES (${id}, ${callback}, ${JSON.stringify( payload )}, 'cron', ${when}, ${timestamp}) `; await __privateMethod(this, _Agent_instances, scheduleNextAlarm_fn).call(this); return { id, callback, payload, cron: when, time: timestamp, type: "cron" }; } throw new Error("Invalid schedule type"); } /** * Get a scheduled task by ID * @template T Type of the payload data * @param id ID of the scheduled task * @returns The Schedule object or undefined if not found */ async getSchedule(id) { const result = this.sql` SELECT * FROM cf_agents_schedules WHERE id = ${id} `; if (!result) { console.error(`schedule ${id} not found`); return void 0; } return { ...result[0], payload: JSON.parse(result[0].payload) }; } /** * Get scheduled tasks matching the given criteria * @template T Type of the payload data * @param criteria Criteria to filter schedules * @returns Array of matching Schedule objects */ getSchedules(criteria = {}) { let query = "SELECT * FROM cf_agents_schedules WHERE 1=1"; const params = []; if (criteria.id) { query += " AND id = ?"; params.push(criteria.id); } if (criteria.type) { query += " AND type = ?"; params.push(criteria.type); } if (criteria.timeRange) { query += " AND time >= ? AND time <= ?"; const start = criteria.timeRange.start || /* @__PURE__ */ new Date(0); const end = criteria.timeRange.end || /* @__PURE__ */ new Date(999999999999999); params.push( Math.floor(start.getTime() / 1e3), Math.floor(end.getTime() / 1e3) ); } const result = this.ctx.storage.sql.exec(query, ...params).toArray().map((row) => ({ ...row, payload: JSON.parse(row.payload) })); return result; } /** * Cancel a scheduled task * @param id ID of the task to cancel * @returns true if the task was cancelled, false otherwise */ async cancelSchedule(id) { this.sql`DELETE FROM cf_agents_schedules WHERE id = ${id}`; await __privateMethod(this, _Agent_instances, scheduleNextAlarm_fn).call(this); return true; } /** * Method called when an alarm fires * Executes any scheduled tasks that are due */ async alarm() { const now = Math.floor(Date.now() / 1e3); const result = this.sql` SELECT * FROM cf_agents_schedules WHERE time <= ${now} `; for (const row of result || []) { const callback = this[row.callback]; if (!callback) { console.error(`callback ${row.callback} not found`); continue; } await unstable_context.run( { agent: this, connection: void 0, request: void 0 }, async () => { try { await callback.bind(this)(JSON.parse(row.payload), row); } catch (e) { console.error(`error executing callback "${row.callback}"`, e); } } ); if (row.type === "cron") { const nextExecutionTime = getNextCronTime(row.cron); const nextTimestamp = Math.floor(nextExecutionTime.getTime() / 1e3); this.sql` UPDATE cf_agents_schedules SET time = ${nextTimestamp} WHERE id = ${row.id} `; } else { this.sql` DELETE FROM cf_agents_schedules WHERE id = ${row.id} `; } } await __privateMethod(this, _Agent_instances, scheduleNextAlarm_fn).call(this); } /** * Destroy the Agent, removing all state and scheduled tasks */ async destroy() { this.sql`DROP TABLE IF EXISTS cf_agents_state`; this.sql`DROP TABLE IF EXISTS cf_agents_schedules`; await this.ctx.storage.deleteAlarm(); await this.ctx.storage.deleteAll(); } }; _state = /* @__PURE__ */ new WeakMap(); _Agent_instances = /* @__PURE__ */ new WeakSet(); setStateInternal_fn = /* @__PURE__ */ __name(function(state, source = "server") { __privateSet(this, _state, state); this.sql` INSERT OR REPLACE INTO cf_agents_state (id, state) VALUES (${STATE_ROW_ID}, ${JSON.stringify(state)}) `; this.sql` INSERT OR REPLACE INTO cf_agents_state (id, state) VALUES (${STATE_WAS_CHANGED}, ${JSON.stringify(true)}) `; this.broadcast( JSON.stringify({ type: "cf_agent_state", state }), source !== "server" ? [source.id] : [] ); return __privateMethod(this, _Agent_instances, tryCatch_fn).call(this, () => { const { connection, request } = unstable_context.getStore() || {}; return unstable_context.run( { agent: this, connection, request }, async () => { return this.onStateUpdate(state, source); } ); }); }, "setStateInternal_fn"); tryCatch_fn = /* @__PURE__ */ __name(async function(fn) { try { return await fn(); } catch (e) { throw this.onError(e); } }, "tryCatch_fn"); scheduleNextAlarm_fn = /* @__PURE__ */ __name(async function() { const result = this.sql` SELECT time FROM cf_agents_schedules WHERE time > ${Math.floor(Date.now() / 1e3)} ORDER BY time ASC LIMIT 1 `; if (!result) return; if (result.length > 0 && "time" in result[0]) { const nextTime = result[0].time * 1e3; await this.ctx.storage.setAlarm(nextTime); } }, "scheduleNextAlarm_fn"); isCallable_fn = /* @__PURE__ */ __name(function(method2) { return callableMetadata.has(this[method2]); }, "isCallable_fn"); Agent.options = { /** Whether the Agent should hibernate when inactive */ hibernate: true // default to hibernate }; var _connection; var _id; var _closed; var StreamingResponse = class { static { __name(this, "StreamingResponse"); } constructor(connection, id) { __privateAdd(this, _connection); __privateAdd(this, _id); __privateAdd(this, _closed, false); __privateSet(this, _connection, connection); __privateSet(this, _id, id); } /** * Send a chunk of data to the client * @param chunk The data to send */ send(chunk) { if (__privateGet(this, _closed)) { throw new Error("StreamingResponse is already closed"); } const response = { type: "rpc", id: __privateGet(this, _id), success: true, result: chunk, done: false }; __privateGet(this, _connection).send(JSON.stringify(response)); } /** * End the stream and send the final chunk (if any) * @param finalChunk Optional final chunk of data to send */ end(finalChunk) { if (__privateGet(this, _closed)) { throw new Error("StreamingResponse is already closed"); } __privateSet(this, _closed, true); const response = { type: "rpc", id: __privateGet(this, _id), success: true, result: finalChunk, done: true }; __privateGet(this, _connection).send(JSON.stringify(response)); } }; _connection = /* @__PURE__ */ new WeakMap(); _id = /* @__PURE__ */ new WeakMap(); _closed = /* @__PURE__ */ new WeakMap(); // node_modules/agents/dist/mcp/index.js import { DurableObject as DurableObject2 } from "cloudflare:workers"; // node_modules/@modelcontextprotocol/sdk/dist/esm/types.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/zod/lib/index.mjs init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var util; (function(util2) { util2.assertEqual = (val) => val; function assertIs(_arg) { } __name(assertIs, "assertIs"); util2.assertIs = assertIs; function assertNever(_x) { throw new Error(); } __name(assertNever, "assertNever"); util2.assertNever = assertNever; util2.arrayToEnum = (items) => { const obj = {}; for (const item of items) { obj[item] = item; } return obj; }; util2.getValidEnumValues = (obj) => { const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number"); const filtered = {}; for (const k of validKeys) { filtered[k] = obj[k]; } return util2.objectValues(filtered); }; util2.objectValues = (obj) => { return util2.objectKeys(obj).map(function(e) { return obj[e]; }); }; util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => { const keys = []; for (const key in object) { if (Object.prototype.hasOwnProperty.call(object, key)) { keys.push(key); } } return keys; }; util2.find = (arr, checker) => { for (const item of arr) { if (checker(item)) return item; } return void 0; }; util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val; function joinValues(array, separator = " | ") { return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator); } __name(joinValues, "joinValues"); util2.joinValues = joinValues; util2.jsonStringifyReplacer = (_, value) => { if (typeof value === "bigint") { return value.toString(); } return value; }; })(util || (util = {})); var objectUtil; (function(objectUtil2) { objectUtil2.mergeShapes = (first, second) => { return { ...first, ...second // second overwrites first }; }; })(objectUtil || (objectUtil = {})); var ZodParsedType = util.arrayToEnum([ "string", "nan", "number", "integer", "float", "boolean", "date", "bigint", "symbol", "function", "undefined", "null", "array", "object", "unknown", "promise", "void", "never", "map", "set" ]); var getParsedType = /* @__PURE__ */ __name((data) => { const t = typeof data; switch (t) { case "undefined": return ZodParsedType.undefined; case "string": return ZodParsedType.string; case "number": return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number; case "boolean": return ZodParsedType.boolean; case "function": return ZodParsedType.function; case "bigint": return ZodParsedType.bigint; case "symbol": return ZodParsedType.symbol; case "object": if (Array.isArray(data)) { return ZodParsedType.array; } if (data === null) { return ZodParsedType.null; } if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") { return ZodParsedType.promise; } if (typeof Map !== "undefined" && data instanceof Map) { return ZodParsedType.map; } if (typeof Set !== "undefined" && data instanceof Set) { return ZodParsedType.set; } if (typeof Date !== "undefined" && data instanceof Date) { return ZodParsedType.date; } return ZodParsedType.object; default: return ZodParsedType.unknown; } }, "getParsedType"); var ZodIssueCode = util.arrayToEnum([ "invalid_type", "invalid_literal", "custom", "invalid_union", "invalid_union_discriminator", "invalid_enum_value", "unrecognized_keys", "invalid_arguments", "invalid_return_type", "invalid_date", "invalid_string", "too_small", "too_big", "invalid_intersection_types", "not_multiple_of", "not_finite" ]); var quotelessJson = /* @__PURE__ */ __name((obj) => { const json = JSON.stringify(obj, null, 2); return json.replace(/"([^"]+)":/g, "$1:"); }, "quotelessJson"); var ZodError = class _ZodError extends Error { static { __name(this, "ZodError"); } get errors() { return this.issues; } constructor(issues) { super(); this.issues = []; this.addIssue = (sub) => { this.issues = [...this.issues, sub]; }; this.addIssues = (subs = []) => { this.issues = [...this.issues, ...subs]; }; const actualProto = new.target.prototype; if (Object.setPrototypeOf) { Object.setPrototypeOf(this, actualProto); } else { this.__proto__ = actualProto; } this.name = "ZodError"; this.issues = issues; } format(_mapper) { const mapper = _mapper || function(issue) { return issue.message; }; const fieldErrors = { _errors: [] }; const processError = /* @__PURE__ */ __name((error3) => { for (const issue of error3.issues) { if (issue.code === "invalid_union") { issue.unionErrors.map(processError); } else if (issue.code === "invalid_return_type") { processError(issue.returnTypeError); } else if (issue.code === "invalid_arguments") { processError(issue.argumentsError); } else if (issue.path.length === 0) { fieldErrors._errors.push(mapper(issue)); } else { let curr = fieldErrors; let i = 0; while (i < issue.path.length) { const el = issue.path[i]; const terminal = i === issue.path.length - 1; if (!terminal) { curr[el] = curr[el] || { _errors: [] }; } else { curr[el] = curr[el] || { _errors: [] }; curr[el]._errors.push(mapper(issue)); } curr = curr[el]; i++; } } } }, "processError"); processError(this); return fieldErrors; } static assert(value) { if (!(value instanceof _ZodError)) { throw new Error(`Not a ZodError: ${value}`); } } toString() { return this.message; } get message() { return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2); } get isEmpty() { return this.issues.length === 0; } flatten(mapper = (issue) => issue.message) { const fieldErrors = {}; const formErrors = []; for (const sub of this.issues) { if (sub.path.length > 0) { fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || []; fieldErrors[sub.path[0]].push(mapper(sub)); } else { formErrors.push(mapper(sub)); } } return { formErrors, fieldErrors }; } get formErrors() { return this.flatten(); } }; ZodError.create = (issues) => { const error3 = new ZodError(issues); return error3; }; var errorMap = /* @__PURE__ */ __name((issue, _ctx) => { let message; switch (issue.code) { case ZodIssueCode.invalid_type: if (issue.received === ZodParsedType.undefined) { message = "Required"; } else { message = `Expected ${issue.expected}, received ${issue.received}`; } break; case ZodIssueCode.invalid_literal: message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`; break; case ZodIssueCode.unrecognized_keys: message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`; break; case ZodIssueCode.invalid_union: message = `Invalid input`; break; case ZodIssueCode.invalid_union_discriminator: message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`; break; case ZodIssueCode.invalid_enum_value: message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`; break; case ZodIssueCode.invalid_arguments: message = `Invalid function arguments`; break; case ZodIssueCode.invalid_return_type: message = `Invalid function return type`; break; case ZodIssueCode.invalid_date: message = `Invalid date`; break; case ZodIssueCode.invalid_string: if (typeof issue.validation === "object") { if ("includes" in issue.validation) { message = `Invalid input: must include "${issue.validation.includes}"`; if (typeof issue.validation.position === "number") { message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`; } } else if ("startsWith" in issue.validation) { message = `Invalid input: must start with "${issue.validation.startsWith}"`; } else if ("endsWith" in issue.validation) { message = `Invalid input: must end with "${issue.validation.endsWith}"`; } else { util.assertNever(issue.validation); } } else if (issue.validation !== "regex") { message = `Invalid ${issue.validation}`; } else { message = "Invalid"; } break; case ZodIssueCode.too_small: if (issue.type === "array") message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`; else if (issue.type === "string") message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`; else if (issue.type === "number") message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`; else if (issue.type === "date") message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`; else message = "Invalid input"; break; case ZodIssueCode.too_big: if (issue.type === "array") message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`; else if (issue.type === "string") message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`; else if (issue.type === "number") message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`; else if (issue.type === "bigint") message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`; else if (issue.type === "date") message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`; else message = "Invalid input"; break; case ZodIssueCode.custom: message = `Invalid input`; break; case ZodIssueCode.invalid_intersection_types: message = `Intersection results could not be merged`; break; case ZodIssueCode.not_multiple_of: message = `Number must be a multiple of ${issue.multipleOf}`; break; case ZodIssueCode.not_finite: message = "Number must be finite"; break; default: message = _ctx.defaultError; util.assertNever(issue); } return { message }; }, "errorMap"); var overrideErrorMap = errorMap; function setErrorMap(map) { overrideErrorMap = map; } __name(setErrorMap, "setErrorMap"); function getErrorMap() { return overrideErrorMap; } __name(getErrorMap, "getErrorMap"); var makeIssue = /* @__PURE__ */ __name((params) => { const { data, path, errorMaps, issueData } = params; const fullPath = [...path, ...issueData.path || []]; const fullIssue = { ...issueData, path: fullPath }; if (issueData.message !== void 0) { return { ...issueData, path: fullPath, message: issueData.message }; } let errorMessage = ""; const maps = errorMaps.filter((m) => !!m).slice().reverse(); for (const map of maps) { errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message; } return { ...issueData, path: fullPath, message: errorMessage }; }, "makeIssue"); var EMPTY_PATH = []; function addIssueToContext(ctx, issueData) { const overrideMap = getErrorMap(); const issue = makeIssue({ issueData, data: ctx.data, path: ctx.path, errorMaps: [ ctx.common.contextualErrorMap, // contextual error map is first priority ctx.schemaErrorMap, // then schema-bound map if available overrideMap, // then global override map overrideMap === errorMap ? void 0 : errorMap // then global default map ].filter((x) => !!x) }); ctx.common.issues.push(issue); } __name(addIssueToContext, "addIssueToContext"); var ParseStatus = class _ParseStatus { static { __name(this, "ParseStatus"); } constructor() { this.value = "valid"; } dirty() { if (this.value === "valid") this.value = "dirty"; } abort() { if (this.value !== "aborted") this.value = "aborted"; } static mergeArray(status, results) { const arrayValue = []; for (const s of results) { if (s.status === "aborted") return INVALID; if (s.status === "dirty") status.dirty(); arrayValue.push(s.value); } return { status: status.value, value: arrayValue }; } static async mergeObjectAsync(status, pairs) { const syncPairs = []; for (const pair of pairs) { const key = await pair.key; const value = await pair.value; syncPairs.push({ key, value }); } return _ParseStatus.mergeObjectSync(status, syncPairs); } static mergeObjectSync(status, pairs) { const finalObject = {}; for (const pair of pairs) { const { key, value } = pair; if (key.status === "aborted") return INVALID; if (value.status === "aborted") return INVALID; if (key.status === "dirty") status.dirty(); if (value.status === "dirty") status.dirty(); if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) { finalObject[key.value] = value.value; } } return { status: status.value, value: finalObject }; } }; var INVALID = Object.freeze({ status: "aborted" }); var DIRTY = /* @__PURE__ */ __name((value) => ({ status: "dirty", value }), "DIRTY"); var OK = /* @__PURE__ */ __name((value) => ({ status: "valid", value }), "OK"); var isAborted = /* @__PURE__ */ __name((x) => x.status === "aborted", "isAborted"); var isDirty = /* @__PURE__ */ __name((x) => x.status === "dirty", "isDirty"); var isValid = /* @__PURE__ */ __name((x) => x.status === "valid", "isValid"); var isAsync = /* @__PURE__ */ __name((x) => typeof Promise !== "undefined" && x instanceof Promise, "isAsync"); function __classPrivateFieldGet(receiver, state, kind, f) { if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); } __name(__classPrivateFieldGet, "__classPrivateFieldGet"); function __classPrivateFieldSet(receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; } __name(__classPrivateFieldSet, "__classPrivateFieldSet"); var errorUtil; (function(errorUtil2) { errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {}; errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message; })(errorUtil || (errorUtil = {})); var _ZodEnum_cache; var _ZodNativeEnum_cache; var ParseInputLazyPath = class { static { __name(this, "ParseInputLazyPath"); } constructor(parent, value, path, key) { this._cachedPath = []; this.parent = parent; this.data = value; this._path = path; this._key = key; } get path() { if (!this._cachedPath.length) { if (this._key instanceof Array) { this._cachedPath.push(...this._path, ...this._key); } else { this._cachedPath.push(...this._path, this._key); } } return this._cachedPath; } }; var handleResult = /* @__PURE__ */ __name((ctx, result) => { if (isValid(result)) { return { success: true, data: result.value }; } else { if (!ctx.common.issues.length) { throw new Error("Validation failed but no issues detected."); } return { success: false, get error() { if (this._error) return this._error; const error3 = new ZodError(ctx.common.issues); this._error = error3; return this._error; } }; } }, "handleResult"); function processCreateParams(params) { if (!params) return {}; const { errorMap: errorMap2, invalid_type_error, required_error, description } = params; if (errorMap2 && (invalid_type_error || required_error)) { throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`); } if (errorMap2) return { errorMap: errorMap2, description }; const customMap = /* @__PURE__ */ __name((iss, ctx) => { var _a, _b; const { message } = params; if (iss.code === "invalid_enum_value") { return { message: message !== null && message !== void 0 ? message : ctx.defaultError }; } if (typeof ctx.data === "undefined") { return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError }; } if (iss.code !== "invalid_type") return { message: ctx.defaultError }; return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError }; }, "customMap"); return { errorMap: customMap, description }; } __name(processCreateParams, "processCreateParams"); var ZodType = class { static { __name(this, "ZodType"); } get description() { return this._def.description; } _getType(input) { return getParsedType(input.data); } _getOrReturnCtx(input, ctx) { return ctx || { common: input.parent.common, data: input.data, parsedType: getParsedType(input.data), schemaErrorMap: this._def.errorMap, path: input.path, parent: input.parent }; } _processInputParams(input) { return { status: new ParseStatus(), ctx: { common: input.parent.common, data: input.data, parsedType: getParsedType(input.data), schemaErrorMap: this._def.errorMap, path: input.path, parent: input.parent } }; } _parseSync(input) { const result = this._parse(input); if (isAsync(result)) { throw new Error("Synchronous parse encountered promise."); } return result; } _parseAsync(input) { const result = this._parse(input); return Promise.resolve(result); } parse(data, params) { const result = this.safeParse(data, params); if (result.success) return result.data; throw result.error; } safeParse(data, params) { var _a; const ctx = { common: { issues: [], async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false, contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap }, path: (params === null || params === void 0 ? void 0 : params.path) || [], schemaErrorMap: this._def.errorMap, parent: null, data, parsedType: getParsedType(data) }; const result = this._parseSync({ data, path: ctx.path, parent: ctx }); return handleResult(ctx, result); } "~validate"(data) { var _a, _b; const ctx = { common: { issues: [], async: !!this["~standard"].async }, path: [], schemaErrorMap: this._def.errorMap, parent: null, data, parsedType: getParsedType(data) }; if (!this["~standard"].async) { try { const result = this._parseSync({ data, path: [], parent: ctx }); return isValid(result) ? { value: result.value } : { issues: ctx.common.issues }; } catch (err) { if ((_b = (_a = err === null || err === void 0 ? void 0 : err.message) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes("encountered")) { this["~standard"].async = true; } ctx.common = { issues: [], async: true }; } } return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result) ? { value: result.value } : { issues: ctx.common.issues }); } async parseAsync(data, params) { const result = await this.safeParseAsync(data, params); if (result.success) return result.data; throw result.error; } async safeParseAsync(data, params) { const ctx = { common: { issues: [], contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap, async: true }, path: (params === null || params === void 0 ? void 0 : params.path) || [], schemaErrorMap: this._def.errorMap, parent: null, data, parsedType: getParsedType(data) }; const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx }); const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult)); return handleResult(ctx, result); } refine(check, message) { const getIssueProperties = /* @__PURE__ */ __name((val) => { if (typeof message === "string" || typeof message === "undefined") { return { message }; } else if (typeof message === "function") { return message(val); } else { return message; } }, "getIssueProperties"); return this._refinement((val, ctx) => { const result = check(val); const setError = /* @__PURE__ */ __name(() => ctx.addIssue({ code: ZodIssueCode.custom, ...getIssueProperties(val) }), "setError"); if (typeof Promise !== "undefined" && result instanceof Promise) { return result.then((data) => { if (!data) { setError(); return false; } else { return true; } }); } if (!result) { setError(); return false; } else { return true; } }); } refinement(check, refinementData) { return this._refinement((val, ctx) => { if (!check(val)) { ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData); return false; } else { return true; } }); } _refinement(refinement) { return new ZodEffects({ schema: this, typeName: ZodFirstPartyTypeKind.ZodEffects, effect: { type: "refinement", refinement } }); } superRefine(refinement) { return this._refinement(refinement); } constructor(def) { this.spa = this.safeParseAsync; this._def = def; this.parse = this.parse.bind(this); this.safeParse = this.safeParse.bind(this); this.parseAsync = this.parseAsync.bind(this); this.safeParseAsync = this.safeParseAsync.bind(this); this.spa = this.spa.bind(this); this.refine = this.refine.bind(this); this.refinement = this.refinement.bind(this); this.superRefine = this.superRefine.bind(this); this.optional = this.optional.bind(this); this.nullable = this.nullable.bind(this); this.nullish = this.nullish.bind(this); this.array = this.array.bind(this); this.promise = this.promise.bind(this); this.or = this.or.bind(this); this.and = this.and.bind(this); this.transform = this.transform.bind(this); this.brand = this.brand.bind(this); this.default = this.default.bind(this); this.catch = this.catch.bind(this); this.describe = this.describe.bind(this); this.pipe = this.pipe.bind(this); this.readonly = this.readonly.bind(this); this.isNullable = this.isNullable.bind(this); this.isOptional = this.isOptional.bind(this); this["~standard"] = { version: 1, vendor: "zod", validate: /* @__PURE__ */ __name((data) => this["~validate"](data), "validate") }; } optional() { return ZodOptional.create(this, this._def); } nullable() { return ZodNullable.create(this, this._def); } nullish() { return this.nullable().optional(); } array() { return ZodArray.create(this); } promise() { return ZodPromise.create(this, this._def); } or(option) { return ZodUnion.create([this, option], this._def); } and(incoming) { return ZodIntersection.create(this, incoming, this._def); } transform(transform) { return new ZodEffects({ ...processCreateParams(this._def), schema: this, typeName: ZodFirstPartyTypeKind.ZodEffects, effect: { type: "transform", transform } }); } default(def) { const defaultValueFunc = typeof def === "function" ? def : () => def; return new ZodDefault({ ...processCreateParams(this._def), innerType: this, defaultValue: defaultValueFunc, typeName: ZodFirstPartyTypeKind.ZodDefault }); } brand() { return new ZodBranded({ typeName: ZodFirstPartyTypeKind.ZodBranded, type: this, ...processCreateParams(this._def) }); } catch(def) { const catchValueFunc = typeof def === "function" ? def : () => def; return new ZodCatch({ ...processCreateParams(this._def), innerType: this, catchValue: catchValueFunc, typeName: ZodFirstPartyTypeKind.ZodCatch }); } describe(description) { const This = this.constructor; return new This({ ...this._def, description }); } pipe(target) { return ZodPipeline.create(this, target); } readonly() { return ZodReadonly.create(this); } isOptional() { return this.safeParse(void 0).success; } isNullable() { return this.safeParse(null).success; } }; var cuidRegex = /^c[^\s-]{8,}$/i; var cuid2Regex = /^[0-9a-z]+$/; var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i; var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i; var nanoidRegex = /^[a-z0-9_-]{21}$/i; var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/; var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/; var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i; var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`; var emojiRegex; var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/; var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/; var ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/; var ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/; var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/; var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/; var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`; var dateRegex = new RegExp(`^${dateRegexSource}$`); function timeRegexSource(args) { let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`; if (args.precision) { regex = `${regex}\\.\\d{${args.precision}}`; } else if (args.precision == null) { regex = `${regex}(\\.\\d+)?`; } return regex; } __name(timeRegexSource, "timeRegexSource"); function timeRegex(args) { return new RegExp(`^${timeRegexSource(args)}$`); } __name(timeRegex, "timeRegex"); function datetimeRegex(args) { let regex = `${dateRegexSource}T${timeRegexSource(args)}`; const opts = []; opts.push(args.local ? `Z?` : `Z`); if (args.offset) opts.push(`([+-]\\d{2}:?\\d{2})`); regex = `${regex}(${opts.join("|")})`; return new RegExp(`^${regex}$`); } __name(datetimeRegex, "datetimeRegex"); function isValidIP(ip, version2) { if ((version2 === "v4" || !version2) && ipv4Regex.test(ip)) { return true; } if ((version2 === "v6" || !version2) && ipv6Regex.test(ip)) { return true; } return false; } __name(isValidIP, "isValidIP"); function isValidJWT(jwt, alg) { if (!jwtRegex.test(jwt)) return false; try { const [header] = jwt.split("."); const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "="); const decoded = JSON.parse(atob(base64)); if (typeof decoded !== "object" || decoded === null) return false; if (!decoded.typ || !decoded.alg) return false; if (alg && decoded.alg !== alg) return false; return true; } catch (_a) { return false; } } __name(isValidJWT, "isValidJWT"); function isValidCidr(ip, version2) { if ((version2 === "v4" || !version2) && ipv4CidrRegex.test(ip)) { return true; } if ((version2 === "v6" || !version2) && ipv6CidrRegex.test(ip)) { return true; } return false; } __name(isValidCidr, "isValidCidr"); var ZodString = class _ZodString extends ZodType { static { __name(this, "ZodString"); } _parse(input) { if (this._def.coerce) { input.data = String(input.data); } const parsedType = this._getType(input); if (parsedType !== ZodParsedType.string) { const ctx2 = this._getOrReturnCtx(input); addIssueToContext(ctx2, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.string, received: ctx2.parsedType }); return INVALID; } const status = new ParseStatus(); let ctx = void 0; for (const check of this._def.checks) { if (check.kind === "min") { if (input.data.length < check.value) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.too_small, minimum: check.value, type: "string", inclusive: true, exact: false, message: check.message }); status.dirty(); } } else if (check.kind === "max") { if (input.data.length > check.value) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.too_big, maximum: check.value, type: "string", inclusive: true, exact: false, message: check.message }); status.dirty(); } } else if (check.kind === "length") { const tooBig = input.data.length > check.value; const tooSmall = input.data.length < check.value; if (tooBig || tooSmall) { ctx = this._getOrReturnCtx(input, ctx); if (tooBig) { addIssueToContext(ctx, { code: ZodIssueCode.too_big, maximum: check.value, type: "string", inclusive: true, exact: true, message: check.message }); } else if (tooSmall) { addIssueToContext(ctx, { code: ZodIssueCode.too_small, minimum: check.value, type: "string", inclusive: true, exact: true, message: check.message }); } status.dirty(); } } else if (check.kind === "email") { if (!emailRegex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "email", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "emoji") { if (!emojiRegex) { emojiRegex = new RegExp(_emojiRegex, "u"); } if (!emojiRegex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "emoji", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "uuid") { if (!uuidRegex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "uuid", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "nanoid") { if (!nanoidRegex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "nanoid", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "cuid") { if (!cuidRegex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "cuid", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "cuid2") { if (!cuid2Regex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "cuid2", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "ulid") { if (!ulidRegex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "ulid", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "url") { try { new URL(input.data); } catch (_a) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "url", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "regex") { check.regex.lastIndex = 0; const testResult = check.regex.test(input.data); if (!testResult) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "regex", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "trim") { input.data = input.data.trim(); } else if (check.kind === "includes") { if (!input.data.includes(check.value, check.position)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.invalid_string, validation: { includes: check.value, position: check.position }, message: check.message }); status.dirty(); } } else if (check.kind === "toLowerCase") { input.data = input.data.toLowerCase(); } else if (check.kind === "toUpperCase") { input.data = input.data.toUpperCase(); } else if (check.kind === "startsWith") { if (!input.data.startsWith(check.value)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.invalid_string, validation: { startsWith: check.value }, message: check.message }); status.dirty(); } } else if (check.kind === "endsWith") { if (!input.data.endsWith(check.value)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.invalid_string, validation: { endsWith: check.value }, message: check.message }); status.dirty(); } } else if (check.kind === "datetime") { const regex = datetimeRegex(check); if (!regex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.invalid_string, validation: "datetime", message: check.message }); status.dirty(); } } else if (check.kind === "date") { const regex = dateRegex; if (!regex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.invalid_string, validation: "date", message: check.message }); status.dirty(); } } else if (check.kind === "time") { const regex = timeRegex(check); if (!regex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.invalid_string, validation: "time", message: check.message }); status.dirty(); } } else if (check.kind === "duration") { if (!durationRegex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "duration", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "ip") { if (!isValidIP(input.data, check.version)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "ip", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "jwt") { if (!isValidJWT(input.data, check.alg)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "jwt", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "cidr") { if (!isValidCidr(input.data, check.version)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "cidr", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "base64") { if (!base64Regex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "base64", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else if (check.kind === "base64url") { if (!base64urlRegex.test(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { validation: "base64url", code: ZodIssueCode.invalid_string, message: check.message }); status.dirty(); } } else { util.assertNever(check); } } return { status: status.value, value: input.data }; } _regex(regex, validation, message) { return this.refinement((data) => regex.test(data), { validation, code: ZodIssueCode.invalid_string, ...errorUtil.errToObj(message) }); } _addCheck(check) { return new _ZodString({ ...this._def, checks: [...this._def.checks, check] }); } email(message) { return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) }); } url(message) { return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) }); } emoji(message) { return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) }); } uuid(message) { return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) }); } nanoid(message) { return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) }); } cuid(message) { return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) }); } cuid2(message) { return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) }); } ulid(message) { return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) }); } base64(message) { return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) }); } base64url(message) { return this._addCheck({ kind: "base64url", ...errorUtil.errToObj(message) }); } jwt(options) { return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) }); } ip(options) { return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) }); } cidr(options) { return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) }); } datetime(options) { var _a, _b; if (typeof options === "string") { return this._addCheck({ kind: "datetime", precision: null, offset: false, local: false, message: options }); } return this._addCheck({ kind: "datetime", precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision, offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false, local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false, ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message) }); } date(message) { return this._addCheck({ kind: "date", message }); } time(options) { if (typeof options === "string") { return this._addCheck({ kind: "time", precision: null, message: options }); } return this._addCheck({ kind: "time", precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision, ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message) }); } duration(message) { return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) }); } regex(regex, message) { return this._addCheck({ kind: "regex", regex, ...errorUtil.errToObj(message) }); } includes(value, options) { return this._addCheck({ kind: "includes", value, position: options === null || options === void 0 ? void 0 : options.position, ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message) }); } startsWith(value, message) { return this._addCheck({ kind: "startsWith", value, ...errorUtil.errToObj(message) }); } endsWith(value, message) { return this._addCheck({ kind: "endsWith", value, ...errorUtil.errToObj(message) }); } min(minLength, message) { return this._addCheck({ kind: "min", value: minLength, ...errorUtil.errToObj(message) }); } max(maxLength, message) { return this._addCheck({ kind: "max", value: maxLength, ...errorUtil.errToObj(message) }); } length(len, message) { return this._addCheck({ kind: "length", value: len, ...errorUtil.errToObj(message) }); } /** * Equivalent to `.min(1)` */ nonempty(message) { return this.min(1, errorUtil.errToObj(message)); } trim() { return new _ZodString({ ...this._def, checks: [...this._def.checks, { kind: "trim" }] }); } toLowerCase() { return new _ZodString({ ...this._def, checks: [...this._def.checks, { kind: "toLowerCase" }] }); } toUpperCase() { return new _ZodString({ ...this._def, checks: [...this._def.checks, { kind: "toUpperCase" }] }); } get isDatetime() { return !!this._def.checks.find((ch) => ch.kind === "datetime"); } get isDate() { return !!this._def.checks.find((ch) => ch.kind === "date"); } get isTime() { return !!this._def.checks.find((ch) => ch.kind === "time"); } get isDuration() { return !!this._def.checks.find((ch) => ch.kind === "duration"); } get isEmail() { return !!this._def.checks.find((ch) => ch.kind === "email"); } get isURL() { return !!this._def.checks.find((ch) => ch.kind === "url"); } get isEmoji() { return !!this._def.checks.find((ch) => ch.kind === "emoji"); } get isUUID() { return !!this._def.checks.find((ch) => ch.kind === "uuid"); } get isNANOID() { return !!this._def.checks.find((ch) => ch.kind === "nanoid"); } get isCUID() { return !!this._def.checks.find((ch) => ch.kind === "cuid"); } get isCUID2() { return !!this._def.checks.find((ch) => ch.kind === "cuid2"); } get isULID() { return !!this._def.checks.find((ch) => ch.kind === "ulid"); } get isIP() { return !!this._def.checks.find((ch) => ch.kind === "ip"); } get isCIDR() { return !!this._def.checks.find((ch) => ch.kind === "cidr"); } get isBase64() { return !!this._def.checks.find((ch) => ch.kind === "base64"); } get isBase64url() { return !!this._def.checks.find((ch) => ch.kind === "base64url"); } get minLength() { let min = null; for (const ch of this._def.checks) { if (ch.kind === "min") { if (min === null || ch.value > min) min = ch.value; } } return min; } get maxLength() { let max = null; for (const ch of this._def.checks) { if (ch.kind === "max") { if (max === null || ch.value < max) max = ch.value; } } return max; } }; ZodString.create = (params) => { var _a; return new ZodString({ checks: [], typeName: ZodFirstPartyTypeKind.ZodString, coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false, ...processCreateParams(params) }); }; function floatSafeRemainder(val, step) { const valDecCount = (val.toString().split(".")[1] || "").length; const stepDecCount = (step.toString().split(".")[1] || "").length; const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount; const valInt = parseInt(val.toFixed(decCount).replace(".", "")); const stepInt = parseInt(step.toFixed(decCount).replace(".", "")); return valInt % stepInt / Math.pow(10, decCount); } __name(floatSafeRemainder, "floatSafeRemainder"); var ZodNumber = class _ZodNumber extends ZodType { static { __name(this, "ZodNumber"); } constructor() { super(...arguments); this.min = this.gte; this.max = this.lte; this.step = this.multipleOf; } _parse(input) { if (this._def.coerce) { input.data = Number(input.data); } const parsedType = this._getType(input); if (parsedType !== ZodParsedType.number) { const ctx2 = this._getOrReturnCtx(input); addIssueToContext(ctx2, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.number, received: ctx2.parsedType }); return INVALID; } let ctx = void 0; const status = new ParseStatus(); for (const check of this._def.checks) { if (check.kind === "int") { if (!util.isInteger(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: "integer", received: "float", message: check.message }); status.dirty(); } } else if (check.kind === "min") { const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value; if (tooSmall) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.too_small, minimum: check.value, type: "number", inclusive: check.inclusive, exact: false, message: check.message }); status.dirty(); } } else if (check.kind === "max") { const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value; if (tooBig) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.too_big, maximum: check.value, type: "number", inclusive: check.inclusive, exact: false, message: check.message }); status.dirty(); } } else if (check.kind === "multipleOf") { if (floatSafeRemainder(input.data, check.value) !== 0) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.not_multiple_of, multipleOf: check.value, message: check.message }); status.dirty(); } } else if (check.kind === "finite") { if (!Number.isFinite(input.data)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.not_finite, message: check.message }); status.dirty(); } } else { util.assertNever(check); } } return { status: status.value, value: input.data }; } gte(value, message) { return this.setLimit("min", value, true, errorUtil.toString(message)); } gt(value, message) { return this.setLimit("min", value, false, errorUtil.toString(message)); } lte(value, message) { return this.setLimit("max", value, true, errorUtil.toString(message)); } lt(value, message) { return this.setLimit("max", value, false, errorUtil.toString(message)); } setLimit(kind, value, inclusive, message) { return new _ZodNumber({ ...this._def, checks: [ ...this._def.checks, { kind, value, inclusive, message: errorUtil.toString(message) } ] }); } _addCheck(check) { return new _ZodNumber({ ...this._def, checks: [...this._def.checks, check] }); } int(message) { return this._addCheck({ kind: "int", message: errorUtil.toString(message) }); } positive(message) { return this._addCheck({ kind: "min", value: 0, inclusive: false, message: errorUtil.toString(message) }); } negative(message) { return this._addCheck({ kind: "max", value: 0, inclusive: false, message: errorUtil.toString(message) }); } nonpositive(message) { return this._addCheck({ kind: "max", value: 0, inclusive: true, message: errorUtil.toString(message) }); } nonnegative(message) { return this._addCheck({ kind: "min", value: 0, inclusive: true, message: errorUtil.toString(message) }); } multipleOf(value, message) { return this._addCheck({ kind: "multipleOf", value, message: errorUtil.toString(message) }); } finite(message) { return this._addCheck({ kind: "finite", message: errorUtil.toString(message) }); } safe(message) { return this._addCheck({ kind: "min", inclusive: true, value: Number.MIN_SAFE_INTEGER, message: errorUtil.toString(message) })._addCheck({ kind: "max", inclusive: true, value: Number.MAX_SAFE_INTEGER, message: errorUtil.toString(message) }); } get minValue() { let min = null; for (const ch of this._def.checks) { if (ch.kind === "min") { if (min === null || ch.value > min) min = ch.value; } } return min; } get maxValue() { let max = null; for (const ch of this._def.checks) { if (ch.kind === "max") { if (max === null || ch.value < max) max = ch.value; } } return max; } get isInt() { return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value)); } get isFinite() { let max = null, min = null; for (const ch of this._def.checks) { if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") { return true; } else if (ch.kind === "min") { if (min === null || ch.value > min) min = ch.value; } else if (ch.kind === "max") { if (max === null || ch.value < max) max = ch.value; } } return Number.isFinite(min) && Number.isFinite(max); } }; ZodNumber.create = (params) => { return new ZodNumber({ checks: [], typeName: ZodFirstPartyTypeKind.ZodNumber, coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false, ...processCreateParams(params) }); }; var ZodBigInt = class _ZodBigInt extends ZodType { static { __name(this, "ZodBigInt"); } constructor() { super(...arguments); this.min = this.gte; this.max = this.lte; } _parse(input) { if (this._def.coerce) { try { input.data = BigInt(input.data); } catch (_a) { return this._getInvalidInput(input); } } const parsedType = this._getType(input); if (parsedType !== ZodParsedType.bigint) { return this._getInvalidInput(input); } let ctx = void 0; const status = new ParseStatus(); for (const check of this._def.checks) { if (check.kind === "min") { const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value; if (tooSmall) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.too_small, type: "bigint", minimum: check.value, inclusive: check.inclusive, message: check.message }); status.dirty(); } } else if (check.kind === "max") { const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value; if (tooBig) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.too_big, type: "bigint", maximum: check.value, inclusive: check.inclusive, message: check.message }); status.dirty(); } } else if (check.kind === "multipleOf") { if (input.data % check.value !== BigInt(0)) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.not_multiple_of, multipleOf: check.value, message: check.message }); status.dirty(); } } else { util.assertNever(check); } } return { status: status.value, value: input.data }; } _getInvalidInput(input) { const ctx = this._getOrReturnCtx(input); addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.bigint, received: ctx.parsedType }); return INVALID; } gte(value, message) { return this.setLimit("min", value, true, errorUtil.toString(message)); } gt(value, message) { return this.setLimit("min", value, false, errorUtil.toString(message)); } lte(value, message) { return this.setLimit("max", value, true, errorUtil.toString(message)); } lt(value, message) { return this.setLimit("max", value, false, errorUtil.toString(message)); } setLimit(kind, value, inclusive, message) { return new _ZodBigInt({ ...this._def, checks: [ ...this._def.checks, { kind, value, inclusive, message: errorUtil.toString(message) } ] }); } _addCheck(check) { return new _ZodBigInt({ ...this._def, checks: [...this._def.checks, check] }); } positive(message) { return this._addCheck({ kind: "min", value: BigInt(0), inclusive: false, message: errorUtil.toString(message) }); } negative(message) { return this._addCheck({ kind: "max", value: BigInt(0), inclusive: false, message: errorUtil.toString(message) }); } nonpositive(message) { return this._addCheck({ kind: "max", value: BigInt(0), inclusive: true, message: errorUtil.toString(message) }); } nonnegative(message) { return this._addCheck({ kind: "min", value: BigInt(0), inclusive: true, message: errorUtil.toString(message) }); } multipleOf(value, message) { return this._addCheck({ kind: "multipleOf", value, message: errorUtil.toString(message) }); } get minValue() { let min = null; for (const ch of this._def.checks) { if (ch.kind === "min") { if (min === null || ch.value > min) min = ch.value; } } return min; } get maxValue() { let max = null; for (const ch of this._def.checks) { if (ch.kind === "max") { if (max === null || ch.value < max) max = ch.value; } } return max; } }; ZodBigInt.create = (params) => { var _a; return new ZodBigInt({ checks: [], typeName: ZodFirstPartyTypeKind.ZodBigInt, coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false, ...processCreateParams(params) }); }; var ZodBoolean = class extends ZodType { static { __name(this, "ZodBoolean"); } _parse(input) { if (this._def.coerce) { input.data = Boolean(input.data); } const parsedType = this._getType(input); if (parsedType !== ZodParsedType.boolean) { const ctx = this._getOrReturnCtx(input); addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.boolean, received: ctx.parsedType }); return INVALID; } return OK(input.data); } }; ZodBoolean.create = (params) => { return new ZodBoolean({ typeName: ZodFirstPartyTypeKind.ZodBoolean, coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false, ...processCreateParams(params) }); }; var ZodDate = class _ZodDate extends ZodType { static { __name(this, "ZodDate"); } _parse(input) { if (this._def.coerce) { input.data = new Date(input.data); } const parsedType = this._getType(input); if (parsedType !== ZodParsedType.date) { const ctx2 = this._getOrReturnCtx(input); addIssueToContext(ctx2, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.date, received: ctx2.parsedType }); return INVALID; } if (isNaN(input.data.getTime())) { const ctx2 = this._getOrReturnCtx(input); addIssueToContext(ctx2, { code: ZodIssueCode.invalid_date }); return INVALID; } const status = new ParseStatus(); let ctx = void 0; for (const check of this._def.checks) { if (check.kind === "min") { if (input.data.getTime() < check.value) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.too_small, message: check.message, inclusive: true, exact: false, minimum: check.value, type: "date" }); status.dirty(); } } else if (check.kind === "max") { if (input.data.getTime() > check.value) { ctx = this._getOrReturnCtx(input, ctx); addIssueToContext(ctx, { code: ZodIssueCode.too_big, message: check.message, inclusive: true, exact: false, maximum: check.value, type: "date" }); status.dirty(); } } else { util.assertNever(check); } } return { status: status.value, value: new Date(input.data.getTime()) }; } _addCheck(check) { return new _ZodDate({ ...this._def, checks: [...this._def.checks, check] }); } min(minDate, message) { return this._addCheck({ kind: "min", value: minDate.getTime(), message: errorUtil.toString(message) }); } max(maxDate, message) { return this._addCheck({ kind: "max", value: maxDate.getTime(), message: errorUtil.toString(message) }); } get minDate() { let min = null; for (const ch of this._def.checks) { if (ch.kind === "min") { if (min === null || ch.value > min) min = ch.value; } } return min != null ? new Date(min) : null; } get maxDate() { let max = null; for (const ch of this._def.checks) { if (ch.kind === "max") { if (max === null || ch.value < max) max = ch.value; } } return max != null ? new Date(max) : null; } }; ZodDate.create = (params) => { return new ZodDate({ checks: [], coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false, typeName: ZodFirstPartyTypeKind.ZodDate, ...processCreateParams(params) }); }; var ZodSymbol = class extends ZodType { static { __name(this, "ZodSymbol"); } _parse(input) { const parsedType = this._getType(input); if (parsedType !== ZodParsedType.symbol) { const ctx = this._getOrReturnCtx(input); addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.symbol, received: ctx.parsedType }); return INVALID; } return OK(input.data); } }; ZodSymbol.create = (params) => { return new ZodSymbol({ typeName: ZodFirstPartyTypeKind.ZodSymbol, ...processCreateParams(params) }); }; var ZodUndefined = class extends ZodType { static { __name(this, "ZodUndefined"); } _parse(input) { const parsedType = this._getType(input); if (parsedType !== ZodParsedType.undefined) { const ctx = this._getOrReturnCtx(input); addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.undefined, received: ctx.parsedType }); return INVALID; } return OK(input.data); } }; ZodUndefined.create = (params) => { return new ZodUndefined({ typeName: ZodFirstPartyTypeKind.ZodUndefined, ...processCreateParams(params) }); }; var ZodNull = class extends ZodType { static { __name(this, "ZodNull"); } _parse(input) { const parsedType = this._getType(input); if (parsedType !== ZodParsedType.null) { const ctx = this._getOrReturnCtx(input); addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.null, received: ctx.parsedType }); return INVALID; } return OK(input.data); } }; ZodNull.create = (params) => { return new ZodNull({ typeName: ZodFirstPartyTypeKind.ZodNull, ...processCreateParams(params) }); }; var ZodAny = class extends ZodType { static { __name(this, "ZodAny"); } constructor() { super(...arguments); this._any = true; } _parse(input) { return OK(input.data); } }; ZodAny.create = (params) => { return new ZodAny({ typeName: ZodFirstPartyTypeKind.ZodAny, ...processCreateParams(params) }); }; var ZodUnknown = class extends ZodType { static { __name(this, "ZodUnknown"); } constructor() { super(...arguments); this._unknown = true; } _parse(input) { return OK(input.data); } }; ZodUnknown.create = (params) => { return new ZodUnknown({ typeName: ZodFirstPartyTypeKind.ZodUnknown, ...processCreateParams(params) }); }; var ZodNever = class extends ZodType { static { __name(this, "ZodNever"); } _parse(input) { const ctx = this._getOrReturnCtx(input); addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.never, received: ctx.parsedType }); return INVALID; } }; ZodNever.create = (params) => { return new ZodNever({ typeName: ZodFirstPartyTypeKind.ZodNever, ...processCreateParams(params) }); }; var ZodVoid = class extends ZodType { static { __name(this, "ZodVoid"); } _parse(input) { const parsedType = this._getType(input); if (parsedType !== ZodParsedType.undefined) { const ctx = this._getOrReturnCtx(input); addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.void, received: ctx.parsedType }); return INVALID; } return OK(input.data); } }; ZodVoid.create = (params) => { return new ZodVoid({ typeName: ZodFirstPartyTypeKind.ZodVoid, ...processCreateParams(params) }); }; var ZodArray = class _ZodArray extends ZodType { static { __name(this, "ZodArray"); } _parse(input) { const { ctx, status } = this._processInputParams(input); const def = this._def; if (ctx.parsedType !== ZodParsedType.array) { addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.array, received: ctx.parsedType }); return INVALID; } if (def.exactLength !== null) { const tooBig = ctx.data.length > def.exactLength.value; const tooSmall = ctx.data.length < def.exactLength.value; if (tooBig || tooSmall) { addIssueToContext(ctx, { code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small, minimum: tooSmall ? def.exactLength.value : void 0, maximum: tooBig ? def.exactLength.value : void 0, type: "array", inclusive: true, exact: true, message: def.exactLength.message }); status.dirty(); } } if (def.minLength !== null) { if (ctx.data.length < def.minLength.value) { addIssueToContext(ctx, { code: ZodIssueCode.too_small, minimum: def.minLength.value, type: "array", inclusive: true, exact: false, message: def.minLength.message }); status.dirty(); } } if (def.maxLength !== null) { if (ctx.data.length > def.maxLength.value) { addIssueToContext(ctx, { code: ZodIssueCode.too_big, maximum: def.maxLength.value, type: "array", inclusive: true, exact: false, message: def.maxLength.message }); status.dirty(); } } if (ctx.common.async) { return Promise.all([...ctx.data].map((item, i) => { return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i)); })).then((result2) => { return ParseStatus.mergeArray(status, result2); }); } const result = [...ctx.data].map((item, i) => { return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i)); }); return ParseStatus.mergeArray(status, result); } get element() { return this._def.type; } min(minLength, message) { return new _ZodArray({ ...this._def, minLength: { value: minLength, message: errorUtil.toString(message) } }); } max(maxLength, message) { return new _ZodArray({ ...this._def, maxLength: { value: maxLength, message: errorUtil.toString(message) } }); } length(len, message) { return new _ZodArray({ ...this._def, exactLength: { value: len, message: errorUtil.toString(message) } }); } nonempty(message) { return this.min(1, message); } }; ZodArray.create = (schema, params) => { return new ZodArray({ type: schema, minLength: null, maxLength: null, exactLength: null, typeName: ZodFirstPartyTypeKind.ZodArray, ...processCreateParams(params) }); }; function deepPartialify(schema) { if (schema instanceof ZodObject) { const newShape = {}; for (const key in schema.shape) { const fieldSchema = schema.shape[key]; newShape[key] = ZodOptional.create(deepPartialify(fieldSchema)); } return new ZodObject({ ...schema._def, shape: /* @__PURE__ */ __name(() => newShape, "shape") }); } else if (schema instanceof ZodArray) { return new ZodArray({ ...schema._def, type: deepPartialify(schema.element) }); } else if (schema instanceof ZodOptional) { return ZodOptional.create(deepPartialify(schema.unwrap())); } else if (schema instanceof ZodNullable) { return ZodNullable.create(deepPartialify(schema.unwrap())); } else if (schema instanceof ZodTuple) { return ZodTuple.create(schema.items.map((item) => deepPartialify(item))); } else { return schema; } } __name(deepPartialify, "deepPartialify"); var ZodObject = class _ZodObject extends ZodType { static { __name(this, "ZodObject"); } constructor() { super(...arguments); this._cached = null; this.nonstrict = this.passthrough; this.augment = this.extend; } _getCached() { if (this._cached !== null) return this._cached; const shape = this._def.shape(); const keys = util.objectKeys(shape); return this._cached = { shape, keys }; } _parse(input) { const parsedType = this._getType(input); if (parsedType !== ZodParsedType.object) { const ctx2 = this._getOrReturnCtx(input); addIssueToContext(ctx2, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.object, received: ctx2.parsedType }); return INVALID; } const { status, ctx } = this._processInputParams(input); const { shape, keys: shapeKeys } = this._getCached(); const extraKeys = []; if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) { for (const key in ctx.data) { if (!shapeKeys.includes(key)) { extraKeys.push(key); } } } const pairs = []; for (const key of shapeKeys) { const keyValidator = shape[key]; const value = ctx.data[key]; pairs.push({ key: { status: "valid", value: key }, value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)), alwaysSet: key in ctx.data }); } if (this._def.catchall instanceof ZodNever) { const unknownKeys = this._def.unknownKeys; if (unknownKeys === "passthrough") { for (const key of extraKeys) { pairs.push({ key: { status: "valid", value: key }, value: { status: "valid", value: ctx.data[key] } }); } } else if (unknownKeys === "strict") { if (extraKeys.length > 0) { addIssueToContext(ctx, { code: ZodIssueCode.unrecognized_keys, keys: extraKeys }); status.dirty(); } } else if (unknownKeys === "strip") ; else { throw new Error(`Internal ZodObject error: invalid unknownKeys value.`); } } else { const catchall = this._def.catchall; for (const key of extraKeys) { const value = ctx.data[key]; pairs.push({ key: { status: "valid", value: key }, value: catchall._parse( new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value) ), alwaysSet: key in ctx.data }); } } if (ctx.common.async) { return Promise.resolve().then(async () => { const syncPairs = []; for (const pair of pairs) { const key = await pair.key; const value = await pair.value; syncPairs.push({ key, value, alwaysSet: pair.alwaysSet }); } return syncPairs; }).then((syncPairs) => { return ParseStatus.mergeObjectSync(status, syncPairs); }); } else { return ParseStatus.mergeObjectSync(status, pairs); } } get shape() { return this._def.shape(); } strict(message) { errorUtil.errToObj; return new _ZodObject({ ...this._def, unknownKeys: "strict", ...message !== void 0 ? { errorMap: /* @__PURE__ */ __name((issue, ctx) => { var _a, _b, _c, _d; const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError; if (issue.code === "unrecognized_keys") return { message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError }; return { message: defaultError }; }, "errorMap") } : {} }); } strip() { return new _ZodObject({ ...this._def, unknownKeys: "strip" }); } passthrough() { return new _ZodObject({ ...this._def, unknownKeys: "passthrough" }); } // const AugmentFactory = // <Def extends ZodObjectDef>(def: Def) => // <Augmentation extends ZodRawShape>( // augmentation: Augmentation // ): ZodObject< // extendShape<ReturnType<Def["shape"]>, Augmentation>, // Def["unknownKeys"], // Def["catchall"] // > => { // return new ZodObject({ // ...def, // shape: () => ({ // ...def.shape(), // ...augmentation, // }), // }) as any; // }; extend(augmentation) { return new _ZodObject({ ...this._def, shape: /* @__PURE__ */ __name(() => ({ ...this._def.shape(), ...augmentation }), "shape") }); } /** * Prior to zod@1.0.12 there was a bug in the * inferred type of merged objects. Please * upgrade if you are experiencing issues. */ merge(merging) { const merged = new _ZodObject({ unknownKeys: merging._def.unknownKeys, catchall: merging._def.catchall, shape: /* @__PURE__ */ __name(() => ({ ...this._def.shape(), ...merging._def.shape() }), "shape"), typeName: ZodFirstPartyTypeKind.ZodObject }); return merged; } // merge< // Incoming extends AnyZodObject, // Augmentation extends Incoming["shape"], // NewOutput extends { // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation // ? Augmentation[k]["_output"] // : k extends keyof Output // ? Output[k] // : never; // }, // NewInput extends { // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation // ? Augmentation[k]["_input"] // : k extends keyof Input // ? Input[k] // : never; // } // >( // merging: Incoming // ): ZodObject< // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>, // Incoming["_def"]["unknownKeys"], // Incoming["_def"]["catchall"], // NewOutput, // NewInput // > { // const merged: any = new ZodObject({ // unknownKeys: merging._def.unknownKeys, // catchall: merging._def.catchall, // shape: () => // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()), // typeName: ZodFirstPartyTypeKind.ZodObject, // }) as any; // return merged; // } setKey(key, schema) { return this.augment({ [key]: schema }); } // merge<Incoming extends AnyZodObject>( // merging: Incoming // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => { // ZodObject< // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>, // Incoming["_def"]["unknownKeys"], // Incoming["_def"]["catchall"] // > { // // const mergedShape = objectUtil.mergeShapes( // // this._def.shape(), // // merging._def.shape() // // ); // const merged: any = new ZodObject({ // unknownKeys: merging._def.unknownKeys, // catchall: merging._def.catchall, // shape: () => // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()), // typeName: ZodFirstPartyTypeKind.ZodObject, // }) as any; // return merged; // } catchall(index) { return new _ZodObject({ ...this._def, catchall: index }); } pick(mask) { const shape = {}; util.objectKeys(mask).forEach((key) => { if (mask[key] && this.shape[key]) { shape[key] = this.shape[key]; } }); return new _ZodObject({ ...this._def, shape: /* @__PURE__ */ __name(() => shape, "shape") }); } omit(mask) { const shape = {}; util.objectKeys(this.shape).forEach((key) => { if (!mask[key]) { shape[key] = this.shape[key]; } }); return new _ZodObject({ ...this._def, shape: /* @__PURE__ */ __name(() => shape, "shape") }); } /** * @deprecated */ deepPartial() { return deepPartialify(this); } partial(mask) { const newShape = {}; util.objectKeys(this.shape).forEach((key) => { const fieldSchema = this.shape[key]; if (mask && !mask[key]) { newShape[key] = fieldSchema; } else { newShape[key] = fieldSchema.optional(); } }); return new _ZodObject({ ...this._def, shape: /* @__PURE__ */ __name(() => newShape, "shape") }); } required(mask) { const newShape = {}; util.objectKeys(this.shape).forEach((key) => { if (mask && !mask[key]) { newShape[key] = this.shape[key]; } else { const fieldSchema = this.shape[key]; let newField = fieldSchema; while (newField instanceof ZodOptional) { newField = newField._def.innerType; } newShape[key] = newField; } }); return new _ZodObject({ ...this._def, shape: /* @__PURE__ */ __name(() => newShape, "shape") }); } keyof() { return createZodEnum(util.objectKeys(this.shape)); } }; ZodObject.create = (shape, params) => { return new ZodObject({ shape: /* @__PURE__ */ __name(() => shape, "shape"), unknownKeys: "strip", catchall: ZodNever.create(), typeName: ZodFirstPartyTypeKind.ZodObject, ...processCreateParams(params) }); }; ZodObject.strictCreate = (shape, params) => { return new ZodObject({ shape: /* @__PURE__ */ __name(() => shape, "shape"), unknownKeys: "strict", catchall: ZodNever.create(), typeName: ZodFirstPartyTypeKind.ZodObject, ...processCreateParams(params) }); }; ZodObject.lazycreate = (shape, params) => { return new ZodObject({ shape, unknownKeys: "strip", catchall: ZodNever.create(), typeName: ZodFirstPartyTypeKind.ZodObject, ...processCreateParams(params) }); }; var ZodUnion = class extends ZodType { static { __name(this, "ZodUnion"); } _parse(input) { const { ctx } = this._processInputParams(input); const options = this._def.options; function handleResults(results) { for (const result of results) { if (result.result.status === "valid") { return result.result; } } for (const result of results) { if (result.result.status === "dirty") { ctx.common.issues.push(...result.ctx.common.issues); return result.result; } } const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues)); addIssueToContext(ctx, { code: ZodIssueCode.invalid_union, unionErrors }); return INVALID; } __name(handleResults, "handleResults"); if (ctx.common.async) { return Promise.all(options.map(async (option) => { const childCtx = { ...ctx, common: { ...ctx.common, issues: [] }, parent: null }; return { result: await option._parseAsync({ data: ctx.data, path: ctx.path, parent: childCtx }), ctx: childCtx }; })).then(handleResults); } else { let dirty = void 0; const issues = []; for (const option of options) { const childCtx = { ...ctx, common: { ...ctx.common, issues: [] }, parent: null }; const result = option._parseSync({ data: ctx.data, path: ctx.path, parent: childCtx }); if (result.status === "valid") { return result; } else if (result.status === "dirty" && !dirty) { dirty = { result, ctx: childCtx }; } if (childCtx.common.issues.length) { issues.push(childCtx.common.issues); } } if (dirty) { ctx.common.issues.push(...dirty.ctx.common.issues); return dirty.result; } const unionErrors = issues.map((issues2) => new ZodError(issues2)); addIssueToContext(ctx, { code: ZodIssueCode.invalid_union, unionErrors }); return INVALID; } } get options() { return this._def.options; } }; ZodUnion.create = (types, params) => { return new ZodUnion({ options: types, typeName: ZodFirstPartyTypeKind.ZodUnion, ...processCreateParams(params) }); }; var getDiscriminator = /* @__PURE__ */ __name((type) => { if (type instanceof ZodLazy) { return getDiscriminator(type.schema); } else if (type instanceof ZodEffects) { return getDiscriminator(type.innerType()); } else if (type instanceof ZodLiteral) { return [type.value]; } else if (type instanceof ZodEnum) { return type.options; } else if (type instanceof ZodNativeEnum) { return util.objectValues(type.enum); } else if (type instanceof ZodDefault) { return getDiscriminator(type._def.innerType); } else if (type instanceof ZodUndefined) { return [void 0]; } else if (type instanceof ZodNull) { return [null]; } else if (type instanceof ZodOptional) { return [void 0, ...getDiscriminator(type.unwrap())]; } else if (type instanceof ZodNullable) { return [null, ...getDiscriminator(type.unwrap())]; } else if (type instanceof ZodBranded) { return getDiscriminator(type.unwrap()); } else if (type instanceof ZodReadonly) { return getDiscriminator(type.unwrap()); } else if (type instanceof ZodCatch) { return getDiscriminator(type._def.innerType); } else { return []; } }, "getDiscriminator"); var ZodDiscriminatedUnion = class _ZodDiscriminatedUnion extends ZodType { static { __name(this, "ZodDiscriminatedUnion"); } _parse(input) { const { ctx } = this._processInputParams(input); if (ctx.parsedType !== ZodParsedType.object) { addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.object, received: ctx.parsedType }); return INVALID; } const discriminator = this.discriminator; const discriminatorValue = ctx.data[discriminator]; const option = this.optionsMap.get(discriminatorValue); if (!option) { addIssueToContext(ctx, { code: ZodIssueCode.invalid_union_discriminator, options: Array.from(this.optionsMap.keys()), path: [discriminator] }); return INVALID; } if (ctx.common.async) { return option._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }); } else { return option._parseSync({ data: ctx.data, path: ctx.path, parent: ctx }); } } get discriminator() { return this._def.discriminator; } get options() { return this._def.options; } get optionsMap() { return this._def.optionsMap; } /** * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor. * However, it only allows a union of objects, all of which need to share a discriminator property. This property must * have a different value for each object in the union. * @param discriminator the name of the discriminator property * @param types an array of object schemas * @param params */ static create(discriminator, options, params) { const optionsMap = /* @__PURE__ */ new Map(); for (const type of options) { const discriminatorValues = getDiscriminator(type.shape[discriminator]); if (!discriminatorValues.length) { throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`); } for (const value of discriminatorValues) { if (optionsMap.has(value)) { throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`); } optionsMap.set(value, type); } } return new _ZodDiscriminatedUnion({ typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion, discriminator, options, optionsMap, ...processCreateParams(params) }); } }; function mergeValues(a, b) { const aType = getParsedType(a); const bType = getParsedType(b); if (a === b) { return { valid: true, data: a }; } else if (aType === ZodParsedType.object && bType === ZodParsedType.object) { const bKeys = util.objectKeys(b); const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1); const newObj = { ...a, ...b }; for (const key of sharedKeys) { const sharedValue = mergeValues(a[key], b[key]); if (!sharedValue.valid) { return { valid: false }; } newObj[key] = sharedValue.data; } return { valid: true, data: newObj }; } else if (aType === ZodParsedType.array && bType === ZodParsedType.array) { if (a.length !== b.length) { return { valid: false }; } const newArray = []; for (let index = 0; index < a.length; index++) { const itemA = a[index]; const itemB = b[index]; const sharedValue = mergeValues(itemA, itemB); if (!sharedValue.valid) { return { valid: false }; } newArray.push(sharedValue.data); } return { valid: true, data: newArray }; } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) { return { valid: true, data: a }; } else { return { valid: false }; } } __name(mergeValues, "mergeValues"); var ZodIntersection = class extends ZodType { static { __name(this, "ZodIntersection"); } _parse(input) { const { status, ctx } = this._processInputParams(input); const handleParsed = /* @__PURE__ */ __name((parsedLeft, parsedRight) => { if (isAborted(parsedLeft) || isAborted(parsedRight)) { return INVALID; } const merged = mergeValues(parsedLeft.value, parsedRight.value); if (!merged.valid) { addIssueToContext(ctx, { code: ZodIssueCode.invalid_intersection_types }); return INVALID; } if (isDirty(parsedLeft) || isDirty(parsedRight)) { status.dirty(); } return { status: status.value, value: merged.data }; }, "handleParsed"); if (ctx.common.async) { return Promise.all([ this._def.left._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }), this._def.right._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }) ]).then(([left, right]) => handleParsed(left, right)); } else { return handleParsed(this._def.left._parseSync({ data: ctx.data, path: ctx.path, parent: ctx }), this._def.right._parseSync({ data: ctx.data, path: ctx.path, parent: ctx })); } } }; ZodIntersection.create = (left, right, params) => { return new ZodIntersection({ left, right, typeName: ZodFirstPartyTypeKind.ZodIntersection, ...processCreateParams(params) }); }; var ZodTuple = class _ZodTuple extends ZodType { static { __name(this, "ZodTuple"); } _parse(input) { const { status, ctx } = this._processInputParams(input); if (ctx.parsedType !== ZodParsedType.array) { addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.array, received: ctx.parsedType }); return INVALID; } if (ctx.data.length < this._def.items.length) { addIssueToContext(ctx, { code: ZodIssueCode.too_small, minimum: this._def.items.length, inclusive: true, exact: false, type: "array" }); return INVALID; } const rest = this._def.rest; if (!rest && ctx.data.length > this._def.items.length) { addIssueToContext(ctx, { code: ZodIssueCode.too_big, maximum: this._def.items.length, inclusive: true, exact: false, type: "array" }); status.dirty(); } const items = [...ctx.data].map((item, itemIndex) => { const schema = this._def.items[itemIndex] || this._def.rest; if (!schema) return null; return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex)); }).filter((x) => !!x); if (ctx.common.async) { return Promise.all(items).then((results) => { return ParseStatus.mergeArray(status, results); }); } else { return ParseStatus.mergeArray(status, items); } } get items() { return this._def.items; } rest(rest) { return new _ZodTuple({ ...this._def, rest }); } }; ZodTuple.create = (schemas, params) => { if (!Array.isArray(schemas)) { throw new Error("You must pass an array of schemas to z.tuple([ ... ])"); } return new ZodTuple({ items: schemas, typeName: ZodFirstPartyTypeKind.ZodTuple, rest: null, ...processCreateParams(params) }); }; var ZodRecord = class _ZodRecord extends ZodType { static { __name(this, "ZodRecord"); } get keySchema() { return this._def.keyType; } get valueSchema() { return this._def.valueType; } _parse(input) { const { status, ctx } = this._processInputParams(input); if (ctx.parsedType !== ZodParsedType.object) { addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.object, received: ctx.parsedType }); return INVALID; } const pairs = []; const keyType = this._def.keyType; const valueType = this._def.valueType; for (const key in ctx.data) { pairs.push({ key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)), value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)), alwaysSet: key in ctx.data }); } if (ctx.common.async) { return ParseStatus.mergeObjectAsync(status, pairs); } else { return ParseStatus.mergeObjectSync(status, pairs); } } get element() { return this._def.valueType; } static create(first, second, third) { if (second instanceof ZodType) { return new _ZodRecord({ keyType: first, valueType: second, typeName: ZodFirstPartyTypeKind.ZodRecord, ...processCreateParams(third) }); } return new _ZodRecord({ keyType: ZodString.create(), valueType: first, typeName: ZodFirstPartyTypeKind.ZodRecord, ...processCreateParams(second) }); } }; var ZodMap = class extends ZodType { static { __name(this, "ZodMap"); } get keySchema() { return this._def.keyType; } get valueSchema() { return this._def.valueType; } _parse(input) { const { status, ctx } = this._processInputParams(input); if (ctx.parsedType !== ZodParsedType.map) { addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.map, received: ctx.parsedType }); return INVALID; } const keyType = this._def.keyType; const valueType = this._def.valueType; const pairs = [...ctx.data.entries()].map(([key, value], index) => { return { key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])), value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])) }; }); if (ctx.common.async) { const finalMap = /* @__PURE__ */ new Map(); return Promise.resolve().then(async () => { for (const pair of pairs) { const key = await pair.key; const value = await pair.value; if (key.status === "aborted" || value.status === "aborted") { return INVALID; } if (key.status === "dirty" || value.status === "dirty") { status.dirty(); } finalMap.set(key.value, value.value); } return { status: status.value, value: finalMap }; }); } else { const finalMap = /* @__PURE__ */ new Map(); for (const pair of pairs) { const key = pair.key; const value = pair.value; if (key.status === "aborted" || value.status === "aborted") { return INVALID; } if (key.status === "dirty" || value.status === "dirty") { status.dirty(); } finalMap.set(key.value, value.value); } return { status: status.value, value: finalMap }; } } }; ZodMap.create = (keyType, valueType, params) => { return new ZodMap({ valueType, keyType, typeName: ZodFirstPartyTypeKind.ZodMap, ...processCreateParams(params) }); }; var ZodSet = class _ZodSet extends ZodType { static { __name(this, "ZodSet"); } _parse(input) { const { status, ctx } = this._processInputParams(input); if (ctx.parsedType !== ZodParsedType.set) { addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.set, received: ctx.parsedType }); return INVALID; } const def = this._def; if (def.minSize !== null) { if (ctx.data.size < def.minSize.value) { addIssueToContext(ctx, { code: ZodIssueCode.too_small, minimum: def.minSize.value, type: "set", inclusive: true, exact: false, message: def.minSize.message }); status.dirty(); } } if (def.maxSize !== null) { if (ctx.data.size > def.maxSize.value) { addIssueToContext(ctx, { code: ZodIssueCode.too_big, maximum: def.maxSize.value, type: "set", inclusive: true, exact: false, message: def.maxSize.message }); status.dirty(); } } const valueType = this._def.valueType; function finalizeSet(elements2) { const parsedSet = /* @__PURE__ */ new Set(); for (const element of elements2) { if (element.status === "aborted") return INVALID; if (element.status === "dirty") status.dirty(); parsedSet.add(element.value); } return { status: status.value, value: parsedSet }; } __name(finalizeSet, "finalizeSet"); const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i))); if (ctx.common.async) { return Promise.all(elements).then((elements2) => finalizeSet(elements2)); } else { return finalizeSet(elements); } } min(minSize, message) { return new _ZodSet({ ...this._def, minSize: { value: minSize, message: errorUtil.toString(message) } }); } max(maxSize, message) { return new _ZodSet({ ...this._def, maxSize: { value: maxSize, message: errorUtil.toString(message) } }); } size(size, message) { return this.min(size, message).max(size, message); } nonempty(message) { return this.min(1, message); } }; ZodSet.create = (valueType, params) => { return new ZodSet({ valueType, minSize: null, maxSize: null, typeName: ZodFirstPartyTypeKind.ZodSet, ...processCreateParams(params) }); }; var ZodFunction = class _ZodFunction extends ZodType { static { __name(this, "ZodFunction"); } constructor() { super(...arguments); this.validate = this.implement; } _parse(input) { const { ctx } = this._processInputParams(input); if (ctx.parsedType !== ZodParsedType.function) { addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.function, received: ctx.parsedType }); return INVALID; } function makeArgsIssue(args, error3) { return makeIssue({ data: args, path: ctx.path, errorMaps: [ ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), errorMap ].filter((x) => !!x), issueData: { code: ZodIssueCode.invalid_arguments, argumentsError: error3 } }); } __name(makeArgsIssue, "makeArgsIssue"); function makeReturnsIssue(returns, error3) { return makeIssue({ data: returns, path: ctx.path, errorMaps: [ ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), errorMap ].filter((x) => !!x), issueData: { code: ZodIssueCode.invalid_return_type, returnTypeError: error3 } }); } __name(makeReturnsIssue, "makeReturnsIssue"); const params = { errorMap: ctx.common.contextualErrorMap }; const fn = ctx.data; if (this._def.returns instanceof ZodPromise) { const me = this; return OK(async function(...args) { const error3 = new ZodError([]); const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => { error3.addIssue(makeArgsIssue(args, e)); throw error3; }); const result = await Reflect.apply(fn, this, parsedArgs); const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => { error3.addIssue(makeReturnsIssue(result, e)); throw error3; }); return parsedReturns; }); } else { const me = this; return OK(function(...args) { const parsedArgs = me._def.args.safeParse(args, params); if (!parsedArgs.success) { throw new ZodError([makeArgsIssue(args, parsedArgs.error)]); } const result = Reflect.apply(fn, this, parsedArgs.data); const parsedReturns = me._def.returns.safeParse(result, params); if (!parsedReturns.success) { throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]); } return parsedReturns.data; }); } } parameters() { return this._def.args; } returnType() { return this._def.returns; } args(...items) { return new _ZodFunction({ ...this._def, args: ZodTuple.create(items).rest(ZodUnknown.create()) }); } returns(returnType) { return new _ZodFunction({ ...this._def, returns: returnType }); } implement(func) { const validatedFunc = this.parse(func); return validatedFunc; } strictImplement(func) { const validatedFunc = this.parse(func); return validatedFunc; } static create(args, returns, params) { return new _ZodFunction({ args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()), returns: returns || ZodUnknown.create(), typeName: ZodFirstPartyTypeKind.ZodFunction, ...processCreateParams(params) }); } }; var ZodLazy = class extends ZodType { static { __name(this, "ZodLazy"); } get schema() { return this._def.getter(); } _parse(input) { const { ctx } = this._processInputParams(input); const lazySchema = this._def.getter(); return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx }); } }; ZodLazy.create = (getter, params) => { return new ZodLazy({ getter, typeName: ZodFirstPartyTypeKind.ZodLazy, ...processCreateParams(params) }); }; var ZodLiteral = class extends ZodType { static { __name(this, "ZodLiteral"); } _parse(input) { if (input.data !== this._def.value) { const ctx = this._getOrReturnCtx(input); addIssueToContext(ctx, { received: ctx.data, code: ZodIssueCode.invalid_literal, expected: this._def.value }); return INVALID; } return { status: "valid", value: input.data }; } get value() { return this._def.value; } }; ZodLiteral.create = (value, params) => { return new ZodLiteral({ value, typeName: ZodFirstPartyTypeKind.ZodLiteral, ...processCreateParams(params) }); }; function createZodEnum(values, params) { return new ZodEnum({ values, typeName: ZodFirstPartyTypeKind.ZodEnum, ...processCreateParams(params) }); } __name(createZodEnum, "createZodEnum"); var ZodEnum = class _ZodEnum extends ZodType { static { __name(this, "ZodEnum"); } constructor() { super(...arguments); _ZodEnum_cache.set(this, void 0); } _parse(input) { if (typeof input.data !== "string") { const ctx = this._getOrReturnCtx(input); const expectedValues = this._def.values; addIssueToContext(ctx, { expected: util.joinValues(expectedValues), received: ctx.parsedType, code: ZodIssueCode.invalid_type }); return INVALID; } if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) { __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f"); } if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) { const ctx = this._getOrReturnCtx(input); const expectedValues = this._def.values; addIssueToContext(ctx, { received: ctx.data, code: ZodIssueCode.invalid_enum_value, options: expectedValues }); return INVALID; } return OK(input.data); } get options() { return this._def.values; } get enum() { const enumValues = {}; for (const val of this._def.values) { enumValues[val] = val; } return enumValues; } get Values() { const enumValues = {}; for (const val of this._def.values) { enumValues[val] = val; } return enumValues; } get Enum() { const enumValues = {}; for (const val of this._def.values) { enumValues[val] = val; } return enumValues; } extract(values, newDef = this._def) { return _ZodEnum.create(values, { ...this._def, ...newDef }); } exclude(values, newDef = this._def) { return _ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), { ...this._def, ...newDef }); } }; _ZodEnum_cache = /* @__PURE__ */ new WeakMap(); ZodEnum.create = createZodEnum; var ZodNativeEnum = class extends ZodType { static { __name(this, "ZodNativeEnum"); } constructor() { super(...arguments); _ZodNativeEnum_cache.set(this, void 0); } _parse(input) { const nativeEnumValues = util.getValidEnumValues(this._def.values); const ctx = this._getOrReturnCtx(input); if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) { const expectedValues = util.objectValues(nativeEnumValues); addIssueToContext(ctx, { expected: util.joinValues(expectedValues), received: ctx.parsedType, code: ZodIssueCode.invalid_type }); return INVALID; } if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) { __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f"); } if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) { const expectedValues = util.objectValues(nativeEnumValues); addIssueToContext(ctx, { received: ctx.data, code: ZodIssueCode.invalid_enum_value, options: expectedValues }); return INVALID; } return OK(input.data); } get enum() { return this._def.values; } }; _ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap(); ZodNativeEnum.create = (values, params) => { return new ZodNativeEnum({ values, typeName: ZodFirstPartyTypeKind.ZodNativeEnum, ...processCreateParams(params) }); }; var ZodPromise = class extends ZodType { static { __name(this, "ZodPromise"); } unwrap() { return this._def.type; } _parse(input) { const { ctx } = this._processInputParams(input); if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) { addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.promise, received: ctx.parsedType }); return INVALID; } const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data); return OK(promisified.then((data) => { return this._def.type.parseAsync(data, { path: ctx.path, errorMap: ctx.common.contextualErrorMap }); })); } }; ZodPromise.create = (schema, params) => { return new ZodPromise({ type: schema, typeName: ZodFirstPartyTypeKind.ZodPromise, ...processCreateParams(params) }); }; var ZodEffects = class extends ZodType { static { __name(this, "ZodEffects"); } innerType() { return this._def.schema; } sourceType() { return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects ? this._def.schema.sourceType() : this._def.schema; } _parse(input) { const { status, ctx } = this._processInputParams(input); const effect = this._def.effect || null; const checkCtx = { addIssue: /* @__PURE__ */ __name((arg) => { addIssueToContext(ctx, arg); if (arg.fatal) { status.abort(); } else { status.dirty(); } }, "addIssue"), get path() { return ctx.path; } }; checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx); if (effect.type === "preprocess") { const processed = effect.transform(ctx.data, checkCtx); if (ctx.common.async) { return Promise.resolve(processed).then(async (processed2) => { if (status.value === "aborted") return INVALID; const result = await this._def.schema._parseAsync({ data: processed2, path: ctx.path, parent: ctx }); if (result.status === "aborted") return INVALID; if (result.status === "dirty") return DIRTY(result.value); if (status.value === "dirty") return DIRTY(result.value); return result; }); } else { if (status.value === "aborted") return INVALID; const result = this._def.schema._parseSync({ data: processed, path: ctx.path, parent: ctx }); if (result.status === "aborted") return INVALID; if (result.status === "dirty") return DIRTY(result.value); if (status.value === "dirty") return DIRTY(result.value); return result; } } if (effect.type === "refinement") { const executeRefinement = /* @__PURE__ */ __name((acc) => { const result = effect.refinement(acc, checkCtx); if (ctx.common.async) { return Promise.resolve(result); } if (result instanceof Promise) { throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead."); } return acc; }, "executeRefinement"); if (ctx.common.async === false) { const inner = this._def.schema._parseSync({ data: ctx.data, path: ctx.path, parent: ctx }); if (inner.status === "aborted") return INVALID; if (inner.status === "dirty") status.dirty(); executeRefinement(inner.value); return { status: status.value, value: inner.value }; } else { return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => { if (inner.status === "aborted") return INVALID; if (inner.status === "dirty") status.dirty(); return executeRefinement(inner.value).then(() => { return { status: status.value, value: inner.value }; }); }); } } if (effect.type === "transform") { if (ctx.common.async === false) { const base = this._def.schema._parseSync({ data: ctx.data, path: ctx.path, parent: ctx }); if (!isValid(base)) return base; const result = effect.transform(base.value, checkCtx); if (result instanceof Promise) { throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`); } return { status: status.value, value: result }; } else { return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => { if (!isValid(base)) return base; return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result })); }); } } util.assertNever(effect); } }; ZodEffects.create = (schema, effect, params) => { return new ZodEffects({ schema, typeName: ZodFirstPartyTypeKind.ZodEffects, effect, ...processCreateParams(params) }); }; ZodEffects.createWithPreprocess = (preprocess, schema, params) => { return new ZodEffects({ schema, effect: { type: "preprocess", transform: preprocess }, typeName: ZodFirstPartyTypeKind.ZodEffects, ...processCreateParams(params) }); }; var ZodOptional = class extends ZodType { static { __name(this, "ZodOptional"); } _parse(input) { const parsedType = this._getType(input); if (parsedType === ZodParsedType.undefined) { return OK(void 0); } return this._def.innerType._parse(input); } unwrap() { return this._def.innerType; } }; ZodOptional.create = (type, params) => { return new ZodOptional({ innerType: type, typeName: ZodFirstPartyTypeKind.ZodOptional, ...processCreateParams(params) }); }; var ZodNullable = class extends ZodType { static { __name(this, "ZodNullable"); } _parse(input) { const parsedType = this._getType(input); if (parsedType === ZodParsedType.null) { return OK(null); } return this._def.innerType._parse(input); } unwrap() { return this._def.innerType; } }; ZodNullable.create = (type, params) => { return new ZodNullable({ innerType: type, typeName: ZodFirstPartyTypeKind.ZodNullable, ...processCreateParams(params) }); }; var ZodDefault = class extends ZodType { static { __name(this, "ZodDefault"); } _parse(input) { const { ctx } = this._processInputParams(input); let data = ctx.data; if (ctx.parsedType === ZodParsedType.undefined) { data = this._def.defaultValue(); } return this._def.innerType._parse({ data, path: ctx.path, parent: ctx }); } removeDefault() { return this._def.innerType; } }; ZodDefault.create = (type, params) => { return new ZodDefault({ innerType: type, typeName: ZodFirstPartyTypeKind.ZodDefault, defaultValue: typeof params.default === "function" ? params.default : () => params.default, ...processCreateParams(params) }); }; var ZodCatch = class extends ZodType { static { __name(this, "ZodCatch"); } _parse(input) { const { ctx } = this._processInputParams(input); const newCtx = { ...ctx, common: { ...ctx.common, issues: [] } }; const result = this._def.innerType._parse({ data: newCtx.data, path: newCtx.path, parent: { ...newCtx } }); if (isAsync(result)) { return result.then((result2) => { return { status: "valid", value: result2.status === "valid" ? result2.value : this._def.catchValue({ get error() { return new ZodError(newCtx.common.issues); }, input: newCtx.data }) }; }); } else { return { status: "valid", value: result.status === "valid" ? result.value : this._def.catchValue({ get error() { return new ZodError(newCtx.common.issues); }, input: newCtx.data }) }; } } removeCatch() { return this._def.innerType; } }; ZodCatch.create = (type, params) => { return new ZodCatch({ innerType: type, typeName: ZodFirstPartyTypeKind.ZodCatch, catchValue: typeof params.catch === "function" ? params.catch : () => params.catch, ...processCreateParams(params) }); }; var ZodNaN = class extends ZodType { static { __name(this, "ZodNaN"); } _parse(input) { const parsedType = this._getType(input); if (parsedType !== ZodParsedType.nan) { const ctx = this._getOrReturnCtx(input); addIssueToContext(ctx, { code: ZodIssueCode.invalid_type, expected: ZodParsedType.nan, received: ctx.parsedType }); return INVALID; } return { status: "valid", value: input.data }; } }; ZodNaN.create = (params) => { return new ZodNaN({ typeName: ZodFirstPartyTypeKind.ZodNaN, ...processCreateParams(params) }); }; var BRAND = Symbol("zod_brand"); var ZodBranded = class extends ZodType { static { __name(this, "ZodBranded"); } _parse(input) { const { ctx } = this._processInputParams(input); const data = ctx.data; return this._def.type._parse({ data, path: ctx.path, parent: ctx }); } unwrap() { return this._def.type; } }; var ZodPipeline = class _ZodPipeline extends ZodType { static { __name(this, "ZodPipeline"); } _parse(input) { const { status, ctx } = this._processInputParams(input); if (ctx.common.async) { const handleAsync = /* @__PURE__ */ __name(async () => { const inResult = await this._def.in._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }); if (inResult.status === "aborted") return INVALID; if (inResult.status === "dirty") { status.dirty(); return DIRTY(inResult.value); } else { return this._def.out._parseAsync({ data: inResult.value, path: ctx.path, parent: ctx }); } }, "handleAsync"); return handleAsync(); } else { const inResult = this._def.in._parseSync({ data: ctx.data, path: ctx.path, parent: ctx }); if (inResult.status === "aborted") return INVALID; if (inResult.status === "dirty") { status.dirty(); return { status: "dirty", value: inResult.value }; } else { return this._def.out._parseSync({ data: inResult.value, path: ctx.path, parent: ctx }); } } } static create(a, b) { return new _ZodPipeline({ in: a, out: b, typeName: ZodFirstPartyTypeKind.ZodPipeline }); } }; var ZodReadonly = class extends ZodType { static { __name(this, "ZodReadonly"); } _parse(input) { const result = this._def.innerType._parse(input); const freeze = /* @__PURE__ */ __name((data) => { if (isValid(data)) { data.value = Object.freeze(data.value); } return data; }, "freeze"); return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result); } unwrap() { return this._def.innerType; } }; ZodReadonly.create = (type, params) => { return new ZodReadonly({ innerType: type, typeName: ZodFirstPartyTypeKind.ZodReadonly, ...processCreateParams(params) }); }; function cleanParams(params, data) { const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params; const p2 = typeof p === "string" ? { message: p } : p; return p2; } __name(cleanParams, "cleanParams"); function custom(check, _params = {}, fatal) { if (check) return ZodAny.create().superRefine((data, ctx) => { var _a, _b; const r = check(data); if (r instanceof Promise) { return r.then((r2) => { var _a2, _b2; if (!r2) { const params = cleanParams(_params, data); const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true; ctx.addIssue({ code: "custom", ...params, fatal: _fatal }); } }); } if (!r) { const params = cleanParams(_params, data); const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true; ctx.addIssue({ code: "custom", ...params, fatal: _fatal }); } return; }); return ZodAny.create(); } __name(custom, "custom"); var late = { object: ZodObject.lazycreate }; var ZodFirstPartyTypeKind; (function(ZodFirstPartyTypeKind2) { ZodFirstPartyTypeKind2["ZodString"] = "ZodString"; ZodFirstPartyTypeKind2["ZodNumber"] = "ZodNumber"; ZodFirstPartyTypeKind2["ZodNaN"] = "ZodNaN"; ZodFirstPartyTypeKind2["ZodBigInt"] = "ZodBigInt"; ZodFirstPartyTypeKind2["ZodBoolean"] = "ZodBoolean"; ZodFirstPartyTypeKind2["ZodDate"] = "ZodDate"; ZodFirstPartyTypeKind2["ZodSymbol"] = "ZodSymbol"; ZodFirstPartyTypeKind2["ZodUndefined"] = "ZodUndefined"; ZodFirstPartyTypeKind2["ZodNull"] = "ZodNull"; ZodFirstPartyTypeKind2["ZodAny"] = "ZodAny"; ZodFirstPartyTypeKind2["ZodUnknown"] = "ZodUnknown"; ZodFirstPartyTypeKind2["ZodNever"] = "ZodNever"; ZodFirstPartyTypeKind2["ZodVoid"] = "ZodVoid"; ZodFirstPartyTypeKind2["ZodArray"] = "ZodArray"; ZodFirstPartyTypeKind2["ZodObject"] = "ZodObject"; ZodFirstPartyTypeKind2["ZodUnion"] = "ZodUnion"; ZodFirstPartyTypeKind2["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion"; ZodFirstPartyTypeKind2["ZodIntersection"] = "ZodIntersection"; ZodFirstPartyTypeKind2["ZodTuple"] = "ZodTuple"; ZodFirstPartyTypeKind2["ZodRecord"] = "ZodRecord"; ZodFirstPartyTypeKind2["ZodMap"] = "ZodMap"; ZodFirstPartyTypeKind2["ZodSet"] = "ZodSet"; ZodFirstPartyTypeKind2["ZodFunction"] = "ZodFunction"; ZodFirstPartyTypeKind2["ZodLazy"] = "ZodLazy"; ZodFirstPartyTypeKind2["ZodLiteral"] = "ZodLiteral"; ZodFirstPartyTypeKind2["ZodEnum"] = "ZodEnum"; ZodFirstPartyTypeKind2["ZodEffects"] = "ZodEffects"; ZodFirstPartyTypeKind2["ZodNativeEnum"] = "ZodNativeEnum"; ZodFirstPartyTypeKind2["ZodOptional"] = "ZodOptional"; ZodFirstPartyTypeKind2["ZodNullable"] = "ZodNullable"; ZodFirstPartyTypeKind2["ZodDefault"] = "ZodDefault"; ZodFirstPartyTypeKind2["ZodCatch"] = "ZodCatch"; ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise"; ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded"; ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline"; ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly"; })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {})); var instanceOfType = /* @__PURE__ */ __name((cls, params = { message: `Input not instance of ${cls.name}` }) => custom((data) => data instanceof cls, params), "instanceOfType"); var stringType = ZodString.create; var numberType = ZodNumber.create; var nanType = ZodNaN.create; var bigIntType = ZodBigInt.create; var booleanType = ZodBoolean.create; var dateType = ZodDate.create; var symbolType = ZodSymbol.create; var undefinedType = ZodUndefined.create; var nullType = ZodNull.create; var anyType = ZodAny.create; var unknownType = ZodUnknown.create; var neverType = ZodNever.create; var voidType = ZodVoid.create; var arrayType = ZodArray.create; var objectType = ZodObject.create; var strictObjectType = ZodObject.strictCreate; var unionType = ZodUnion.create; var discriminatedUnionType = ZodDiscriminatedUnion.create; var intersectionType = ZodIntersection.create; var tupleType = ZodTuple.create; var recordType = ZodRecord.create; var mapType = ZodMap.create; var setType = ZodSet.create; var functionType = ZodFunction.create; var lazyType = ZodLazy.create; var literalType = ZodLiteral.create; var enumType = ZodEnum.create; var nativeEnumType = ZodNativeEnum.create; var promiseType = ZodPromise.create; var effectsType = ZodEffects.create; var optionalType = ZodOptional.create; var nullableType = ZodNullable.create; var preprocessType = ZodEffects.createWithPreprocess; var pipelineType = ZodPipeline.create; var ostring = /* @__PURE__ */ __name(() => stringType().optional(), "ostring"); var onumber = /* @__PURE__ */ __name(() => numberType().optional(), "onumber"); var oboolean = /* @__PURE__ */ __name(() => booleanType().optional(), "oboolean"); var coerce = { string: /* @__PURE__ */ __name((arg) => ZodString.create({ ...arg, coerce: true }), "string"), number: /* @__PURE__ */ __name((arg) => ZodNumber.create({ ...arg, coerce: true }), "number"), boolean: /* @__PURE__ */ __name((arg) => ZodBoolean.create({ ...arg, coerce: true }), "boolean"), bigint: /* @__PURE__ */ __name((arg) => ZodBigInt.create({ ...arg, coerce: true }), "bigint"), date: /* @__PURE__ */ __name((arg) => ZodDate.create({ ...arg, coerce: true }), "date") }; var NEVER = INVALID; var z = /* @__PURE__ */ Object.freeze({ __proto__: null, defaultErrorMap: errorMap, setErrorMap, getErrorMap, makeIssue, EMPTY_PATH, addIssueToContext, ParseStatus, INVALID, DIRTY, OK, isAborted, isDirty, isValid, isAsync, get util() { return util; }, get objectUtil() { return objectUtil; }, ZodParsedType, getParsedType, ZodType, datetimeRegex, ZodString, ZodNumber, ZodBigInt, ZodBoolean, ZodDate, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodArray, ZodObject, ZodUnion, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodEffects, ZodTransformer: ZodEffects, ZodOptional, ZodNullable, ZodDefault, ZodCatch, ZodNaN, BRAND, ZodBranded, ZodPipeline, ZodReadonly, custom, Schema: ZodType, ZodSchema: ZodType, late, get ZodFirstPartyTypeKind() { return ZodFirstPartyTypeKind; }, coerce, any: anyType, array: arrayType, bigint: bigIntType, boolean: booleanType, date: dateType, discriminatedUnion: discriminatedUnionType, effect: effectsType, "enum": enumType, "function": functionType, "instanceof": instanceOfType, intersection: intersectionType, lazy: lazyType, literal: literalType, map: mapType, nan: nanType, nativeEnum: nativeEnumType, never: neverType, "null": nullType, nullable: nullableType, number: numberType, object: objectType, oboolean, onumber, optional: optionalType, ostring, pipeline: pipelineType, preprocess: preprocessType, promise: promiseType, record: recordType, set: setType, strictObject: strictObjectType, string: stringType, symbol: symbolType, transformer: effectsType, tuple: tupleType, "undefined": undefinedType, union: unionType, unknown: unknownType, "void": voidType, NEVER, ZodIssueCode, quotelessJson, ZodError }); // node_modules/@modelcontextprotocol/sdk/dist/esm/types.js var LATEST_PROTOCOL_VERSION = "2024-11-05"; var SUPPORTED_PROTOCOL_VERSIONS = [ LATEST_PROTOCOL_VERSION, "2024-10-07" ]; var JSONRPC_VERSION = "2.0"; var ProgressTokenSchema = z.union([z.string(), z.number().int()]); var CursorSchema = z.string(); var BaseRequestParamsSchema = z.object({ _meta: z.optional(z.object({ /** * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. */ progressToken: z.optional(ProgressTokenSchema) }).passthrough()) }).passthrough(); var RequestSchema = z.object({ method: z.string(), params: z.optional(BaseRequestParamsSchema) }); var BaseNotificationParamsSchema = z.object({ /** * This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications. */ _meta: z.optional(z.object({}).passthrough()) }).passthrough(); var NotificationSchema = z.object({ method: z.string(), params: z.optional(BaseNotificationParamsSchema) }); var ResultSchema = z.object({ /** * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses. */ _meta: z.optional(z.object({}).passthrough()) }).passthrough(); var RequestIdSchema = z.union([z.string(), z.number().int()]); var JSONRPCRequestSchema = z.object({ jsonrpc: z.literal(JSONRPC_VERSION), id: RequestIdSchema }).merge(RequestSchema).strict(); var isJSONRPCRequest = /* @__PURE__ */ __name((value) => JSONRPCRequestSchema.safeParse(value).success, "isJSONRPCRequest"); var JSONRPCNotificationSchema = z.object({ jsonrpc: z.literal(JSONRPC_VERSION) }).merge(NotificationSchema).strict(); var isJSONRPCNotification = /* @__PURE__ */ __name((value) => JSONRPCNotificationSchema.safeParse(value).success, "isJSONRPCNotification"); var JSONRPCResponseSchema = z.object({ jsonrpc: z.literal(JSONRPC_VERSION), id: RequestIdSchema, result: ResultSchema }).strict(); var isJSONRPCResponse = /* @__PURE__ */ __name((value) => JSONRPCResponseSchema.safeParse(value).success, "isJSONRPCResponse"); var ErrorCode; (function(ErrorCode2) { ErrorCode2[ErrorCode2["ConnectionClosed"] = -32e3] = "ConnectionClosed"; ErrorCode2[ErrorCode2["RequestTimeout"] = -32001] = "RequestTimeout"; ErrorCode2[ErrorCode2["ParseError"] = -32700] = "ParseError"; ErrorCode2[ErrorCode2["InvalidRequest"] = -32600] = "InvalidRequest"; ErrorCode2[ErrorCode2["MethodNotFound"] = -32601] = "MethodNotFound"; ErrorCode2[ErrorCode2["InvalidParams"] = -32602] = "InvalidParams"; ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError"; })(ErrorCode || (ErrorCode = {})); var JSONRPCErrorSchema = z.object({ jsonrpc: z.literal(JSONRPC_VERSION), id: RequestIdSchema, error: z.object({ /** * The error type that occurred. */ code: z.number().int(), /** * A short description of the error. The message SHOULD be limited to a concise single sentence. */ message: z.string(), /** * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). */ data: z.optional(z.unknown()) }) }).strict(); var isJSONRPCError = /* @__PURE__ */ __name((value) => JSONRPCErrorSchema.safeParse(value).success, "isJSONRPCError"); var JSONRPCMessageSchema = z.union([ JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, JSONRPCErrorSchema ]); var EmptyResultSchema = ResultSchema.strict(); var CancelledNotificationSchema = NotificationSchema.extend({ method: z.literal("notifications/cancelled"), params: BaseNotificationParamsSchema.extend({ /** * The ID of the request to cancel. * * This MUST correspond to the ID of a request previously issued in the same direction. */ requestId: RequestIdSchema, /** * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user. */ reason: z.string().optional() }) }); var ImplementationSchema = z.object({ name: z.string(), version: z.string() }).passthrough(); var ClientCapabilitiesSchema = z.object({ /** * Experimental, non-standard capabilities that the client supports. */ experimental: z.optional(z.object({}).passthrough()), /** * Present if the client supports sampling from an LLM. */ sampling: z.optional(z.object({}).passthrough()), /** * Present if the client supports listing roots. */ roots: z.optional(z.object({ /** * Whether the client supports issuing notifications for changes to the roots list. */ listChanged: z.optional(z.boolean()) }).passthrough()) }).passthrough(); var InitializeRequestSchema = RequestSchema.extend({ method: z.literal("initialize"), params: BaseRequestParamsSchema.extend({ /** * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. */ protocolVersion: z.string(), capabilities: ClientCapabilitiesSchema, clientInfo: ImplementationSchema }) }); var ServerCapabilitiesSchema = z.object({ /** * Experimental, non-standard capabilities that the server supports. */ experimental: z.optional(z.object({}).passthrough()), /** * Present if the server supports sending log messages to the client. */ logging: z.optional(z.object({}).passthrough()), /** * Present if the server supports sending completions to the client. */ completions: z.optional(z.object({}).passthrough()), /** * Present if the server offers any prompt templates. */ prompts: z.optional(z.object({ /** * Whether this server supports issuing notifications for changes to the prompt list. */ listChanged: z.optional(z.boolean()) }).passthrough()), /** * Present if the server offers any resources to read. */ resources: z.optional(z.object({ /** * Whether this server supports clients subscribing to resource updates. */ subscribe: z.optional(z.boolean()), /** * Whether this server supports issuing notifications for changes to the resource list. */ listChanged: z.optional(z.boolean()) }).passthrough()), /** * Present if the server offers any tools to call. */ tools: z.optional(z.object({ /** * Whether this server supports issuing notifications for changes to the tool list. */ listChanged: z.optional(z.boolean()) }).passthrough()) }).passthrough(); var InitializeResultSchema = ResultSchema.extend({ /** * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. */ protocolVersion: z.string(), capabilities: ServerCapabilitiesSchema, serverInfo: ImplementationSchema, /** * Instructions describing how to use the server and its features. * * This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt. */ instructions: z.optional(z.string()) }); var InitializedNotificationSchema = NotificationSchema.extend({ method: z.literal("notifications/initialized") }); var PingRequestSchema = RequestSchema.extend({ method: z.literal("ping") }); var ProgressSchema = z.object({ /** * The progress thus far. This should increase every time progress is made, even if the total is unknown. */ progress: z.number(), /** * Total number of items to process (or total progress required), if known. */ total: z.optional(z.number()) }).passthrough(); var ProgressNotificationSchema = NotificationSchema.extend({ method: z.literal("notifications/progress"), params: BaseNotificationParamsSchema.merge(ProgressSchema).extend({ /** * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. */ progressToken: ProgressTokenSchema }) }); var PaginatedRequestSchema = RequestSchema.extend({ params: BaseRequestParamsSchema.extend({ /** * An opaque token representing the current pagination position. * If provided, the server should return results starting after this cursor. */ cursor: z.optional(CursorSchema) }).optional() }); var PaginatedResultSchema = ResultSchema.extend({ /** * An opaque token representing the pagination position after the last returned result. * If present, there may be more results available. */ nextCursor: z.optional(CursorSchema) }); var ResourceContentsSchema = z.object({ /** * The URI of this resource. */ uri: z.string(), /** * The MIME type of this resource, if known. */ mimeType: z.optional(z.string()) }).passthrough(); var TextResourceContentsSchema = ResourceContentsSchema.extend({ /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.string() }); var BlobResourceContentsSchema = ResourceContentsSchema.extend({ /** * A base64-encoded string representing the binary data of the item. */ blob: z.string().base64() }); var ResourceSchema = z.object({ /** * The URI of this resource. */ uri: z.string(), /** * A human-readable name for this resource. * * This can be used by clients to populate UI elements. */ name: z.string(), /** * A description of what this resource represents. * * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. */ description: z.optional(z.string()), /** * The MIME type of this resource, if known. */ mimeType: z.optional(z.string()) }).passthrough(); var ResourceTemplateSchema = z.object({ /** * A URI template (according to RFC 6570) that can be used to construct resource URIs. */ uriTemplate: z.string(), /** * A human-readable name for the type of resource this template refers to. * * This can be used by clients to populate UI elements. */ name: z.string(), /** * A description of what this template is for. * * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. */ description: z.optional(z.string()), /** * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. */ mimeType: z.optional(z.string()) }).passthrough(); var ListResourcesRequestSchema = PaginatedRequestSchema.extend({ method: z.literal("resources/list") }); var ListResourcesResultSchema = PaginatedResultSchema.extend({ resources: z.array(ResourceSchema) }); var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({ method: z.literal("resources/templates/list") }); var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({ resourceTemplates: z.array(ResourceTemplateSchema) }); var ReadResourceRequestSchema = RequestSchema.extend({ method: z.literal("resources/read"), params: BaseRequestParamsSchema.extend({ /** * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it. */ uri: z.string() }) }); var ReadResourceResultSchema = ResultSchema.extend({ contents: z.array(z.union([TextResourceContentsSchema, BlobResourceContentsSchema])) }); var ResourceListChangedNotificationSchema = NotificationSchema.extend({ method: z.literal("notifications/resources/list_changed") }); var SubscribeRequestSchema = RequestSchema.extend({ method: z.literal("resources/subscribe"), params: BaseRequestParamsSchema.extend({ /** * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it. */ uri: z.string() }) }); var UnsubscribeRequestSchema = RequestSchema.extend({ method: z.literal("resources/unsubscribe"), params: BaseRequestParamsSchema.extend({ /** * The URI of the resource to unsubscribe from. */ uri: z.string() }) }); var ResourceUpdatedNotificationSchema = NotificationSchema.extend({ method: z.literal("notifications/resources/updated"), params: BaseNotificationParamsSchema.extend({ /** * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. */ uri: z.string() }) }); var PromptArgumentSchema = z.object({ /** * The name of the argument. */ name: z.string(), /** * A human-readable description of the argument. */ description: z.optional(z.string()), /** * Whether this argument must be provided. */ required: z.optional(z.boolean()) }).passthrough(); var PromptSchema = z.object({ /** * The name of the prompt or prompt template. */ name: z.string(), /** * An optional description of what this prompt provides */ description: z.optional(z.string()), /** * A list of arguments to use for templating the prompt. */ arguments: z.optional(z.array(PromptArgumentSchema)) }).passthrough(); var ListPromptsRequestSchema = PaginatedRequestSchema.extend({ method: z.literal("prompts/list") }); var ListPromptsResultSchema = PaginatedResultSchema.extend({ prompts: z.array(PromptSchema) }); var GetPromptRequestSchema = RequestSchema.extend({ method: z.literal("prompts/get"), params: BaseRequestParamsSchema.extend({ /** * The name of the prompt or prompt template. */ name: z.string(), /** * Arguments to use for templating the prompt. */ arguments: z.optional(z.record(z.string())) }) }); var TextContentSchema = z.object({ type: z.literal("text"), /** * The text content of the message. */ text: z.string() }).passthrough(); var ImageContentSchema = z.object({ type: z.literal("image"), /** * The base64-encoded image data. */ data: z.string().base64(), /** * The MIME type of the image. Different providers may support different image types. */ mimeType: z.string() }).passthrough(); var AudioContentSchema = z.object({ type: z.literal("audio"), /** * The base64-encoded audio data. */ data: z.string().base64(), /** * The MIME type of the audio. Different providers may support different audio types. */ mimeType: z.string() }).passthrough(); var EmbeddedResourceSchema = z.object({ type: z.literal("resource"), resource: z.union([TextResourceContentsSchema, BlobResourceContentsSchema]) }).passthrough(); var PromptMessageSchema = z.object({ role: z.enum(["user", "assistant"]), content: z.union([ TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema ]) }).passthrough(); var GetPromptResultSchema = ResultSchema.extend({ /** * An optional description for the prompt. */ description: z.optional(z.string()), messages: z.array(PromptMessageSchema) }); var PromptListChangedNotificationSchema = NotificationSchema.extend({ method: z.literal("notifications/prompts/list_changed") }); var ToolSchema = z.object({ /** * The name of the tool. */ name: z.string(), /** * A human-readable description of the tool. */ description: z.optional(z.string()), /** * A JSON Schema object defining the expected parameters for the tool. */ inputSchema: z.object({ type: z.literal("object"), properties: z.optional(z.object({}).passthrough()) }).passthrough() }).passthrough(); var ListToolsRequestSchema = PaginatedRequestSchema.extend({ method: z.literal("tools/list") }); var ListToolsResultSchema = PaginatedResultSchema.extend({ tools: z.array(ToolSchema) }); var CallToolResultSchema = ResultSchema.extend({ content: z.array(z.union([TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema])), isError: z.boolean().default(false).optional() }); var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({ toolResult: z.unknown() })); var CallToolRequestSchema = RequestSchema.extend({ method: z.literal("tools/call"), params: BaseRequestParamsSchema.extend({ name: z.string(), arguments: z.optional(z.record(z.unknown())) }) }); var ToolListChangedNotificationSchema = NotificationSchema.extend({ method: z.literal("notifications/tools/list_changed") }); var LoggingLevelSchema = z.enum([ "debug", "info", "notice", "warning", "error", "critical", "alert", "emergency" ]); var SetLevelRequestSchema = RequestSchema.extend({ method: z.literal("logging/setLevel"), params: BaseRequestParamsSchema.extend({ /** * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message. */ level: LoggingLevelSchema }) }); var LoggingMessageNotificationSchema = NotificationSchema.extend({ method: z.literal("notifications/message"), params: BaseNotificationParamsSchema.extend({ /** * The severity of this log message. */ level: LoggingLevelSchema, /** * An optional name of the logger issuing this message. */ logger: z.optional(z.string()), /** * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. */ data: z.unknown() }) }); var ModelHintSchema = z.object({ /** * A hint for a model name. */ name: z.string().optional() }).passthrough(); var ModelPreferencesSchema = z.object({ /** * Optional hints to use for model selection. */ hints: z.optional(z.array(ModelHintSchema)), /** * How much to prioritize cost when selecting a model. */ costPriority: z.optional(z.number().min(0).max(1)), /** * How much to prioritize sampling speed (latency) when selecting a model. */ speedPriority: z.optional(z.number().min(0).max(1)), /** * How much to prioritize intelligence and capabilities when selecting a model. */ intelligencePriority: z.optional(z.number().min(0).max(1)) }).passthrough(); var SamplingMessageSchema = z.object({ role: z.enum(["user", "assistant"]), content: z.union([TextContentSchema, ImageContentSchema, AudioContentSchema]) }).passthrough(); var CreateMessageRequestSchema = RequestSchema.extend({ method: z.literal("sampling/createMessage"), params: BaseRequestParamsSchema.extend({ messages: z.array(SamplingMessageSchema), /** * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. */ systemPrompt: z.optional(z.string()), /** * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request. */ includeContext: z.optional(z.enum(["none", "thisServer", "allServers"])), temperature: z.optional(z.number()), /** * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested. */ maxTokens: z.number().int(), stopSequences: z.optional(z.array(z.string())), /** * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. */ metadata: z.optional(z.object({}).passthrough()), /** * The server's preferences for which model to select. */ modelPreferences: z.optional(ModelPreferencesSchema) }) }); var CreateMessageResultSchema = ResultSchema.extend({ /** * The name of the model that generated the message. */ model: z.string(), /** * The reason why sampling stopped. */ stopReason: z.optional(z.enum(["endTurn", "stopSequence", "maxTokens"]).or(z.string())), role: z.enum(["user", "assistant"]), content: z.discriminatedUnion("type", [ TextContentSchema, ImageContentSchema, AudioContentSchema ]) }); var ResourceReferenceSchema = z.object({ type: z.literal("ref/resource"), /** * The URI or URI template of the resource. */ uri: z.string() }).passthrough(); var PromptReferenceSchema = z.object({ type: z.literal("ref/prompt"), /** * The name of the prompt or prompt template */ name: z.string() }).passthrough(); var CompleteRequestSchema = RequestSchema.extend({ method: z.literal("completion/complete"), params: BaseRequestParamsSchema.extend({ ref: z.union([PromptReferenceSchema, ResourceReferenceSchema]), /** * The argument's information */ argument: z.object({ /** * The name of the argument */ name: z.string(), /** * The value of the argument to use for completion matching. */ value: z.string() }).passthrough() }) }); var CompleteResultSchema = ResultSchema.extend({ completion: z.object({ /** * An array of completion values. Must not exceed 100 items. */ values: z.array(z.string()).max(100), /** * The total number of completion options available. This can exceed the number of values actually sent in the response. */ total: z.optional(z.number().int()), /** * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. */ hasMore: z.optional(z.boolean()) }).passthrough() }); var RootSchema = z.object({ /** * The URI identifying the root. This *must* start with file:// for now. */ uri: z.string().startsWith("file://"), /** * An optional name for the root. */ name: z.optional(z.string()) }).passthrough(); var ListRootsRequestSchema = RequestSchema.extend({ method: z.literal("roots/list") }); var ListRootsResultSchema = ResultSchema.extend({ roots: z.array(RootSchema) }); var RootsListChangedNotificationSchema = NotificationSchema.extend({ method: z.literal("notifications/roots/list_changed") }); var ClientRequestSchema = z.union([ PingRequestSchema, InitializeRequestSchema, CompleteRequestSchema, SetLevelRequestSchema, GetPromptRequestSchema, ListPromptsRequestSchema, ListResourcesRequestSchema, ListResourceTemplatesRequestSchema, ReadResourceRequestSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, CallToolRequestSchema, ListToolsRequestSchema ]); var ClientNotificationSchema = z.union([ CancelledNotificationSchema, ProgressNotificationSchema, InitializedNotificationSchema, RootsListChangedNotificationSchema ]); var ClientResultSchema = z.union([ EmptyResultSchema, CreateMessageResultSchema, ListRootsResultSchema ]); var ServerRequestSchema = z.union([ PingRequestSchema, CreateMessageRequestSchema, ListRootsRequestSchema ]); var ServerNotificationSchema = z.union([ CancelledNotificationSchema, ProgressNotificationSchema, LoggingMessageNotificationSchema, ResourceUpdatedNotificationSchema, ResourceListChangedNotificationSchema, ToolListChangedNotificationSchema, PromptListChangedNotificationSchema ]); var ServerResultSchema = z.union([ EmptyResultSchema, InitializeResultSchema, CompleteResultSchema, GetPromptResultSchema, ListPromptsResultSchema, ListResourcesResultSchema, ListResourceTemplatesResultSchema, ReadResourceResultSchema, CallToolResultSchema, ListToolsResultSchema ]); var McpError = class extends Error { static { __name(this, "McpError"); } constructor(code, message, data) { super(`MCP error ${code}: ${message}`); this.code = code; this.data = data; this.name = "McpError"; } }; // node_modules/agents/dist/mcp/index.js var MAXIMUM_MESSAGE_SIZE_BYTES = 4 * 1024 * 1024; function handleCORS(request, corsOptions) { const origin = request.headers.get("Origin") || "*"; const corsHeaders = { "Access-Control-Allow-Origin": corsOptions?.origin || origin, "Access-Control-Allow-Methods": corsOptions?.methods || "GET, POST, OPTIONS", "Access-Control-Allow-Headers": corsOptions?.headers || "Content-Type", "Access-Control-Max-Age": (corsOptions?.maxAge || 86400).toString() }; if (request.method === "OPTIONS") { return new Response(null, { headers: corsHeaders }); } return null; } __name(handleCORS, "handleCORS"); var _getWebSocket; var _started; var McpSSETransport = class { static { __name(this, "McpSSETransport"); } constructor(getWebSocket) { __privateAdd(this, _getWebSocket); __privateAdd(this, _started, false); __privateSet(this, _getWebSocket, getWebSocket); } async start() { if (__privateGet(this, _started)) { throw new Error("Transport already started"); } __privateSet(this, _started, true); } async send(message) { if (!__privateGet(this, _started)) { throw new Error("Transport not started"); } const websocket = __privateGet(this, _getWebSocket).call(this); if (!websocket) { throw new Error("WebSocket not connected"); } try { websocket.send(JSON.stringify(message)); } catch (error3) { this.onerror?.(error3); throw error3; } } async close() { this.onclose?.(); } }; _getWebSocket = /* @__PURE__ */ new WeakMap(); _started = /* @__PURE__ */ new WeakMap(); var _getWebSocketForGetRequest; var _getWebSocketForMessageID; var _notifyResponseIdSent; var _started2; var McpStreamableHttpTransport = class { static { __name(this, "McpStreamableHttpTransport"); } constructor(getWebSocketForMessageID, notifyResponseIdSent) { __privateAdd(this, _getWebSocketForGetRequest); __privateAdd(this, _getWebSocketForMessageID); __privateAdd(this, _notifyResponseIdSent); __privateAdd(this, _started2, false); __privateSet(this, _getWebSocketForMessageID, getWebSocketForMessageID); __privateSet(this, _notifyResponseIdSent, notifyResponseIdSent); __privateSet(this, _getWebSocketForGetRequest, () => null); } async start() { if (__privateGet(this, _started2)) { throw new Error("Transport already started"); } __privateSet(this, _started2, true); } async send(message) { if (!__privateGet(this, _started2)) { throw new Error("Transport not started"); } let websocket = null; if (isJSONRPCResponse(message) || isJSONRPCError(message)) { websocket = __privateGet(this, _getWebSocketForMessageID).call(this, message.id.toString()); if (!websocket) { throw new Error( `Could not find WebSocket for message id: ${message.id}` ); } } else if (isJSONRPCRequest(message)) { websocket = __privateGet(this, _getWebSocketForGetRequest).call(this); } else if (isJSONRPCNotification(message)) { websocket = null; } try { websocket?.send(JSON.stringify(message)); if (isJSONRPCResponse(message)) { __privateGet(this, _notifyResponseIdSent).call(this, message.id.toString()); } } catch (error3) { this.onerror?.(error3); throw error3; } } async close() { this.onclose?.(); } }; _getWebSocketForGetRequest = /* @__PURE__ */ new WeakMap(); _getWebSocketForMessageID = /* @__PURE__ */ new WeakMap(); _notifyResponseIdSent = /* @__PURE__ */ new WeakMap(); _started2 = /* @__PURE__ */ new WeakMap(); var _status; var _transport; var _transportType; var _requestIdToConnectionId; var _agent; var _McpAgent_instances; var initialize_fn; var _McpAgent = class _McpAgent2 extends DurableObject2 { static { __name(this, "_McpAgent"); } constructor(ctx, env2) { var _a; super(ctx, env2); __privateAdd(this, _McpAgent_instances); __privateAdd(this, _status, "zero"); __privateAdd(this, _transport); __privateAdd(this, _transportType, "unset"); __privateAdd(this, _requestIdToConnectionId, /* @__PURE__ */ new Map()); __privateAdd(this, _agent); this.initRun = false; const self2 = this; __privateSet(this, _agent, new (_a = class extends Agent { static { __name(this, "_a"); } onStateUpdate(state, source) { return self2.onStateUpdate(state, source); } async onMessage(connection, message) { return self2.onMessage(connection, message); } }, _a.options = { hibernate: true }, _a)(ctx, env2)); } get state() { return __privateGet(this, _agent).state; } sql(strings, ...values) { return __privateGet(this, _agent).sql(strings, ...values); } setState(state) { return __privateGet(this, _agent).setState(state); } onStateUpdate(state, source) { } async onStart() { var _a; const self2 = this; __privateSet(this, _agent, new (_a = class extends Agent { static { __name(this, "_a"); } constructor() { super(...arguments); this.initialState = self2.initialState; } onStateUpdate(state, source) { return self2.onStateUpdate(state, source); } async onMessage(connection, event) { return self2.onMessage(connection, event); } }, _a.options = { hibernate: true }, _a)(this.ctx, this.env)); this.props = await this.ctx.storage.get("props"); __privateSet(this, _transportType, await this.ctx.storage.get( "transportType" )); await this._init(this.props); if (__privateGet(this, _transportType) === "sse") { __privateSet(this, _transport, new McpSSETransport(() => this.getWebSocket())); await this.server.connect(__privateGet(this, _transport)); } else if (__privateGet(this, _transportType) === "streamable-http") { __privateSet(this, _transport, new McpStreamableHttpTransport( (id) => this.getWebSocketForResponseID(id), (id) => __privateGet(this, _requestIdToConnectionId).delete(id) )); await this.server.connect(__privateGet(this, _transport)); } } async _init(props) { await this.ctx.storage.put("props", props ?? {}); if (!this.ctx.storage.get("transportType")) { await this.ctx.storage.put("transportType", "unset"); } this.props = props; if (!this.initRun) { this.initRun = true; await this.init(); } } async setInitialized() { await this.ctx.storage.put("initialized", true); } async isInitialized() { return await this.ctx.storage.get("initialized") === true; } // Allow the worker to fetch a websocket connection to the agent async fetch(request) { if (__privateGet(this, _status) !== "started") { await __privateMethod(this, _McpAgent_instances, initialize_fn).call(this); } if (request.headers.get("Upgrade") !== "websocket") { return new Response("Expected WebSocket Upgrade request", { status: 400 }); } const url = new URL(request.url); const path = url.pathname; switch (path) { case "/sse": { const websockets = this.ctx.getWebSockets(); if (websockets.length > 0) { return new Response("Websocket already connected", { status: 400 }); } await this.ctx.storage.put("transportType", "sse"); __privateSet(this, _transportType, "sse"); if (!__privateGet(this, _transport)) { __privateSet(this, _transport, new McpSSETransport(() => this.getWebSocket())); await this.server.connect(__privateGet(this, _transport)); } return __privateGet(this, _agent).fetch(request); } case "/streamable-http": { if (!__privateGet(this, _transport)) { __privateSet(this, _transport, new McpStreamableHttpTransport( (id) => this.getWebSocketForResponseID(id), (id) => __privateGet(this, _requestIdToConnectionId).delete(id) )); await this.server.connect(__privateGet(this, _transport)); } await this.ctx.storage.put("transportType", "streamable-http"); __privateSet(this, _transportType, "streamable-http"); return __privateGet(this, _agent).fetch(request); } default: return new Response( "Internal Server Error: Expected /sse or /streamable-http path", { status: 500 } ); } } getWebSocket() { const websockets = this.ctx.getWebSockets(); if (websockets.length === 0) { return null; } return websockets[0]; } getWebSocketForResponseID(id) { const connectionId = __privateGet(this, _requestIdToConnectionId).get(id); if (connectionId === void 0) { return null; } return __privateGet(this, _agent).getConnection(connectionId) ?? null; } // All messages received here. This is currently never called async onMessage(connection, event) { if (__privateGet(this, _transportType) !== "streamable-http") { const err = new Error( "Internal Server Error: Expected streamable-http protocol" ); __privateGet(this, _transport)?.onerror?.(err); return; } let message; try { const data = typeof event === "string" ? event : new TextDecoder().decode(event); message = JSONRPCMessageSchema.parse(JSON.parse(data)); } catch (error3) { __privateGet(this, _transport)?.onerror?.(error3); return; } if (isJSONRPCRequest(message)) { __privateGet(this, _requestIdToConnectionId).set(message.id.toString(), connection.id); } __privateGet(this, _transport)?.onmessage?.(message); } // All messages received over SSE after the initial connection has been established // will be passed here async onSSEMcpMessage(sessionId, request) { if (__privateGet(this, _status) !== "started") { await __privateMethod(this, _McpAgent_instances, initialize_fn).call(this); } if (__privateGet(this, _transportType) !== "sse") { return new Error("Internal Server Error: Expected SSE protocol"); } try { const message = await request.json(); let parsedMessage; try { parsedMessage = JSONRPCMessageSchema.parse(message); } catch (error3) { __privateGet(this, _transport)?.onerror?.(error3); throw error3; } __privateGet(this, _transport)?.onmessage?.(parsedMessage); return null; } catch (error3) { __privateGet(this, _transport)?.onerror?.(error3); return error3; } } // Delegate all websocket events to the underlying agent async webSocketMessage(ws, event) { if (__privateGet(this, _status) !== "started") { await __privateMethod(this, _McpAgent_instances, initialize_fn).call(this); } return await __privateGet(this, _agent).webSocketMessage(ws, event); } // WebSocket event handlers for hibernation support async webSocketError(ws, error3) { if (__privateGet(this, _status) !== "started") { await __privateMethod(this, _McpAgent_instances, initialize_fn).call(this); } return await __privateGet(this, _agent).webSocketError(ws, error3); } async webSocketClose(ws, code, reason, wasClean) { if (__privateGet(this, _status) !== "started") { await __privateMethod(this, _McpAgent_instances, initialize_fn).call(this); } return await __privateGet(this, _agent).webSocketClose(ws, code, reason, wasClean); } static mount(path, { binding: binding2 = "MCP_OBJECT", corsOptions } = {}) { return _McpAgent2.serveSSE(path, { binding: binding2, corsOptions }); } static serveSSE(path, { binding: binding2 = "MCP_OBJECT", corsOptions } = {}) { let pathname = path; if (path === "/") { pathname = "/*"; } const basePattern = new URLPattern({ pathname }); const messagePattern = new URLPattern({ pathname: `${pathname}/message` }); return { fetch: /* @__PURE__ */ __name(async (request, env2, ctx) => { const corsResponse = handleCORS(request, corsOptions); if (corsResponse) return corsResponse; const url = new URL(request.url); const namespace = env2[binding2]; if (request.method === "GET" && basePattern.test(url)) { const sessionId = url.searchParams.get("sessionId") || namespace.newUniqueId().toString(); const { readable, writable } = new TransformStream(); const writer = writable.getWriter(); const encoder = new TextEncoder(); const endpointMessage = `event: endpoint data: ${encodeURI(`${pathname}/message`)}?sessionId=${sessionId} `; writer.write(encoder.encode(endpointMessage)); const id = namespace.idFromName(`sse:${sessionId}`); const doStub = namespace.get(id); await doStub._init(ctx.props); const upgradeUrl = new URL(request.url); upgradeUrl.pathname = "/sse"; const response = await doStub.fetch( new Request(upgradeUrl, { headers: { Upgrade: "websocket", // Required by PartyServer "x-partykit-room": sessionId } }) ); const ws = response.webSocket; if (!ws) { console.error("Failed to establish WebSocket connection"); await writer.close(); return new Response("Failed to establish WebSocket connection", { status: 500 }); } ws.accept(); ws.addEventListener("message", (event) => { async function onMessage(event2) { try { const message = JSON.parse(event2.data); const result = JSONRPCMessageSchema.safeParse(message); if (!result.success) { return; } const messageText = `event: message data: ${JSON.stringify(result.data)} `; await writer.write(encoder.encode(messageText)); } catch (error3) { console.error("Error forwarding message to SSE:", error3); } } __name(onMessage, "onMessage"); onMessage(event).catch(console.error); }); ws.addEventListener("error", (error3) => { async function onError(error22) { try { await writer.close(); } catch (e) { } } __name(onError, "onError"); onError(error3).catch(console.error); }); ws.addEventListener("close", () => { async function onClose() { try { await writer.close(); } catch (error3) { console.error("Error closing SSE connection:", error3); } } __name(onClose, "onClose"); onClose().catch(console.error); }); return new Response(readable, { headers: { "Content-Type": "text/event-stream", "Cache-Control": "no-cache", Connection: "keep-alive", "Access-Control-Allow-Origin": corsOptions?.origin || "*" } }); } if (request.method === "POST" && messagePattern.test(url)) { const sessionId = url.searchParams.get("sessionId"); if (!sessionId) { return new Response( `Missing sessionId. Expected POST to ${pathname} to initiate new one`, { status: 400 } ); } const contentType = request.headers.get("content-type") || ""; if (!contentType.includes("application/json")) { return new Response(`Unsupported content-type: ${contentType}`, { status: 400 }); } const contentLength = Number.parseInt( request.headers.get("content-length") || "0", 10 ); if (contentLength > MAXIMUM_MESSAGE_SIZE_BYTES) { return new Response( `Request body too large: ${contentLength} bytes`, { status: 400 } ); } const id = namespace.idFromName(`sse:${sessionId}`); const doStub = namespace.get(id); const error3 = await doStub.onSSEMcpMessage(sessionId, request); if (error3) { return new Response(error3.message, { status: 400, headers: { "Content-Type": "text/event-stream", "Cache-Control": "no-cache", Connection: "keep-alive", "Access-Control-Allow-Origin": corsOptions?.origin || "*" } }); } return new Response("Accepted", { status: 202, headers: { "Content-Type": "text/event-stream", "Cache-Control": "no-cache", Connection: "keep-alive", "Access-Control-Allow-Origin": corsOptions?.origin || "*" } }); } return new Response("Not Found", { status: 404 }); }, "fetch") }; } static serve(path, { binding: binding2 = "MCP_OBJECT", corsOptions } = {}) { let pathname = path; if (path === "/") { pathname = "/*"; } const basePattern = new URLPattern({ pathname }); return { fetch: /* @__PURE__ */ __name(async (request, env2, ctx) => { const corsResponse = handleCORS(request, corsOptions); if (corsResponse) { return corsResponse; } const url = new URL(request.url); const namespace = env2[binding2]; if (request.method === "POST" && basePattern.test(url)) { const acceptHeader = request.headers.get("accept"); if (!acceptHeader?.includes("application/json") || !acceptHeader.includes("text/event-stream")) { const body2 = JSON.stringify({ jsonrpc: "2.0", error: { code: -32e3, message: "Not Acceptable: Client must accept both application/json and text/event-stream" }, id: null }); return new Response(body2, { status: 406 }); } const ct = request.headers.get("content-type"); if (!ct || !ct.includes("application/json")) { const body2 = JSON.stringify({ jsonrpc: "2.0", error: { code: -32e3, message: "Unsupported Media Type: Content-Type must be application/json" }, id: null }); return new Response(body2, { status: 415 }); } const contentLength = Number.parseInt( request.headers.get("content-length") ?? "0", 10 ); if (contentLength > MAXIMUM_MESSAGE_SIZE_BYTES) { const body2 = JSON.stringify({ jsonrpc: "2.0", error: { code: -32e3, message: `Request body too large. Maximum size is ${MAXIMUM_MESSAGE_SIZE_BYTES} bytes` }, id: null }); return new Response(body2, { status: 413 }); } let sessionId = request.headers.get("mcp-session-id"); let rawMessage; try { rawMessage = await request.json(); } catch (error3) { const body2 = JSON.stringify({ jsonrpc: "2.0", error: { code: -32700, message: "Parse error: Invalid JSON" }, id: null }); return new Response(body2, { status: 400 }); } let arrayMessage; if (Array.isArray(rawMessage)) { arrayMessage = rawMessage; } else { arrayMessage = [rawMessage]; } let messages = []; for (const msg of arrayMessage) { if (!JSONRPCMessageSchema.safeParse(msg).success) { const body2 = JSON.stringify({ jsonrpc: "2.0", error: { code: -32700, message: "Parse error: Invalid JSON-RPC message" }, id: null }); return new Response(body2, { status: 400 }); } } messages = arrayMessage.map((msg) => JSONRPCMessageSchema.parse(msg)); const isInitializationRequest = messages.some( (msg) => InitializeRequestSchema.safeParse(msg).success ); if (isInitializationRequest && sessionId) { const body2 = JSON.stringify({ jsonrpc: "2.0", error: { code: -32600, message: "Invalid Request: Initialization requests must not include a sessionId" }, id: null }); return new Response(body2, { status: 400 }); } if (isInitializationRequest && messages.length > 1) { const body2 = JSON.stringify({ jsonrpc: "2.0", error: { code: -32600, message: "Invalid Request: Only one initialization request is allowed" }, id: null }); return new Response(body2, { status: 400 }); } if (!isInitializationRequest && !sessionId) { const body2 = JSON.stringify({ jsonrpc: "2.0", error: { code: -32e3, message: "Bad Request: Mcp-Session-Id header is required" }, id: null }); return new Response(body2, { status: 400 }); } sessionId = sessionId ?? namespace.newUniqueId().toString(); const id = namespace.idFromName(`streamable-http:${sessionId}`); const doStub = namespace.get(id); const isInitialized = await doStub.isInitialized(); if (isInitializationRequest) { await doStub.setInitialized(); } else if (!isInitialized) { const body2 = JSON.stringify({ jsonrpc: "2.0", error: { code: -32001, message: "Session not found" }, id: null }); return new Response(body2, { status: 404 }); } const { readable, writable } = new TransformStream(); const writer = writable.getWriter(); const encoder = new TextEncoder(); const upgradeUrl = new URL(request.url); upgradeUrl.pathname = "/streamable-http"; const response = await doStub.fetch( new Request(upgradeUrl, { headers: { Upgrade: "websocket", // Required by PartyServer "x-partykit-room": sessionId } }) ); const ws = response.webSocket; if (!ws) { console.error("Failed to establish WebSocket connection"); await writer.close(); const body2 = JSON.stringify({ jsonrpc: "2.0", error: { code: -32001, message: "Failed to establish WebSocket connection" }, id: null }); return new Response(body2, { status: 500 }); } const requestIds = /* @__PURE__ */ new Set(); ws.accept(); ws.addEventListener("message", (event) => { async function onMessage(event2) { try { const data = typeof event2.data === "string" ? event2.data : new TextDecoder().decode(event2.data); const message = JSON.parse(data); const result = JSONRPCMessageSchema.safeParse(message); if (!result.success) { return; } if (isJSONRPCResponse(result.data) || isJSONRPCError(result.data)) { requestIds.delete(result.data.id); } const messageText = `event: message data: ${JSON.stringify(result.data)} `; await writer.write(encoder.encode(messageText)); if (requestIds.size === 0) { ws.close(); } } catch (error3) { console.error("Error forwarding message to SSE:", error3); } } __name(onMessage, "onMessage"); onMessage(event).catch(console.error); }); ws.addEventListener("error", (error3) => { async function onError(error22) { try { await writer.close(); } catch (e) { } } __name(onError, "onError"); onError(error3).catch(console.error); }); ws.addEventListener("close", () => { async function onClose() { try { await writer.close(); } catch (error3) { console.error("Error closing SSE connection:", error3); } } __name(onClose, "onClose"); onClose().catch(console.error); }); const hasOnlyNotificationsOrResponses = messages.every( (msg) => isJSONRPCNotification(msg) || isJSONRPCResponse(msg) ); if (hasOnlyNotificationsOrResponses) { for (const message of messages) { ws.send(JSON.stringify(message)); } ws.close(); return new Response(null, { status: 202 }); } for (const message of messages) { if (isJSONRPCRequest(message)) { requestIds.add(message.id); } ws.send(JSON.stringify(message)); } return new Response(readable, { headers: { "Content-Type": "text/event-stream", "Cache-Control": "no-cache", Connection: "keep-alive", "mcp-session-id": sessionId, "Access-Control-Allow-Origin": corsOptions?.origin || "*" }, status: 200 }); } const body = JSON.stringify({ jsonrpc: "2.0", error: { code: -32e3, message: "Method not allowed" }, id: null }); return new Response(body, { status: 405 }); }, "fetch") }; } }; _status = /* @__PURE__ */ new WeakMap(); _transport = /* @__PURE__ */ new WeakMap(); _transportType = /* @__PURE__ */ new WeakMap(); _requestIdToConnectionId = /* @__PURE__ */ new WeakMap(); _agent = /* @__PURE__ */ new WeakMap(); _McpAgent_instances = /* @__PURE__ */ new WeakSet(); initialize_fn = /* @__PURE__ */ __name(async function() { await this.ctx.blockConcurrencyWhile(async () => { __privateSet(this, _status, "starting"); await this.onStart(); __privateSet(this, _status, "started"); }); }, "initialize_fn"); var McpAgent = _McpAgent; // node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4; var Protocol = class { static { __name(this, "Protocol"); } constructor(_options) { this._options = _options; this._requestMessageId = 0; this._requestHandlers = /* @__PURE__ */ new Map(); this._requestHandlerAbortControllers = /* @__PURE__ */ new Map(); this._notificationHandlers = /* @__PURE__ */ new Map(); this._responseHandlers = /* @__PURE__ */ new Map(); this._progressHandlers = /* @__PURE__ */ new Map(); this._timeoutInfo = /* @__PURE__ */ new Map(); this.setNotificationHandler(CancelledNotificationSchema, (notification) => { const controller = this._requestHandlerAbortControllers.get(notification.params.requestId); controller === null || controller === void 0 ? void 0 : controller.abort(notification.params.reason); }); this.setNotificationHandler(ProgressNotificationSchema, (notification) => { this._onprogress(notification); }); this.setRequestHandler( PingRequestSchema, // Automatic pong by default. (_request) => ({}) ); } _setupTimeout(messageId, timeout, maxTotalTimeout, onTimeout, resetTimeoutOnProgress = false) { this._timeoutInfo.set(messageId, { timeoutId: setTimeout(onTimeout, timeout), startTime: Date.now(), timeout, maxTotalTimeout, resetTimeoutOnProgress, onTimeout }); } _resetTimeout(messageId) { const info3 = this._timeoutInfo.get(messageId); if (!info3) return false; const totalElapsed = Date.now() - info3.startTime; if (info3.maxTotalTimeout && totalElapsed >= info3.maxTotalTimeout) { this._timeoutInfo.delete(messageId); throw new McpError(ErrorCode.RequestTimeout, "Maximum total timeout exceeded", { maxTotalTimeout: info3.maxTotalTimeout, totalElapsed }); } clearTimeout(info3.timeoutId); info3.timeoutId = setTimeout(info3.onTimeout, info3.timeout); return true; } _cleanupTimeout(messageId) { const info3 = this._timeoutInfo.get(messageId); if (info3) { clearTimeout(info3.timeoutId); this._timeoutInfo.delete(messageId); } } /** * Attaches to the given transport, starts it, and starts listening for messages. * * The Protocol object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. */ async connect(transport) { this._transport = transport; this._transport.onclose = () => { this._onclose(); }; this._transport.onerror = (error3) => { this._onerror(error3); }; this._transport.onmessage = (message, extra) => { if (isJSONRPCResponse(message) || isJSONRPCError(message)) { this._onresponse(message); } else if (isJSONRPCRequest(message)) { this._onrequest(message, extra); } else if (isJSONRPCNotification(message)) { this._onnotification(message); } else { this._onerror(new Error(`Unknown message type: ${JSON.stringify(message)}`)); } }; await this._transport.start(); } _onclose() { var _a; const responseHandlers = this._responseHandlers; this._responseHandlers = /* @__PURE__ */ new Map(); this._progressHandlers.clear(); this._transport = void 0; (_a = this.onclose) === null || _a === void 0 ? void 0 : _a.call(this); const error3 = new McpError(ErrorCode.ConnectionClosed, "Connection closed"); for (const handler of responseHandlers.values()) { handler(error3); } } _onerror(error3) { var _a; (_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error3); } _onnotification(notification) { var _a; const handler = (_a = this._notificationHandlers.get(notification.method)) !== null && _a !== void 0 ? _a : this.fallbackNotificationHandler; if (handler === void 0) { return; } Promise.resolve().then(() => handler(notification)).catch((error3) => this._onerror(new Error(`Uncaught error in notification handler: ${error3}`))); } _onrequest(request, extra) { var _a, _b, _c; const handler = (_a = this._requestHandlers.get(request.method)) !== null && _a !== void 0 ? _a : this.fallbackRequestHandler; if (handler === void 0) { (_b = this._transport) === null || _b === void 0 ? void 0 : _b.send({ jsonrpc: "2.0", id: request.id, error: { code: ErrorCode.MethodNotFound, message: "Method not found" } }).catch((error3) => this._onerror(new Error(`Failed to send an error response: ${error3}`))); return; } const abortController = new AbortController(); this._requestHandlerAbortControllers.set(request.id, abortController); const fullExtra = { signal: abortController.signal, sessionId: (_c = this._transport) === null || _c === void 0 ? void 0 : _c.sessionId, sendNotification: /* @__PURE__ */ __name((notification) => this.notification(notification, { relatedRequestId: request.id }), "sendNotification"), sendRequest: /* @__PURE__ */ __name((r, resultSchema, options) => this.request(r, resultSchema, { ...options, relatedRequestId: request.id }), "sendRequest"), authInfo: extra === null || extra === void 0 ? void 0 : extra.authInfo }; Promise.resolve().then(() => handler(request, fullExtra)).then((result) => { var _a2; if (abortController.signal.aborted) { return; } return (_a2 = this._transport) === null || _a2 === void 0 ? void 0 : _a2.send({ result, jsonrpc: "2.0", id: request.id }); }, (error3) => { var _a2, _b2; if (abortController.signal.aborted) { return; } return (_a2 = this._transport) === null || _a2 === void 0 ? void 0 : _a2.send({ jsonrpc: "2.0", id: request.id, error: { code: Number.isSafeInteger(error3["code"]) ? error3["code"] : ErrorCode.InternalError, message: (_b2 = error3.message) !== null && _b2 !== void 0 ? _b2 : "Internal error" } }); }).catch((error3) => this._onerror(new Error(`Failed to send response: ${error3}`))).finally(() => { this._requestHandlerAbortControllers.delete(request.id); }); } _onprogress(notification) { const { progressToken, ...params } = notification.params; const messageId = Number(progressToken); const handler = this._progressHandlers.get(messageId); if (!handler) { this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(notification)}`)); return; } const responseHandler = this._responseHandlers.get(messageId); const timeoutInfo = this._timeoutInfo.get(messageId); if (timeoutInfo && responseHandler && timeoutInfo.resetTimeoutOnProgress) { try { this._resetTimeout(messageId); } catch (error3) { responseHandler(error3); return; } } handler(params); } _onresponse(response) { const messageId = Number(response.id); const handler = this._responseHandlers.get(messageId); if (handler === void 0) { this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(response)}`)); return; } this._responseHandlers.delete(messageId); this._progressHandlers.delete(messageId); this._cleanupTimeout(messageId); if (isJSONRPCResponse(response)) { handler(response); } else { const error3 = new McpError(response.error.code, response.error.message, response.error.data); handler(error3); } } get transport() { return this._transport; } /** * Closes the connection. */ async close() { var _a; await ((_a = this._transport) === null || _a === void 0 ? void 0 : _a.close()); } /** * Sends a request and wait for a response. * * Do not use this method to emit notifications! Use notification() instead. */ request(request, resultSchema, options) { const { relatedRequestId, resumptionToken, onresumptiontoken } = options !== null && options !== void 0 ? options : {}; return new Promise((resolve, reject) => { var _a, _b, _c, _d, _e; if (!this._transport) { reject(new Error("Not connected")); return; } if (((_a = this._options) === null || _a === void 0 ? void 0 : _a.enforceStrictCapabilities) === true) { this.assertCapabilityForMethod(request.method); } (_b = options === null || options === void 0 ? void 0 : options.signal) === null || _b === void 0 ? void 0 : _b.throwIfAborted(); const messageId = this._requestMessageId++; const jsonrpcRequest = { ...request, jsonrpc: "2.0", id: messageId }; if (options === null || options === void 0 ? void 0 : options.onprogress) { this._progressHandlers.set(messageId, options.onprogress); jsonrpcRequest.params = { ...request.params, _meta: { progressToken: messageId } }; } const cancel = /* @__PURE__ */ __name((reason) => { var _a2; this._responseHandlers.delete(messageId); this._progressHandlers.delete(messageId); this._cleanupTimeout(messageId); (_a2 = this._transport) === null || _a2 === void 0 ? void 0 : _a2.send({ jsonrpc: "2.0", method: "notifications/cancelled", params: { requestId: messageId, reason: String(reason) } }, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error3) => this._onerror(new Error(`Failed to send cancellation: ${error3}`))); reject(reason); }, "cancel"); this._responseHandlers.set(messageId, (response) => { var _a2; if ((_a2 = options === null || options === void 0 ? void 0 : options.signal) === null || _a2 === void 0 ? void 0 : _a2.aborted) { return; } if (response instanceof Error) { return reject(response); } try { const result = resultSchema.parse(response.result); resolve(result); } catch (error3) { reject(error3); } }); (_c = options === null || options === void 0 ? void 0 : options.signal) === null || _c === void 0 ? void 0 : _c.addEventListener("abort", () => { var _a2; cancel((_a2 = options === null || options === void 0 ? void 0 : options.signal) === null || _a2 === void 0 ? void 0 : _a2.reason); }); const timeout = (_d = options === null || options === void 0 ? void 0 : options.timeout) !== null && _d !== void 0 ? _d : DEFAULT_REQUEST_TIMEOUT_MSEC; const timeoutHandler = /* @__PURE__ */ __name(() => cancel(new McpError(ErrorCode.RequestTimeout, "Request timed out", { timeout })), "timeoutHandler"); this._setupTimeout(messageId, timeout, options === null || options === void 0 ? void 0 : options.maxTotalTimeout, timeoutHandler, (_e = options === null || options === void 0 ? void 0 : options.resetTimeoutOnProgress) !== null && _e !== void 0 ? _e : false); this._transport.send(jsonrpcRequest, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error3) => { this._cleanupTimeout(messageId); reject(error3); }); }); } /** * Emits a notification, which is a one-way message that does not expect a response. */ async notification(notification, options) { if (!this._transport) { throw new Error("Not connected"); } this.assertNotificationCapability(notification.method); const jsonrpcNotification = { ...notification, jsonrpc: "2.0" }; await this._transport.send(jsonrpcNotification, options); } /** * Registers a handler to invoke when this protocol object receives a request with the given method. * * Note that this will replace any previous request handler for the same method. */ setRequestHandler(requestSchema, handler) { const method2 = requestSchema.shape.method.value; this.assertRequestHandlerCapability(method2); this._requestHandlers.set(method2, (request, extra) => { return Promise.resolve(handler(requestSchema.parse(request), extra)); }); } /** * Removes the request handler for the given method. */ removeRequestHandler(method2) { this._requestHandlers.delete(method2); } /** * Asserts that a request handler has not already been set for the given method, in preparation for a new one being automatically installed. */ assertCanSetRequestHandler(method2) { if (this._requestHandlers.has(method2)) { throw new Error(`A request handler for ${method2} already exists, which would be overridden`); } } /** * Registers a handler to invoke when this protocol object receives a notification with the given method. * * Note that this will replace any previous notification handler for the same method. */ setNotificationHandler(notificationSchema, handler) { this._notificationHandlers.set(notificationSchema.shape.method.value, (notification) => Promise.resolve(handler(notificationSchema.parse(notification)))); } /** * Removes the notification handler for the given method. */ removeNotificationHandler(method2) { this._notificationHandlers.delete(method2); } }; function mergeCapabilities(base, additional) { return Object.entries(additional).reduce((acc, [key, value]) => { if (value && typeof value === "object") { acc[key] = acc[key] ? { ...acc[key], ...value } : value; } else { acc[key] = value; } return acc; }, { ...base }); } __name(mergeCapabilities, "mergeCapabilities"); // node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js var Server2 = class extends Protocol { static { __name(this, "Server"); } /** * Initializes this server with the given name and version information. */ constructor(_serverInfo, options) { var _a; super(options); this._serverInfo = _serverInfo; this._capabilities = (_a = options === null || options === void 0 ? void 0 : options.capabilities) !== null && _a !== void 0 ? _a : {}; this._instructions = options === null || options === void 0 ? void 0 : options.instructions; this.setRequestHandler(InitializeRequestSchema, (request) => this._oninitialize(request)); this.setNotificationHandler(InitializedNotificationSchema, () => { var _a2; return (_a2 = this.oninitialized) === null || _a2 === void 0 ? void 0 : _a2.call(this); }); } /** * Registers new capabilities. This can only be called before connecting to a transport. * * The new capabilities will be merged with any existing capabilities previously given (e.g., at initialization). */ registerCapabilities(capabilities) { if (this.transport) { throw new Error("Cannot register capabilities after connecting to transport"); } this._capabilities = mergeCapabilities(this._capabilities, capabilities); } assertCapabilityForMethod(method2) { var _a, _b; switch (method2) { case "sampling/createMessage": if (!((_a = this._clientCapabilities) === null || _a === void 0 ? void 0 : _a.sampling)) { throw new Error(`Client does not support sampling (required for ${method2})`); } break; case "roots/list": if (!((_b = this._clientCapabilities) === null || _b === void 0 ? void 0 : _b.roots)) { throw new Error(`Client does not support listing roots (required for ${method2})`); } break; case "ping": break; } } assertNotificationCapability(method2) { switch (method2) { case "notifications/message": if (!this._capabilities.logging) { throw new Error(`Server does not support logging (required for ${method2})`); } break; case "notifications/resources/updated": case "notifications/resources/list_changed": if (!this._capabilities.resources) { throw new Error(`Server does not support notifying about resources (required for ${method2})`); } break; case "notifications/tools/list_changed": if (!this._capabilities.tools) { throw new Error(`Server does not support notifying of tool list changes (required for ${method2})`); } break; case "notifications/prompts/list_changed": if (!this._capabilities.prompts) { throw new Error(`Server does not support notifying of prompt list changes (required for ${method2})`); } break; case "notifications/cancelled": break; case "notifications/progress": break; } } assertRequestHandlerCapability(method2) { switch (method2) { case "sampling/createMessage": if (!this._capabilities.sampling) { throw new Error(`Server does not support sampling (required for ${method2})`); } break; case "logging/setLevel": if (!this._capabilities.logging) { throw new Error(`Server does not support logging (required for ${method2})`); } break; case "prompts/get": case "prompts/list": if (!this._capabilities.prompts) { throw new Error(`Server does not support prompts (required for ${method2})`); } break; case "resources/list": case "resources/templates/list": case "resources/read": if (!this._capabilities.resources) { throw new Error(`Server does not support resources (required for ${method2})`); } break; case "tools/call": case "tools/list": if (!this._capabilities.tools) { throw new Error(`Server does not support tools (required for ${method2})`); } break; case "ping": case "initialize": break; } } async _oninitialize(request) { const requestedVersion = request.params.protocolVersion; this._clientCapabilities = request.params.capabilities; this._clientVersion = request.params.clientInfo; return { protocolVersion: SUPPORTED_PROTOCOL_VERSIONS.includes(requestedVersion) ? requestedVersion : LATEST_PROTOCOL_VERSION, capabilities: this.getCapabilities(), serverInfo: this._serverInfo, ...this._instructions && { instructions: this._instructions } }; } /** * After initialization has completed, this will be populated with the client's reported capabilities. */ getClientCapabilities() { return this._clientCapabilities; } /** * After initialization has completed, this will be populated with information about the client's name and version. */ getClientVersion() { return this._clientVersion; } getCapabilities() { return this._capabilities; } async ping() { return this.request({ method: "ping" }, EmptyResultSchema); } async createMessage(params, options) { return this.request({ method: "sampling/createMessage", params }, CreateMessageResultSchema, options); } async listRoots(params, options) { return this.request({ method: "roots/list", params }, ListRootsResultSchema, options); } async sendLoggingMessage(params) { return this.notification({ method: "notifications/message", params }); } async sendResourceUpdated(params) { return this.notification({ method: "notifications/resources/updated", params }); } async sendResourceListChanged() { return this.notification({ method: "notifications/resources/list_changed" }); } async sendToolListChanged() { return this.notification({ method: "notifications/tools/list_changed" }); } async sendPromptListChanged() { return this.notification({ method: "notifications/prompts/list_changed" }); } }; // node_modules/zod-to-json-schema/dist/esm/index.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/zod-to-json-schema/dist/esm/Options.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use"); var defaultOptions = { name: void 0, $refStrategy: "root", basePath: ["#"], effectStrategy: "input", pipeStrategy: "all", dateStrategy: "format:date-time", mapStrategy: "entries", removeAdditionalStrategy: "passthrough", allowedAdditionalProperties: true, rejectedAdditionalProperties: false, definitionPath: "definitions", target: "jsonSchema7", strictUnions: false, definitions: {}, errorMessages: false, markdownDescription: false, patternStrategy: "escape", applyRegexFlags: false, emailStrategy: "format:email", base64Strategy: "contentEncoding:base64", nameStrategy: "ref" }; var getDefaultOptions = /* @__PURE__ */ __name((options) => typeof options === "string" ? { ...defaultOptions, name: options } : { ...defaultOptions, ...options }, "getDefaultOptions"); // node_modules/zod-to-json-schema/dist/esm/Refs.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var getRefs = /* @__PURE__ */ __name((options) => { const _options = getDefaultOptions(options); const currentPath = _options.name !== void 0 ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath; return { ..._options, currentPath, propertyPath: void 0, seen: new Map(Object.entries(_options.definitions).map(([name, def]) => [ def._def, { def: def._def, path: [..._options.basePath, _options.definitionPath, name], // Resolution of references will be forced even though seen, so it's ok that the schema is undefined here for now. jsonSchema: void 0 } ])) }; }, "getRefs"); // node_modules/zod-to-json-schema/dist/esm/errorMessages.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function addErrorMessage(res, key, errorMessage, refs) { if (!refs?.errorMessages) return; if (errorMessage) { res.errorMessage = { ...res.errorMessage, [key]: errorMessage }; } } __name(addErrorMessage, "addErrorMessage"); function setResponseValueAndErrors(res, key, value, errorMessage, refs) { res[key] = value; addErrorMessage(res, key, errorMessage, refs); } __name(setResponseValueAndErrors, "setResponseValueAndErrors"); // node_modules/zod-to-json-schema/dist/esm/parseDef.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/zod-to-json-schema/dist/esm/selectParser.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/zod-to-json-schema/dist/esm/parsers/any.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseAnyDef() { return {}; } __name(parseAnyDef, "parseAnyDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/array.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseArrayDef(def, refs) { const res = { type: "array" }; if (def.type?._def && def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny) { res.items = parseDef(def.type._def, { ...refs, currentPath: [...refs.currentPath, "items"] }); } if (def.minLength) { setResponseValueAndErrors(res, "minItems", def.minLength.value, def.minLength.message, refs); } if (def.maxLength) { setResponseValueAndErrors(res, "maxItems", def.maxLength.value, def.maxLength.message, refs); } if (def.exactLength) { setResponseValueAndErrors(res, "minItems", def.exactLength.value, def.exactLength.message, refs); setResponseValueAndErrors(res, "maxItems", def.exactLength.value, def.exactLength.message, refs); } return res; } __name(parseArrayDef, "parseArrayDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseBigintDef(def, refs) { const res = { type: "integer", format: "int64" }; if (!def.checks) return res; for (const check of def.checks) { switch (check.kind) { case "min": if (refs.target === "jsonSchema7") { if (check.inclusive) { setResponseValueAndErrors(res, "minimum", check.value, check.message, refs); } else { setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs); } } else { if (!check.inclusive) { res.exclusiveMinimum = true; } setResponseValueAndErrors(res, "minimum", check.value, check.message, refs); } break; case "max": if (refs.target === "jsonSchema7") { if (check.inclusive) { setResponseValueAndErrors(res, "maximum", check.value, check.message, refs); } else { setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs); } } else { if (!check.inclusive) { res.exclusiveMaximum = true; } setResponseValueAndErrors(res, "maximum", check.value, check.message, refs); } break; case "multipleOf": setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs); break; } } return res; } __name(parseBigintDef, "parseBigintDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseBooleanDef() { return { type: "boolean" }; } __name(parseBooleanDef, "parseBooleanDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/branded.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseBrandedDef(_def, refs) { return parseDef(_def.type._def, refs); } __name(parseBrandedDef, "parseBrandedDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/catch.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var parseCatchDef = /* @__PURE__ */ __name((def, refs) => { return parseDef(def.innerType._def, refs); }, "parseCatchDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/date.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseDateDef(def, refs, overrideDateStrategy) { const strategy = overrideDateStrategy ?? refs.dateStrategy; if (Array.isArray(strategy)) { return { anyOf: strategy.map((item, i) => parseDateDef(def, refs, item)) }; } switch (strategy) { case "string": case "format:date-time": return { type: "string", format: "date-time" }; case "format:date": return { type: "string", format: "date" }; case "integer": return integerDateParser(def, refs); } } __name(parseDateDef, "parseDateDef"); var integerDateParser = /* @__PURE__ */ __name((def, refs) => { const res = { type: "integer", format: "unix-time" }; if (refs.target === "openApi3") { return res; } for (const check of def.checks) { switch (check.kind) { case "min": setResponseValueAndErrors( res, "minimum", check.value, // This is in milliseconds check.message, refs ); break; case "max": setResponseValueAndErrors( res, "maximum", check.value, // This is in milliseconds check.message, refs ); break; } } return res; }, "integerDateParser"); // node_modules/zod-to-json-schema/dist/esm/parsers/default.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseDefaultDef(_def, refs) { return { ...parseDef(_def.innerType._def, refs), default: _def.defaultValue() }; } __name(parseDefaultDef, "parseDefaultDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/effects.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseEffectsDef(_def, refs) { return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : {}; } __name(parseEffectsDef, "parseEffectsDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/enum.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseEnumDef(def) { return { type: "string", enum: Array.from(def.values) }; } __name(parseEnumDef, "parseEnumDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var isJsonSchema7AllOfType = /* @__PURE__ */ __name((type) => { if ("type" in type && type.type === "string") return false; return "allOf" in type; }, "isJsonSchema7AllOfType"); function parseIntersectionDef(def, refs) { const allOf = [ parseDef(def.left._def, { ...refs, currentPath: [...refs.currentPath, "allOf", "0"] }), parseDef(def.right._def, { ...refs, currentPath: [...refs.currentPath, "allOf", "1"] }) ].filter((x) => !!x); let unevaluatedProperties = refs.target === "jsonSchema2019-09" ? { unevaluatedProperties: false } : void 0; const mergedAllOf = []; allOf.forEach((schema) => { if (isJsonSchema7AllOfType(schema)) { mergedAllOf.push(...schema.allOf); if (schema.unevaluatedProperties === void 0) { unevaluatedProperties = void 0; } } else { let nestedSchema = schema; if ("additionalProperties" in schema && schema.additionalProperties === false) { const { additionalProperties, ...rest } = schema; nestedSchema = rest; } else { unevaluatedProperties = void 0; } mergedAllOf.push(nestedSchema); } }); return mergedAllOf.length ? { allOf: mergedAllOf, ...unevaluatedProperties } : void 0; } __name(parseIntersectionDef, "parseIntersectionDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/literal.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseLiteralDef(def, refs) { const parsedType = typeof def.value; if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") { return { type: Array.isArray(def.value) ? "array" : "object" }; } if (refs.target === "openApi3") { return { type: parsedType === "bigint" ? "integer" : parsedType, enum: [def.value] }; } return { type: parsedType === "bigint" ? "integer" : parsedType, const: def.value }; } __name(parseLiteralDef, "parseLiteralDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/map.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/zod-to-json-schema/dist/esm/parsers/record.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/zod-to-json-schema/dist/esm/parsers/string.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var emojiRegex2 = void 0; var zodPatterns = { /** * `c` was changed to `[cC]` to replicate /i flag */ cuid: /^[cC][^\s-]{8,}$/, cuid2: /^[0-9a-z]+$/, ulid: /^[0-9A-HJKMNP-TV-Z]{26}$/, /** * `a-z` was added to replicate /i flag */ email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/, /** * Constructed a valid Unicode RegExp * * Lazily instantiate since this type of regex isn't supported * in all envs (e.g. React Native). * * See: * https://github.com/colinhacks/zod/issues/2433 * Fix in Zod: * https://github.com/colinhacks/zod/commit/9340fd51e48576a75adc919bff65dbc4a5d4c99b */ emoji: /* @__PURE__ */ __name(() => { if (emojiRegex2 === void 0) { emojiRegex2 = RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "u"); } return emojiRegex2; }, "emoji"), /** * Unused */ uuid: /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/, /** * Unused */ ipv4: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ipv4Cidr: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, /** * Unused */ ipv6: /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, ipv6Cidr: /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, base64: /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, base64url: /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, nanoid: /^[a-zA-Z0-9_-]{21}$/, jwt: /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/ }; function parseStringDef(def, refs) { const res = { type: "string" }; if (def.checks) { for (const check of def.checks) { switch (check.kind) { case "min": setResponseValueAndErrors(res, "minLength", typeof res.minLength === "number" ? Math.max(res.minLength, check.value) : check.value, check.message, refs); break; case "max": setResponseValueAndErrors(res, "maxLength", typeof res.maxLength === "number" ? Math.min(res.maxLength, check.value) : check.value, check.message, refs); break; case "email": switch (refs.emailStrategy) { case "format:email": addFormat(res, "email", check.message, refs); break; case "format:idn-email": addFormat(res, "idn-email", check.message, refs); break; case "pattern:zod": addPattern(res, zodPatterns.email, check.message, refs); break; } break; case "url": addFormat(res, "uri", check.message, refs); break; case "uuid": addFormat(res, "uuid", check.message, refs); break; case "regex": addPattern(res, check.regex, check.message, refs); break; case "cuid": addPattern(res, zodPatterns.cuid, check.message, refs); break; case "cuid2": addPattern(res, zodPatterns.cuid2, check.message, refs); break; case "startsWith": addPattern(res, RegExp(`^${escapeLiteralCheckValue(check.value, refs)}`), check.message, refs); break; case "endsWith": addPattern(res, RegExp(`${escapeLiteralCheckValue(check.value, refs)}$`), check.message, refs); break; case "datetime": addFormat(res, "date-time", check.message, refs); break; case "date": addFormat(res, "date", check.message, refs); break; case "time": addFormat(res, "time", check.message, refs); break; case "duration": addFormat(res, "duration", check.message, refs); break; case "length": setResponseValueAndErrors(res, "minLength", typeof res.minLength === "number" ? Math.max(res.minLength, check.value) : check.value, check.message, refs); setResponseValueAndErrors(res, "maxLength", typeof res.maxLength === "number" ? Math.min(res.maxLength, check.value) : check.value, check.message, refs); break; case "includes": { addPattern(res, RegExp(escapeLiteralCheckValue(check.value, refs)), check.message, refs); break; } case "ip": { if (check.version !== "v6") { addFormat(res, "ipv4", check.message, refs); } if (check.version !== "v4") { addFormat(res, "ipv6", check.message, refs); } break; } case "base64url": addPattern(res, zodPatterns.base64url, check.message, refs); break; case "jwt": addPattern(res, zodPatterns.jwt, check.message, refs); break; case "cidr": { if (check.version !== "v6") { addPattern(res, zodPatterns.ipv4Cidr, check.message, refs); } if (check.version !== "v4") { addPattern(res, zodPatterns.ipv6Cidr, check.message, refs); } break; } case "emoji": addPattern(res, zodPatterns.emoji(), check.message, refs); break; case "ulid": { addPattern(res, zodPatterns.ulid, check.message, refs); break; } case "base64": { switch (refs.base64Strategy) { case "format:binary": { addFormat(res, "binary", check.message, refs); break; } case "contentEncoding:base64": { setResponseValueAndErrors(res, "contentEncoding", "base64", check.message, refs); break; } case "pattern:zod": { addPattern(res, zodPatterns.base64, check.message, refs); break; } } break; } case "nanoid": { addPattern(res, zodPatterns.nanoid, check.message, refs); } case "toLowerCase": case "toUpperCase": case "trim": break; default: /* @__PURE__ */ ((_) => { })(check); } } } return res; } __name(parseStringDef, "parseStringDef"); function escapeLiteralCheckValue(literal, refs) { return refs.patternStrategy === "escape" ? escapeNonAlphaNumeric(literal) : literal; } __name(escapeLiteralCheckValue, "escapeLiteralCheckValue"); var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789"); function escapeNonAlphaNumeric(source) { let result = ""; for (let i = 0; i < source.length; i++) { if (!ALPHA_NUMERIC.has(source[i])) { result += "\\"; } result += source[i]; } return result; } __name(escapeNonAlphaNumeric, "escapeNonAlphaNumeric"); function addFormat(schema, value, message, refs) { if (schema.format || schema.anyOf?.some((x) => x.format)) { if (!schema.anyOf) { schema.anyOf = []; } if (schema.format) { schema.anyOf.push({ format: schema.format, ...schema.errorMessage && refs.errorMessages && { errorMessage: { format: schema.errorMessage.format } } }); delete schema.format; if (schema.errorMessage) { delete schema.errorMessage.format; if (Object.keys(schema.errorMessage).length === 0) { delete schema.errorMessage; } } } schema.anyOf.push({ format: value, ...message && refs.errorMessages && { errorMessage: { format: message } } }); } else { setResponseValueAndErrors(schema, "format", value, message, refs); } } __name(addFormat, "addFormat"); function addPattern(schema, regex, message, refs) { if (schema.pattern || schema.allOf?.some((x) => x.pattern)) { if (!schema.allOf) { schema.allOf = []; } if (schema.pattern) { schema.allOf.push({ pattern: schema.pattern, ...schema.errorMessage && refs.errorMessages && { errorMessage: { pattern: schema.errorMessage.pattern } } }); delete schema.pattern; if (schema.errorMessage) { delete schema.errorMessage.pattern; if (Object.keys(schema.errorMessage).length === 0) { delete schema.errorMessage; } } } schema.allOf.push({ pattern: stringifyRegExpWithFlags(regex, refs), ...message && refs.errorMessages && { errorMessage: { pattern: message } } }); } else { setResponseValueAndErrors(schema, "pattern", stringifyRegExpWithFlags(regex, refs), message, refs); } } __name(addPattern, "addPattern"); function stringifyRegExpWithFlags(regex, refs) { if (!refs.applyRegexFlags || !regex.flags) { return regex.source; } const flags = { i: regex.flags.includes("i"), m: regex.flags.includes("m"), s: regex.flags.includes("s") // `.` matches newlines }; const source = flags.i ? regex.source.toLowerCase() : regex.source; let pattern = ""; let isEscaped = false; let inCharGroup = false; let inCharRange = false; for (let i = 0; i < source.length; i++) { if (isEscaped) { pattern += source[i]; isEscaped = false; continue; } if (flags.i) { if (inCharGroup) { if (source[i].match(/[a-z]/)) { if (inCharRange) { pattern += source[i]; pattern += `${source[i - 2]}-${source[i]}`.toUpperCase(); inCharRange = false; } else if (source[i + 1] === "-" && source[i + 2]?.match(/[a-z]/)) { pattern += source[i]; inCharRange = true; } else { pattern += `${source[i]}${source[i].toUpperCase()}`; } continue; } } else if (source[i].match(/[a-z]/)) { pattern += `[${source[i]}${source[i].toUpperCase()}]`; continue; } } if (flags.m) { if (source[i] === "^") { pattern += `(^|(?<=[\r ]))`; continue; } else if (source[i] === "$") { pattern += `($|(?=[\r ]))`; continue; } } if (flags.s && source[i] === ".") { pattern += inCharGroup ? `${source[i]}\r ` : `[${source[i]}\r ]`; continue; } pattern += source[i]; if (source[i] === "\\") { isEscaped = true; } else if (inCharGroup && source[i] === "]") { inCharGroup = false; } else if (!inCharGroup && source[i] === "[") { inCharGroup = true; } } try { new RegExp(pattern); } catch { console.warn(`Could not convert regex pattern at ${refs.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`); return regex.source; } return pattern; } __name(stringifyRegExpWithFlags, "stringifyRegExpWithFlags"); // node_modules/zod-to-json-schema/dist/esm/parsers/record.js function parseRecordDef(def, refs) { if (refs.target === "openAi") { console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."); } if (refs.target === "openApi3" && def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) { return { type: "object", required: def.keyType._def.values, properties: def.keyType._def.values.reduce((acc, key) => ({ ...acc, [key]: parseDef(def.valueType._def, { ...refs, currentPath: [...refs.currentPath, "properties", key] }) ?? {} }), {}), additionalProperties: refs.rejectedAdditionalProperties }; } const schema = { type: "object", additionalProperties: parseDef(def.valueType._def, { ...refs, currentPath: [...refs.currentPath, "additionalProperties"] }) ?? refs.allowedAdditionalProperties }; if (refs.target === "openApi3") { return schema; } if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodString && def.keyType._def.checks?.length) { const { type, ...keyType } = parseStringDef(def.keyType._def, refs); return { ...schema, propertyNames: keyType }; } else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) { return { ...schema, propertyNames: { enum: def.keyType._def.values } }; } else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodBranded && def.keyType._def.type._def.typeName === ZodFirstPartyTypeKind.ZodString && def.keyType._def.type._def.checks?.length) { const { type, ...keyType } = parseBrandedDef(def.keyType._def, refs); return { ...schema, propertyNames: keyType }; } return schema; } __name(parseRecordDef, "parseRecordDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/map.js function parseMapDef(def, refs) { if (refs.mapStrategy === "record") { return parseRecordDef(def, refs); } const keys = parseDef(def.keyType._def, { ...refs, currentPath: [...refs.currentPath, "items", "items", "0"] }) || {}; const values = parseDef(def.valueType._def, { ...refs, currentPath: [...refs.currentPath, "items", "items", "1"] }) || {}; return { type: "array", maxItems: 125, items: { type: "array", items: [keys, values], minItems: 2, maxItems: 2 } }; } __name(parseMapDef, "parseMapDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseNativeEnumDef(def) { const object = def.values; const actualKeys = Object.keys(def.values).filter((key) => { return typeof object[object[key]] !== "number"; }); const actualValues = actualKeys.map((key) => object[key]); const parsedTypes = Array.from(new Set(actualValues.map((values) => typeof values))); return { type: parsedTypes.length === 1 ? parsedTypes[0] === "string" ? "string" : "number" : ["string", "number"], enum: actualValues }; } __name(parseNativeEnumDef, "parseNativeEnumDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/never.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseNeverDef() { return { not: {} }; } __name(parseNeverDef, "parseNeverDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/null.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseNullDef(refs) { return refs.target === "openApi3" ? { enum: ["null"], nullable: true } : { type: "null" }; } __name(parseNullDef, "parseNullDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/zod-to-json-schema/dist/esm/parsers/union.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var primitiveMappings = { ZodString: "string", ZodNumber: "number", ZodBigInt: "integer", ZodBoolean: "boolean", ZodNull: "null" }; function parseUnionDef(def, refs) { if (refs.target === "openApi3") return asAnyOf(def, refs); const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options; if (options.every((x) => x._def.typeName in primitiveMappings && (!x._def.checks || !x._def.checks.length))) { const types = options.reduce((types2, x) => { const type = primitiveMappings[x._def.typeName]; return type && !types2.includes(type) ? [...types2, type] : types2; }, []); return { type: types.length > 1 ? types : types[0] }; } else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) { const types = options.reduce((acc, x) => { const type = typeof x._def.value; switch (type) { case "string": case "number": case "boolean": return [...acc, type]; case "bigint": return [...acc, "integer"]; case "object": if (x._def.value === null) return [...acc, "null"]; case "symbol": case "undefined": case "function": default: return acc; } }, []); if (types.length === options.length) { const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i); return { type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0], enum: options.reduce((acc, x) => { return acc.includes(x._def.value) ? acc : [...acc, x._def.value]; }, []) }; } } else if (options.every((x) => x._def.typeName === "ZodEnum")) { return { type: "string", enum: options.reduce((acc, x) => [ ...acc, ...x._def.values.filter((x2) => !acc.includes(x2)) ], []) }; } return asAnyOf(def, refs); } __name(parseUnionDef, "parseUnionDef"); var asAnyOf = /* @__PURE__ */ __name((def, refs) => { const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((x, i) => parseDef(x._def, { ...refs, currentPath: [...refs.currentPath, "anyOf", `${i}`] })).filter((x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0)); return anyOf.length ? { anyOf } : void 0; }, "asAnyOf"); // node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js function parseNullableDef(def, refs) { if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) { if (refs.target === "openApi3") { return { type: primitiveMappings[def.innerType._def.typeName], nullable: true }; } return { type: [ primitiveMappings[def.innerType._def.typeName], "null" ] }; } if (refs.target === "openApi3") { const base2 = parseDef(def.innerType._def, { ...refs, currentPath: [...refs.currentPath] }); if (base2 && "$ref" in base2) return { allOf: [base2], nullable: true }; return base2 && { ...base2, nullable: true }; } const base = parseDef(def.innerType._def, { ...refs, currentPath: [...refs.currentPath, "anyOf", "0"] }); return base && { anyOf: [base, { type: "null" }] }; } __name(parseNullableDef, "parseNullableDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/number.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseNumberDef(def, refs) { const res = { type: "number" }; if (!def.checks) return res; for (const check of def.checks) { switch (check.kind) { case "int": res.type = "integer"; addErrorMessage(res, "type", check.message, refs); break; case "min": if (refs.target === "jsonSchema7") { if (check.inclusive) { setResponseValueAndErrors(res, "minimum", check.value, check.message, refs); } else { setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs); } } else { if (!check.inclusive) { res.exclusiveMinimum = true; } setResponseValueAndErrors(res, "minimum", check.value, check.message, refs); } break; case "max": if (refs.target === "jsonSchema7") { if (check.inclusive) { setResponseValueAndErrors(res, "maximum", check.value, check.message, refs); } else { setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs); } } else { if (!check.inclusive) { res.exclusiveMaximum = true; } setResponseValueAndErrors(res, "maximum", check.value, check.message, refs); } break; case "multipleOf": setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs); break; } } return res; } __name(parseNumberDef, "parseNumberDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/object.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseObjectDef(def, refs) { const forceOptionalIntoNullable = refs.target === "openAi"; const result = { type: "object", properties: {} }; const required = []; const shape = def.shape(); for (const propName in shape) { let propDef = shape[propName]; if (propDef === void 0 || propDef._def === void 0) { continue; } let propOptional = safeIsOptional(propDef); if (propOptional && forceOptionalIntoNullable) { if (propDef instanceof ZodOptional) { propDef = propDef._def.innerType; } if (!propDef.isNullable()) { propDef = propDef.nullable(); } propOptional = false; } const parsedDef = parseDef(propDef._def, { ...refs, currentPath: [...refs.currentPath, "properties", propName], propertyPath: [...refs.currentPath, "properties", propName] }); if (parsedDef === void 0) { continue; } result.properties[propName] = parsedDef; if (!propOptional) { required.push(propName); } } if (required.length) { result.required = required; } const additionalProperties = decideAdditionalProperties(def, refs); if (additionalProperties !== void 0) { result.additionalProperties = additionalProperties; } return result; } __name(parseObjectDef, "parseObjectDef"); function decideAdditionalProperties(def, refs) { if (def.catchall._def.typeName !== "ZodNever") { return parseDef(def.catchall._def, { ...refs, currentPath: [...refs.currentPath, "additionalProperties"] }); } switch (def.unknownKeys) { case "passthrough": return refs.allowedAdditionalProperties; case "strict": return refs.rejectedAdditionalProperties; case "strip": return refs.removeAdditionalStrategy === "strict" ? refs.allowedAdditionalProperties : refs.rejectedAdditionalProperties; } } __name(decideAdditionalProperties, "decideAdditionalProperties"); function safeIsOptional(schema) { try { return schema.isOptional(); } catch { return true; } } __name(safeIsOptional, "safeIsOptional"); // node_modules/zod-to-json-schema/dist/esm/parsers/optional.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var parseOptionalDef = /* @__PURE__ */ __name((def, refs) => { if (refs.currentPath.toString() === refs.propertyPath?.toString()) { return parseDef(def.innerType._def, refs); } const innerSchema = parseDef(def.innerType._def, { ...refs, currentPath: [...refs.currentPath, "anyOf", "1"] }); return innerSchema ? { anyOf: [ { not: {} }, innerSchema ] } : {}; }, "parseOptionalDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var parsePipelineDef = /* @__PURE__ */ __name((def, refs) => { if (refs.pipeStrategy === "input") { return parseDef(def.in._def, refs); } else if (refs.pipeStrategy === "output") { return parseDef(def.out._def, refs); } const a = parseDef(def.in._def, { ...refs, currentPath: [...refs.currentPath, "allOf", "0"] }); const b = parseDef(def.out._def, { ...refs, currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"] }); return { allOf: [a, b].filter((x) => x !== void 0) }; }, "parsePipelineDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/promise.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parsePromiseDef(def, refs) { return parseDef(def.type._def, refs); } __name(parsePromiseDef, "parsePromiseDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/set.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseSetDef(def, refs) { const items = parseDef(def.valueType._def, { ...refs, currentPath: [...refs.currentPath, "items"] }); const schema = { type: "array", uniqueItems: true, items }; if (def.minSize) { setResponseValueAndErrors(schema, "minItems", def.minSize.value, def.minSize.message, refs); } if (def.maxSize) { setResponseValueAndErrors(schema, "maxItems", def.maxSize.value, def.maxSize.message, refs); } return schema; } __name(parseSetDef, "parseSetDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseTupleDef(def, refs) { if (def.rest) { return { type: "array", minItems: def.items.length, items: def.items.map((x, i) => parseDef(x._def, { ...refs, currentPath: [...refs.currentPath, "items", `${i}`] })).reduce((acc, x) => x === void 0 ? acc : [...acc, x], []), additionalItems: parseDef(def.rest._def, { ...refs, currentPath: [...refs.currentPath, "additionalItems"] }) }; } else { return { type: "array", minItems: def.items.length, maxItems: def.items.length, items: def.items.map((x, i) => parseDef(x._def, { ...refs, currentPath: [...refs.currentPath, "items", `${i}`] })).reduce((acc, x) => x === void 0 ? acc : [...acc, x], []) }; } } __name(parseTupleDef, "parseTupleDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseUndefinedDef() { return { not: {} }; } __name(parseUndefinedDef, "parseUndefinedDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function parseUnknownDef() { return {}; } __name(parseUnknownDef, "parseUnknownDef"); // node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var parseReadonlyDef = /* @__PURE__ */ __name((def, refs) => { return parseDef(def.innerType._def, refs); }, "parseReadonlyDef"); // node_modules/zod-to-json-schema/dist/esm/selectParser.js var selectParser = /* @__PURE__ */ __name((def, typeName, refs) => { switch (typeName) { case ZodFirstPartyTypeKind.ZodString: return parseStringDef(def, refs); case ZodFirstPartyTypeKind.ZodNumber: return parseNumberDef(def, refs); case ZodFirstPartyTypeKind.ZodObject: return parseObjectDef(def, refs); case ZodFirstPartyTypeKind.ZodBigInt: return parseBigintDef(def, refs); case ZodFirstPartyTypeKind.ZodBoolean: return parseBooleanDef(); case ZodFirstPartyTypeKind.ZodDate: return parseDateDef(def, refs); case ZodFirstPartyTypeKind.ZodUndefined: return parseUndefinedDef(); case ZodFirstPartyTypeKind.ZodNull: return parseNullDef(refs); case ZodFirstPartyTypeKind.ZodArray: return parseArrayDef(def, refs); case ZodFirstPartyTypeKind.ZodUnion: case ZodFirstPartyTypeKind.ZodDiscriminatedUnion: return parseUnionDef(def, refs); case ZodFirstPartyTypeKind.ZodIntersection: return parseIntersectionDef(def, refs); case ZodFirstPartyTypeKind.ZodTuple: return parseTupleDef(def, refs); case ZodFirstPartyTypeKind.ZodRecord: return parseRecordDef(def, refs); case ZodFirstPartyTypeKind.ZodLiteral: return parseLiteralDef(def, refs); case ZodFirstPartyTypeKind.ZodEnum: return parseEnumDef(def); case ZodFirstPartyTypeKind.ZodNativeEnum: return parseNativeEnumDef(def); case ZodFirstPartyTypeKind.ZodNullable: return parseNullableDef(def, refs); case ZodFirstPartyTypeKind.ZodOptional: return parseOptionalDef(def, refs); case ZodFirstPartyTypeKind.ZodMap: return parseMapDef(def, refs); case ZodFirstPartyTypeKind.ZodSet: return parseSetDef(def, refs); case ZodFirstPartyTypeKind.ZodLazy: return () => def.getter()._def; case ZodFirstPartyTypeKind.ZodPromise: return parsePromiseDef(def, refs); case ZodFirstPartyTypeKind.ZodNaN: case ZodFirstPartyTypeKind.ZodNever: return parseNeverDef(); case ZodFirstPartyTypeKind.ZodEffects: return parseEffectsDef(def, refs); case ZodFirstPartyTypeKind.ZodAny: return parseAnyDef(); case ZodFirstPartyTypeKind.ZodUnknown: return parseUnknownDef(); case ZodFirstPartyTypeKind.ZodDefault: return parseDefaultDef(def, refs); case ZodFirstPartyTypeKind.ZodBranded: return parseBrandedDef(def, refs); case ZodFirstPartyTypeKind.ZodReadonly: return parseReadonlyDef(def, refs); case ZodFirstPartyTypeKind.ZodCatch: return parseCatchDef(def, refs); case ZodFirstPartyTypeKind.ZodPipeline: return parsePipelineDef(def, refs); case ZodFirstPartyTypeKind.ZodFunction: case ZodFirstPartyTypeKind.ZodVoid: case ZodFirstPartyTypeKind.ZodSymbol: return void 0; default: return /* @__PURE__ */ ((_) => void 0)(typeName); } }, "selectParser"); // node_modules/zod-to-json-schema/dist/esm/parseDef.js function parseDef(def, refs, forceResolution = false) { const seenItem = refs.seen.get(def); if (refs.override) { const overrideResult = refs.override?.(def, refs, seenItem, forceResolution); if (overrideResult !== ignoreOverride) { return overrideResult; } } if (seenItem && !forceResolution) { const seenSchema = get$ref(seenItem, refs); if (seenSchema !== void 0) { return seenSchema; } } const newItem = { def, path: refs.currentPath, jsonSchema: void 0 }; refs.seen.set(def, newItem); const jsonSchemaOrGetter = selectParser(def, def.typeName, refs); const jsonSchema = typeof jsonSchemaOrGetter === "function" ? parseDef(jsonSchemaOrGetter(), refs) : jsonSchemaOrGetter; if (jsonSchema) { addMeta(def, refs, jsonSchema); } if (refs.postProcess) { const postProcessResult = refs.postProcess(jsonSchema, def, refs); newItem.jsonSchema = jsonSchema; return postProcessResult; } newItem.jsonSchema = jsonSchema; return jsonSchema; } __name(parseDef, "parseDef"); var get$ref = /* @__PURE__ */ __name((item, refs) => { switch (refs.$refStrategy) { case "root": return { $ref: item.path.join("/") }; case "relative": return { $ref: getRelativePath(refs.currentPath, item.path) }; case "none": case "seen": { if (item.path.length < refs.currentPath.length && item.path.every((value, index) => refs.currentPath[index] === value)) { console.warn(`Recursive reference detected at ${refs.currentPath.join("/")}! Defaulting to any`); return {}; } return refs.$refStrategy === "seen" ? {} : void 0; } } }, "get$ref"); var getRelativePath = /* @__PURE__ */ __name((pathA, pathB) => { let i = 0; for (; i < pathA.length && i < pathB.length; i++) { if (pathA[i] !== pathB[i]) break; } return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/"); }, "getRelativePath"); var addMeta = /* @__PURE__ */ __name((def, refs, jsonSchema) => { if (def.description) { jsonSchema.description = def.description; if (refs.markdownDescription) { jsonSchema.markdownDescription = def.description; } } return jsonSchema; }, "addMeta"); // node_modules/zod-to-json-schema/dist/esm/parseTypes.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var zodToJsonSchema = /* @__PURE__ */ __name((schema, options) => { const refs = getRefs(options); const definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({ ...acc, [name2]: parseDef(schema2._def, { ...refs, currentPath: [...refs.basePath, refs.definitionPath, name2] }, true) ?? {} }), {}) : void 0; const name = typeof options === "string" ? options : options?.nameStrategy === "title" ? void 0 : options?.name; const main = parseDef(schema._def, name === void 0 ? refs : { ...refs, currentPath: [...refs.basePath, refs.definitionPath, name] }, false) ?? {}; const title2 = typeof options === "object" && options.name !== void 0 && options.nameStrategy === "title" ? options.name : void 0; if (title2 !== void 0) { main.title = title2; } const combined = name === void 0 ? definitions ? { ...main, [refs.definitionPath]: definitions } : main : { $ref: [ ...refs.$refStrategy === "relative" ? [] : refs.basePath, refs.definitionPath, name ].join("/"), [refs.definitionPath]: { ...definitions, [name]: main } }; if (refs.target === "jsonSchema7") { combined.$schema = "http://json-schema.org/draft-07/schema#"; } else if (refs.target === "jsonSchema2019-09" || refs.target === "openAi") { combined.$schema = "https://json-schema.org/draft/2019-09/schema#"; } if (refs.target === "openAi" && ("anyOf" in combined || "oneOf" in combined || "allOf" in combined || "type" in combined && Array.isArray(combined.type))) { console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."); } return combined; }, "zodToJsonSchema"); // node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var McpZodTypeKind; (function(McpZodTypeKind2) { McpZodTypeKind2["Completable"] = "McpCompletable"; })(McpZodTypeKind || (McpZodTypeKind = {})); var Completable = class extends ZodType { static { __name(this, "Completable"); } _parse(input) { const { ctx } = this._processInputParams(input); const data = ctx.data; return this._def.type._parse({ data, path: ctx.path, parent: ctx }); } unwrap() { return this._def.type; } }; Completable.create = (type, params) => { return new Completable({ type, typeName: McpZodTypeKind.Completable, complete: params.complete, ...processCreateParams2(params) }); }; function processCreateParams2(params) { if (!params) return {}; const { errorMap: errorMap2, invalid_type_error, required_error, description } = params; if (errorMap2 && (invalid_type_error || required_error)) { throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`); } if (errorMap2) return { errorMap: errorMap2, description }; const customMap = /* @__PURE__ */ __name((iss, ctx) => { var _a, _b; const { message } = params; if (iss.code === "invalid_enum_value") { return { message: message !== null && message !== void 0 ? message : ctx.defaultError }; } if (typeof ctx.data === "undefined") { return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError }; } if (iss.code !== "invalid_type") return { message: ctx.defaultError }; return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError }; }, "customMap"); return { errorMap: customMap, description }; } __name(processCreateParams2, "processCreateParams"); // node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); // node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js var McpServer = class { static { __name(this, "McpServer"); } constructor(serverInfo, options) { this._registeredResources = {}; this._registeredResourceTemplates = {}; this._registeredTools = {}; this._registeredPrompts = {}; this._toolHandlersInitialized = false; this._completionHandlerInitialized = false; this._resourceHandlersInitialized = false; this._promptHandlersInitialized = false; this.server = new Server2(serverInfo, options); } /** * Attaches to the given transport, starts it, and starts listening for messages. * * The `server` object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. */ async connect(transport) { return await this.server.connect(transport); } /** * Closes the connection. */ async close() { await this.server.close(); } setToolRequestHandlers() { if (this._toolHandlersInitialized) { return; } this.server.assertCanSetRequestHandler(ListToolsRequestSchema.shape.method.value); this.server.assertCanSetRequestHandler(CallToolRequestSchema.shape.method.value); this.server.registerCapabilities({ tools: { listChanged: true } }); this.server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: Object.entries(this._registeredTools).filter(([, tool]) => tool.enabled).map(([name, tool]) => { return { name, description: tool.description, inputSchema: tool.inputSchema ? zodToJsonSchema(tool.inputSchema, { strictUnions: true }) : EMPTY_OBJECT_JSON_SCHEMA }; }) })); this.server.setRequestHandler(CallToolRequestSchema, async (request, extra) => { const tool = this._registeredTools[request.params.name]; if (!tool) { throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} not found`); } if (!tool.enabled) { throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} disabled`); } if (tool.inputSchema) { const parseResult = await tool.inputSchema.safeParseAsync(request.params.arguments); if (!parseResult.success) { throw new McpError(ErrorCode.InvalidParams, `Invalid arguments for tool ${request.params.name}: ${parseResult.error.message}`); } const args = parseResult.data; const cb = tool.callback; try { return await Promise.resolve(cb(args, extra)); } catch (error3) { return { content: [ { type: "text", text: error3 instanceof Error ? error3.message : String(error3) } ], isError: true }; } } else { const cb = tool.callback; try { return await Promise.resolve(cb(extra)); } catch (error3) { return { content: [ { type: "text", text: error3 instanceof Error ? error3.message : String(error3) } ], isError: true }; } } }); this._toolHandlersInitialized = true; } setCompletionRequestHandler() { if (this._completionHandlerInitialized) { return; } this.server.assertCanSetRequestHandler(CompleteRequestSchema.shape.method.value); this.server.setRequestHandler(CompleteRequestSchema, async (request) => { switch (request.params.ref.type) { case "ref/prompt": return this.handlePromptCompletion(request, request.params.ref); case "ref/resource": return this.handleResourceCompletion(request, request.params.ref); default: throw new McpError(ErrorCode.InvalidParams, `Invalid completion reference: ${request.params.ref}`); } }); this._completionHandlerInitialized = true; } async handlePromptCompletion(request, ref) { const prompt = this._registeredPrompts[ref.name]; if (!prompt) { throw new McpError(ErrorCode.InvalidParams, `Prompt ${ref.name} not found`); } if (!prompt.enabled) { throw new McpError(ErrorCode.InvalidParams, `Prompt ${ref.name} disabled`); } if (!prompt.argsSchema) { return EMPTY_COMPLETION_RESULT; } const field = prompt.argsSchema.shape[request.params.argument.name]; if (!(field instanceof Completable)) { return EMPTY_COMPLETION_RESULT; } const def = field._def; const suggestions = await def.complete(request.params.argument.value); return createCompletionResult(suggestions); } async handleResourceCompletion(request, ref) { const template = Object.values(this._registeredResourceTemplates).find((t) => t.resourceTemplate.uriTemplate.toString() === ref.uri); if (!template) { if (this._registeredResources[ref.uri]) { return EMPTY_COMPLETION_RESULT; } throw new McpError(ErrorCode.InvalidParams, `Resource template ${request.params.ref.uri} not found`); } const completer = template.resourceTemplate.completeCallback(request.params.argument.name); if (!completer) { return EMPTY_COMPLETION_RESULT; } const suggestions = await completer(request.params.argument.value); return createCompletionResult(suggestions); } setResourceRequestHandlers() { if (this._resourceHandlersInitialized) { return; } this.server.assertCanSetRequestHandler(ListResourcesRequestSchema.shape.method.value); this.server.assertCanSetRequestHandler(ListResourceTemplatesRequestSchema.shape.method.value); this.server.assertCanSetRequestHandler(ReadResourceRequestSchema.shape.method.value); this.server.registerCapabilities({ resources: { listChanged: true } }); this.server.setRequestHandler(ListResourcesRequestSchema, async (request, extra) => { const resources = Object.entries(this._registeredResources).filter(([_, resource]) => resource.enabled).map(([uri, resource]) => ({ uri, name: resource.name, ...resource.metadata })); const templateResources = []; for (const template of Object.values(this._registeredResourceTemplates)) { if (!template.resourceTemplate.listCallback) { continue; } const result = await template.resourceTemplate.listCallback(extra); for (const resource of result.resources) { templateResources.push({ ...resource, ...template.metadata }); } } return { resources: [...resources, ...templateResources] }; }); this.server.setRequestHandler(ListResourceTemplatesRequestSchema, async () => { const resourceTemplates = Object.entries(this._registeredResourceTemplates).map(([name, template]) => ({ name, uriTemplate: template.resourceTemplate.uriTemplate.toString(), ...template.metadata })); return { resourceTemplates }; }); this.server.setRequestHandler(ReadResourceRequestSchema, async (request, extra) => { const uri = new URL(request.params.uri); const resource = this._registeredResources[uri.toString()]; if (resource) { if (!resource.enabled) { throw new McpError(ErrorCode.InvalidParams, `Resource ${uri} disabled`); } return resource.readCallback(uri, extra); } for (const template of Object.values(this._registeredResourceTemplates)) { const variables = template.resourceTemplate.uriTemplate.match(uri.toString()); if (variables) { return template.readCallback(uri, variables, extra); } } throw new McpError(ErrorCode.InvalidParams, `Resource ${uri} not found`); }); this.setCompletionRequestHandler(); this._resourceHandlersInitialized = true; } setPromptRequestHandlers() { if (this._promptHandlersInitialized) { return; } this.server.assertCanSetRequestHandler(ListPromptsRequestSchema.shape.method.value); this.server.assertCanSetRequestHandler(GetPromptRequestSchema.shape.method.value); this.server.registerCapabilities({ prompts: { listChanged: true } }); this.server.setRequestHandler(ListPromptsRequestSchema, () => ({ prompts: Object.entries(this._registeredPrompts).filter(([, prompt]) => prompt.enabled).map(([name, prompt]) => { return { name, description: prompt.description, arguments: prompt.argsSchema ? promptArgumentsFromSchema(prompt.argsSchema) : void 0 }; }) })); this.server.setRequestHandler(GetPromptRequestSchema, async (request, extra) => { const prompt = this._registeredPrompts[request.params.name]; if (!prompt) { throw new McpError(ErrorCode.InvalidParams, `Prompt ${request.params.name} not found`); } if (!prompt.enabled) { throw new McpError(ErrorCode.InvalidParams, `Prompt ${request.params.name} disabled`); } if (prompt.argsSchema) { const parseResult = await prompt.argsSchema.safeParseAsync(request.params.arguments); if (!parseResult.success) { throw new McpError(ErrorCode.InvalidParams, `Invalid arguments for prompt ${request.params.name}: ${parseResult.error.message}`); } const args = parseResult.data; const cb = prompt.callback; return await Promise.resolve(cb(args, extra)); } else { const cb = prompt.callback; return await Promise.resolve(cb(extra)); } }); this.setCompletionRequestHandler(); this._promptHandlersInitialized = true; } resource(name, uriOrTemplate, ...rest) { let metadata; if (typeof rest[0] === "object") { metadata = rest.shift(); } const readCallback = rest[0]; if (typeof uriOrTemplate === "string") { if (this._registeredResources[uriOrTemplate]) { throw new Error(`Resource ${uriOrTemplate} is already registered`); } const registeredResource = { name, metadata, readCallback, enabled: true, disable: /* @__PURE__ */ __name(() => registeredResource.update({ enabled: false }), "disable"), enable: /* @__PURE__ */ __name(() => registeredResource.update({ enabled: true }), "enable"), remove: /* @__PURE__ */ __name(() => registeredResource.update({ uri: null }), "remove"), update: /* @__PURE__ */ __name((updates) => { if (typeof updates.uri !== "undefined" && updates.uri !== uriOrTemplate) { delete this._registeredResources[uriOrTemplate]; if (updates.uri) this._registeredResources[updates.uri] = registeredResource; } if (typeof updates.name !== "undefined") registeredResource.name = updates.name; if (typeof updates.metadata !== "undefined") registeredResource.metadata = updates.metadata; if (typeof updates.callback !== "undefined") registeredResource.readCallback = updates.callback; if (typeof updates.enabled !== "undefined") registeredResource.enabled = updates.enabled; this.sendResourceListChanged(); }, "update") }; this._registeredResources[uriOrTemplate] = registeredResource; this.setResourceRequestHandlers(); this.sendResourceListChanged(); return registeredResource; } else { if (this._registeredResourceTemplates[name]) { throw new Error(`Resource template ${name} is already registered`); } const registeredResourceTemplate = { resourceTemplate: uriOrTemplate, metadata, readCallback, enabled: true, disable: /* @__PURE__ */ __name(() => registeredResourceTemplate.update({ enabled: false }), "disable"), enable: /* @__PURE__ */ __name(() => registeredResourceTemplate.update({ enabled: true }), "enable"), remove: /* @__PURE__ */ __name(() => registeredResourceTemplate.update({ name: null }), "remove"), update: /* @__PURE__ */ __name((updates) => { if (typeof updates.name !== "undefined" && updates.name !== name) { delete this._registeredResourceTemplates[name]; if (updates.name) this._registeredResourceTemplates[updates.name] = registeredResourceTemplate; } if (typeof updates.template !== "undefined") registeredResourceTemplate.resourceTemplate = updates.template; if (typeof updates.metadata !== "undefined") registeredResourceTemplate.metadata = updates.metadata; if (typeof updates.callback !== "undefined") registeredResourceTemplate.readCallback = updates.callback; if (typeof updates.enabled !== "undefined") registeredResourceTemplate.enabled = updates.enabled; this.sendResourceListChanged(); }, "update") }; this._registeredResourceTemplates[name] = registeredResourceTemplate; this.setResourceRequestHandlers(); this.sendResourceListChanged(); return registeredResourceTemplate; } } tool(name, ...rest) { if (this._registeredTools[name]) { throw new Error(`Tool ${name} is already registered`); } let description; if (typeof rest[0] === "string") { description = rest.shift(); } let paramsSchema; if (rest.length > 1) { paramsSchema = rest.shift(); } const cb = rest[0]; const registeredTool = { description, inputSchema: paramsSchema === void 0 ? void 0 : z.object(paramsSchema), callback: cb, enabled: true, disable: /* @__PURE__ */ __name(() => registeredTool.update({ enabled: false }), "disable"), enable: /* @__PURE__ */ __name(() => registeredTool.update({ enabled: true }), "enable"), remove: /* @__PURE__ */ __name(() => registeredTool.update({ name: null }), "remove"), update: /* @__PURE__ */ __name((updates) => { if (typeof updates.name !== "undefined" && updates.name !== name) { delete this._registeredTools[name]; if (updates.name) this._registeredTools[updates.name] = registeredTool; } if (typeof updates.description !== "undefined") registeredTool.description = updates.description; if (typeof updates.paramsSchema !== "undefined") registeredTool.inputSchema = z.object(updates.paramsSchema); if (typeof updates.callback !== "undefined") registeredTool.callback = updates.callback; if (typeof updates.enabled !== "undefined") registeredTool.enabled = updates.enabled; this.sendToolListChanged(); }, "update") }; this._registeredTools[name] = registeredTool; this.setToolRequestHandlers(); this.sendToolListChanged(); return registeredTool; } prompt(name, ...rest) { if (this._registeredPrompts[name]) { throw new Error(`Prompt ${name} is already registered`); } let description; if (typeof rest[0] === "string") { description = rest.shift(); } let argsSchema; if (rest.length > 1) { argsSchema = rest.shift(); } const cb = rest[0]; const registeredPrompt = { description, argsSchema: argsSchema === void 0 ? void 0 : z.object(argsSchema), callback: cb, enabled: true, disable: /* @__PURE__ */ __name(() => registeredPrompt.update({ enabled: false }), "disable"), enable: /* @__PURE__ */ __name(() => registeredPrompt.update({ enabled: true }), "enable"), remove: /* @__PURE__ */ __name(() => registeredPrompt.update({ name: null }), "remove"), update: /* @__PURE__ */ __name((updates) => { if (typeof updates.name !== "undefined" && updates.name !== name) { delete this._registeredPrompts[name]; if (updates.name) this._registeredPrompts[updates.name] = registeredPrompt; } if (typeof updates.description !== "undefined") registeredPrompt.description = updates.description; if (typeof updates.argsSchema !== "undefined") registeredPrompt.argsSchema = z.object(updates.argsSchema); if (typeof updates.callback !== "undefined") registeredPrompt.callback = updates.callback; if (typeof updates.enabled !== "undefined") registeredPrompt.enabled = updates.enabled; this.sendPromptListChanged(); }, "update") }; this._registeredPrompts[name] = registeredPrompt; this.setPromptRequestHandlers(); this.sendPromptListChanged(); return registeredPrompt; } /** * Checks if the server is connected to a transport. * @returns True if the server is connected */ isConnected() { return this.server.transport !== void 0; } /** * Sends a resource list changed event to the client, if connected. */ sendResourceListChanged() { if (this.isConnected()) { this.server.sendResourceListChanged(); } } /** * Sends a tool list changed event to the client, if connected. */ sendToolListChanged() { if (this.isConnected()) { this.server.sendToolListChanged(); } } /** * Sends a prompt list changed event to the client, if connected. */ sendPromptListChanged() { if (this.isConnected()) { this.server.sendPromptListChanged(); } } }; var EMPTY_OBJECT_JSON_SCHEMA = { type: "object" }; function promptArgumentsFromSchema(schema) { return Object.entries(schema.shape).map(([name, field]) => ({ name, description: field.description, required: !field.isOptional() })); } __name(promptArgumentsFromSchema, "promptArgumentsFromSchema"); function createCompletionResult(suggestions) { return { completion: { values: suggestions.slice(0, 100), total: suggestions.length, hasMore: suggestions.length > 100 } }; } __name(createCompletionResult, "createCompletionResult"); var EMPTY_COMPLETION_RESULT = { completion: { values: [], hasMore: false } }; // src/index.ts var bizSdk = __toESM(require_cjs()); var { FacebookAdsApi, User, AdAccount, Campaign, AdSet, Ad } = bizSdk; var META_CONFIG = { appId: "2505469856465943", // This token should be kept secure and rotated regularly accessToken: "EAAjmtijKRBcBOy0iWzLJLkrwve4au3h4zhJ8L5svEQYdGcZCgIbzb6mlGEoIqiUi6sl2dQZCkkfesQETJX3gD0MGjuL28ZAONV4JgeDaH4i1MgY9HNMJeWRLzLDl79nJtT45TXv9aFeOaMcsMcOb7J4bj87Ipsyfi9cruRPT5BpvnXK5BZAcrNZBGQZBtZAnBlY" }; var MyMCP = class extends McpAgent { constructor() { super(...arguments); this.server = new McpServer({ name: "Calculator & Meta Ads Tool", version: "1.0.0" }); } static { __name(this, "MyMCP"); } async init() { this.server.tool( "add", { a: z.number(), b: z.number() }, async ({ a, b }) => ({ content: [{ type: "text", text: String(a + b) }] }) ); this.server.tool( "calculate", { operation: z.enum(["add", "subtract", "multiply", "divide"]), a: z.number(), b: z.number() }, async ({ operation, a, b }) => { let result; switch (operation) { case "add": result = a + b; break; case "subtract": result = a - b; break; case "multiply": result = a * b; break; case "divide": if (b === 0) return { content: [ { type: "text", text: "Error: Cannot divide by zero" } ] }; result = a / b; break; } return { content: [{ type: "text", text: String(result) }] }; } ); this.server.tool( "metaAdsGetAdAccounts", { userId: z.string().default("me"), limit: z.number().default(10) }, async ({ userId, limit }) => { try { FacebookAdsApi.init(META_CONFIG.accessToken); const user = new User(userId); const accounts = await user.getAdAccounts({ limit, fields: [ "id", "name", "account_status", "amount_spent", "balance", "currency", "timezone_name" ] }); const formattedAccounts = accounts.map((account) => ({ id: account.id, name: account.name, status: getAccountStatusText(account.account_status), amount_spent: formatCurrency(account.amount_spent, account.currency), balance: formatCurrency(account.balance, account.currency), currency: account.currency, timezone: account.timezone_name })); return { content: [{ type: "text", text: JSON.stringify({ success: true, count: formattedAccounts.length, accounts: formattedAccounts }, null, 2) }] }; } catch (error3) { console.error("Meta Ads API Error:", error3); return { content: [{ type: "text", text: JSON.stringify({ success: false, error: error3 instanceof Error ? error3.message : String(error3) }, null, 2) }] }; } } ); this.server.tool( "metaAdsGetAccountInfo", { accountId: z.string() }, async ({ accountId }) => { try { FacebookAdsApi.init(META_CONFIG.accessToken); const account = new AdAccount(accountId); const accountInfo = await account.read([ "id", "name", "account_status", "amount_spent", "balance", "currency", "timezone_name", "funding_source", "business_country_code", "spend_cap", "owner" ]); const formattedAccountInfo = { id: accountInfo.id, name: accountInfo.name, status: getAccountStatusText(accountInfo.account_status), amount_spent: formatCurrency(accountInfo.amount_spent, accountInfo.currency), balance: formatCurrency(accountInfo.balance, accountInfo.currency), currency: accountInfo.currency, timezone: accountInfo.timezone_name, country: accountInfo.business_country_code, spend_cap: accountInfo.spend_cap ? formatCurrency(accountInfo.spend_cap, accountInfo.currency) : "No limit", owner: accountInfo.owner }; return { content: [{ type: "text", text: JSON.stringify({ success: true, account: formattedAccountInfo }, null, 2) }] }; } catch (error3) { console.error("Meta Ads API Error:", error3); return { content: [{ type: "text", text: JSON.stringify({ success: false, error: error3 instanceof Error ? error3.message : String(error3) }, null, 2) }] }; } } ); this.server.tool( "metaAdsGetCampaigns", { accountId: z.string(), limit: z.number().default(10), statusFilter: z.string().optional() }, async ({ accountId, limit, statusFilter }) => { try { FacebookAdsApi.init(META_CONFIG.accessToken); const account = new AdAccount(accountId); let params = { limit, fields: [ "id", "name", "objective", "status", "daily_budget", "lifetime_budget", "created_time", "start_time", "stop_time" ] }; if (statusFilter) { params.filtering = [ { field: "campaign.delivery_status", operator: "EQUAL", value: statusFilter } ]; } const campaigns = await account.getCampaigns(params); const formattedCampaigns = campaigns.map((campaign) => ({ id: campaign.id, name: campaign.name, objective: campaign.objective, status: campaign.status, daily_budget: campaign.daily_budget ? formatCurrency(campaign.daily_budget, "") : null, lifetime_budget: campaign.lifetime_budget ? formatCurrency(campaign.lifetime_budget, "") : null, created_time: campaign.created_time, start_time: campaign.start_time, stop_time: campaign.stop_time })); return { content: [{ type: "text", text: JSON.stringify({ success: true, count: formattedCampaigns.length, campaigns: formattedCampaigns }, null, 2) }] }; } catch (error3) { console.error("Meta Ads API Error:", error3); return { content: [{ type: "text", text: JSON.stringify({ success: false, error: error3 instanceof Error ? error3.message : String(error3) }, null, 2) }] }; } } ); this.server.tool( "metaAdsGetCampaignDetails", { campaignId: z.string() }, async ({ campaignId }) => { try { FacebookAdsApi.init(META_CONFIG.accessToken); const campaign = new Campaign(campaignId); const campaignInfo = await campaign.read([ "id", "name", "objective", "status", "daily_budget", "lifetime_budget", "buying_type", "special_ad_categories", "bid_strategy", "created_time", "start_time", "stop_time", "spend_cap", "budget_remaining" ]); const adSets = await campaign.getAdSets({ limit: 5, fields: ["id", "name", "status"] }); const formattedAdSets = adSets.map((adSet) => ({ id: adSet.id, name: adSet.name, status: adSet.status })); const formattedCampaignInfo = { id: campaignInfo.id, name: campaignInfo.name, objective: campaignInfo.objective, status: campaignInfo.status, daily_budget: campaignInfo.daily_budget ? formatCurrency(campaignInfo.daily_budget, "") : null, lifetime_budget: campaignInfo.lifetime_budget ? formatCurrency(campaignInfo.lifetime_budget, "") : null, buying_type: campaignInfo.buying_type, special_ad_categories: campaignInfo.special_ad_categories || [], bid_strategy: campaignInfo.bid_strategy, created_time: campaignInfo.created_time, start_time: campaignInfo.start_time, stop_time: campaignInfo.stop_time, spend_cap: campaignInfo.spend_cap ? formatCurrency(campaignInfo.spend_cap, "") : "No limit", budget_remaining: campaignInfo.budget_remaining ? formatCurrency(campaignInfo.budget_remaining, "") : null, related_ad_sets: formattedAdSets, related_ad_sets_count: formattedAdSets.length }; return { content: [{ type: "text", text: JSON.stringify({ success: true, campaign: formattedCampaignInfo }, null, 2) }] }; } catch (error3) { console.error("Meta Ads API Error:", error3); return { content: [{ type: "text", text: JSON.stringify({ success: false, error: error3 instanceof Error ? error3.message : String(error3) }, null, 2) }] }; } } ); this.server.tool( "metaAdsGetAdSets", { accountId: z.string(), limit: z.number().default(10), campaignId: z.string().optional() }, async ({ accountId, limit, campaignId }) => { try { FacebookAdsApi.init(META_CONFIG.accessToken); const account = new AdAccount(accountId); let params = { limit, fields: [ "id", "name", "status", "campaign_id", "daily_budget", "lifetime_budget", "targeting", "optimization_goal", "bid_amount", "billing_event", "start_time", "end_time" ] }; if (campaignId) { params.filtering = [ { field: "campaign.id", operator: "EQUAL", value: campaignId } ]; } const adSets = await account.getAdSets(params); const formattedAdSets = adSets.map((adSet) => ({ id: adSet.id, name: adSet.name, status: adSet.status, campaign_id: adSet.campaign_id, daily_budget: adSet.daily_budget ? formatCurrency(adSet.daily_budget, "") : null, lifetime_budget: adSet.lifetime_budget ? formatCurrency(adSet.lifetime_budget, "") : null, optimization_goal: adSet.optimization_goal, bid_amount: adSet.bid_amount ? formatCurrency(adSet.bid_amount, "") : null, billing_event: adSet.billing_event, targeting_summary: summarizeTargeting(adSet.targeting), start_time: adSet.start_time, end_time: adSet.end_time })); return { content: [{ type: "text", text: JSON.stringify({ success: true, count: formattedAdSets.length, ad_sets: formattedAdSets }, null, 2) }] }; } catch (error3) { console.error("Meta Ads API Error:", error3); return { content: [{ type: "text", text: JSON.stringify({ success: false, error: error3 instanceof Error ? error3.message : String(error3) }, null, 2) }] }; } } ); } }; function getAccountStatusText(statusCode) { const statusMap = { 1: "Active", 2: "Disabled", 3: "Unsettled", 7: "Pending_risk_review", 8: "Pending_settlement", 9: "In_grace_period", 100: "Pending_closure", 101: "Closed", 201: "Any_active", 202: "Any_closed" }; return statusMap[statusCode] || `Unknown (${statusCode})`; } __name(getAccountStatusText, "getAccountStatusText"); function formatCurrency(amount, currency) { if (!amount) return "0"; const numAmount = typeof amount === "string" ? parseFloat(amount) : amount; const formattedAmount = (numAmount / 100).toFixed(2); if (currency) { return `${formattedAmount} ${currency}`; } return formattedAmount; } __name(formatCurrency, "formatCurrency"); function summarizeTargeting(targeting) { if (!targeting) return {}; const summary = {}; if (targeting.age_min) summary.age_range = `${targeting.age_min}-${targeting.age_max || "65+"}`; if (targeting.genders && targeting.genders.length) { const genderMap = { 1: "male", 2: "female" }; summary.genders = targeting.genders.map((g) => genderMap[g] || g); } if (targeting.geo_locations) { summary.locations = {}; if (targeting.geo_locations.countries) summary.locations.countries = targeting.geo_locations.countries; if (targeting.geo_locations.cities) summary.locations.cities = targeting.geo_locations.cities.map((c) => c.name); if (targeting.geo_locations.regions) summary.locations.regions = targeting.geo_locations.regions.map((r) => r.name); } if (targeting.interests) summary.interests = targeting.interests.map((i) => i.name || i.id); if (targeting.behaviors) summary.behaviors = targeting.behaviors.map((b) => b.name || b.id); return summary; } __name(summarizeTargeting, "summarizeTargeting"); var src_default = { fetch(request, env2, ctx) { const url = new URL(request.url); if (url.pathname === "/sse" || url.pathname === "/sse/message") { return MyMCP.serveSSE("/sse").fetch(request, env2, ctx); } if (url.pathname === "/mcp") { return MyMCP.serve("/mcp").fetch(request, env2, ctx); } return new Response("Not found", { status: 404 }); } }; // node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var drainBody = /* @__PURE__ */ __name(async (request, env2, _ctx, middlewareCtx) => { try { return await middlewareCtx.next(request, env2); } finally { try { if (request.body !== null && !request.bodyUsed) { const reader = request.body.getReader(); while (!(await reader.read()).done) { } } } catch (e) { console.error("Failed to drain the unused request body.", e); } } }, "drainBody"); var middleware_ensure_req_body_drained_default = drainBody; // node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); function reduceError(e) { return { name: e?.name, message: e?.message ?? String(e), stack: e?.stack, cause: e?.cause === void 0 ? void 0 : reduceError(e.cause) }; } __name(reduceError, "reduceError"); var jsonError = /* @__PURE__ */ __name(async (request, env2, _ctx, middlewareCtx) => { try { return await middlewareCtx.next(request, env2); } catch (e) { const error3 = reduceError(e); return Response.json(error3, { status: 500, headers: { "MF-Experimental-Error-Stack": "true" } }); } }, "jsonError"); var middleware_miniflare3_json_error_default = jsonError; // .wrangler/tmp/bundle-vFWQ9Q/middleware-insertion-facade.js var __INTERNAL_WRANGLER_MIDDLEWARE__ = [ middleware_ensure_req_body_drained_default, middleware_miniflare3_json_error_default ]; var middleware_insertion_facade_default = src_default; // node_modules/wrangler/templates/middleware/common.ts init_modules_watch_stub(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var __facade_middleware__ = []; function __facade_register__(...args) { __facade_middleware__.push(...args.flat()); } __name(__facade_register__, "__facade_register__"); function __facade_invokeChain__(request, env2, ctx, dispatch, middlewareChain) { const [head, ...tail] = middlewareChain; const middlewareCtx = { dispatch, next(newRequest, newEnv) { return __facade_invokeChain__(newRequest, newEnv, ctx, dispatch, tail); } }; return head(request, env2, ctx, middlewareCtx); } __name(__facade_invokeChain__, "__facade_invokeChain__"); function __facade_invoke__(request, env2, ctx, dispatch, finalMiddleware) { return __facade_invokeChain__(request, env2, ctx, dispatch, [ ...__facade_middleware__, finalMiddleware ]); } __name(__facade_invoke__, "__facade_invoke__"); // .wrangler/tmp/bundle-vFWQ9Q/middleware-loader.entry.ts var __Facade_ScheduledController__ = class ___Facade_ScheduledController__ { constructor(scheduledTime, cron, noRetry) { this.scheduledTime = scheduledTime; this.cron = cron; this.#noRetry = noRetry; } static { __name(this, "__Facade_ScheduledController__"); } #noRetry; noRetry() { if (!(this instanceof ___Facade_ScheduledController__)) { throw new TypeError("Illegal invocation"); } this.#noRetry(); } }; function wrapExportedHandler(worker) { if (__INTERNAL_WRANGLER_MIDDLEWARE__ === void 0 || __INTERNAL_WRANGLER_MIDDLEWARE__.length === 0) { return worker; } for (const middleware of __INTERNAL_WRANGLER_MIDDLEWARE__) { __facade_register__(middleware); } const fetchDispatcher = /* @__PURE__ */ __name(function(request, env2, ctx) { if (worker.fetch === void 0) { throw new Error("Handler does not export a fetch() function."); } return worker.fetch(request, env2, ctx); }, "fetchDispatcher"); return { ...worker, fetch(request, env2, ctx) { const dispatcher = /* @__PURE__ */ __name(function(type, init) { if (type === "scheduled" && worker.scheduled !== void 0) { const controller = new __Facade_ScheduledController__( Date.now(), init.cron ?? "", () => { } ); return worker.scheduled(controller, env2, ctx); } }, "dispatcher"); return __facade_invoke__(request, env2, ctx, dispatcher, fetchDispatcher); } }; } __name(wrapExportedHandler, "wrapExportedHandler"); function wrapWorkerEntrypoint(klass) { if (__INTERNAL_WRANGLER_MIDDLEWARE__ === void 0 || __INTERNAL_WRANGLER_MIDDLEWARE__.length === 0) { return klass; } for (const middleware of __INTERNAL_WRANGLER_MIDDLEWARE__) { __facade_register__(middleware); } return class extends klass { #fetchDispatcher = /* @__PURE__ */ __name((request, env2, ctx) => { this.env = env2; this.ctx = ctx; if (super.fetch === void 0) { throw new Error("Entrypoint class does not define a fetch() function."); } return super.fetch(request); }, "#fetchDispatcher"); #dispatcher = /* @__PURE__ */ __name((type, init) => { if (type === "scheduled" && super.scheduled !== void 0) { const controller = new __Facade_ScheduledController__( Date.now(), init.cron ?? "", () => { } ); return super.scheduled(controller); } }, "#dispatcher"); fetch(request) { return __facade_invoke__( request, this.env, this.ctx, this.#dispatcher, this.#fetchDispatcher ); } }; } __name(wrapWorkerEntrypoint, "wrapWorkerEntrypoint"); var WRAPPED_ENTRY; if (typeof middleware_insertion_facade_default === "object") { WRAPPED_ENTRY = wrapExportedHandler(middleware_insertion_facade_default); } else if (typeof middleware_insertion_facade_default === "function") { WRAPPED_ENTRY = wrapWorkerEntrypoint(middleware_insertion_facade_default); } var middleware_loader_entry_default = WRAPPED_ENTRY; export { MyMCP, __INTERNAL_WRANGLER_MIDDLEWARE__, middleware_loader_entry_default as default }; /*! Bundled license information: axios/dist/browser/axios.cjs: (*! Axios v1.9.0 Copyright (c) 2025 Matt Zabriskie and contributors *) js-sha256/src/sha256.js: (** * [js-sha256]{@link https://github.com/emn178/js-sha256} * * @version 0.9.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT *) */ //# sourceMappingURL=index.js.map

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/evimeyer/remote-mcp-server-authless'

If you have feedback or need assistance with the MCP directory API, please join our Discord server