- Add Strike API credentials configuration - Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates) - Add comprehensive operation descriptions for all resources - Include CLAUDE.MD documentation - Set up build configuration with TypeScript, ESLint, and Prettier 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
2.0 KiB
JavaScript
46 lines
2.0 KiB
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
(function (factory) {
|
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
var v = factory(require, exports);
|
|
if (v !== undefined) module.exports = v;
|
|
}
|
|
else if (typeof define === "function" && define.amd) {
|
|
define(["require", "exports", "zod/v4"], factory);
|
|
}
|
|
})(function (require, exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.toExecutionContextEstablishmentHookParameter = exports.ExecutionContextEstablishmentHookParameterSchema = void 0;
|
|
const v4_1 = __importDefault(require("zod/v4"));
|
|
const ExecutionContextEstablishmentHookParameterSchemaV1 = v4_1.default.object({
|
|
executionsHooksVersion: v4_1.default.literal(1),
|
|
hooks: v4_1.default.array(v4_1.default
|
|
.object({
|
|
hookName: v4_1.default.string(),
|
|
isAllowedToFail: v4_1.default.boolean().optional().default(false),
|
|
})
|
|
.loose()),
|
|
});
|
|
exports.ExecutionContextEstablishmentHookParameterSchema = v4_1.default
|
|
.discriminatedUnion('contextEstablishmentHooks.executionsHooksVersion', [
|
|
ExecutionContextEstablishmentHookParameterSchemaV1,
|
|
])
|
|
.meta({
|
|
title: 'ExecutionContextEstablishmentHookParameter',
|
|
});
|
|
/**
|
|
* Safely parses an execution context establishment hook parameters
|
|
* @param obj
|
|
* @returns
|
|
*/
|
|
const toExecutionContextEstablishmentHookParameter = (value) => {
|
|
if (value === null || value === undefined || typeof value !== 'object') {
|
|
return null;
|
|
}
|
|
return exports.ExecutionContextEstablishmentHookParameterSchema.safeParse(value);
|
|
};
|
|
exports.toExecutionContextEstablishmentHookParameter = toExecutionContextEstablishmentHookParameter;
|
|
});
|
|
//# sourceMappingURL=execution-context-establishment-hooks.js.map
|