- 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>
51 lines
1.2 KiB
JavaScript
51 lines
1.2 KiB
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.StackType = exports.Caret = void 0;
|
|
exports.createStack = createStack;
|
|
let Caret = exports.Caret = /*#__PURE__*/function (Caret) {
|
|
Caret["beforeValue"] = "beforeValue";
|
|
Caret["afterValue"] = "afterValue";
|
|
Caret["beforeKey"] = "beforeKey";
|
|
return Caret;
|
|
}({});
|
|
let StackType = exports.StackType = /*#__PURE__*/function (StackType) {
|
|
StackType["root"] = "root";
|
|
StackType["object"] = "object";
|
|
StackType["array"] = "array";
|
|
StackType["ndJson"] = "ndJson";
|
|
StackType["functionCall"] = "dataType";
|
|
return StackType;
|
|
}({});
|
|
function createStack() {
|
|
const stack = [StackType.root];
|
|
let caret = Caret.beforeValue;
|
|
return {
|
|
get type() {
|
|
return last(stack);
|
|
},
|
|
get caret() {
|
|
return caret;
|
|
},
|
|
pop() {
|
|
stack.pop();
|
|
caret = Caret.afterValue;
|
|
return true;
|
|
},
|
|
push(type, newCaret) {
|
|
stack.push(type);
|
|
caret = newCaret;
|
|
return true;
|
|
},
|
|
update(newCaret) {
|
|
caret = newCaret;
|
|
return true;
|
|
}
|
|
};
|
|
}
|
|
function last(array) {
|
|
return array[array.length - 1];
|
|
}
|
|
//# sourceMappingURL=stack.js.map
|