attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
365 lines • 23.2 kB
JavaScript
"use strict";
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.PostV2ObjectsObjectRecordsQueryResponse$ = exports.PostV2ObjectsObjectRecordsQueryResponse$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryResponse$inboundSchema = exports.PostV2ObjectsObjectRecordsQueryData$ = exports.PostV2ObjectsObjectRecordsQueryData$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryData$inboundSchema = exports.PostV2ObjectsObjectRecordsQueryId$ = exports.PostV2ObjectsObjectRecordsQueryId$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryId$inboundSchema = exports.PostV2ObjectsObjectRecordsQueryRequest$ = exports.PostV2ObjectsObjectRecordsQueryRequest$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryRequest$inboundSchema = exports.PostV2ObjectsObjectRecordsQueryRequestBody$ = exports.PostV2ObjectsObjectRecordsQueryRequestBody$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryRequestBody$inboundSchema = exports.PostV2ObjectsObjectRecordsQuerySortUnion$ = exports.PostV2ObjectsObjectRecordsQuerySortUnion$outboundSchema = exports.PostV2ObjectsObjectRecordsQuerySortUnion$inboundSchema = exports.PostV2ObjectsObjectRecordsQuerySort1$ = exports.PostV2ObjectsObjectRecordsQuerySort1$outboundSchema = exports.PostV2ObjectsObjectRecordsQuerySort1$inboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection1$ = exports.PostV2ObjectsObjectRecordsQueryDirection1$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection1$inboundSchema = exports.PostV2ObjectsObjectRecordsQuerySort2$ = exports.PostV2ObjectsObjectRecordsQuerySort2$outboundSchema = exports.PostV2ObjectsObjectRecordsQuerySort2$inboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection2$ = exports.PostV2ObjectsObjectRecordsQueryDirection2$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection2$inboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection1 = exports.PostV2ObjectsObjectRecordsQueryDirection2 = void 0;
exports.postV2ObjectsObjectRecordsQuerySort2ToJSON = postV2ObjectsObjectRecordsQuerySort2ToJSON;
exports.postV2ObjectsObjectRecordsQuerySort2FromJSON = postV2ObjectsObjectRecordsQuerySort2FromJSON;
exports.postV2ObjectsObjectRecordsQuerySort1ToJSON = postV2ObjectsObjectRecordsQuerySort1ToJSON;
exports.postV2ObjectsObjectRecordsQuerySort1FromJSON = postV2ObjectsObjectRecordsQuerySort1FromJSON;
exports.postV2ObjectsObjectRecordsQuerySortUnionToJSON = postV2ObjectsObjectRecordsQuerySortUnionToJSON;
exports.postV2ObjectsObjectRecordsQuerySortUnionFromJSON = postV2ObjectsObjectRecordsQuerySortUnionFromJSON;
exports.postV2ObjectsObjectRecordsQueryRequestBodyToJSON = postV2ObjectsObjectRecordsQueryRequestBodyToJSON;
exports.postV2ObjectsObjectRecordsQueryRequestBodyFromJSON = postV2ObjectsObjectRecordsQueryRequestBodyFromJSON;
exports.postV2ObjectsObjectRecordsQueryRequestToJSON = postV2ObjectsObjectRecordsQueryRequestToJSON;
exports.postV2ObjectsObjectRecordsQueryRequestFromJSON = postV2ObjectsObjectRecordsQueryRequestFromJSON;
exports.postV2ObjectsObjectRecordsQueryIdToJSON = postV2ObjectsObjectRecordsQueryIdToJSON;
exports.postV2ObjectsObjectRecordsQueryIdFromJSON = postV2ObjectsObjectRecordsQueryIdFromJSON;
exports.postV2ObjectsObjectRecordsQueryDataToJSON = postV2ObjectsObjectRecordsQueryDataToJSON;
exports.postV2ObjectsObjectRecordsQueryDataFromJSON = postV2ObjectsObjectRecordsQueryDataFromJSON;
exports.postV2ObjectsObjectRecordsQueryResponseToJSON = postV2ObjectsObjectRecordsQueryResponseToJSON;
exports.postV2ObjectsObjectRecordsQueryResponseFromJSON = postV2ObjectsObjectRecordsQueryResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/**
* The direction to sort the results by.
*/
exports.PostV2ObjectsObjectRecordsQueryDirection2 = {
Asc: "asc",
Desc: "desc",
};
/**
* The direction to sort the results by.
*/
exports.PostV2ObjectsObjectRecordsQueryDirection1 = {
Asc: "asc",
Desc: "desc",
};
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryDirection2$inboundSchema = z
.nativeEnum(exports.PostV2ObjectsObjectRecordsQueryDirection2);
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryDirection2$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection2$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var PostV2ObjectsObjectRecordsQueryDirection2$;
(function (PostV2ObjectsObjectRecordsQueryDirection2$) {
/** @deprecated use `PostV2ObjectsObjectRecordsQueryDirection2$inboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryDirection2$.inboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection2$inboundSchema;
/** @deprecated use `PostV2ObjectsObjectRecordsQueryDirection2$outboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryDirection2$.outboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection2$outboundSchema;
})(PostV2ObjectsObjectRecordsQueryDirection2$ || (exports.PostV2ObjectsObjectRecordsQueryDirection2$ = PostV2ObjectsObjectRecordsQueryDirection2$ = {}));
/** @internal */
exports.PostV2ObjectsObjectRecordsQuerySort2$inboundSchema = z.object({
direction: exports.PostV2ObjectsObjectRecordsQueryDirection2$inboundSchema,
path: z.array(z.array(z.string())),
field: z.string().optional(),
});
/** @internal */
exports.PostV2ObjectsObjectRecordsQuerySort2$outboundSchema = z.object({
direction: exports.PostV2ObjectsObjectRecordsQueryDirection2$outboundSchema,
path: z.array(z.array(z.string())),
field: z.string().optional(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var PostV2ObjectsObjectRecordsQuerySort2$;
(function (PostV2ObjectsObjectRecordsQuerySort2$) {
/** @deprecated use `PostV2ObjectsObjectRecordsQuerySort2$inboundSchema` instead. */
PostV2ObjectsObjectRecordsQuerySort2$.inboundSchema = exports.PostV2ObjectsObjectRecordsQuerySort2$inboundSchema;
/** @deprecated use `PostV2ObjectsObjectRecordsQuerySort2$outboundSchema` instead. */
PostV2ObjectsObjectRecordsQuerySort2$.outboundSchema = exports.PostV2ObjectsObjectRecordsQuerySort2$outboundSchema;
})(PostV2ObjectsObjectRecordsQuerySort2$ || (exports.PostV2ObjectsObjectRecordsQuerySort2$ = PostV2ObjectsObjectRecordsQuerySort2$ = {}));
function postV2ObjectsObjectRecordsQuerySort2ToJSON(postV2ObjectsObjectRecordsQuerySort2) {
return JSON.stringify(exports.PostV2ObjectsObjectRecordsQuerySort2$outboundSchema.parse(postV2ObjectsObjectRecordsQuerySort2));
}
function postV2ObjectsObjectRecordsQuerySort2FromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ObjectsObjectRecordsQuerySort2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ObjectsObjectRecordsQuerySort2' from JSON`);
}
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryDirection1$inboundSchema = z
.nativeEnum(exports.PostV2ObjectsObjectRecordsQueryDirection1);
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryDirection1$outboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection1$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var PostV2ObjectsObjectRecordsQueryDirection1$;
(function (PostV2ObjectsObjectRecordsQueryDirection1$) {
/** @deprecated use `PostV2ObjectsObjectRecordsQueryDirection1$inboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryDirection1$.inboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection1$inboundSchema;
/** @deprecated use `PostV2ObjectsObjectRecordsQueryDirection1$outboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryDirection1$.outboundSchema = exports.PostV2ObjectsObjectRecordsQueryDirection1$outboundSchema;
})(PostV2ObjectsObjectRecordsQueryDirection1$ || (exports.PostV2ObjectsObjectRecordsQueryDirection1$ = PostV2ObjectsObjectRecordsQueryDirection1$ = {}));
/** @internal */
exports.PostV2ObjectsObjectRecordsQuerySort1$inboundSchema = z.object({
direction: exports.PostV2ObjectsObjectRecordsQueryDirection1$inboundSchema,
attribute: z.string(),
field: z.string().optional(),
});
/** @internal */
exports.PostV2ObjectsObjectRecordsQuerySort1$outboundSchema = z.object({
direction: exports.PostV2ObjectsObjectRecordsQueryDirection1$outboundSchema,
attribute: z.string(),
field: z.string().optional(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var PostV2ObjectsObjectRecordsQuerySort1$;
(function (PostV2ObjectsObjectRecordsQuerySort1$) {
/** @deprecated use `PostV2ObjectsObjectRecordsQuerySort1$inboundSchema` instead. */
PostV2ObjectsObjectRecordsQuerySort1$.inboundSchema = exports.PostV2ObjectsObjectRecordsQuerySort1$inboundSchema;
/** @deprecated use `PostV2ObjectsObjectRecordsQuerySort1$outboundSchema` instead. */
PostV2ObjectsObjectRecordsQuerySort1$.outboundSchema = exports.PostV2ObjectsObjectRecordsQuerySort1$outboundSchema;
})(PostV2ObjectsObjectRecordsQuerySort1$ || (exports.PostV2ObjectsObjectRecordsQuerySort1$ = PostV2ObjectsObjectRecordsQuerySort1$ = {}));
function postV2ObjectsObjectRecordsQuerySort1ToJSON(postV2ObjectsObjectRecordsQuerySort1) {
return JSON.stringify(exports.PostV2ObjectsObjectRecordsQuerySort1$outboundSchema.parse(postV2ObjectsObjectRecordsQuerySort1));
}
function postV2ObjectsObjectRecordsQuerySort1FromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ObjectsObjectRecordsQuerySort1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ObjectsObjectRecordsQuerySort1' from JSON`);
}
/** @internal */
exports.PostV2ObjectsObjectRecordsQuerySortUnion$inboundSchema = z.union([
z.lazy(() => exports.PostV2ObjectsObjectRecordsQuerySort1$inboundSchema),
z.lazy(() => exports.PostV2ObjectsObjectRecordsQuerySort2$inboundSchema),
]);
/** @internal */
exports.PostV2ObjectsObjectRecordsQuerySortUnion$outboundSchema = z.union([
z.lazy(() => exports.PostV2ObjectsObjectRecordsQuerySort1$outboundSchema),
z.lazy(() => exports.PostV2ObjectsObjectRecordsQuerySort2$outboundSchema),
]);
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var PostV2ObjectsObjectRecordsQuerySortUnion$;
(function (PostV2ObjectsObjectRecordsQuerySortUnion$) {
/** @deprecated use `PostV2ObjectsObjectRecordsQuerySortUnion$inboundSchema` instead. */
PostV2ObjectsObjectRecordsQuerySortUnion$.inboundSchema = exports.PostV2ObjectsObjectRecordsQuerySortUnion$inboundSchema;
/** @deprecated use `PostV2ObjectsObjectRecordsQuerySortUnion$outboundSchema` instead. */
PostV2ObjectsObjectRecordsQuerySortUnion$.outboundSchema = exports.PostV2ObjectsObjectRecordsQuerySortUnion$outboundSchema;
})(PostV2ObjectsObjectRecordsQuerySortUnion$ || (exports.PostV2ObjectsObjectRecordsQuerySortUnion$ = PostV2ObjectsObjectRecordsQuerySortUnion$ = {}));
function postV2ObjectsObjectRecordsQuerySortUnionToJSON(postV2ObjectsObjectRecordsQuerySortUnion) {
return JSON.stringify(exports.PostV2ObjectsObjectRecordsQuerySortUnion$outboundSchema.parse(postV2ObjectsObjectRecordsQuerySortUnion));
}
function postV2ObjectsObjectRecordsQuerySortUnionFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ObjectsObjectRecordsQuerySortUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ObjectsObjectRecordsQuerySortUnion' from JSON`);
}
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryRequestBody$inboundSchema = z.object({
filter: z.record(z.any()).optional(),
sorts: z.array(z.union([
z.lazy(() => exports.PostV2ObjectsObjectRecordsQuerySort1$inboundSchema),
z.lazy(() => exports.PostV2ObjectsObjectRecordsQuerySort2$inboundSchema),
])).optional(),
limit: z.number().optional(),
offset: z.number().optional(),
});
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryRequestBody$outboundSchema = z.object({
filter: z.record(z.any()).optional(),
sorts: z.array(z.union([
z.lazy(() => exports.PostV2ObjectsObjectRecordsQuerySort1$outboundSchema),
z.lazy(() => exports.PostV2ObjectsObjectRecordsQuerySort2$outboundSchema),
])).optional(),
limit: z.number().optional(),
offset: z.number().optional(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var PostV2ObjectsObjectRecordsQueryRequestBody$;
(function (PostV2ObjectsObjectRecordsQueryRequestBody$) {
/** @deprecated use `PostV2ObjectsObjectRecordsQueryRequestBody$inboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryRequestBody$.inboundSchema = exports.PostV2ObjectsObjectRecordsQueryRequestBody$inboundSchema;
/** @deprecated use `PostV2ObjectsObjectRecordsQueryRequestBody$outboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryRequestBody$.outboundSchema = exports.PostV2ObjectsObjectRecordsQueryRequestBody$outboundSchema;
})(PostV2ObjectsObjectRecordsQueryRequestBody$ || (exports.PostV2ObjectsObjectRecordsQueryRequestBody$ = PostV2ObjectsObjectRecordsQueryRequestBody$ = {}));
function postV2ObjectsObjectRecordsQueryRequestBodyToJSON(postV2ObjectsObjectRecordsQueryRequestBody) {
return JSON.stringify(exports.PostV2ObjectsObjectRecordsQueryRequestBody$outboundSchema.parse(postV2ObjectsObjectRecordsQueryRequestBody));
}
function postV2ObjectsObjectRecordsQueryRequestBodyFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ObjectsObjectRecordsQueryRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ObjectsObjectRecordsQueryRequestBody' from JSON`);
}
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryRequest$inboundSchema = z.object({
object: z.string(),
RequestBody: z.lazy(() => exports.PostV2ObjectsObjectRecordsQueryRequestBody$inboundSchema),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"RequestBody": "requestBody",
});
});
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryRequest$outboundSchema = z.object({
object: z.string(),
requestBody: z.lazy(() => exports.PostV2ObjectsObjectRecordsQueryRequestBody$outboundSchema),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
requestBody: "RequestBody",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var PostV2ObjectsObjectRecordsQueryRequest$;
(function (PostV2ObjectsObjectRecordsQueryRequest$) {
/** @deprecated use `PostV2ObjectsObjectRecordsQueryRequest$inboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryRequest$.inboundSchema = exports.PostV2ObjectsObjectRecordsQueryRequest$inboundSchema;
/** @deprecated use `PostV2ObjectsObjectRecordsQueryRequest$outboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryRequest$.outboundSchema = exports.PostV2ObjectsObjectRecordsQueryRequest$outboundSchema;
})(PostV2ObjectsObjectRecordsQueryRequest$ || (exports.PostV2ObjectsObjectRecordsQueryRequest$ = PostV2ObjectsObjectRecordsQueryRequest$ = {}));
function postV2ObjectsObjectRecordsQueryRequestToJSON(postV2ObjectsObjectRecordsQueryRequest) {
return JSON.stringify(exports.PostV2ObjectsObjectRecordsQueryRequest$outboundSchema.parse(postV2ObjectsObjectRecordsQueryRequest));
}
function postV2ObjectsObjectRecordsQueryRequestFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ObjectsObjectRecordsQueryRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ObjectsObjectRecordsQueryRequest' from JSON`);
}
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryId$inboundSchema = z.object({
workspace_id: z.string(),
object_id: z.string(),
record_id: z.string(),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"workspace_id": "workspaceId",
"object_id": "objectId",
"record_id": "recordId",
});
});
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryId$outboundSchema = z.object({
workspaceId: z.string(),
objectId: z.string(),
recordId: z.string(),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
workspaceId: "workspace_id",
objectId: "object_id",
recordId: "record_id",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var PostV2ObjectsObjectRecordsQueryId$;
(function (PostV2ObjectsObjectRecordsQueryId$) {
/** @deprecated use `PostV2ObjectsObjectRecordsQueryId$inboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryId$.inboundSchema = exports.PostV2ObjectsObjectRecordsQueryId$inboundSchema;
/** @deprecated use `PostV2ObjectsObjectRecordsQueryId$outboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryId$.outboundSchema = exports.PostV2ObjectsObjectRecordsQueryId$outboundSchema;
})(PostV2ObjectsObjectRecordsQueryId$ || (exports.PostV2ObjectsObjectRecordsQueryId$ = PostV2ObjectsObjectRecordsQueryId$ = {}));
function postV2ObjectsObjectRecordsQueryIdToJSON(postV2ObjectsObjectRecordsQueryId) {
return JSON.stringify(exports.PostV2ObjectsObjectRecordsQueryId$outboundSchema.parse(postV2ObjectsObjectRecordsQueryId));
}
function postV2ObjectsObjectRecordsQueryIdFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ObjectsObjectRecordsQueryId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ObjectsObjectRecordsQueryId' from JSON`);
}
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryData$inboundSchema = z.object({
id: z.lazy(() => exports.PostV2ObjectsObjectRecordsQueryId$inboundSchema),
created_at: z.string(),
values: z.record(z.any()),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"created_at": "createdAt",
});
});
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryData$outboundSchema = z.object({
id: z.lazy(() => exports.PostV2ObjectsObjectRecordsQueryId$outboundSchema),
createdAt: z.string(),
values: z.record(z.any()),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
createdAt: "created_at",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var PostV2ObjectsObjectRecordsQueryData$;
(function (PostV2ObjectsObjectRecordsQueryData$) {
/** @deprecated use `PostV2ObjectsObjectRecordsQueryData$inboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryData$.inboundSchema = exports.PostV2ObjectsObjectRecordsQueryData$inboundSchema;
/** @deprecated use `PostV2ObjectsObjectRecordsQueryData$outboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryData$.outboundSchema = exports.PostV2ObjectsObjectRecordsQueryData$outboundSchema;
})(PostV2ObjectsObjectRecordsQueryData$ || (exports.PostV2ObjectsObjectRecordsQueryData$ = PostV2ObjectsObjectRecordsQueryData$ = {}));
function postV2ObjectsObjectRecordsQueryDataToJSON(postV2ObjectsObjectRecordsQueryData) {
return JSON.stringify(exports.PostV2ObjectsObjectRecordsQueryData$outboundSchema.parse(postV2ObjectsObjectRecordsQueryData));
}
function postV2ObjectsObjectRecordsQueryDataFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ObjectsObjectRecordsQueryData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ObjectsObjectRecordsQueryData' from JSON`);
}
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryResponse$inboundSchema = z.object({
data: z.array(z.lazy(() => exports.PostV2ObjectsObjectRecordsQueryData$inboundSchema)),
});
/** @internal */
exports.PostV2ObjectsObjectRecordsQueryResponse$outboundSchema = z.object({
data: z.array(z.lazy(() => exports.PostV2ObjectsObjectRecordsQueryData$outboundSchema)),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var PostV2ObjectsObjectRecordsQueryResponse$;
(function (PostV2ObjectsObjectRecordsQueryResponse$) {
/** @deprecated use `PostV2ObjectsObjectRecordsQueryResponse$inboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryResponse$.inboundSchema = exports.PostV2ObjectsObjectRecordsQueryResponse$inboundSchema;
/** @deprecated use `PostV2ObjectsObjectRecordsQueryResponse$outboundSchema` instead. */
PostV2ObjectsObjectRecordsQueryResponse$.outboundSchema = exports.PostV2ObjectsObjectRecordsQueryResponse$outboundSchema;
})(PostV2ObjectsObjectRecordsQueryResponse$ || (exports.PostV2ObjectsObjectRecordsQueryResponse$ = PostV2ObjectsObjectRecordsQueryResponse$ = {}));
function postV2ObjectsObjectRecordsQueryResponseToJSON(postV2ObjectsObjectRecordsQueryResponse) {
return JSON.stringify(exports.PostV2ObjectsObjectRecordsQueryResponse$outboundSchema.parse(postV2ObjectsObjectRecordsQueryResponse));
}
function postV2ObjectsObjectRecordsQueryResponseFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ObjectsObjectRecordsQueryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ObjectsObjectRecordsQueryResponse' from JSON`);
}
//# sourceMappingURL=postv2objectsobjectrecordsquery.js.map