attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
101 lines • 5.54 kB
JavaScript
;
/*
* 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.DeleteV2WebhooksWebhookIdResponse$ = exports.DeleteV2WebhooksWebhookIdResponse$outboundSchema = exports.DeleteV2WebhooksWebhookIdResponse$inboundSchema = exports.DeleteV2WebhooksWebhookIdRequest$ = exports.DeleteV2WebhooksWebhookIdRequest$outboundSchema = exports.DeleteV2WebhooksWebhookIdRequest$inboundSchema = void 0;
exports.deleteV2WebhooksWebhookIdRequestToJSON = deleteV2WebhooksWebhookIdRequestToJSON;
exports.deleteV2WebhooksWebhookIdRequestFromJSON = deleteV2WebhooksWebhookIdRequestFromJSON;
exports.deleteV2WebhooksWebhookIdResponseToJSON = deleteV2WebhooksWebhookIdResponseToJSON;
exports.deleteV2WebhooksWebhookIdResponseFromJSON = deleteV2WebhooksWebhookIdResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.DeleteV2WebhooksWebhookIdRequest$inboundSchema = z.object({
webhook_id: z.string(),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"webhook_id": "webhookId",
});
});
/** @internal */
exports.DeleteV2WebhooksWebhookIdRequest$outboundSchema = z.object({
webhookId: z.string(),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
webhookId: "webhook_id",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var DeleteV2WebhooksWebhookIdRequest$;
(function (DeleteV2WebhooksWebhookIdRequest$) {
/** @deprecated use `DeleteV2WebhooksWebhookIdRequest$inboundSchema` instead. */
DeleteV2WebhooksWebhookIdRequest$.inboundSchema = exports.DeleteV2WebhooksWebhookIdRequest$inboundSchema;
/** @deprecated use `DeleteV2WebhooksWebhookIdRequest$outboundSchema` instead. */
DeleteV2WebhooksWebhookIdRequest$.outboundSchema = exports.DeleteV2WebhooksWebhookIdRequest$outboundSchema;
})(DeleteV2WebhooksWebhookIdRequest$ || (exports.DeleteV2WebhooksWebhookIdRequest$ = DeleteV2WebhooksWebhookIdRequest$ = {}));
function deleteV2WebhooksWebhookIdRequestToJSON(deleteV2WebhooksWebhookIdRequest) {
return JSON.stringify(exports.DeleteV2WebhooksWebhookIdRequest$outboundSchema.parse(deleteV2WebhooksWebhookIdRequest));
}
function deleteV2WebhooksWebhookIdRequestFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteV2WebhooksWebhookIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteV2WebhooksWebhookIdRequest' from JSON`);
}
/** @internal */
exports.DeleteV2WebhooksWebhookIdResponse$inboundSchema = z.object({});
/** @internal */
exports.DeleteV2WebhooksWebhookIdResponse$outboundSchema = z.object({});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var DeleteV2WebhooksWebhookIdResponse$;
(function (DeleteV2WebhooksWebhookIdResponse$) {
/** @deprecated use `DeleteV2WebhooksWebhookIdResponse$inboundSchema` instead. */
DeleteV2WebhooksWebhookIdResponse$.inboundSchema = exports.DeleteV2WebhooksWebhookIdResponse$inboundSchema;
/** @deprecated use `DeleteV2WebhooksWebhookIdResponse$outboundSchema` instead. */
DeleteV2WebhooksWebhookIdResponse$.outboundSchema = exports.DeleteV2WebhooksWebhookIdResponse$outboundSchema;
})(DeleteV2WebhooksWebhookIdResponse$ || (exports.DeleteV2WebhooksWebhookIdResponse$ = DeleteV2WebhooksWebhookIdResponse$ = {}));
function deleteV2WebhooksWebhookIdResponseToJSON(deleteV2WebhooksWebhookIdResponse) {
return JSON.stringify(exports.DeleteV2WebhooksWebhookIdResponse$outboundSchema.parse(deleteV2WebhooksWebhookIdResponse));
}
function deleteV2WebhooksWebhookIdResponseFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteV2WebhooksWebhookIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteV2WebhooksWebhookIdResponse' from JSON`);
}
//# sourceMappingURL=deletev2webhookswebhookid.js.map